build: bump typst.ts to v0.5.0-rc7 (#554)

* dev: sync typ_server code

* build: bump typst.ts to v0.5.0-rc7
This commit is contained in:
Myriad-Dreamin 2024-08-25 17:43:54 +08:00 committed by GitHub
parent b67cec2918
commit fbd22d2601
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
39 changed files with 270 additions and 370 deletions

View file

@ -56,12 +56,7 @@ insta.workspace = true
serde.workspace = true
serde_json.workspace = true
typst-assets = { workspace = true, features = ["fonts"] }
typst-ts-core = { workspace = true, default-features = false, features = [
"flat-vector",
"vector-bbox",
"no-content-hint",
] }
typst-ts-compiler.workspace = true
reflexo-typst.workspace = true
sha2 = { version = "0.10" }
hex = { version = "0.4" }

View file

@ -196,8 +196,7 @@ impl BibWorker {
mod tests {
use std::path::Path;
use typst::syntax::VirtualPath;
use typst_ts_core::TypstFileId;
use typst::syntax::{FileId, VirtualPath};
#[test]
fn yaml_bib_test() {
@ -211,7 +210,7 @@ Euclid2:
"#;
let yaml = super::YamlBib::from_content(
content,
TypstFileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
FileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
);
assert_eq!(yaml.entries.len(), 2);
assert_eq!(yaml.entries[0].0, "Euclid");
@ -228,7 +227,7 @@ Euclid3
"#;
super::YamlBib::from_content(
content,
TypstFileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
FileId::new_fake(VirtualPath::new(Path::new("test.yml"))),
);
}
}

View file

@ -175,7 +175,7 @@ impl<'a, 'w> ReferencesWorker<'a, 'w> {
#[cfg(test)]
mod tests {
use typst_ts_core::path::unix_slash;
use reflexo::path::unix_slash;
use super::*;
use crate::syntax::find_module_level_docs;

View file

@ -8,24 +8,20 @@ use std::{
};
use once_cell::sync::Lazy;
pub use serde::Serialize;
use serde_json::{ser::PrettyFormatter, Serializer, Value};
use typst::syntax::{
ast::{self, AstNode},
FileId as TypstFileId, LinkedNode, Source, SyntaxKind, VirtualPath,
};
use typst::{diag::PackageError, foundations::Bytes};
use typst_ts_compiler::{
use reflexo_typst::config::CompileOpts;
use reflexo_typst::package::{PackageRegistry, PackageSpec};
use reflexo_typst::world::{EntryOpts, EntryState};
use reflexo_typst::{
CompileDriver, EntryManager, EntryReader, ShadowApi, TypstSystemUniverse, WorldDeps,
};
use typst_ts_core::{
config::compiler::{EntryOpts, EntryState},
package::Registry,
};
use typst_ts_core::{config::CompileOpts, package::PackageSpec};
use serde_json::{ser::PrettyFormatter, Serializer, Value};
use typst::syntax::ast::{self, AstNode};
use typst::syntax::{FileId as TypstFileId, LinkedNode, Source, SyntaxKind, VirtualPath};
use typst::{diag::PackageError, foundations::Bytes};
pub use insta::assert_snapshot;
pub use typst_ts_compiler::TypstSystemWorld;
pub use reflexo_typst::TypstSystemWorld;
pub use serde::Serialize;
use crate::{
analysis::{Analysis, AnalysisResources},