Skip to content

Commit bd18d57

Browse files
Merge branch 'denoland:main' into functions-module
2 parents 3a08d69 + 4e5c7aa commit bd18d57

File tree

416 files changed

+18454
-7018
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

416 files changed

+18454
-7018
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,12 @@ Example code snippets must:
163163
[documentation checker tool](../_tools/check_docs.ts) and are flagged when
164164
they throw an error.
165165

166-
Note: To skip running a specific code snippet, add `no-eval` to the starting
166+
Note: To skip running a specific code snippet, add `ignore` to the starting
167167
delimiter. E.g.
168168

169169
````ts
170170
/**
171-
* ```ts no-eval
171+
* ```ts ignore
172172
* (code snippet will not be run)
173173
* ```
174174
*/

.github/dependabot.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
version: 2
22
updates:
3-
43
- package-ecosystem: "github-actions"
54
directory: "/"
65
schedule:
@@ -14,4 +13,4 @@ updates:
1413
groups:
1514
dependencies:
1615
patterns:
17-
- "*" # Matches all packages
16+
- "*" # Matches all packages

.github/dependency_graph.svg

Lines changed: 262 additions & 250 deletions
Loading

.github/labeler.yml

Lines changed: 40 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,123 +1,120 @@
1-
archive:
2-
- changed-files:
3-
- any-glob-to-any-file: archive/**
41
assert:
52
- changed-files:
6-
- any-glob-to-any-file: assert/**
3+
- any-glob-to-any-file: assert/**
74
async:
85
- changed-files:
9-
- any-glob-to-any-file: async/**
6+
- any-glob-to-any-file: async/**
107
bytes:
118
- changed-files:
12-
- any-glob-to-any-file: bytes/**
9+
- any-glob-to-any-file: bytes/**
1310
cbor:
1411
- changed-files:
15-
- any-glob-to-any-file: cbor/**
12+
- any-glob-to-any-file: cbor/**
1613
cli:
1714
- changed-files:
18-
- any-glob-to-any-file: cli/**
15+
- any-glob-to-any-file: cli/**
1916
collections:
2017
- changed-files:
21-
- any-glob-to-any-file: collections/**
18+
- any-glob-to-any-file: collections/**
2219
crypto:
2320
- changed-files:
24-
- any-glob-to-any-file: crypto/**
21+
- any-glob-to-any-file: crypto/**
2522
csv:
2623
- changed-files:
27-
- any-glob-to-any-file: csv/**
24+
- any-glob-to-any-file: csv/**
2825
data-structures:
2926
- changed-files:
30-
- any-glob-to-any-file: data_structures/**
27+
- any-glob-to-any-file: data_structures/**
3128
datetime:
3229
- changed-files:
33-
- any-glob-to-any-file: datetime/**
30+
- any-glob-to-any-file: datetime/**
3431
dotenv:
3532
- changed-files:
36-
- any-glob-to-any-file: dotenv/**
33+
- any-glob-to-any-file: dotenv/**
3734
encoding:
3835
- changed-files:
39-
- any-glob-to-any-file: encoding/**
36+
- any-glob-to-any-file: encoding/**
4037
expect:
4138
- changed-files:
42-
- any-glob-to-any-file: expect/**
39+
- any-glob-to-any-file: expect/**
4340
fmt:
4441
- changed-files:
45-
- any-glob-to-any-file: fmt/**
42+
- any-glob-to-any-file: fmt/**
4643
front-matter:
4744
- changed-files:
48-
- any-glob-to-any-file: front_matter/**
45+
- any-glob-to-any-file: front_matter/**
4946
fs:
5047
- changed-files:
51-
- any-glob-to-any-file: fs/**
48+
- any-glob-to-any-file: fs/**
5249
html:
5350
- changed-files:
54-
- any-glob-to-any-file: html/**
51+
- any-glob-to-any-file: html/**
5552
http:
5653
- changed-files:
57-
- any-glob-to-any-file: http/**
54+
- any-glob-to-any-file: http/**
5855
ini:
5956
- changed-files:
60-
- any-glob-to-any-file: ini/**
57+
- any-glob-to-any-file: ini/**
6158
internal:
6259
- changed-files:
63-
- any-glob-to-any-file: internal/**
60+
- any-glob-to-any-file: internal/**
6461
io:
6562
- changed-files:
66-
- any-glob-to-any-file: io/**
63+
- any-glob-to-any-file: io/**
6764
json:
6865
- changed-files:
69-
- any-glob-to-any-file: json/**
66+
- any-glob-to-any-file: json/**
7067
jsonc:
7168
- changed-files:
72-
- any-glob-to-any-file: jsonc/**
69+
- any-glob-to-any-file: jsonc/**
7370
log:
7471
- changed-files:
75-
- any-glob-to-any-file: log/**
72+
- any-glob-to-any-file: log/**
7673
media-types:
7774
- changed-files:
78-
- any-glob-to-any-file: media_types/**
75+
- any-glob-to-any-file: media_types/**
7976
msgpack:
8077
- changed-files:
81-
- any-glob-to-any-file: msgpack/**
78+
- any-glob-to-any-file: msgpack/**
8279
net:
8380
- changed-files:
84-
- any-glob-to-any-file: net/**
81+
- any-glob-to-any-file: net/**
8582
path:
8683
- changed-files:
87-
- any-glob-to-any-file: path/**
84+
- any-glob-to-any-file: path/**
8885
random:
8986
- changed-files:
90-
- any-glob-to-any-file: random/**
87+
- any-glob-to-any-file: random/**
9188
regexp:
9289
- changed-files:
93-
- any-glob-to-any-file: regexp/**
90+
- any-glob-to-any-file: regexp/**
9491
semver:
9592
- changed-files:
96-
- any-glob-to-any-file: semver/**
93+
- any-glob-to-any-file: semver/**
9794
streams:
9895
- changed-files:
99-
- any-glob-to-any-file: streams/**
96+
- any-glob-to-any-file: streams/**
10097
tar:
10198
- changed-files:
102-
- any-glob-to-any-file: tar/**
99+
- any-glob-to-any-file: tar/**
103100
testing:
104101
- changed-files:
105-
- any-glob-to-any-file: testing/**
102+
- any-glob-to-any-file: testing/**
106103
text:
107104
- changed-files:
108-
- any-glob-to-any-file: text/**
105+
- any-glob-to-any-file: text/**
109106
toml:
110107
- changed-files:
111-
- any-glob-to-any-file: toml/**
108+
- any-glob-to-any-file: toml/**
112109
ulid:
113110
- changed-files:
114-
- any-glob-to-any-file: ulid/**
111+
- any-glob-to-any-file: ulid/**
115112
uuid:
116113
- changed-files:
117-
- any-glob-to-any-file: uuid/**
114+
- any-glob-to-any-file: uuid/**
118115
webgpu:
119116
- changed-files:
120-
- any-glob-to-any-file: webgpu/**
117+
- any-glob-to-any-file: webgpu/**
121118
yaml:
122119
- changed-files:
123-
- any-glob-to-any-file: yaml/**
120+
- any-glob-to-any-file: yaml/**

.github/workflows/ci.yml

Lines changed: 27 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,14 @@ jobs:
1313
test:
1414
runs-on: ${{ matrix.os }}
1515
timeout-minutes: 30
16+
permissions:
17+
id-token: write # Required for deployctl
1618
strategy:
1719
fail-fast: false
1820
matrix:
1921
deno:
2022
- v1.x
23+
- v2.x
2124
- canary
2225
os:
2326
- ubuntu-latest
@@ -29,42 +32,48 @@ jobs:
2932
uses: actions/checkout@v4
3033

3134
- name: Set up Deno
32-
uses: denoland/setup-deno@v1
35+
uses: denoland/setup-deno@v2
3336
with:
3437
deno-version: ${{ matrix.deno }}
3538

3639
- name: Run tests
3740
run: deno task test
3841

39-
- name: Run tests (simulate Deno 2)
40-
if: matrix.deno == 'canary'
41-
run: |
42-
deno task test
43-
rm deno.lock # remove deno.lock (v4) as it's incompatible with v3
44-
env:
45-
DENO_FUTURE: 1
46-
4742
- name: Run timezone-dependent tests
4843
run: |
4944
TZ=Australia/Sydney deno test datetime
5045
TZ=Europe/London deno test datetime
5146
TZ=America/Toronto deno test datetime
5247
if: matrix.os == 'ubuntu-latest'
5348

54-
# TODO(kt3k): Enable this test when `deno check` command supports workspace resolution
55-
# - name: Type check browser compatible modules
56-
# run: deno task test:browser
49+
- name: Type check browser compatible modules
50+
run: deno task test:browser
51+
if: matrix.deno == 'v2.x' && matrix.os == 'ubuntu-latest'
5752

58-
- name: Generate lcov
59-
run: deno task cov:gen
53+
- name: Generate lcov and html reports
54+
run: |
55+
deno task cov:gen
56+
deno task cov:view
6057
6158
- name: Upload coverage
62-
uses: codecov/codecov-action@v4
59+
uses: codecov/codecov-action@v5
6360
env:
6461
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
6562
with:
6663
name: ${{ matrix.os }}-${{ matrix.deno }}
6764

65+
- name: Upload coverage to Deploy
66+
uses: denoland/deployctl@v1
67+
with:
68+
project: std-coverage
69+
root: coverage/html
70+
entrypoint: jsr:@std/http@1/file-server
71+
if: matrix.deno == 'canary' && matrix.os == 'ubuntu-latest' && github.event_name == 'push'
72+
73+
- name: Publish dry run
74+
run: deno publish --dry-run
75+
if: matrix.deno == 'canary' && matrix.os == 'ubuntu-latest'
76+
6877
test-node:
6978
runs-on: ${{ matrix.os }}
7079
timeout-minutes: 30
@@ -81,7 +90,7 @@ jobs:
8190
uses: actions/checkout@v4
8291

8392
- name: Set up Deno
84-
uses: denoland/setup-deno@v1
93+
uses: denoland/setup-deno@v2
8594

8695
- name: Set up Node.js
8796
uses: actions/setup-node@v4
@@ -110,7 +119,7 @@ jobs:
110119
persist-credentials: false
111120

112121
- name: Set up Deno
113-
uses: denoland/setup-deno@v1
122+
uses: denoland/setup-deno@v2
114123
with:
115124
deno-version: canary
116125

@@ -152,7 +161,7 @@ jobs:
152161
echo "$modifications"
153162
154163
- name: Set up Deno
155-
uses: denoland/setup-deno@v1
164+
uses: denoland/setup-deno@v2
156165
if: success() && steps.source.outputs.modified == 'true'
157166

158167
- name: Set up Rust
@@ -167,22 +176,3 @@ jobs:
167176
- name: Rebuild Wasm and verify it hasn't changed
168177
if: success() && steps.source.outputs.modified == 'true'
169178
run: deno task --cwd ${{ matrix.module }} --config deno.json wasmbuild --check
170-
171-
publish-dry-run:
172-
runs-on: ubuntu-latest
173-
timeout-minutes: 30
174-
permissions:
175-
contents: read
176-
id-token: write
177-
178-
steps:
179-
- name: Clone repository
180-
uses: actions/checkout@v4
181-
182-
- name: Set up Deno
183-
uses: denoland/setup-deno@v1
184-
with:
185-
deno-version: canary
186-
187-
- name: Publish (dry run)
188-
run: deno publish --dry-run

.github/workflows/labeler.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: "Pull Request Labeler"
22
on:
3-
- pull_request_target
3+
- pull_request_target
44

55
jobs:
66
triage:
@@ -9,6 +9,6 @@ jobs:
99
pull-requests: write
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/labeler@v5
13-
with:
14-
sync-labels: true
12+
- uses: actions/labeler@v5
13+
with:
14+
sync-labels: true

.github/workflows/title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ jobs:
3535
revert
3636
# This should be kept up-to-date with the current packages list
3737
scopes: |
38-
archive(/unstable)?
3938
assert(/unstable)?
4039
async(/unstable)?
4140
bytes(/unstable)?
@@ -60,6 +59,7 @@ jobs:
6059
io(/unstable)?
6160
json(/unstable)?
6261
jsonc(/unstable)?
62+
kv(/unstable)?
6363
log(/unstable)?
6464
media-types(/unstable)?
6565
msgpack(/unstable)?

.github/workflows/version_bump.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
uses: actions/checkout@v4
1414

1515
- name: Set up Deno
16-
uses: denoland/setup-deno@v1
16+
uses: denoland/setup-deno@v2
1717

1818
- name: Run version bump
1919
run: |

.github/workflows/workspace_publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
uses: actions/checkout@v4
2020

2121
- name: Set up Deno
22-
uses: denoland/setup-deno@v1
22+
uses: denoland/setup-deno@v2
2323
with:
2424
deno-version: canary
2525

0 commit comments

Comments
 (0)