1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-24 16:19:12 -05:00

chore: update deno_* crates (#12020)

This commit is contained in:
Kitson Kelly 2021-09-13 10:06:36 +10:00 committed by GitHub
parent 2cc1577d28
commit a442821d97
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 41 additions and 45 deletions

68
Cargo.lock generated
View file

@ -649,9 +649,9 @@ dependencies = [
[[package]]
name = "deno_ast"
version = "0.1.6"
version = "0.2.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "2322427a9a5ac45c586231457a10715268fdac24ec89d41ba14a347db99fe770"
checksum = "427e7091c1fd8a13b002824f43773b6ef2d5c8ded445ee20013bea7f6ca8bc5b"
dependencies = [
"data-url",
"dprint-swc-ecma-ast-view",
@ -730,9 +730,9 @@ dependencies = [
[[package]]
name = "deno_doc"
version = "0.13.0"
version = "0.14.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f1456673bbb10085534055a40004090f081af391bd21f117f1d9ee611adb1a53"
checksum = "3afa937c8bd6a5055a7688d4e9ea1de65947b399ae0f60504ad93277d238facf"
dependencies = [
"cfg-if 1.0.0",
"deno_ast",
@ -775,9 +775,9 @@ dependencies = [
[[package]]
name = "deno_graph"
version = "0.4.0"
version = "0.5.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "3c9e150f0e8a39fb5c4c2bc019b052dca18fd648c75674949db6f5d35f5abe72"
checksum = "be296aae1be28b1f7cea57ce4283abbb04c5013b146410e63b169a96e6b4e184"
dependencies = [
"anyhow",
"cfg-if 1.0.0",
@ -810,9 +810,9 @@ dependencies = [
[[package]]
name = "deno_lint"
version = "0.15.1"
version = "0.16.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "aab27202e3c7a5bcc959ede0cfe7aef75ce57bf43c1f2124d921c0383bbc58f8"
checksum = "32634706476ab0da1839d866b3f1765639afc894299bf96b83c980913c78275e"
dependencies = [
"anyhow",
"deno_ast",
@ -3471,9 +3471,9 @@ dependencies = [
[[package]]
name = "swc_ecma_codegen"
version = "0.70.0"
version = "0.70.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "39e1c6d22c400be1e512321ab8190747d74e0aebfedbea3991011ef1ee767f67"
checksum = "7940bff62e5caf62fe6732ce4f07e52c3c208cb58cd9299f7f7c92dddab2bf72"
dependencies = [
"bitflags",
"num-bigint",
@ -3500,9 +3500,9 @@ dependencies = [
[[package]]
name = "swc_ecma_dep_graph"
version = "0.39.0"
version = "0.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "f4361e5514224618db7aed966268fd6afe2b9a04d353197a3ab3cefc272c7c6a"
checksum = "c20a594158fbaa00e039867f96183e4daa5a867fa21331a3655c90789f2df6b3"
dependencies = [
"swc_atoms",
"swc_common",
@ -3527,9 +3527,9 @@ dependencies = [
[[package]]
name = "swc_ecma_parser"
version = "0.70.1"
version = "0.70.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "bd061e1df02f5cf2a8ec788d79a9c5bd90b4deb3e59c849a325dce6ca8725ef8"
checksum = "042a901352b84cefbb64916a010ee33f621a7e341ced2b2fa60035858f3146a5"
dependencies = [
"either",
"enum_kind",
@ -3548,9 +3548,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms"
version = "0.71.0"
version = "0.71.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0b10595701693c55154e129b7d78c142f0391363a9855bb465ca5c757e7e43a"
checksum = "b2124504a4203cab8f903b8e8be49dbd6c4bad2b0405ba0c8188f952c224c44b"
dependencies = [
"swc_atoms",
"swc_common",
@ -3568,9 +3568,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_base"
version = "0.31.0"
version = "0.31.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "5e3c5519bcd00912e149d5d163468fd219fe143abc2ed642da1c0f8c97efc58a"
checksum = "b26e191df68943565f22059d31b02967e60a62c4f76533b5b5106546785a8e2e"
dependencies = [
"fxhash",
"once_cell",
@ -3587,9 +3587,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_classes"
version = "0.17.0"
version = "0.17.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4fab5a6996e92cd9afcd4c9e0288d18ab6ce1265c0fccfdc050c75267f362f01"
checksum = "ad5a845d5ec140ba8580c6b8d0f51ce417b86395a7b74c4280bb6cdae3c042c6"
dependencies = [
"swc_atoms",
"swc_common",
@ -3601,9 +3601,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_optimization"
version = "0.41.0"
version = "0.41.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "4b7c74c58f17c4ec08709e2d2847e9d836803dfeb7606debd50bee82061bcbe6"
checksum = "ea2600bc3bd557353511cd90b336943ae30e8807bce989a420cb004953fb940a"
dependencies = [
"dashmap",
"fxhash",
@ -3623,9 +3623,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_proposal"
version = "0.38.0"
version = "0.38.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "503d521523c2d399ab198dbd2e19adc62ffb3093c18398a31e5f7bec224c1b35"
checksum = "637093e49ee993b16fb7bf8918f3d409c986fc77850440a3c779de85d1442cfb"
dependencies = [
"either",
"fxhash",
@ -3643,9 +3643,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_react"
version = "0.39.0"
version = "0.39.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "128c04b250a62a5d44b4e91e065688cc691c7906cd98d5a90ad9b82c4d393dc2"
checksum = "18bf8799eb49b25f0632b9e60b7871b3f77e18fecb1972e4932ba08005b5c85f"
dependencies = [
"base64 0.13.0",
"dashmap",
@ -3666,9 +3666,9 @@ dependencies = [
[[package]]
name = "swc_ecma_transforms_typescript"
version = "0.40.0"
version = "0.40.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b0dad652b9e8071c869277527df626e5e0d5213d3cb939c32c872a3531af1d81"
checksum = "98099e3db58fb758715736ea9c8fa68d238e6527f0bfb4a3af0bf7ea063b9162"
dependencies = [
"fxhash",
"serde",
@ -3683,9 +3683,9 @@ dependencies = [
[[package]]
name = "swc_ecma_utils"
version = "0.44.0"
version = "0.44.2"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "0435a50d1c728a65b2f84a20b6997e977ce39a445b379c8eb936133682a7febe"
checksum = "3c811bca37142f7fe21ce800784db1d537645762ffe8d8a52e2a7179d8cc1723"
dependencies = [
"once_cell",
"scoped-tls",
@ -3698,9 +3698,9 @@ dependencies = [
[[package]]
name = "swc_ecma_visit"
version = "0.38.0"
version = "0.38.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "b007dfbb41e090fd9d5704d86c9b56a73b6a5b201adf2aed14715a003917df04"
checksum = "78c6721dfbcb8bea64383edb0d59ccb02bc1e140024f2e0f8766792a14f5f466"
dependencies = [
"num-bigint",
"swc_atoms",
@ -3711,9 +3711,9 @@ dependencies = [
[[package]]
name = "swc_ecmascript"
version = "0.63.0"
version = "0.63.1"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "8a4a6b2c048fb7740fd84c4974049d31e2b5ba423c580b2794fad2efd7fdfa4e"
checksum = "ba53c5582d6e5881b093ece9aaa4b561465afab0560abb19948f2c4bbff1bdb9"
dependencies = [
"swc_ecma_ast",
"swc_ecma_codegen",

View file

@ -43,11 +43,11 @@ winapi = "0.3.9"
winres = "0.1.11"
[dependencies]
deno_ast = { version = "0.1.6", features = ["bundler", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] }
deno_ast = { version = "0.2.0", features = ["bundler", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] }
deno_core = { version = "0.98.0", path = "../core" }
deno_doc = "0.13.0"
deno_graph = "0.4.0"
deno_lint = { version = "0.15.1", features = ["docs"] }
deno_doc = "0.14.0"
deno_graph = "0.5.0"
deno_lint = { version = "0.16.0", features = ["docs"] }
deno_runtime = { version = "0.24.0", path = "../runtime" }
deno_tls = { version = "0.3.0", path = "../ext/tls" }

View file

@ -1,4 +1,3 @@
use deno_ast::swc::common::BytePos;
use deno_ast::Diagnostic;
use deno_ast::MediaType;
use deno_ast::ParsedSource;
@ -36,7 +35,7 @@ impl DocumentSource {
inner: Arc::new(DocumentSourceInner {
specifier: specifier.clone(),
media_type,
text_info: SourceTextInfo::new(BytePos(0), text),
text_info: SourceTextInfo::new(text),
parsed_module: OnceCell::new(),
line_index,
}),

View file

@ -308,7 +308,7 @@ impl Module {
specifier: cached_module.specifier,
maybe_import_map,
media_type,
text_info: SourceTextInfo::new(BytePos(0), cached_module.source),
text_info: SourceTextInfo::new(cached_module.source),
source_path: cached_module.source_path,
maybe_emit: cached_module.maybe_emit,
maybe_emit_path: cached_module.maybe_emit_path,

View file

@ -424,10 +424,7 @@ fn extract_files_from_source_comments(
) -> Result<Vec<File>, AnyError> {
let parsed_source = deno_ast::parse_module(deno_ast::ParseParams {
specifier: specifier.as_str().to_string(),
source: deno_ast::SourceTextInfo::new(
deno_ast::swc::common::BytePos(0),
source,
),
source: deno_ast::SourceTextInfo::new(source),
media_type,
capture_tokens: false,
maybe_syntax: None,