build: bump version to 0.12.20 (#1345)

* docs: editing changelog

* build: bump version to 0.12.20

* docs: update changelog

* build: bump dependencies

* fix: snapshot and compile error
This commit is contained in:
Myriad-Dreamin 2025-02-21 01:37:38 +08:00 committed by GitHub
parent cdd9282c37
commit f3329b8dc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 443 additions and 410 deletions

695
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -1,7 +1,7 @@
[workspace.package] [workspace.package]
description = "An integrated language service for Typst." description = "An integrated language service for Typst."
authors = ["Myriad-Dreamin <camiyoru@gmail.com>", "Nathan Varner"] authors = ["Myriad-Dreamin <camiyoru@gmail.com>", "Nathan Varner"]
version = "0.12.20-rc2" version = "0.12.20"
edition = "2021" edition = "2021"
readme = "README.md" readme = "README.md"
license = "Apache-2.0" license = "Apache-2.0"
@ -179,7 +179,7 @@ insta = { version = "1.39", features = ["glob"] }
# Our Own Crates # Our Own Crates
typst-preview = { path = "./crates/typst-preview" } typst-preview = { path = "./crates/typst-preview" }
tinymist-assets = { version = "=0.12.20-rc2" } tinymist-assets = { version = "=0.12.20" }
tinymist = { path = "./crates/tinymist/" } tinymist = { path = "./crates/tinymist/" }
tinymist-std = { path = "./crates/tinymist-std/", default-features = false } tinymist-std = { path = "./crates/tinymist-std/", default-features = false }
tinymist-vfs = { path = "./crates/tinymist-vfs/", default-features = false } tinymist-vfs = { path = "./crates/tinymist-vfs/", default-features = false }

View file

@ -1,6 +1,6 @@
{ {
"name": "tinymist-web", "name": "tinymist-web",
"version": "0.12.20-rc2", "version": "0.12.20",
"description": "WASM module for running tinymist analyzers in JavaScript environment.", "description": "WASM module for running tinymist analyzers in JavaScript environment.",
"author": "Myriad-Dreamin", "author": "Myriad-Dreamin",
"license": "Apache-2.0", "license": "Apache-2.0",

View file

@ -170,8 +170,6 @@ impl DocumentMetricsWorker<'_> {
| FrameItem::Image(..) | FrameItem::Image(..)
| FrameItem::Tag(..) | FrameItem::Tag(..)
| FrameItem::Link(..) => Some(()), | FrameItem::Link(..) => Some(()),
#[cfg(not(feature = "no-content-hint"))]
FrameItem::ContentHint(..) => Some(()),
} }
} }

View file

@ -3,7 +3,6 @@ source: crates/tinymist-query/src/completion.rs
description: "Completion on \n (47..48)" description: "Completion on \n (47..48)"
expression: "JsonRepr::new_pure(results)" expression: "JsonRepr::new_pure(results)"
input_file: crates/tinymist-query/src/fixtures/completion/raw_lang.typ input_file: crates/tinymist-query/src/fixtures/completion/raw_lang.typ
snapshot_kind: text
--- ---
[ [
{ {
@ -12,7 +11,7 @@ snapshot_kind: text
{ {
"kind": 21, "kind": 21,
"label": "Typst", "label": "Typst",
"sortText": "142", "sortText": "145",
"textEdit": { "textEdit": {
"newText": "typ", "newText": "typ",
"range": { "range": {

View file

@ -3,7 +3,6 @@ source: crates/tinymist-query/src/completion.rs
description: "Completion on \n (50..51)" description: "Completion on \n (50..51)"
expression: "JsonRepr::new_pure(results)" expression: "JsonRepr::new_pure(results)"
input_file: crates/tinymist-query/src/fixtures/completion/raw_lang_middle.typ input_file: crates/tinymist-query/src/fixtures/completion/raw_lang_middle.typ
snapshot_kind: text
--- ---
[ [
{ {
@ -12,7 +11,7 @@ snapshot_kind: text
{ {
"kind": 21, "kind": 21,
"label": "Typst", "label": "Typst",
"sortText": "142", "sortText": "145",
"textEdit": { "textEdit": {
"newText": "typ", "newText": "typ",
"range": { "range": {

View file

@ -3,7 +3,6 @@ source: crates/tinymist-query/src/completion.rs
description: "Completion on \n (50..51)" description: "Completion on \n (50..51)"
expression: "JsonRepr::new_pure(results)" expression: "JsonRepr::new_pure(results)"
input_file: crates/tinymist-query/src/fixtures/completion/raw_lang_middle_lower.typ input_file: crates/tinymist-query/src/fixtures/completion/raw_lang_middle_lower.typ
snapshot_kind: text
--- ---
[ [
{ {
@ -12,7 +11,7 @@ snapshot_kind: text
{ {
"kind": 21, "kind": 21,
"label": "Typst", "label": "Typst",
"sortText": "142", "sortText": "145",
"textEdit": { "textEdit": {
"newText": "typ", "newText": "typ",
"range": { "range": {

View file

@ -14,102 +14,111 @@ We massively changed the internal world implementation. This unblocks many new f
- It now adds new project model with a `tinymist.lock` to help manage documents and their dependencies on large multiple-files projects. This is still experimental and disabled by default. - It now adds new project model with a `tinymist.lock` to help manage documents and their dependencies on large multiple-files projects. This is still experimental and disabled by default.
- The `tinymist.lock` along with the browsing preview is expected to greatly help people work on large and complex projects using any of their faviorite editors. - The `tinymist.lock` along with the browsing preview is expected to greatly help people work on large and complex projects using any of their faviorite editors.
* build: update `cc` version (#1162) in https://github.com/Myriad-Dreamin/tinymist/pull/1258 For `tinymist.lock` feature, please check the [tinymist.projectResolution = "lockDatabase"](https://github.com/Myriad-Dreamin/tinymist/blob/main/editors/vscode/Configuration.md#tinymistprojectresolution). This is still experimental for multiple-files projects.
* build: downgrade `tempfile` to 3.15.0 in https://github.com/Myriad-Dreamin/tinymist/pull/1259
* build: upgrade typstyle to v0.12.15 by @Eric-Song-Nop in https://github.com/Myriad-Dreamin/tinymist/pull/1260 and https://github.com/Myriad-Dreamin/tinymist/pull/1324 * Bumped `cc` to v1.2.11 (#1162) in https://github.com/Myriad-Dreamin/tinymist/pull/1258
* Downgraded `tempfile` to v3.15.0 in https://github.com/Myriad-Dreamin/tinymist/pull/1259
* Bumped typstyle to v0.12.15 by @Eric-Song-Nop in https://github.com/Myriad-Dreamin/tinymist/pull/1260 and https://github.com/Myriad-Dreamin/tinymist/pull/1324
### CLI ### CLI
* feat: add CLI compile command and bench script in https://github.com/Myriad-Dreamin/tinymist/pull/1193 * Added CLI compile command in https://github.com/Myriad-Dreamin/tinymist/pull/1193 and https://github.com/Myriad-Dreamin/tinymist/pull/1218
* The compile command is mainly used for compiling documents with updating lock file. Using:
```
tinymist compile --save-lock tinymist.lock
```
* This could also be used for comparing the coompile performance of `tinymist-cli` and `typst-cli`.
* Generating shell build script according to the lock file in https://github.com/Myriad-Dreamin/tinymist/pull/1219
### Compiler ### Compiler
* dev: move package to reflexo_world part in https://github.com/Myriad-Dreamin/tinymist/pull/1177 * (Fix) Fixed a panic when getting font index which is hit by comemo in https://github.com/Myriad-Dreamin/tinymist/pull/1213
* feat: move world implementation in https://github.com/Myriad-Dreamin/tinymist/pull/1183, https://github.com/Myriad-Dreamin/tinymist/pull/1185, https://github.com/Myriad-Dreamin/tinymist/pull/1186, https://github.com/Myriad-Dreamin/tinymist/pull/1187 * This could be true when the fonts are hot reloaded.
* perf: reduce size of the watch entry in https://github.com/Myriad-Dreamin/tinymist/pull/1190 * (Fix) Emiting latest status and artifact with correct signals (#1294) in https://github.com/Myriad-Dreamin/tinymist/pull/1330
* perf: remove meta watch in https://github.com/Myriad-Dreamin/tinymist/pull/1191 * Because of this, the compile status bar was not updated correctly.
* feat: track fine-grained revisions of `font`, `registry`, `entry`, and `vfs` in https://github.com/Myriad-Dreamin/tinymist/pull/1192 * (Perf) Detecting compilation-related vfs changes in https://github.com/Myriad-Dreamin/tinymist/pull/1199
* feat: trigger project compilations on main thread in https://github.com/Myriad-Dreamin/tinymist/pull/1197 * (Perf) Scatter-gathering the editor diagnostics in https://github.com/Myriad-Dreamin/tinymist/pull/1246
* feat: detect compilation-related vfs changes in https://github.com/Myriad-Dreamin/tinymist/pull/1199 * Moved world implementation to tinymist in https://github.com/Myriad-Dreamin/tinymist/pull/1177, https://github.com/Myriad-Dreamin/tinymist/pull/1183, https://github.com/Myriad-Dreamin/tinymist/pull/1185, https://github.com/Myriad-Dreamin/tinymist/pull/1186, and https://github.com/Myriad-Dreamin/tinymist/pull/1187
* fix: try getting font index which is hit by comemo in https://github.com/Myriad-Dreamin/tinymist/pull/1213 * Reduced size of the watch entry in https://github.com/Myriad-Dreamin/tinymist/pull/1190 and https://github.com/Myriad-Dreamin/tinymist/pull/1191
* perf: scatter-gather the editor diagnostics in https://github.com/Myriad-Dreamin/tinymist/pull/1246 * Tracking fine-grained revisions of `font`, `registry`, `entry`, and `vfs` in https://github.com/Myriad-Dreamin/tinymist/pull/1192
* fix: invalidate and increment revision in vfs correctly (#1292) in https://github.com/Myriad-Dreamin/tinymist/pull/1329 * This prepares for better configuration hot reloading in future.
* fix: emit latest status and artifact with correct signals (#1294) in https://github.com/Myriad-Dreamin/tinymist/pull/1330 * Triggering project compilations on main thread in https://github.com/Myriad-Dreamin/tinymist/pull/1197
* fix: the path to join is shadowed by a local variable (#1322) in https://github.com/Myriad-Dreamin/tinymist/pull/1335 * This helps apply more advanced compilation strategy with sync and mutable state on the main thread. For example, [Filtering out unreleated file changes](https://github.com/Myriad-Dreamin/tinymist/pull/1199) has been applied.
* fix: don't remove path mapping when invalidating vfs cache (#1316) in https://github.com/Myriad-Dreamin/tinymist/pull/1333
### Editor ### Editor
* feat: show name of the compiling file in the status bar in https://github.com/Myriad-Dreamin/tinymist/pull/1147 * Showing name of the compiling file in the status bar in https://github.com/Myriad-Dreamin/tinymist/pull/1147
* feat: support convert to typst table from xlsx file by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1100 * You can customize it by setting `tinymist.statusBarFormat` in the settings.
* fix: update xlsx-parser package version to 0.2.3 by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1166
* feat: support drag-and-drop feature for .ods format by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1217
* feat: add more known image extensions to the drop provider in https://github.com/Myriad-Dreamin/tinymist/pull/1308
* refactor: rename source file name of the drop feature in https://github.com/Myriad-Dreamin/tinymist/pull/1309
* feat: add support to paste image into typst documents in https://github.com/Myriad-Dreamin/tinymist/pull/1306
* feat: cancel codelens if the any picker is cancelled in https://github.com/Myriad-Dreamin/tinymist/pull/1314
### Code Analysis ### Drop and Paste
* feat: add `depended_{paths,{source_,}files}` methods in https://github.com/Myriad-Dreamin/tinymist/pull/1150 * Added support to drag and drop `.xlsx` files by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1100 and https://github.com/Myriad-Dreamin/tinymist/pull/1166
* feat: prefer to select the previous token when cursor is before a marker in https://github.com/Myriad-Dreamin/tinymist/pull/1175 * Added support to drag and drop `.ods` files by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1217
* fix: capture docs before check init in https://github.com/Myriad-Dreamin/tinymist/pull/1195 * Added more known image extensions to the drop provider in https://github.com/Myriad-Dreamin/tinymist/pull/1308
* fix: consider interpret mode when classifying dot accesses in https://github.com/Myriad-Dreamin/tinymist/pull/1302 * Added `.avif`, `.jpe`, `.psd`, `.tga`, `.tif`, and `.tiff`, which are copied from the markdown extension.
* feat: support more path types and add path parameters (#1312) in https://github.com/Myriad-Dreamin/tinymist/pull/1331 * Added support to paste media files (images, audios, and videos) into typst documents in https://github.com/Myriad-Dreamin/tinymist/pull/1306
* Canceling codelens if any picker is cancelled in https://github.com/Myriad-Dreamin/tinymist/pull/1314
### Label View ### Label View
* fix(vscode): make label view work when there's exactly one label by @tmistele in https://github.com/Myriad-Dreamin/tinymist/pull/1158 * (Fix) Making label view work when there's exactly one label by @tmistele in https://github.com/Myriad-Dreamin/tinymist/pull/1158
### Crityp (New)
* feat: micro benchmark support in https://github.com/Myriad-Dreamin/tinymist/pull/1160
### Typlite ### Typlite
* feat: evaluate table and grid by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1300 * Evaluating table and grid by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1300
* feat: embed Markdown codes by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1296 * Embedding Markdown codes by `typlite` raw block by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1296 and https://github.com/Myriad-Dreamin/tinymist/pull/1323
* feat(typlite): render context block contextually by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1305 * Rendering context block contextually by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1305
* fix(typlite): correct the wrong path by @hongjr03 in https://github.com/Myriad-Dreamin/tinymist/pull/1323
### Preview ### Preview
* feat: Rescaling with Ctrl+=/- in browser (in addition to ctrl+wheel) by @tmistele in https://github.com/Myriad-Dreamin/tinymist/pull/1110 * (Fix) Logging error on channel closed instead of panicking in https://github.com/Myriad-Dreamin/tinymist/pull/1347
* fix: Prevent malicious websites from connecting to http / websocket server by @tmistele and @Myriad-Dreamin in https://github.com/Myriad-Dreamin/tinymist/pull/1157 * This may happen when the preview is broadcasting and the clients hasn't connected to the server.
* fix: respect that the port of the `expected_origin` can be zero (#1295) in https://github.com/Myriad-Dreamin/tinymist/pull/1337 * Rescaling with Ctrl+=/- in browser (in addition to ctrl+wheel) by @tmistele in https://github.com/Myriad-Dreamin/tinymist/pull/1110
* feat: browsing preview in https://github.com/Myriad-Dreamin/tinymist/pull/1234 * Prevented malicious websites from connecting to http / websocket server by @tmistele and @Myriad-Dreamin in https://github.com/Myriad-Dreamin/tinymist/pull/1157 and https://github.com/Myriad-Dreamin/tinymist/pull/1337
* Browsing preview in https://github.com/Myriad-Dreamin/tinymist/pull/1234
### Code Analysis
* (Fix) Capturing docs before check init in https://github.com/Myriad-Dreamin/tinymist/pull/1195
* (Fix) Considering interpret mode when classifying dot accesses in https://github.com/Myriad-Dreamin/tinymist/pull/1302
* Added `depended_{paths,{source_,}files}` methods in https://github.com/Myriad-Dreamin/tinymist/pull/1150
* Preferring to select the previous token when cursor is before a marker in https://github.com/Myriad-Dreamin/tinymist/pull/1175
* Support more path types and add path parameters (#1312) in https://github.com/Myriad-Dreamin/tinymist/pull/1331
* Completes mutiple paths on `bibliography` and completes wasm files on `plugin`.
### Crityp (New)
* Added micro benchmark support in https://github.com/Myriad-Dreamin/tinymist/pull/1160
* For example, the benchmark shows that `fib(20)` on rust (16us) is 40 times faster than that on typst (940us).
* Check [crityp](https://github.com/Myriad-Dreamin/tinymist/blob/main/crates/crityp/README.md) for usage.
### Codelens ### Codelens
* feat: move less used codelens into a single "more" codelens in https://github.com/Myriad-Dreamin/tinymist/pull/1315 * Moved less used codelens into a single "more" codelens in https://github.com/Myriad-Dreamin/tinymist/pull/1315
### Wasm ### Wasm
* feat: build tinymist-world on web in https://github.com/Myriad-Dreamin/tinymist/pull/1184 * Building tinymist-world on web in https://github.com/Myriad-Dreamin/tinymist/pull/1184 and https://github.com/Myriad-Dreamin/tinymist/pull/1243
* feat: adapts build meta for wasm target in https://github.com/Myriad-Dreamin/tinymist/pull/1243
### tinymist.lock ### tinymist.lock
* feat: copy flock implementation from cargo in https://github.com/Myriad-Dreamin/tinymist/pull/1140 * Copied flock implementation from cargo in https://github.com/Myriad-Dreamin/tinymist/pull/1140
* Generating and updating declarative project lock file in https://github.com/Myriad-Dreamin/tinymist/pull/1133, https://github.com/Myriad-Dreamin/tinymist/pull/1149, https://github.com/Myriad-Dreamin/tinymist/pull/1151, https://github.com/Myriad-Dreamin/tinymist/pull/1152, https://github.com/Myriad-Dreamin/tinymist/pull/1153, https://github.com/Myriad-Dreamin/tinymist/pull/1154 * Generating and updating declarative project lock file in https://github.com/Myriad-Dreamin/tinymist/pull/1133, https://github.com/Myriad-Dreamin/tinymist/pull/1149, https://github.com/Myriad-Dreamin/tinymist/pull/1151, https://github.com/Myriad-Dreamin/tinymist/pull/1152, https://github.com/Myriad-Dreamin/tinymist/pull/1153, https://github.com/Myriad-Dreamin/tinymist/pull/1154
* feat: model and document project tasks in https://github.com/Myriad-Dreamin/tinymist/pull/1202 * Modeling project tasks in https://github.com/Myriad-Dreamin/tinymist/pull/1202
* feat: associate lock file with toml language in https://github.com/Myriad-Dreamin/tinymist/pull/1143 * Associating `tinymist.lock` with toml language in https://github.com/Myriad-Dreamin/tinymist/pull/1143
* feat: initiate `lockDatabase` project resolution in https://github.com/Myriad-Dreamin/tinymist/pull/1201 * Initiating `lockDatabase` project resolution in https://github.com/Myriad-Dreamin/tinymist/pull/1201
* feat: resolve projects by `lockDatabase` in https://github.com/Myriad-Dreamin/tinymist/pull/1142 * Resolving projects by `lockDatabase` in https://github.com/Myriad-Dreamin/tinymist/pull/1142
* feat: execute export and query on the task model in https://github.com/Myriad-Dreamin/tinymist/pull/1214 * Executing export and query on the task model in https://github.com/Myriad-Dreamin/tinymist/pull/1214
* feat: CLI compile documents with lock updates in https://github.com/Myriad-Dreamin/tinymist/pull/1218
* feat: CLI generate shell build script in https://github.com/Myriad-Dreamin/tinymist/pull/1219
### Misc ### Misc
* docs: revise neovim's install section by @SylvanFranklin in https://github.com/Myriad-Dreamin/tinymist/pull/1090 * Revised neovim's install section by @SylvanFranklin and @YDX-2147483647 in https://github.com/Myriad-Dreamin/tinymist/pull/1090 and https://github.com/Myriad-Dreamin/tinymist/pull/1276
* docs: add release instruction by @ParaN3xus and @Myriad-Dreamin in https://github.com/Myriad-Dreamin/tinymist/pull/1163, https://github.com/Myriad-Dreamin/tinymist/pull/1169, https://github.com/Myriad-Dreamin/tinymist/pull/1173, and https://github.com/Myriad-Dreamin/tinymist/pull/1212 * Added release instruction by @ParaN3xus and @Myriad-Dreamin in https://github.com/Myriad-Dreamin/tinymist/pull/1163, https://github.com/Myriad-Dreamin/tinymist/pull/1169, https://github.com/Myriad-Dreamin/tinymist/pull/1173, and https://github.com/Myriad-Dreamin/tinymist/pull/1212
* docs: documenting `sync-lsp` crate in https://github.com/Myriad-Dreamin/tinymist/pull/1155 * Documenting `sync-lsp` crate in https://github.com/Myriad-Dreamin/tinymist/pull/1155
* fix(ci): use deploy-pages v4 in https://github.com/Myriad-Dreamin/tinymist/pull/1249 * CI used newest deploy-pages, upload-pages-artifact, and configure-pages actions in https://github.com/Myriad-Dreamin/tinymist/pull/1249 and https://github.com/Myriad-Dreamin/tinymist/pull/1251
* fix(ci): use upload-pages-artifact and configure-pages in https://github.com/Myriad-Dreamin/tinymist/pull/1251 * Documenting Myriad-Dreamin's workspace setting in https://github.com/Myriad-Dreamin/tinymist/pull/1264
* docs: documenting Myriad-Dreamin's workspace setting in https://github.com/Myriad-Dreamin/tinymist/pull/1264 * CI Added release crates action in https://github.com/Myriad-Dreamin/tinymist/pull/1298
* docs: fix typo by @YDX-2147483647 in https://github.com/Myriad-Dreamin/tinymist/pull/1276 * Published {tinymist-{derive,analysis,std,vfs,world,project},typlite,crityp} crates in https://github.com/Myriad-Dreamin/tinymist/pull/1310
* feat: add release crates action in https://github.com/Myriad-Dreamin/tinymist/pull/1298
**Full Changelog**: https://github.com/Myriad-Dreamin/tinymist/compare/v0.12.18...v0.12.20 **Full Changelog**: https://github.com/Myriad-Dreamin/tinymist/compare/v0.12.18...v0.12.20

View file

@ -1,6 +1,6 @@
{ {
"name": "tinymist", "name": "tinymist",
"version": "0.12.20-rc2", "version": "0.12.20",
"description": "An integrated language service for Typst", "description": "An integrated language service for Typst",
"keywords": [ "keywords": [
"typst", "typst",

View file

@ -1,6 +1,6 @@
{ {
"name": "typst-textmate", "name": "typst-textmate",
"version": "0.12.20-rc2", "version": "0.12.20",
"private": true, "private": true,
"scripts": { "scripts": {
"compile": "npx tsc && node ./dist/main.mjs", "compile": "npx tsc && node ./dist/main.mjs",