v0.4.0-rc3
版本发布时间: 2023-09-13 23:33:32
Myriad-Dreamin/typst.ts最新发布版本:v0.5.0-rc6(2024-07-16 06:39:48)
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 https://github.com/Myriad-Dreamin/typst.ts/pull/317, https://github.com/Myriad-Dreamin/typst.ts/pull/324, and https://github.com/Myriad-Dreamin/typst.ts/pull/342. As a result, there are several notable changes:
-
Removed legacy artifact exporting in https://github.com/Myriad-Dreamin/typst.ts/pull/319. You can no longer get JSON output from typst.ts. Instead, use
typst.ts query
ortypst-ts-cli query
(v0.4.0+, https://github.com/Myriad-Dreamin/typst.ts/pull/286). -
Refactored Renderer API in https://github.com/Myriad-Dreamin/typst.ts/pull/336 and https://github.com/Myriad-Dreamin/typst.ts/pull/338. Existing APIs still work but will be removed in v0.5.0.
-
Reworked canvas renderer with vector IR in https://github.com/Myriad-Dreamin/typst.ts/pull/318 and https://github.com/Myriad-Dreamin/typst.ts/pull/325. The new canvas renderer no longer needs to preload fonts (https://github.com/Myriad-Dreamin/typst.ts/pull/330).
Changelog since v0.4.0-rc3
Full Changelog: https://github.com/Myriad-Dreamin/typst.ts/compare/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 https://github.com/Myriad-Dreamin/typst.ts/pull/332
-
core: correctly align image items in https://github.com/Myriad-Dreamin/typst.ts/pull/282
-
core: stable sort link items when lowering in https://github.com/Myriad-Dreamin/typst.ts/pull/306
-
pkg::renderer: use approx float cmp by @seven-mile in https://github.com/Myriad-Dreamin/typst.ts/pull/297
-
cli: calculate abspath before linking package in https://github.com/Myriad-Dreamin/typst.ts/pull/296
-
compiler: formalize font search order in https://github.com/Myriad-Dreamin/typst.ts/pull/293
-
compiler: reparse prefix editing in https://github.com/Myriad-Dreamin/typst.ts/pull/316
Changes
-
build: setup typescript monorepo with turbo in https://github.com/Myriad-Dreamin/typst.ts/pull/312
- You don't have to face the error-prone
yarn link
anymore.
- You don't have to face the error-prone
-
core: remove legacy artifact exporting in https://github.com/Myriad-Dreamin/typst.ts/pull/319
-
compiler: remove deprecated resolve_with in https://github.com/Myriad-Dreamin/typst.ts/pull/328
-
pkg::core: refactor render api in https://github.com/Myriad-Dreamin/typst.ts/pull/336 and https://github.com/Myriad-Dreamin/typst.ts/pull/338
External Feature
-
typst: sync to 0.8.0 in https://github.com/Myriad-Dreamin/typst.ts/pull/346
-
pkg::core: adapt and export render session
-
pkg::react: expose setWasmModuleInitOptions in https://github.com/Myriad-Dreamin/typst.ts/pull/311
-
pkg::compiler: allow set dummy access model
-
cli: add query command in https://github.com/Myriad-Dreamin/typst.ts/pull/286
-
cli: add interactive query command by Me and @seven-mile in https://github.com/Myriad-Dreamin/typst.ts/pull/289
-
cli: specify fonts via an environment variable
TYPST_FONT_PATHS
in https://github.com/Myriad-Dreamin/typst.ts/pull/305 -
compiler: add
set_{layout_widths,extension,target}
in https://github.com/Myriad-Dreamin/typst.ts/pull/299, https://github.com/Myriad-Dreamin/typst.ts/pull/304, and in https://github.com/Myriad-Dreamin/typst.ts/pull/308 -
compiler: embed emoji fonts for browser compiler, which will increase much bundle size
-
docs: init typst.ts documentation in https://github.com/Myriad-Dreamin/typst.ts/pull/340
Internal Feature
-
core: rework vector format (IR) in https://github.com/Myriad-Dreamin/typst.ts/pull/317, https://github.com/Myriad-Dreamin/typst.ts/pull/324, and https://github.com/Myriad-Dreamin/typst.ts/pull/342
-
compiler: pollyfill time support in browser
-
exporter::canvas: rework with vector ir in https://github.com/Myriad-Dreamin/typst.ts/pull/318 and https://github.com/Myriad-Dreamin/typst.ts/pull/325
-
corpora: auto add std test cases in https://github.com/Myriad-Dreamin/typst.ts/pull/331
1、 font-assets.tar.gz 21.88MB
2、 typst-ts-aarch64-apple-darwin-relwithdebuginfo.tar.gz 18.09MB
3、 typst-ts-aarch64-apple-darwin.tar.gz 14.25MB
4、 typst-ts-aarch64-pc-windows-msvc-relwithdebuginfo.tar.gz 15.05MB
5、 typst-ts-aarch64-pc-windows-msvc.tar.gz 14.01MB
6、 typst-ts-aarch64-unknown-linux-gnu-relwithdebuginfo.tar.gz 99.14MB
7、 typst-ts-aarch64-unknown-linux-gnu.tar.gz 14.49MB
8、 typst-ts-alpine-x64-relwithdebuginfo.tar.gz 104.63MB
9、 typst-ts-alpine-x64.tar.gz 14.92MB
10、 typst-ts-arm-unknown-linux-gnueabihf-relwithdebuginfo.tar.gz 98.57MB
11、 typst-ts-arm-unknown-linux-gnueabihf.tar.gz 14.87MB
12、 typst-ts-i686-pc-windows-msvc-relwithdebuginfo.tar.gz 15.34MB
13、 typst-ts-i686-pc-windows-msvc.tar.gz 14.67MB
14、 typst-ts-riscv64gc-unknown-linux-gnu-relwithdebuginfo.tar.gz 118.34MB
15、 typst-ts-riscv64gc-unknown-linux-gnu.tar.gz 15.48MB
16、 typst-ts-x86_64-apple-darwin-relwithdebuginfo.tar.gz 18.56MB
17、 typst-ts-x86_64-apple-darwin.tar.gz 14.57MB
18、 typst-ts-x86_64-pc-windows-msvc-relwithdebuginfo.tar.gz 15.88MB
19、 typst-ts-x86_64-pc-windows-msvc.tar.gz 15.13MB
20、 typst-ts-x86_64-unknown-linux-gnu-relwithdebuginfo.tar.gz 100MB
21、 typst-ts-x86_64-unknown-linux-gnu.tar.gz 14.98MB
22、 typst-ts-x86_64-unknown-linux-musl-relwithdebuginfo.tar.gz 104.63MB
23、 typst-ts-x86_64-unknown-linux-musl.tar.gz 14.92MB