Skip to content

v0.4.0-rc3

Choose a tag to compare

@Myriad-Dreamin Myriad-Dreamin released this 13 Sep 15:33
· 574 commits to main since this release
c6ed3f0

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 query or typst-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

Changes

  • build: setup typescript monorepo with turbo in #312

    • You don't have to face the error-prone yarn link anymore.
  • core: remove legacy artifact exporting in #319

  • compiler: remove deprecated resolve_with in #328

  • pkg::core: refactor render api in #336 and #338

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_PATHS in #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

Internal Feature

  • core: rework vector format (IR) in #317, #324, and #342

  • compiler: pollyfill time support in browser

  • exporter::canvas: rework with vector ir in #318 and #325

  • corpora: auto add std test cases in #331