v0.4.0-rc3
See the CHANGELOG for more details.
v0.4.0-rc3
This is a major upgrade of typst.ts, so we decide to increment the minor version number. The most important change is that we have stabilized the API for TypstRenderer. We have added extensive documentation (https://www.npmjs.com/package/@myriaddreamin/typst.ts?activeTab=code), but are still working on more docs, so this release is 0.4.0-rc3 rather than 0.4.0.
We have reworked vector format (IR) in #317, #324, and #342. As a result, there are several notable changes:
-
Removed legacy artifact exporting in #319. You can no longer get JSON output from typst.ts. Instead, use
typst.ts queryortypst-ts-cli query(v0.4.0+, #286). -
Refactored Renderer API in #336 and #338. Existing APIs still work but will be removed in v0.5.0.
-
Reworked canvas renderer with vector IR in #318 and #325. The new canvas renderer no longer needs to preload fonts (#330).
Changelog since v0.4.0-rc3
Full Changelog: v0.3.1...v0.4.0-rc3
Security Notes
No new security note.
Bug fix
-
exporter::svg: missing quote in stroke dasharray by @Enter-tainer in #332
-
core: correctly align image items in #282
-
core: stable sort link items when lowering in #306
-
pkg::renderer: use approx float cmp by @seven-mile in #297
-
cli: calculate abspath before linking package in #296
-
compiler: formalize font search order in #293
-
compiler: reparse prefix editing in #316
Changes
-
build: setup typescript monorepo with turbo in #312
- You don't have to face the error-prone
yarn linkanymore.
- You don't have to face the error-prone
-
core: remove legacy artifact exporting in #319
-
compiler: remove deprecated resolve_with in #328
External Feature
-
typst: sync to 0.8.0 in #346
-
pkg::core: adapt and export render session
-
pkg::react: expose setWasmModuleInitOptions in #311
-
pkg::compiler: allow set dummy access model
-
cli: add query command in #286
-
cli: add interactive query command by Me and @seven-mile in #289
-
cli: specify fonts via an environment variable
TYPST_FONT_PATHSin #305 -
compiler: add
set_{layout_widths,extension,target}in #299, #304, and in #308 -
compiler: embed emoji fonts for browser compiler, which will increase much bundle size
-
docs: init typst.ts documentation in #340