Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
312 commits
Select commit Hold shift + click to select a range
652fa1f
fix typos in the API docs
matmen Nov 8, 2026
71daff8
update the changelog and migration guide
matmen Nov 8, 2026
9bfa152
dither quantize like the GIF encoders by default
matmen Nov 8, 2026
2180106
move frame offsets with every size-changing method and add them to An…
matmen Nov 8, 2026
48665d0
document the frame and animation size changes and the dither defaults
matmen Nov 8, 2026
0782797
tidy the changelog and migration guide
matmen Nov 8, 2026
aa385b4
define DitherMethod once
matmen Nov 9, 2026
d208b6f
rename FrameDisposalModeName, SVGOptions and TextStyle to FrameDispos…
matmen Nov 9, 2026
abd6806
fix: always return Uint8Array<ArrayBuffer>
matmen Nov 9, 2026
53d62d3
feat: test runner parallelism
matmen Nov 9, 2026
784ae83
fix: increase timeout to 2min per test
matmen Nov 9, 2026
e0782ce
Consolidate resize fit modes
matmen Nov 9, 2026
8af89ea
Freeze animation frame snapshots
matmen Nov 9, 2026
7c2a53c
Tighten fixed-length API tuple types
matmen Nov 9, 2026
7b73444
Preserve explicit animation decode signals
matmen Nov 9, 2026
64ab0be
Audit v4 migration documentation
matmen Nov 9, 2026
414f4d6
Fix loop count test timestamp flake
matmen Nov 9, 2026
7db8278
fix: differentiate between ICO and CUR
matmen Nov 10, 2026
bbce672
fix(gainmap): return readonly tuples
matmen Nov 10, 2026
1d2638a
fix(tiff): pass maxPixels to JPEG decoder
matmen Nov 10, 2026
ff82f62
fix(svg): support maxPixels
matmen Nov 10, 2026
6291ef1
rework docs
matmen Nov 10, 2026
4e5fb20
cover all changes in the migration guide
matmen Nov 10, 2026
becd0cc
tests: allow svg DoS test more time
matmen Nov 10, 2026
be0abc8
fix: tighten values, defaults and limits before 4.0
matmen Nov 11, 2026
46ccb9a
refactor: drop dead initial values
matmen Nov 11, 2026
0757c06
chore(deps): eslint 10, patched minimatch and glob
matmen Nov 11, 2026
cf149dc
fix(docs): attach the migration guide to the entry module
matmen Nov 11, 2026
7473942
docs: link the migration guide on GitHub during the release candidates
matmen Nov 11, 2026
8c4339e
ci: read-only token for the test workflow
matmen Nov 11, 2026
1be419d
ci: install Chromium without apt packages
matmen Nov 11, 2026
c8d5266
ci: skip the install scripts of the edge and browser test tools
matmen Nov 11, 2026
f639e7c
ci(coverage): compare branch pushes with the previous push
matmen Nov 11, 2026
44fa44d
chore(deps): typedoc 0.28
matmen Nov 11, 2026
3cbb608
chore(deps): TypeScript 6
matmen Nov 11, 2026
6ba85b8
ci: Vite 8 and Playwright 1.65 for the browser test
matmen Nov 11, 2026
0e8ac8a
chore(bench): @napi-rs/canvas 1.1.0, tinybench 6.2.3
matmen Nov 11, 2026
f71440d
fix(tsconfig): use esnext module system
matmen Nov 11, 2026
2e5421d
chore(license): switch to MIT
matmen Nov 11, 2026
dfb78ad
fix a hang in the SVG rasterizer for shapes far outside the image
matmen Nov 12, 2026
6a5e1b5
limit feTurbulence octaves to 24
matmen Nov 12, 2026
03fca4c
limit nested masks, clip paths, patterns, markers and filter images i…
matmen Nov 12, 2026
f1cd5ff
parse SVG transform lists in linear time
matmen Nov 12, 2026
4a89129
change a frame once when an animation lists it more than once
matmen Nov 12, 2026
6a32b1d
keep the size when rotating by a right angle without expand
matmen Nov 12, 2026
e4b2dcd
cut the frames of the animation encoders to the canvas
matmen Nov 12, 2026
70f2391
reject instead of throw synchronously in AnimationEncoder.add
matmen Nov 12, 2026
10b3c94
write gradients with fractional sizes at the truncated size
matmen Nov 12, 2026
ff774d1
throw for an out-of-range JPEG quality
matmen Nov 12, 2026
f868f33
keep a side at one pixel in scale
matmen Nov 12, 2026
6bc7a9d
check the source of composite
matmen Nov 12, 2026
1d76007
export LimitError
matmen Nov 12, 2026
da38bc3
take maxPixels in GainMap.decode
matmen Nov 12, 2026
995701d
name the values in the gain map's cross checks
matmen Nov 12, 2026
93eeca1
reject a JPEG XL blend alpha channel that doesn't exist
matmen Nov 12, 2026
1089298
accept null for creationTime and software
matmen Nov 12, 2026
6250dcc
document the fixes in the changelog and migration guide
matmen Nov 12, 2026
40ae5d6
state the minimum TypeScript version in the README
matmen Nov 12, 2026
775a2f6
lower the SVG budget for nested masks and patterns
matmen Nov 12, 2026
016a6db
remove the fast option of resize and scale
matmen Nov 12, 2026
6fe1e6b
rename GainMap.encode to encodeJPEG
matmen Nov 12, 2026
ae28894
share DitherOptions and make QuantizeOptions a union
matmen Nov 12, 2026
40f379d
make RenderSVGOptions a union of the sizes
matmen Nov 12, 2026
b31da67
rename the fonts option of renderSVG to font
matmen Nov 12, 2026
21a12be
extend the still image options in the animation encoder options
matmen Nov 12, 2026
a8c5594
add Animation.flip and the FlipDirection type
matmen Nov 12, 2026
79779f8
take the dominantColor threshold in channel values
matmen Nov 12, 2026
0daa9cd
name the opacity parameter factor
matmen Nov 12, 2026
b098bb9
take the image's width and height in renderText
matmen Nov 12, 2026
a47ca18
remove coordinates
matmen Nov 12, 2026
704fb23
document the quarter turns without expand in the migration guide
matmen Nov 12, 2026
6015aa5
document the LimitError constructor
matmen Nov 12, 2026
fd31721
find the dominant color in a color histogram
matmen Nov 12, 2026
02b05f7
drop the LimitError constructor
matmen Nov 12, 2026
cdfe091
make the AnimationEncoder constructor private
matmen Nov 12, 2026
d3dd347
replace the TextLayout class with a function
matmen Nov 12, 2026
7818414
fix the TextLayout redirect and hide the LimitError constructor in th…
matmen Nov 12, 2026
edd908f
check enum options with oneOf
matmen Nov 12, 2026
c17f4ca
check pixel limits and threads in options.ts
matmen Nov 12, 2026
73d888d
check the gain map scale and the dither method with the shared helpers
matmen Nov 12, 2026
17b342c
lint hand-written option checks outside options.ts
matmen Nov 12, 2026
4004104
list the fixes in the changelog
matmen Nov 13, 2026
2a480bc
sample bilinear rotations in 8 bits again
matmen Nov 13, 2026
5168717
document thrown errors, examples and related methods in the doc comments
matmen Nov 13, 2026
cdd6820
run the examples of the doc comments
matmen Nov 13, 2026
38c4a6b
name the render options in the renderSVG size limit error
matmen Nov 13, 2026
40f067e
document the defaults of options with @defaultValue
matmen Nov 13, 2026
251432a
check error types instead of messages
matmen Nov 13, 2026
9caf3af
merge the options object checks into one test
matmen Nov 13, 2026
a2a65c0
remove checks of removed APIs, toString wording and internal helpers
matmen Nov 13, 2026
f562d9b
drop checks that another test already makes
matmen Nov 13, 2026
96b4f73
fix checks that could not fail
matmen Nov 13, 2026
b970ef8
drop comments that narrate old behaviour
matmen Nov 13, 2026
1f36f1f
refuse TIFFs with oversized YCbCr subsampling or sample counts
matmen Nov 13, 2026
b5003b1
clip the crop region of an animation to the canvas
matmen Nov 13, 2026
84d014d
copy the gain map an image is given
matmen Nov 13, 2026
dd583f9
refuse animation canvases GIF can't store or that are empty
matmen Nov 13, 2026
5fbd589
resize animation frames that share an image per size
matmen Nov 13, 2026
5e55603
blend gradients with transparency premultiplied
matmen Nov 13, 2026
a92281f
count all frames of a JPEG XL animation against maxPixels
matmen Nov 13, 2026
aae816f
leave the image and its gain map untouched when fill() or cover resiz…
matmen Nov 13, 2026
84dc4f5
rename the size of cropCircle to fit
matmen Nov 13, 2026
90e4981
refuse negative radius and fisheye strengths that leave nothing
matmen Nov 13, 2026
076e941
reject numbers given as strings or other types
matmen Nov 13, 2026
365c080
keep the whole frames of cut-off animations and refuse GIFs without one
matmen Nov 13, 2026
6057c27
document worker fallbacks and the decode orientation formats
matmen Nov 13, 2026
fbfec41
throw a LimitError for shadows and outlines that exceed the image siz…
matmen Nov 13, 2026
4553d1c
merge the edges that start in a row into the rasterizer's active edges
matmen Nov 13, 2026
2e4d23a
correct the migration note on gain map copies
matmen Nov 13, 2026
ba74b9f
composite decoded animation frames as they are decoded
matmen Nov 14, 2026
cc3daa3
bound the memory of dashed strokes
matmen Nov 14, 2026
d6b7433
drop the incomplete last frame of cut-off animations
matmen Nov 14, 2026
84bf3e2
bound the work of round joins and overlapping strokes in the SVG rast…
matmen Nov 14, 2026
926dfa7
declare sideEffects in the build's package.json
matmen Nov 14, 2026
b9336cd
refuse the values numeric arguments still accepted silently
matmen Nov 14, 2026
74d79bd
size the canvas of Animation.resize() and scale() like Image does
matmen Nov 14, 2026
dd07f0b
report damaged frame headers and sizes as decoding errors
matmen Nov 14, 2026
3ae209d
correct the documentation findings of the release check
matmen Nov 14, 2026
fe79718
merge master (3.20.3) into v4
matmen Nov 14, 2026
847b364
type the gain map channel check for the linter
matmen Nov 14, 2026
1718c94
skip the crossing budget test under coverage
matmen Nov 14, 2026
aa39a89
name the cropCircle fit option in the CHANGELOG
matmen Nov 14, 2026
28290ee
sweep fewer cut points in the cut-off animation test
matmen Nov 14, 2026
f07f889
move the cut-off animation test to a file of its own
matmen Nov 14, 2026
d675d9d
read a composite source that shares the destination's memory first
matmen Nov 14, 2026
e8906a8
reject what the user report found accepted, and document its doc gaps
matmen Nov 14, 2026
bc10e03
add the user report fixes to the CHANGELOG
matmen Nov 14, 2026
7790b27
throw for cut-off JPEG and lossy WebP data
matmen Nov 14, 2026
0eb1662
address the second user report: pixels(), still durations, inspect an…
matmen Nov 14, 2026
d5caed7
throw for WebP image data that ends before its chunk size
matmen Nov 14, 2026
95842bc
check the gain map capacities against each other when they are set
matmen Nov 14, 2026
1790f80
check the gain map embed and lossy WebP options whether they are used…
matmen Nov 14, 2026
76aef55
reject boolean options that are not booleans
matmen Nov 14, 2026
124b0b4
throw a TypeError for values of the wrong type where a RangeError or …
matmen Nov 14, 2026
7a3d4cf
write no Exif block when there is nothing to put in it
matmen Nov 14, 2026
7016e93
encode gray images as grayscale JPEGs
matmen Nov 14, 2026
c91bf09
size an SVG with a viewBox and one of width and height by the aspect …
matmen Nov 14, 2026
6400209
align right-to-left text to the right by default
matmen Nov 14, 2026
6d67d9d
document that a cut-off animation keeps its whole frames
matmen Nov 14, 2026
0103188
start no threads for lossy JPEG XL below 1.5 megapixels with fewer th…
matmen Nov 14, 2026
c53b0b7
skip PNG metadata chunks with a bad checksum
matmen Nov 15, 2026
ebe498f
carry on after corrupt JPEG data at the next restart marker
matmen Nov 15, 2026
46875a2
trust the alpha mask a BMP declares
matmen Nov 15, 2026
66c6b07
place left and centered right-to-left lines by their ink
matmen Nov 15, 2026
5dc2981
refuse null sizes in renderSVG
matmen Nov 15, 2026
240f75c
throw a TypeError for more values of the wrong type
matmen Nov 15, 2026
a042ddd
refuse arrays as options and null metadata
matmen Nov 15, 2026
cda2fef
name floating-point TIFF samples in the error
matmen Nov 15, 2026
4058d8e
correct the docs on JPEG XL memory, grayscale JPEG size and the encod…
matmen Nov 15, 2026
85a371a
treat a restart interval whose data runs out as damage, not a cut-off…
matmen Nov 15, 2026
a6f0725
drop a fix of an rc-only bug from the CHANGELOG
matmen Nov 15, 2026
3a6d1ed
list the right-to-left alignment default as a breaking change
matmen Nov 15, 2026
50de0b7
count seventeen behavior changes in the migration guide
matmen Nov 15, 2026
52fa11f
add boolean options and cut-off files to the migration guide's values…
matmen Nov 15, 2026
4fdb9f6
say that 3.x also made transparent BMPs opaque
matmen Nov 15, 2026
7f89154
throw an Error for CFF fonts without a Top DICT or FDSelect
matmen Nov 18, 2026
392b46f
throw an Error for a color bitmap table with more strikes than it can…
matmen Nov 18, 2026
69cedd3
throw an Error for a cmap format 12 table with more groups than it ca…
matmen Nov 18, 2026
0a4c354
use the 4.0 API in the benchmark's ImageScript adapter
matmen Nov 18, 2026
ea7dc59
word value range errors as 'x must be y, not z'
matmen Nov 18, 2026
a0b295d
throw for color components outside of their range
matmen Nov 18, 2026
13e96c0
list the color component ranges among the values that throw
matmen Nov 18, 2026
689d099
truncate the canvas size of an animation like the size of an image
matmen Nov 18, 2026
206198e
say that maxPixels guards decoding and rendering, not new Image()
matmen Nov 18, 2026
69aa7cd
encode WebP losslessly at quality 100, like AVIF and JPEG XL
matmen Nov 18, 2026
184cf88
document WebP quality 100 as lossless
matmen Nov 18, 2026
95272ed
check the counts read from font tables against the font
matmen Nov 18, 2026
96ccb28
skip a color glyph of a damaged font in an SVG instead of throwing a …
matmen Nov 18, 2026
131e577
throw an Error for a font with 0 units per em
matmen Nov 18, 2026
abec49f
check pixel sizes, coordinates, crop regions and colors with the help…
matmen Nov 18, 2026
67cd4e0
fix the drawCircle row and the cover pattern of the migration guide
matmen Nov 18, 2026
3cd9ad7
say that webpack emits the worker and Rollup does not
matmen Nov 18, 2026
986124c
link the migration guide on master
matmen Nov 18, 2026
5f434b8
link the types in the migration guide instead of using {@link}
matmen Nov 18, 2026
d8c6a1c
truncate crop regions of animations like those of images
matmen Nov 18, 2026
dd514b9
throw a LimitError for a transform past the pixel limit
matmen Nov 18, 2026
3824a27
leave out an SVG font that is damaged past its header instead of thro…
matmen Nov 18, 2026
1184497
handle images of 2 GiB and more, and name the size when one can't be …
matmen Nov 18, 2026
e396e25
throw an Error for a CBLC strike of 0 pixels per em
matmen Nov 18, 2026
38ed63f
name LimitError as what the maxPixels options throw
matmen Nov 18, 2026
3e68ae3
say that PNG bytes differ between runtimes without a number that hold…
matmen Nov 18, 2026
975871c
word the remaining argument errors as 'x must be y, not z'
matmen Nov 18, 2026
72e5347
bound the work and memory of SVG filters
matmen Nov 18, 2026
367b15c
size the canvas of the streaming encoders like new Animation(), and n…
matmen Nov 18, 2026
28c073a
throw for a damaged font in renderSVG's font option, like renderText
matmen Nov 18, 2026
9e48637
throw an Error for an sbix strike of 0 pixels per em
matmen Nov 18, 2026
ccb73e5
cut the frames of Animation.crop in place instead of replacing them
matmen Nov 18, 2026
55640c2
throw an Error for a font of renderSVG's font option that is cut off …
matmen Nov 18, 2026
7d632e4
check the position of a gradient of three or more colors like the others
matmen Nov 18, 2026
e6d9b55
charge convolutions for their kernel, scale the filter work with the …
matmen Nov 18, 2026
21ea881
charge turbulence per octave and merges per node, and count filter re…
matmen Nov 18, 2026
5c9a29d
fix the guide's dominantColor anchor
matmen Nov 18, 2026
f5205cf
say that the filter work allowed grows with the output
matmen Nov 18, 2026
144632d
word the last argument errors as 'x must be y, not z', and take a gai…
matmen Nov 18, 2026
f8e181e
name the scale factor when it's too large, and check a radial gradien…
matmen Nov 18, 2026
1522e33
say which crop regions throw in the guide
matmen Nov 18, 2026
6ba4780
report a cut-off WOFF as a damaged font
matmen Nov 18, 2026
b5cdee2
count every frame of an animation as at least 1024 pixels of maxPixels
matmen Nov 18, 2026
1a16979
give text without a family the caller's first font in SVGs that embed…
matmen Nov 18, 2026
181f5a7
bound the markers an SVG draws
matmen Nov 18, 2026
44962fd
decode the last column of odd-width 4:2:0 AVIFs like libavif
matmen Nov 18, 2026
1b7704e
link the docs' sources to the released tag
matmen Nov 18, 2026
d61e3fe
run svg-dos.js on Deno and Bun
matmen Nov 18, 2026
6dfdfa0
refuse a baseline JPEG too small for the blocks it declares before al…
matmen Nov 18, 2026
41bdde6
throw a LimitError for the fixed limits of SVG rendering, and halve t…
matmen Nov 18, 2026
07a3529
bound the pixels an SVG's shapes and layers paint, and split svg-dos.js
matmen Nov 18, 2026
e91b28b
count the floor of GIF frames while they are decoded
matmen Nov 18, 2026
a81a527
say 'an Image', and check sparse font arrays
matmen Nov 18, 2026
147d6cf
correct the changelog's numbers for bundles, PNG bytes and tiny frames
matmen Nov 18, 2026
66a1a83
document the paint budget of renderSVG
matmen Nov 18, 2026
2686a91
name cropCircle's size option of 3.x as fit in the changelog and guide
matmen Nov 18, 2026
70d8348
charge the pixels a fill paints against the paint budget, not its bou…
matmen Nov 18, 2026
0a22adc
limit a gain map's parameters to what the formats store
matmen Nov 18, 2026
55a57f0
check the length of JPEG metadata before encoding and name the field
matmen Nov 18, 2026
2183c64
keep the colors of an AVIF gain map's HDR rendition through a decode …
matmen Nov 18, 2026
fef546c
name the value of a metadata field that isn't a string
matmen Nov 18, 2026
7b5a19b
say that AVIF's rotation is always applied
matmen Nov 18, 2026
39de988
say that decoding drops metadata
matmen Nov 18, 2026
1fec57d
use the 4.0 API in the benchmark's startup measurement
matmen Nov 18, 2026
f099c8f
stop a CFF real number without its end, and a missing private dict, a…
matmen Nov 18, 2026
cad0c89
walk SVG trees with loops, not spreads, so many children don't overfl…
matmen Nov 18, 2026
6688597
name wrong arguments by their value and the method by its own name in…
matmen Nov 18, 2026
1c9fa59
give the size errors of all encoders one shape
matmen Nov 18, 2026
f086428
throw a RangeError for encoding an animation without frames
matmen Nov 18, 2026
cc9121b
document the size limits of the encoders, rounded durations and the w…
matmen Nov 18, 2026
38fd198
say in release.yml that linked files are merged before a release
matmen Nov 18, 2026
bf911fc
reject creation times outside the years 1000 to 9999 and widen the fo…
matmen Nov 18, 2026
d7aad92
correct the size of the whole library in the changelog
matmen Nov 18, 2026
97475e9
check renderText's stroke color without a stroke and keep an encoder …
matmen Nov 18, 2026
48b3162
check resize's inside box, take pixels() at the call and say the gain…
matmen Nov 19, 2026
dcc4cb4
make encodeWebP's file match the streaming encoder's, and give gradie…
matmen Nov 19, 2026
7715987
composite a transparent image onto the JPEG background row by row
matmen Nov 19, 2026
91f87ee
merge master (3.20.4) into v4
matmen Nov 19, 2026
c752cd7
give the siblings case of svg-dos.js the time it takes in the suite
matmen Nov 19, 2026
7af56e3
bound the curves an arc between far-apart ends is drawn with, and the…
matmen Nov 19, 2026
b13984a
check the size before the JPEG and WebP encoders go over the pixels
matmen Nov 19, 2026
f4b44b9
give a gradient the later stop's color at every hard edge, and say so
matmen Nov 19, 2026
3afdd73
check creationTime's type, keep whole characters in cut strings and n…
matmen Nov 19, 2026
38bdbd7
count arcs' curves while a path is read and lines when it is flattene…
matmen Nov 19, 2026
78de882
take binary data and dates of other realms
matmen Nov 19, 2026
a43e20f
name Colors.gradient with its class and constructors with new, and do…
matmen Nov 19, 2026
6a8956b
bound the paths kept and read in a render, count textPaths and stop o…
matmen Nov 19, 2026
95ee8c7
check buffers and dates by their brand, and say when a buffer is deta…
matmen Nov 19, 2026
f6b53ca
charge glyph outlines to the point budget, find spans in logarithmic …
matmen Nov 19, 2026
b87145c
charge all texts' outlines to the render, decode bitmap glyphs once a…
matmen Nov 19, 2026
568a279
decode a bitmap glyph once a render by its place in the font, at most…
matmen Nov 19, 2026
79aefee
count bitmap glyphs before decoding them and bound their scaled size …
matmen Nov 19, 2026
fce3f77
keep renderText's scaled bitmap glyphs for one render, at most 2^22 p…
matmen Nov 19, 2026
74672a9
bound the glyph rasters renderText keeps with a font
matmen Nov 19, 2026
906da87
charge the glyphs renderText rasterizes to its work budget, bound a v…
matmen Nov 19, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: coverage

# measures the test coverage (npm run coverage) of every pushed branch and pull requests from forks, and how it
# changed: compared with the commit before the push on master, else with where the branch (or pull request) left
# master, measured in the same job. The job summary shows it; pushes to master get it as a commit comment, pushes to a
# changed, measured in the same job: compared with the commit before the push on master and on branches without a pull
# request (where the branch left master for a new branch or a force push), else with where the branch (or pull request)
# left master. The job summary shows it; pushes to master get it as a commit comment, pushes to a
# branch with a pull request as a comment on it (one, updated by later pushes). Pull requests from forks have no
# write access: only the job summary
on:
Expand Down Expand Up @@ -39,6 +40,8 @@ jobs:
run: |
if [ "$EVENT" = pull_request ]; then base=$(git merge-base "$PR_BASE" HEAD); name="the pull request's base"
elif [ "$REF" = refs/heads/master ]; then base=$BEFORE; name="the previous commit on master"
elif [ -z "$(gh pr list --head "$BRANCH" --state open --json number --jq '.[0].number')" ] && git cat-file -e "$BEFORE^{commit}" 2>/dev/null; then
base=$BEFORE; name="the previous push"
else base=$(git merge-base origin/master HEAD); name="master where the branch left it"; fi
if [ -z "$base" ] || ! git cat-file -e "$base^{commit}" 2>/dev/null || [ "$base" = "$(git rev-parse HEAD)" ]; then
echo "no base to compare with"; exit 0
Expand All @@ -55,6 +58,8 @@ jobs:
REF: ${{ github.ref }}
BEFORE: ${{ github.event.before }}
PR_BASE: ${{ github.event.pull_request.base.sha }}
BRANCH: ${{ github.ref_name }}
GH_TOKEN: ${{ github.token }}
- if: steps.base.outputs.summary
run: node scripts/coverage-report.js "$SUMMARY" "$ROOT"
env:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,10 @@ jobs:
run: node scripts/version.js "$VERSION"
env:
VERSION: ${{ inputs.version }}
- run: npm run docs
# (source links point at the released tag, not at master, which moves on)
- run: npm run docs -- ${VERSION:+--gitRevision "v$VERSION"}
env:
VERSION: ${{ inputs.version }}

- uses: actions/configure-pages@v6
- uses: actions/upload-pages-artifact@v5
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ concurrency:
group: node-${{ github.event_name }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name != 'release' }}

# the jobs only install, build and test
permissions:
contents: read

jobs:
build:
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
Expand Down Expand Up @@ -94,7 +98,8 @@ jobs:
node-version: 24.x
- run: npm install
- run: npm run build
- run: npm install --no-save esbuild@0.28.2 miniflare@4.20260730.0 edge-runtime@4.0.1
# (esbuild's and workerd's postinstall scripts only check their binaries, which come with their platform packages)
- run: npm install --no-save --ignore-scripts esbuild@0.28.2 miniflare@4.20260730.0 edge-runtime@4.0.1
- run: node tests/edge/run.mjs

browser:
Expand All @@ -107,6 +112,8 @@ jobs:
node-version: 24.x
- run: npm install
- run: npm run build
- run: npm install --no-save vite@6.4.5 playwright@1.64.1 esbuild@0.28.2
- run: npx playwright install --with-deps chromium
- run: npm install --no-save --ignore-scripts vite@8.3.8 playwright@1.65.0
# (the runner image has the libraries Chromium needs: --with-deps only added fonts through apt, which the tests
# don't use, and failed the job whenever the Ubuntu mirrors were unreachable)
- run: npx playwright install chromium
- run: node tests/browser/run.mjs
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ name: release
# the tag's version to npm (with provenance, through trusted publishing) and JSR (through GitHub OIDC, no tokens),
# then the docs are deployed and, for regular releases, the version is committed to the default branch, the playground
# is updated to it and the benchmark in bench/ is run against the release
# The package's README and changelog link to files on the default branch (the migration guide): merge what a release
# links to into it before publishing the release, or the pages on npm and JSR link to a 404 until the merge
on:
release:
types: [published]
Expand Down
198 changes: 196 additions & 2 deletions CHANGELOG.md

Large diffs are not rendered by default.

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

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

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

The corresponding license files can be found in the projects
root directory, prefixed with LICENSE, suffixed with their
corresponding SPDX identifier.

Parts of this software are derived from third party projects under their
own licenses (MIT, Apache-2.0 and the IJG license), see THIRD_PARTY_NOTICES.md.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Loading
Loading