Skip to content

v0.3.1

Choose a tag to compare

@github-actions github-actions released this 14 Sep 06:32
· 128 commits to main since this release
1e12fbb

A patch, and the reason it could not wait.

0.3.0 could not be installed beside its own WASI package. The root asked for
resvg-napi-wasm32-wasi@0.2.0 — a pin written at the 0.2.0 release that nothing
moved since, because napi version does not touch dependency maps and the
publish-shape guard read optionalDependencies and nothing else:

npm i resvg-napi@0.3.0 resvg-napi-wasm32-wasi@0.3.0
npm error ERESOLVE — Conflicting peer dependency: resvg-napi-wasm32-wasi@0.2.0

Anyone taking the documented WASI path needed --force. An npm version is
immutable, so the fix had to travel in a new one. The guard now reads every map
that names a package of this family, and a second one compares the wasm
package's emnapi pins against the root's — the two ways this release found to
fail before it got out.

The binaries now carry the notices they owe. tiny-skia and tiny-skia-path —
the drawing surface this binding is named after — are BSD-3-Clause, copyright
Google Inc. and Yevhenii Reizner, statically linked into all thirteen .node
files and the .wasm. arrayref is BSD-2, libloading ISC, slotmap Zlib, and MIT
asks for its notice to travel with a copy. The package shipped LICENSE-APACHE,
LICENSE-MIT and nothing else; THIRD-PARTY-NOTICES.md is generated from the
crate graph and checked in CI, so a resvg bump that moves the graph fails there
rather than shipping a notice that no longer describes the binary.

Dependencies. The emnapi family moves to 1.11.3, which became possible only
when @napi-rs/cli 3.9.1 and @napi-rs/wasm-runtime 1.2.4 moved those packages
to peerDependencies — the exact pin a transitive wasm sub-package held over
@emnapi/core had blocked it twice before. Plus esbuild and @types/node.

No API change. faceOf, Font.families and everything else 0.3.0 added is
unchanged.


What's Changed

  • fix(demo): fetch a font the CDN refuses to serve by @p8nut in #54
  • feat(demo): the bench ships a font, so a first visit renders by @p8nut in #55
  • fix: Cargo.toml was left at 0.2.0 by the 0.3.0 release by @p8nut in #57
  • chore(deps): the emnapi family moves, and dependabot can carry it again by @p8nut in #56
  • fix(pkg): the wasm peer pin, and the notices the binaries owe by @p8nut in #60
  • chore(release): 0.3.1 by @p8nut in #61
  • fix(pkg): the wasm package declares the emnapi the root uses by @p8nut in #62

Full Changelog: v0.3.0...v0.3.1