diff options
author | David Sherret <dsherret@users.noreply.github.com> | 2023-04-21 17:16:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-21 21:16:25 +0000 |
commit | cf9fb18494d67526eb910cad68f8b364432fe584 (patch) | |
tree | fb06a0cc81b30cc6bf2230dfcfdc643b6458f007 /cli | |
parent | 4a33c349afd4b2728eb8c3c29676651353282d3b (diff) |
feat: upgrade deno_ast to 0.26 (#18795)
Closes #18792
Diffstat (limited to 'cli')
-rw-r--r-- | cli/Cargo.toml | 12 | ||||
-rw-r--r-- | cli/tests/testdata/bundle/decorators/ts_decorators.out | 12 |
2 files changed, 12 insertions, 12 deletions
diff --git a/cli/Cargo.toml b/cli/Cargo.toml index a792f7a3a..64ce5fce7 100644 --- a/cli/Cargo.toml +++ b/cli/Cargo.toml @@ -42,10 +42,10 @@ winres.workspace = true [dependencies] deno_ast = { workspace = true, features = ["bundler", "cjs", "codegen", "dep_graph", "module_specifier", "proposal", "react", "sourcemap", "transforms", "typescript", "view", "visit"] } deno_core = { workspace = true, features = ["include_js_files_for_snapshotting"] } -deno_doc = "0.61.0" -deno_emit = "0.19.0" -deno_graph = "=0.47.1" -deno_lint = { version = "0.43.0", features = ["docs"] } +deno_doc = "0.62.0" +deno_emit = "0.20.0" +deno_graph = "=0.48.0" +deno_lint = { version = "0.44.0", features = ["docs"] } deno_lockfile.workspace = true deno_npm = "0.3.0" deno_runtime = { workspace = true, features = ["dont_create_runtime_snapshot", "include_js_files_for_snapshotting"] } @@ -67,10 +67,10 @@ data-url.workspace = true dissimilar = "=1.0.4" dprint-plugin-json = "=0.17.0" dprint-plugin-markdown = "=0.15.2" -dprint-plugin-typescript = "=0.84.0" +dprint-plugin-typescript = "=0.84.2" encoding_rs.workspace = true env_logger = "=0.9.0" -eszip = "=0.40.0" +eszip = "=0.41.0" fancy-regex = "=0.10.0" flate2.workspace = true fs3.workspace = true diff --git a/cli/tests/testdata/bundle/decorators/ts_decorators.out b/cli/tests/testdata/bundle/decorators/ts_decorators.out index 2f503fdd0..e988aadd3 100644 --- a/cli/tests/testdata/bundle/decorators/ts_decorators.out +++ b/cli/tests/testdata/bundle/decorators/ts_decorators.out @@ -3,12 +3,12 @@ // deno-lint-ignore-file // This code was bundled using `deno bundle` and it's not recommended to edit it manually -var __decorate = this && this.__decorate || function(decorators, target, key, desc) { +function _ts_decorate(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -}; +} function a() { console.log("a(): evaluated"); return (_target, _propertyKey, _descriptor)=>{ @@ -20,15 +20,15 @@ class B { console.log("method"); } } -__decorate([ +_ts_decorate([ a() ], B.prototype, "method", null); -var __decorate1 = this && this.__decorate || function(decorators, target, key, desc) { +function _ts_decorate1(decorators, target, key, desc) { var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); else for(var i = decorators.length - 1; i >= 0; i--)if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; return c > 3 && r && Object.defineProperty(target, key, r), r; -}; +} function Decorator() { return function(target, propertyKey, descriptor) { const originalFn = descriptor.value; @@ -41,7 +41,7 @@ function Decorator() { class SomeClass { async test() {} } -__decorate1([ +_ts_decorate1([ Decorator() ], SomeClass.prototype, "test", null); new SomeClass().test(); |