Skip to content

Commit 5cc22ba

Browse files
committed
merge v4 into master
2 parents 8be6b51 + 224ee24 commit 5cc22ba

201 files changed

Lines changed: 9832 additions & 5046 deletions

File tree

Some content is hidden

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

‎.github/workflows/coverage.yml‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
name: coverage
22

33
# measures the test coverage (npm run coverage) of every pushed branch and pull requests from forks, and how it
4-
# changed: compared with the commit before the push on master, else with where the branch (or pull request) left
5-
# master, measured in the same job. The job summary shows it; pushes to master get it as a commit comment, pushes to a
4+
# changed, measured in the same job: compared with the commit before the push on master and on branches without a pull
5+
# request (where the branch left master for a new branch or a force push), else with where the branch (or pull request)
6+
# left master. The job summary shows it; pushes to master get it as a commit comment, pushes to a
67
# branch with a pull request as a comment on it (one, updated by later pushes). Pull requests from forks have no
78
# write access: only the job summary
89
on:
@@ -39,6 +40,8 @@ jobs:
3940
run: |
4041
if [ "$EVENT" = pull_request ]; then base=$(git merge-base "$PR_BASE" HEAD); name="the pull request's base"
4142
elif [ "$REF" = refs/heads/master ]; then base=$BEFORE; name="the previous commit on master"
43+
elif [ -z "$(gh pr list --head "$BRANCH" --state open --json number --jq '.[0].number')" ] && git cat-file -e "$BEFORE^{commit}" 2>/dev/null; then
44+
base=$BEFORE; name="the previous push"
4245
else base=$(git merge-base origin/master HEAD); name="master where the branch left it"; fi
4346
if [ -z "$base" ] || ! git cat-file -e "$base^{commit}" 2>/dev/null || [ "$base" = "$(git rev-parse HEAD)" ]; then
4447
echo "no base to compare with"; exit 0
@@ -55,6 +58,8 @@ jobs:
5558
REF: ${{ github.ref }}
5659
BEFORE: ${{ github.event.before }}
5760
PR_BASE: ${{ github.event.pull_request.base.sha }}
61+
BRANCH: ${{ github.ref_name }}
62+
GH_TOKEN: ${{ github.token }}
5863
- if: steps.base.outputs.summary
5964
run: node scripts/coverage-report.js "$SUMMARY" "$ROOT"
6065
env:

‎.github/workflows/docs.yml‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ jobs:
3434
run: node scripts/version.js "$VERSION"
3535
env:
3636
VERSION: ${{ inputs.version }}
37-
- run: npm run docs
37+
# (source links point at the released tag, not at master, which moves on)
38+
- run: npm run docs -- ${VERSION:+--gitRevision "v$VERSION"}
39+
env:
40+
VERSION: ${{ inputs.version }}
3841

3942
- uses: actions/configure-pages@v6
4043
- uses: actions/upload-pages-artifact@v5

‎.github/workflows/node.yml‎

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ concurrency:
1313
group: node-${{ github.event_name }}-${{ github.ref }}
1414
cancel-in-progress: ${{ github.event_name != 'release' }}
1515

16+
# the jobs only install, build and test
17+
permissions:
18+
contents: read
19+
1620
jobs:
1721
build:
1822
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
@@ -94,7 +98,8 @@ jobs:
9498
node-version: 24.x
9599
- run: npm install
96100
- run: npm run build
97-
- run: npm install --no-save esbuild@0.28.2 miniflare@4.20260730.0 edge-runtime@4.0.1
101+
# (esbuild's and workerd's postinstall scripts only check their binaries, which come with their platform packages)
102+
- run: npm install --no-save --ignore-scripts esbuild@0.28.2 miniflare@4.20260730.0 edge-runtime@4.0.1
98103
- run: node tests/edge/run.mjs
99104

100105
browser:
@@ -107,6 +112,8 @@ jobs:
107112
node-version: 24.x
108113
- run: npm install
109114
- run: npm run build
110-
- run: npm install --no-save vite@6.4.5 playwright@1.64.1 esbuild@0.28.2
111-
- run: npx playwright install --with-deps chromium
115+
- run: npm install --no-save --ignore-scripts vite@8.3.8 playwright@1.65.0
116+
# (the runner image has the libraries Chromium needs: --with-deps only added fonts through apt, which the tests
117+
# don't use, and failed the job whenever the Ubuntu mirrors were unreachable)
118+
- run: npx playwright install chromium
112119
- run: node tests/browser/run.mjs

‎.github/workflows/release.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ name: release
55
# the tag's version to npm (with provenance, through trusted publishing) and JSR (through GitHub OIDC, no tokens),
66
# then the docs are deployed and, for regular releases, the version is committed to the default branch, the playground
77
# is updated to it and the benchmark in bench/ is run against the release
8+
# The package's README and changelog link to files on the default branch (the migration guide): merge what a release
9+
# links to into it before publishing the release, or the pages on npm and JSR link to a 404 until the merge
810
on:
911
release:
1012
types: [published]

‎CHANGELOG.md‎

Lines changed: 196 additions & 2 deletions
Large diffs are not rendered by default.

‎LICENSE‎

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1-
This software is licensed under the following license(s):
2-
- GNU AFFERO GENERAL PUBLIC LICENSE, Version 3
3-
- MIT License
1+
Copyright (c) 2020-2026 Mathis Mensing
42

5-
== SPDX-License-Identifier: AGPL-3.0-or-later OR MIT ==
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
69

7-
You may choose to comply with either one of the above
8-
mentioned licenses, but a license must be chosen.
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
912

10-
The corresponding license files can be found in the projects
11-
root directory, prefixed with LICENSE, suffixed with their
12-
corresponding SPDX identifier.
13-
14-
Parts of this software are derived from third party projects under their
15-
own licenses (MIT, Apache-2.0 and the IJG license), see THIRD_PARTY_NOTICES.md.
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

0 commit comments

Comments
 (0)