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 v0.11.0 (#273)
Browse files Browse the repository at this point in the history
* chore: bump to v0.11.0

* feat: allow disable html embed

* ci: upload html

* fix build and use crates

* change html default path to help crates io publish

* make windows happy

* add packaging

* real html

* docs: add about crates io
  • Loading branch information
Enter-tainer authored Mar 18, 2024
1 parent 9081106 commit fad7eaa
Show file tree
Hide file tree
Showing 13 changed files with 121 additions and 92 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,12 @@ jobs:
with:
name: typst-preview-${{ env.target }}.vsix
path: addons/vscode/typst-preview-${{ env.target }}.vsix
- name: Upload frontend html
uses: actions/upload-artifact@v4
with:
name: index.html
path: addons/vscode/out/frontend/index.html
overwrite: true

build_alpine:
name: build (x86_64-unknown-linux-musl)
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ target/
# MSVC Windows builds of rustc generate these, which store debugging information
*.pdb
docs/dist
src/index.html
79 changes: 45 additions & 34 deletions Cargo.lock

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

29 changes: 15 additions & 14 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
[package]
name = "typst-preview"
version = "0.10.10"
description = "A previewer for the Typst typesetting system."
license = "MIT"
repository = "https://github.com/Enter-tainer/typst-preview"
version = "0.11.0"
authors = ["The Typst Project Developers"]
edition = "2021"
build = "build.rs"
keywords = ["typst"]
include = ["src/**/*", "/LICENSE", "/README.md", "build.rs"]

[[bin]]
name = "typst-preview"
Expand All @@ -15,15 +20,14 @@ bench = false
doc = false

[dependencies]
typst = "0.10.0"
# typst-library = "0.10.0"
typst-assets = { git = "https://github.com/typst/typst-assets", tag = "v0.11.0-rc1" }
typst-ts-svg-exporter = { version = "0.4.2-rc8" }
typst-ts-core = { version = "0.4.2-rc7", default-features = false, features = [
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 = [
"flat-vector",
"vector-bbox",
] }
typst-ts-compiler = { version = "0.4.2-rc8", optional = true }
typst-ts-compiler = { version = "0.4.2-rc9", optional = true }
comemo = "0.4"
elsa = "1.10"
memmap2 = "0.9.4"
Expand All @@ -40,15 +44,10 @@ indexmap = "2"
serde = "1.0.197"
await-tree = "0.1.2"

clap = { version = "4.5.2", features = ["derive", "env"], optional = true }
clap = { version = "4.5.3", features = ["derive", "env"], optional = true }
open = { version = "5.1.2", optional = true }
hyper = { version = "0.14", features = ["full"], optional = true }
[patch.crates-io]
typst = { git = "https://github.com/Myriad-Dreamin/typst.git", branch = "typst.ts-v0.11.0-2" }
typst-syntax = { git = "https://github.com/Myriad-Dreamin/typst.git", branch = "typst.ts-v0.11.0-2" }
typst-ts-svg-exporter = { git = "https://github.com/Myriad-Dreamin/typst.ts", rev = "c8ff53382c2afa67582465c6e7e0fd78603e4341", package = "typst-ts-svg-exporter" }
typst-ts-core = { git = "https://github.com/Myriad-Dreamin/typst.ts", rev = "c8ff53382c2afa67582465c6e7e0fd78603e4341", package = "typst-ts-core" }
typst-ts-compiler = { git = "https://github.com/Myriad-Dreamin/typst.ts", rev = "c8ff53382c2afa67582465c6e7e0fd78603e4341", package = "typst-ts-compiler" }

# typst = { path = "../../../typst/crates/typst" }
# typst-syntax = { path = "../../../typst/crates/typst-syntax" }
Expand Down Expand Up @@ -85,7 +84,9 @@ embed-fonts = ["typst-assets/fonts"]
# This requires modifying typst.
no-content-hint = ["typst-ts-core/no-content-hint"]

cli = ["hyper", "clap", "open", "typst-ts-compiler", "no-content-hint"]
embed-html = []

cli = ["hyper", "clap", "open", "typst-ts-compiler", "no-content-hint", "embed-html"]

[profile.release]
debug = true
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-rc8",
"@myriaddreamin/typst.ts": "0.4.2-rc8",
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
"@myriaddreamin/typst.ts": "0.4.2-rc9",
"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]rc8":
version "0.4.2-rc8"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst-ts-renderer/-/typst-ts-renderer-0.4.2-rc8.tgz#b78c8bb37f2730384d0ebe6a6bc8d5d91faf2c97"
integrity sha512-cAOCfa9RIWc84qSk3iJHhhQmliEQGpgwGyN05GU/3+PAHVZ4prUjkn+TJI09e/q6uUB742YMVcvbN30gsC0hXA==

"@myriaddreamin/[email protected]rc8":
version "0.4.2-rc8"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst.ts/-/typst.ts-0.4.2-rc8.tgz#4a9cd58bd9d033f580c070a1ba11f8f14f3c180d"
integrity sha512-SG6aZK6ufT2+4H3p+NSQr5QEm4Qp8P8cjaqfVsvT+xQmQnxP7Rgit1dNjOV6IR66aughes/myZbebpEjVeAhjQ==
"@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==
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-rc8",
"@myriaddreamin/typst.ts": "0.4.2-rc8"
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
"@myriaddreamin/typst.ts": "0.4.2-rc9"
},
"devDependencies": {
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc8",
"@myriaddreamin/typst.ts": "0.4.2-rc8",
"@myriaddreamin/typst-ts-renderer": "0.4.2-rc9",
"@myriaddreamin/typst.ts": "0.4.2-rc9",
"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]rc8":
version "0.4.2-rc8"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst-ts-renderer/-/typst-ts-renderer-0.4.2-rc8.tgz#b78c8bb37f2730384d0ebe6a6bc8d5d91faf2c97"
integrity sha512-cAOCfa9RIWc84qSk3iJHhhQmliEQGpgwGyN05GU/3+PAHVZ4prUjkn+TJI09e/q6uUB742YMVcvbN30gsC0hXA==

"@myriaddreamin/[email protected]rc8":
version "0.4.2-rc8"
resolved "https://registry.yarnpkg.com/@myriaddreamin/typst.ts/-/typst.ts-0.4.2-rc8.tgz#4a9cd58bd9d033f580c070a1ba11f8f14f3c180d"
integrity sha512-SG6aZK6ufT2+4H3p+NSQr5QEm4Qp8P8cjaqfVsvT+xQmQnxP7Rgit1dNjOV6IR66aughes/myZbebpEjVeAhjQ==
"@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==
dependencies:
idb "^7.1.1"

Expand Down
6 changes: 6 additions & 0 deletions addons/vscode/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ 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.0 - [2024-03-18]

- Features:
- Upgrade to typst v0.11.0
- typst-preview is available on crate.io now. You can install it by running `cargo install typst-preview`. You can also use it as a library in your project by adding `typst-preview` to your `Cargo.toml`.

## v0.10.10 - [2024-03-13]

- Features:
Expand Down
8 changes: 7 additions & 1 deletion addons/vscode/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,13 @@ This project is not affiliated with, created by, or endorsed by Typst the brand.

## Release Notes

## v0.10.10 - [2024-03-13]
### v0.11.0 - [2024-03-18]

- Features:
- Upgrade to typst v0.11.0
- typst-preview is available on crate.io now. You can install it by running `cargo install typst-preview`. You can also use it as a library in your project by adding `typst-preview` to your `Cargo.toml`.

### v0.10.10 - [2024-03-13]

- Features:
- Upgrade to typst v0.11.0-rc1(master, 48820fe69b8061bd949847afc343bf160d05c924)
Expand Down
Loading

0 comments on commit fad7eaa

Please sign in to comment.