Highlights ✨
Upgrade Deno to 2.2.11 / 2025.04.18. This brings a ton of new features!
- Zinnia can run TypeScript files now
zinnia run main.ts
- Global
window
was removed (see denoland/deno#22057) - Fetch API:
Request.bytes()
andResponse.bytes()
- WebCrypto API: import and export p521 keys, X448 support
- Web API:
Blob.prototype.bytes()
- Import attributes & importing JSON files
import data from "./data.json" with { type: "json" };
URL.parse()
ReadableStream.from()
allowsIterable
instead ofIterableIterator
Float16Array
- WASM module support
const { add } = await import("math.wasm"); const result = add(2, 3); assertEquals(result, 5);
- Fix
AbortSignal.timeout()
leak - Fix potential leak of unread buffers
- Prevent (De-)CompressionStream resource leak on stream cancellation
import.meta.filename
andimport.meta.dirname
Do not leak username to untrusted modules
We must not leak the filesystem structure when the code is running inside a sandboxed environment. The Checker App files are usually in the user's home directory. The full path includes the username, which is sensitive information we should not leak to untrusted modules. The modules should have access only to the path relative to the project (module) root.
Before:
file:///Users/bajtos/Library/Caches/app.filstation.desktop/sources/spark/main.js
After:
file:///ZINNIA/main.js
Upgrade Rust to 1.85
What's Changed
- ci: test release builds for all changes by @bajtos in #692
- fix: Linux builds by @pyropy in #690
- fix: Downgrade rust toolchain version to v1.77 by @pyropy in #691
- deps: Bump async-trait from 0.1.87 to 0.1.88 by @dependabot in #697
- ci: Bump dtolnay/rust-toolchain from a54c7a to 888c2e by @dependabot in #695
- ci: Bump Swatinem/rust-cache from 2.7.7 to 2.7.8 by @dependabot in #699
- docs: Specify rust and go versions in docs by @pyropy in #694
- deps: Bump tempfile from 3.19.0 to 3.19.1 by @dependabot in #700
- deps: configure Dependabot to ignore Deno updates by @bajtos in #701
- deps: Bump log from 0.4.26 to 0.4.27 by @dependabot in #703
- deps: Bump clap from 4.5.32 to 4.5.34 by @dependabot in #708
- deps: Bump tokio from 1.44.1 to 1.44.2 by @dependabot in #714
- deps: Bump smallvec from 1.14.0 to 1.15.0 by @dependabot in #713
- ci: run CI on push to any branch by @bajtos in #715
- feat!: remove the built-in libp2p node by @bajtos in #712
- chore: enable prettier for YAML files by @bajtos in #716
- feat: upgrade Deno to v2.2.8 / 2025.04.05 by @bajtos in #717
- deps: bump crossbeam-channel from 0.5.14 to 0.5.15 by @dependabot in #726
- deps: Bump clap from 4.5.34 to 4.5.35 by @dependabot in #709
- deps: Bump once_cell from 1.21.0 to 1.21.3 by @dependabot in #698
- test: avoid IPNI lookups by @bajtos in #729
- feat: load WASM modules by @bajtos in #722
- chore: setup CODEOWNERS by @bajtos in #723
- deps: bump clap from 4.5.35 to 4.5.36 by @dependabot in #728
- deps: bump lassie from 0.10.1 to 0.10.2 by @dependabot in #731
- ci: auto-update Deno dependencies again by @bajtos in #727
- test: add tests for new Web Platform APIs by @bajtos in #732
- ci: use the latest Prettier version for linting by @bajtos in #734
- test: import JSON files by @bajtos in #730
- deps: bump the deno group with 11 updates by @dependabot in #733
- deps: bump deno_ast from 0.46.4 to 0.46.5 in the deno group by @dependabot in #737
- deps: bump assert_cmd from 2.0.16 to 2.0.17 by @dependabot in #738
- test: import.meta.{filename,dirname} by @bajtos in #735
- test: explanatory comments for import.meta.* tests by @bajtos in #739
- deps: bump the deno group with 10 updates by @dependabot in #743
- deps: bump clap from 4.5.36 to 4.5.37 by @dependabot in #744
- chore: update list of ignored security advisories by @bajtos in #741
- ci: bump softprops/action-gh-release from 2.2.1 to 2.2.2 by @dependabot in #742
- fix: do not leak username to untrusted modules by @bajtos in #736
- fix: error stack traces in transpiled TypeScript by @bajtos in #740
- feat: bump MACOSX_DEPLOYMENT_TARGET to 10.12 by @bajtos in #746
- ci: fix macos runners for release builds by @bajtos in #745
- ci: fix Linux release builds by @bajtos in #748
Full Changelog: v0.21.1...v0.22.1