Skip to content

Commit

Permalink
Merge branch 'denoland:main' into functions-module
Browse files Browse the repository at this point in the history
  • Loading branch information
guy-borderless authored Dec 18, 2024
2 parents 3a08d69 + 4e5c7aa commit bd18d57
Show file tree
Hide file tree
Showing 416 changed files with 18,454 additions and 7,018 deletions.
4 changes: 2 additions & 2 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,12 +163,12 @@ Example code snippets must:
[documentation checker tool](../_tools/check_docs.ts) and are flagged when
they throw an error.

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

````ts
/**
* ```ts no-eval
* ```ts ignore
* (code snippet will not be run)
* ```
*/
Expand Down
3 changes: 1 addition & 2 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
version: 2
updates:

- package-ecosystem: "github-actions"
directory: "/"
schedule:
Expand All @@ -14,4 +13,4 @@ updates:
groups:
dependencies:
patterns:
- "*" # Matches all packages
- "*" # Matches all packages
512 changes: 262 additions & 250 deletions .github/dependency_graph.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
83 changes: 40 additions & 43 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,123 +1,120 @@
archive:
- changed-files:
- any-glob-to-any-file: archive/**
assert:
- changed-files:
- any-glob-to-any-file: assert/**
- any-glob-to-any-file: assert/**
async:
- changed-files:
- any-glob-to-any-file: async/**
- any-glob-to-any-file: async/**
bytes:
- changed-files:
- any-glob-to-any-file: bytes/**
- any-glob-to-any-file: bytes/**
cbor:
- changed-files:
- any-glob-to-any-file: cbor/**
- any-glob-to-any-file: cbor/**
cli:
- changed-files:
- any-glob-to-any-file: cli/**
- any-glob-to-any-file: cli/**
collections:
- changed-files:
- any-glob-to-any-file: collections/**
- any-glob-to-any-file: collections/**
crypto:
- changed-files:
- any-glob-to-any-file: crypto/**
- any-glob-to-any-file: crypto/**
csv:
- changed-files:
- any-glob-to-any-file: csv/**
- any-glob-to-any-file: csv/**
data-structures:
- changed-files:
- any-glob-to-any-file: data_structures/**
- any-glob-to-any-file: data_structures/**
datetime:
- changed-files:
- any-glob-to-any-file: datetime/**
- any-glob-to-any-file: datetime/**
dotenv:
- changed-files:
- any-glob-to-any-file: dotenv/**
- any-glob-to-any-file: dotenv/**
encoding:
- changed-files:
- any-glob-to-any-file: encoding/**
- any-glob-to-any-file: encoding/**
expect:
- changed-files:
- any-glob-to-any-file: expect/**
- any-glob-to-any-file: expect/**
fmt:
- changed-files:
- any-glob-to-any-file: fmt/**
- any-glob-to-any-file: fmt/**
front-matter:
- changed-files:
- any-glob-to-any-file: front_matter/**
- any-glob-to-any-file: front_matter/**
fs:
- changed-files:
- any-glob-to-any-file: fs/**
- any-glob-to-any-file: fs/**
html:
- changed-files:
- any-glob-to-any-file: html/**
- any-glob-to-any-file: html/**
http:
- changed-files:
- any-glob-to-any-file: http/**
- any-glob-to-any-file: http/**
ini:
- changed-files:
- any-glob-to-any-file: ini/**
- any-glob-to-any-file: ini/**
internal:
- changed-files:
- any-glob-to-any-file: internal/**
- any-glob-to-any-file: internal/**
io:
- changed-files:
- any-glob-to-any-file: io/**
- any-glob-to-any-file: io/**
json:
- changed-files:
- any-glob-to-any-file: json/**
- any-glob-to-any-file: json/**
jsonc:
- changed-files:
- any-glob-to-any-file: jsonc/**
- any-glob-to-any-file: jsonc/**
log:
- changed-files:
- any-glob-to-any-file: log/**
- any-glob-to-any-file: log/**
media-types:
- changed-files:
- any-glob-to-any-file: media_types/**
- any-glob-to-any-file: media_types/**
msgpack:
- changed-files:
- any-glob-to-any-file: msgpack/**
- any-glob-to-any-file: msgpack/**
net:
- changed-files:
- any-glob-to-any-file: net/**
- any-glob-to-any-file: net/**
path:
- changed-files:
- any-glob-to-any-file: path/**
- any-glob-to-any-file: path/**
random:
- changed-files:
- any-glob-to-any-file: random/**
- any-glob-to-any-file: random/**
regexp:
- changed-files:
- any-glob-to-any-file: regexp/**
- any-glob-to-any-file: regexp/**
semver:
- changed-files:
- any-glob-to-any-file: semver/**
- any-glob-to-any-file: semver/**
streams:
- changed-files:
- any-glob-to-any-file: streams/**
- any-glob-to-any-file: streams/**
tar:
- changed-files:
- any-glob-to-any-file: tar/**
- any-glob-to-any-file: tar/**
testing:
- changed-files:
- any-glob-to-any-file: testing/**
- any-glob-to-any-file: testing/**
text:
- changed-files:
- any-glob-to-any-file: text/**
- any-glob-to-any-file: text/**
toml:
- changed-files:
- any-glob-to-any-file: toml/**
- any-glob-to-any-file: toml/**
ulid:
- changed-files:
- any-glob-to-any-file: ulid/**
- any-glob-to-any-file: ulid/**
uuid:
- changed-files:
- any-glob-to-any-file: uuid/**
- any-glob-to-any-file: uuid/**
webgpu:
- changed-files:
- any-glob-to-any-file: webgpu/**
- any-glob-to-any-file: webgpu/**
yaml:
- changed-files:
- any-glob-to-any-file: yaml/**
- any-glob-to-any-file: yaml/**
64 changes: 27 additions & 37 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,14 @@ jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
permissions:
id-token: write # Required for deployctl
strategy:
fail-fast: false
matrix:
deno:
- v1.x
- v2.x
- canary
os:
- ubuntu-latest
Expand All @@ -29,42 +32,48 @@ jobs:
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: ${{ matrix.deno }}

- name: Run tests
run: deno task test

- name: Run tests (simulate Deno 2)
if: matrix.deno == 'canary'
run: |
deno task test
rm deno.lock # remove deno.lock (v4) as it's incompatible with v3
env:
DENO_FUTURE: 1

- name: Run timezone-dependent tests
run: |
TZ=Australia/Sydney deno test datetime
TZ=Europe/London deno test datetime
TZ=America/Toronto deno test datetime
if: matrix.os == 'ubuntu-latest'

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

- name: Generate lcov
run: deno task cov:gen
- name: Generate lcov and html reports
run: |
deno task cov:gen
deno task cov:view
- name: Upload coverage
uses: codecov/codecov-action@v4
uses: codecov/codecov-action@v5
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
name: ${{ matrix.os }}-${{ matrix.deno }}

- name: Upload coverage to Deploy
uses: denoland/deployctl@v1
with:
project: std-coverage
root: coverage/html
entrypoint: jsr:@std/http@1/file-server
if: matrix.deno == 'canary' && matrix.os == 'ubuntu-latest' && github.event_name == 'push'

- name: Publish dry run
run: deno publish --dry-run
if: matrix.deno == 'canary' && matrix.os == 'ubuntu-latest'

test-node:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
Expand All @@ -81,7 +90,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2

- name: Set up Node.js
uses: actions/setup-node@v4
Expand Down Expand Up @@ -110,7 +119,7 @@ jobs:
persist-credentials: false

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: canary

Expand Down Expand Up @@ -152,7 +161,7 @@ jobs:
echo "$modifications"
- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
if: success() && steps.source.outputs.modified == 'true'

- name: Set up Rust
Expand All @@ -167,22 +176,3 @@ jobs:
- name: Rebuild Wasm and verify it hasn't changed
if: success() && steps.source.outputs.modified == 'true'
run: deno task --cwd ${{ matrix.module }} --config deno.json wasmbuild --check

publish-dry-run:
runs-on: ubuntu-latest
timeout-minutes: 30
permissions:
contents: read
id-token: write

steps:
- name: Clone repository
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
with:
deno-version: canary

- name: Publish (dry run)
run: deno publish --dry-run
8 changes: 4 additions & 4 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: "Pull Request Labeler"
on:
- pull_request_target
- pull_request_target

jobs:
triage:
Expand All @@ -9,6 +9,6 @@ jobs:
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/labeler@v5
with:
sync-labels: true
- uses: actions/labeler@v5
with:
sync-labels: true
2 changes: 1 addition & 1 deletion .github/workflows/title.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ jobs:
revert
# This should be kept up-to-date with the current packages list
scopes: |
archive(/unstable)?
assert(/unstable)?
async(/unstable)?
bytes(/unstable)?
Expand All @@ -60,6 +59,7 @@ jobs:
io(/unstable)?
json(/unstable)?
jsonc(/unstable)?
kv(/unstable)?
log(/unstable)?
media-types(/unstable)?
msgpack(/unstable)?
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/version_bump.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2

- name: Run version bump
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/workspace_publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
uses: actions/checkout@v4

- name: Set up Deno
uses: denoland/setup-deno@v1
uses: denoland/setup-deno@v2
with:
deno-version: canary

Expand Down
Loading

0 comments on commit bd18d57

Please sign in to comment.