Skip to content
This repository has been archived by the owner on Nov 7, 2024. It is now read-only.

Commit

Permalink
chore: bump to 0.11.3 and fix vscode build script (#279)
Browse files Browse the repository at this point in the history
* chore: bump to 0.11.3 and fix vscode build script

* bump ts to 0.5.0-rc2
  • Loading branch information
Enter-tainer authored Mar 25, 2024
1 parent fc53ec5 commit c623b76
Show file tree
Hide file tree
Showing 12 changed files with 52 additions and 45 deletions.
5 changes: 3 additions & 2 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
},
{
"label": "Build Binary",
"type": "cargo",
"command": "build",
"type": "shell",
"command": "cargo",
"args": [
"build",
"--profile=release"
],
"problemMatcher": [
Expand Down
18 changes: 9 additions & 9 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "typst-preview"
description = "A previewer for the Typst typesetting system."
license = "MIT"
repository = "https://github.com/Enter-tainer/typst-preview"
version = "0.11.2"
version = "0.11.3"
authors = ["The Typst Project Developers"]
edition = "2021"
build = "build.rs"
Expand All @@ -22,12 +22,12 @@ doc = false
[dependencies]
typst = "0.11.0"
typst-assets = { version = "0.11.0", features = ["fonts"] }
typst-ts-svg-exporter = { version = "0.4.2-rc9" }
typst-ts-core = { version = "0.4.2-rc9", default-features = false, features = [
typst-ts-svg-exporter = { version = "0.5.0-rc2" }
typst-ts-core = { version = "0.5.0-rc2", default-features = false, features = [
"flat-vector",
"vector-bbox",
] }
typst-ts-compiler = { version = "0.4.2-rc9", optional = true }
typst-ts-compiler = { version = "0.5.0-rc2", optional = true }
comemo = "0.4"
elsa = "1.10"
memmap2 = "0.9.4"
Expand Down
4 changes: 2 additions & 2 deletions addons/frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"unlink:local": "yarn unlink @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer"
},
"dependencies": {
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
"@myriaddreamin/typst.ts": "0.4.2-rc9",
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc10",
"@myriaddreamin/typst.ts": "0.4.2-rc10",
"typst-dom": "link:../typst-dom",
"rxjs": "^7.8.1"
},
Expand Down
18 changes: 9 additions & 9 deletions addons/frontend/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -117,15 +117,15 @@
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32"
integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==

"@myriaddreamin/[email protected]rc9":
version "0.4.2-rc9"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst-ts-renderer/-/typst-ts-renderer-0.4.2-rc9.tgz#5a4b2f6f4fb75db125937baa24dacee7e9247c9f"
integrity sha512-ZP3Uve5g77y2Rq45YJCL1JsqLKbBMalJlhqOWKHqeDXrsJyMbskOgypAFnSdXo1tssYZFnlQpS5ICrDlmBnnFQ==

"@myriaddreamin/[email protected]rc9":
version "0.4.2-rc9"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst.ts/-/typst.ts-0.4.2-rc9.tgz#77bfe15954f319d5467206cad759c86a1b10a9a8"
integrity sha512-PcAiojDzvhyI9IIHTWM0/CKMEiRnWJf5JxFCWwKMLsMuxz1K/+18KZR7zn8T31cm9xIqb9U8mQGxQILgFh0lEg==
"@myriaddreamin/[email protected]rc10":
version "0.4.2-rc10"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst-ts-renderer/-/typst-ts-renderer-0.4.2-rc10.tgz#bc546c042c60c97025509b171be6ba047583be73"
integrity sha512-WGkYeyXXGNeL4VWYzsW+S/9b0W7mvTr7bTjt/ZQHOs/FyOl8q2S6QivqlzKTutdXzGZ+5EB8SA86757hYtkDFA==

"@myriaddreamin/[email protected]rc10":
version "0.4.2-rc10"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst.ts/-/typst.ts-0.4.2-rc10.tgz#b4714914428bdd6540d7b178b4f1342e5cd19509"
integrity sha512-cgBcX961mBnUHVFTcbffhm7V6Am3RGD3Rwm/UsDBSwMrsTC1Qde4qVfsg5o2vKjA/idAff3Uf0D3mo0bcsicjw==
dependencies:
idb "^7.1.1"

Expand Down
8 changes: 4 additions & 4 deletions addons/typst-dom/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
"unlink:local": "yarn unlink @myriaddreamin/typst.ts @myriaddreamin/typst-ts-renderer"
},
"peerDependencies": {
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
"@myriaddreamin/typst.ts": "0.4.2-rc9"
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc10",
"@myriaddreamin/typst.ts": "0.4.2-rc10"
},
"devDependencies": {
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
"@myriaddreamin/typst.ts": "0.4.2-rc9",
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc10",
"@myriaddreamin/typst.ts": "0.4.2-rc10",
"typescript": "^5.0.2",
"vite": "^4.3.9",
"vite-plugin-singlefile": "^0.13.5",
Expand Down
18 changes: 9 additions & 9 deletions addons/typst-dom/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -124,15 +124,15 @@
resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32"
integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==

"@myriaddreamin/[email protected]rc9":
version "0.4.2-rc9"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst-ts-renderer/-/typst-ts-renderer-0.4.2-rc9.tgz#5a4b2f6f4fb75db125937baa24dacee7e9247c9f"
integrity sha512-ZP3Uve5g77y2Rq45YJCL1JsqLKbBMalJlhqOWKHqeDXrsJyMbskOgypAFnSdXo1tssYZFnlQpS5ICrDlmBnnFQ==

"@myriaddreamin/[email protected]rc9":
version "0.4.2-rc9"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst.ts/-/typst.ts-0.4.2-rc9.tgz#77bfe15954f319d5467206cad759c86a1b10a9a8"
integrity sha512-PcAiojDzvhyI9IIHTWM0/CKMEiRnWJf5JxFCWwKMLsMuxz1K/+18KZR7zn8T31cm9xIqb9U8mQGxQILgFh0lEg==
"@myriaddreamin/[email protected]rc10":
version "0.4.2-rc10"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst-ts-renderer/-/typst-ts-renderer-0.4.2-rc10.tgz#bc546c042c60c97025509b171be6ba047583be73"
integrity sha512-WGkYeyXXGNeL4VWYzsW+S/9b0W7mvTr7bTjt/ZQHOs/FyOl8q2S6QivqlzKTutdXzGZ+5EB8SA86757hYtkDFA==

"@myriaddreamin/[email protected]rc10":
version "0.4.2-rc10"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst.ts/-/typst.ts-0.4.2-rc10.tgz#b4714914428bdd6540d7b178b4f1342e5cd19509"
integrity sha512-cgBcX961mBnUHVFTcbffhm7V6Am3RGD3Rwm/UsDBSwMrsTC1Qde4qVfsg5o2vKjA/idAff3Uf0D3mo0bcsicjw==
dependencies:
idb "^7.1.1"

Expand Down
4 changes: 4 additions & 0 deletions addons/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to the "typst-preview" extension will be documented in this

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## v0.11.3 - [2024-03-25]

- Bump to typst.ts 0.5.0-rc1

## v0.11.2 - [2024-03-21]

- Fix:
Expand Down
4 changes: 4 additions & 0 deletions addons/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ This project is not affiliated with, created by, or endorsed by Typst the brand.

## Release Notes

### v0.11.3 - [2024-03-25]

- Bump to typst.ts 0.5.0-rc1

### v0.11.2 - [2024-03-21]

- Fix:
Expand Down
2 changes: 1 addition & 1 deletion addons/vscode/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"type": "git",
"url": "https://github.com/Enter-tainer/typst-preview"
},
"version": "0.11.2",
"version": "0.11.3",
"engines": {
"vscode": "^1.77.0"
},
Expand Down
4 changes: 1 addition & 3 deletions src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,9 @@ impl<H: CompilationHandle> CompileServer<H> {
// editor_conn_sender: mpsc::UnboundedSender<EditorActorRequest>,
) -> Self {
// CompileExporter + DynamicLayoutCompiler + WatchDriver
let root = compiler_driver.world.root.clone();
// let r = renderer_sender.clone();
let driver = CompileExporter::new(compiler_driver);
let driver = Reporter { inner: driver, cb };
let inner = CompileActor::new(driver, root.as_ref().to_owned()).with_watch(true);
let inner = CompileActor::new(driver).with_watch(true);

Self {
inner,
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use log::{error, info};

use typst_ts_compiler::service::CompileDriver;
use typst_ts_compiler::TypstSystemWorld;
use typst_ts_core::config::CompileOpts;
use typst_ts_core::config::{compiler::EntryOpts, CompileOpts};

use crate::compiler::CompileServer;

Expand Down Expand Up @@ -108,7 +108,7 @@ async fn main() {

let compiler_driver = {
let world = TypstSystemWorld::new(CompileOpts {
root_dir: root.clone(),
entry: EntryOpts::new_rooted(root.clone(), Some(entry.clone())),
font_paths: arguments.font_paths.clone(),
with_embedded_fonts: typst_assets::fonts().map(Cow::Borrowed).collect(),
..CompileOpts::default()
Expand Down

0 comments on commit c623b76

Please sign in to comment.