1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-21 15:04:11 -05:00

feat: upgrade to swc_ecmascript 0.137.0 (#14067)

This commit is contained in:
David Sherret 2022-03-22 09:19:53 -04:00 committed by GitHub
parent 12d28dffc6
commit 49012cbc33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 341 additions and 209 deletions

519
Cargo.lock generated

File diff suppressed because it is too large Load diff

View file

@ -45,11 +45,11 @@ winapi = "=0.3.9"
winres = "=0.1.11"
[dependencies]
deno_ast = { version = "0.12.0", features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "transpiling", "typescript", "view", "visit"] }
deno_ast = { version = "0.13.0", features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "transpiling", "typescript", "view", "visit"] }
deno_core = { version = "0.124.0", path = "../core" }
deno_doc = "0.32.0"
deno_graph = "0.24.0"
deno_lint = { version = "0.26.0", features = ["docs"] }
deno_doc = "0.33.0"
deno_graph = "0.25.0"
deno_lint = { version = "0.28.0", features = ["docs"] }
deno_runtime = { version = "0.50.0", path = "../runtime" }
deno_task_shell = "0.1.9"
@ -64,10 +64,10 @@ data-url = "=0.1.1"
dissimilar = "=1.0.2"
dprint-plugin-json = "=0.14.1"
dprint-plugin-markdown = "=0.12.2"
dprint-plugin-typescript = "=0.64.3"
dprint-plugin-typescript = "=0.65.1"
encoding_rs = "=0.8.29"
env_logger = "=0.8.4"
eszip = "=0.17.0"
eszip = "=0.18.0"
fancy-regex = "=0.7.1"
http = "=0.2.4"
import_map = "=0.9.0"
@ -78,7 +78,7 @@ lspower = "=1.4.0"
node_resolver = "=0.1.1"
notify = "=5.0.0-pre.12"
num-format = "=0.4.0"
once_cell = "=1.9.0"
once_cell = "=1.10.0"
percent-encoding = "=2.1.0"
pin-project = "=1.0.8"
rand = { version = "=0.8.4", features = ["small_rng"] }

View file

@ -743,9 +743,8 @@ pub(crate) fn bundle(
if options.emit_ignore_directives {
// write leading comments in bundled file
use swc::codegen::text_writer::WriteJs;
use swc::common::source_map::DUMMY_SP;
let cmt = IGNORE_DIRECTIVES.join("\n") + "\n";
wr.write_comment(DUMMY_SP, &cmt)?;
wr.write_comment(&cmt)?;
}
let mut emitter = swc::codegen::Emitter {

View file

@ -19,7 +19,7 @@ futures = "0.3.21"
indexmap = "1.7.0"
libc = "0.2.106"
log = "0.4.14"
once_cell = "=1.9.0"
once_cell = "1.10.0"
parking_lot = "0.11.1"
pin-project = "1.0.7"
serde = { version = "1.0.129", features = ["derive"] }
@ -34,5 +34,5 @@ path = "examples/http_bench_json_ops.rs"
# These dependencies are only used for the 'http_bench_*_ops' examples.
[dev-dependencies]
deno_ast = { version = "0.12.0", features = ["transpiling"] }
deno_ast = { version = "0.13.0", features = ["transpiling"] }
tokio = { version = "1.10.1", features = ["full"] }

View file

@ -24,7 +24,7 @@ deno_core = { version = "0.124.0", path = "../../core" }
deno_web = { version = "0.73.0", path = "../web" }
elliptic-curve = { version = "0.10.6", features = ["std", "pem"] }
num-traits = "0.2.14"
once_cell = "=1.9.0"
once_cell = "1.10.0"
p256 = { version = "0.9.0", features = ["ecdh"] }
p384 = "0.8.0"
rand = "0.8.4"

View file

@ -15,7 +15,7 @@ path = "lib.rs"
[dependencies]
deno_core = { version = "0.124.0", path = "../../core" }
once_cell = "=1.9.0"
once_cell = "1.10.0"
rustls = { version = "0.20", features = ["dangerous_configuration"] }
rustls-native-certs = "0.6.1"
rustls-pemfile = "0.3"

View file

@ -73,7 +73,7 @@ log = "0.4.14"
lzzzz = '=0.8.0'
netif = "0.1.3"
notify = "=5.0.0-pre.12"
once_cell = "=1.9.0"
once_cell = "1.10.0"
regex = "1.5.5"
ring = "0.16.20"
serde = { version = "1.0.129", features = ["derive"] }

View file

@ -14,12 +14,14 @@ use deno_http::http_create_conn_resource;
use deno_http::HttpRequestReader;
use deno_http::HttpStreamResource;
use deno_net::io::TcpStreamResource;
use deno_net::io::UnixStreamResource;
use deno_net::ops_tls::TlsStream;
use deno_net::ops_tls::TlsStreamResource;
use hyper::upgrade::Parts;
use serde::Serialize;
use tokio::net::TcpStream;
#[cfg(unix)]
use deno_net::io::UnixStreamResource;
#[cfg(unix)]
use tokio::net::UnixStream;