@swc/core 1.2.249 → 1.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/CHANGELOG.md +65 -0
  2. package/package.json +16 -14
  3. package/types.d.ts +1 -1
package/CHANGELOG.md CHANGED
@@ -5,6 +5,71 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es)** Use `paren_remover` pass (#5753) ([9c998d4](https://github.com/swc-project/swc/commit/9c998d4406fe641198092074d3ee3a859fc7b97e))
9
+
10
+
11
+ - **(es/compat)** Fix `generator` (#5796) ([aa8672e](https://github.com/swc-project/swc/commit/aa8672e73918e06ab2f7e7430ce35027ecc65cb3))
12
+
13
+
14
+ - **(node-swc)** Fix the type definition of `jsc.paths` (#5811) ([9d16293](https://github.com/swc-project/swc/commit/9d1629369b6bae5fc1d61f64c6b5fb75dea0eddf))
15
+
16
+ ### Features
17
+
18
+
19
+
20
+ - **(es/minifier)** Inline lazily initialized variables (#5737) ([ee26337](https://github.com/swc-project/swc/commit/ee26337a251ecb1fa4f369e6de614d3dc931ab5c))
21
+
22
+ ### Performance
23
+
24
+
25
+
26
+ - **(css/codegen)** Skip useless operations if not required (#5802) ([b96eb1e](https://github.com/swc-project/swc/commit/b96eb1ead8eedfeb8c3f392bf89ca5c037f1efcb))
27
+
28
+
29
+ - **(css/minifier)** Setup benchmark (#5800) ([88e59ff](https://github.com/swc-project/swc/commit/88e59ffcda6b0f00fabe80515c80cf4e0563f2bf))
30
+
31
+
32
+ - **(css/minifier)** Use `JsWord` instead of `&str` (#5806) ([7391cc9](https://github.com/swc-project/swc/commit/7391cc99b1ccfa19b56b67b4c582e9266ec9dab6))
33
+
34
+
35
+ - **(css/parser)** Use ascii operations (#5808) ([96cc888](https://github.com/swc-project/swc/commit/96cc888ef21299f6bcfdd21d576879857c3062a5))
36
+
37
+
38
+ - **(css/parser)** Remove needless branching (#5809) ([91ed13e](https://github.com/swc-project/swc/commit/91ed13e098bc53551332902e43f4d539829fb00f))
39
+
40
+
41
+ - **(css/parser)** Skip whiltespace from lexer (#5810) ([72a8b60](https://github.com/swc-project/swc/commit/72a8b608d649307c33eb9166d175fdce32750230))
42
+
43
+
44
+ - **(es/codegen)** Skip useless operations if not required (#5803) ([49942ca](https://github.com/swc-project/swc/commit/49942ca773d6fe6f44efa92625e274d01f9cdce0))
45
+
46
+ ### Refactor
47
+
48
+
49
+
50
+ - **(es/plugin)** Fix lints (#5801) ([2bbc9bd](https://github.com/swc-project/swc/commit/2bbc9bd73b6a1437b4a31d865c3eb83e44fa88c3))
51
+
52
+
53
+ - **(es/renamer)** Rename `PARALLEL` to `MANGLE` (#5790) ([21fbcb9](https://github.com/swc-project/swc/commit/21fbcb9621d88310ac297504235bd607d64b701a))
54
+
55
+
56
+ - **(swc_core)** Enable bytechecked flag (#5792) ([6f19f89](https://github.com/swc-project/swc/commit/6f19f8902f772ecc282d231dfd12c7b8d4c180fc))
57
+
58
+ ### Testing
59
+
60
+
61
+
62
+ - **(es)** Enable tests for fixed issues (#5784) ([f11461d](https://github.com/swc-project/swc/commit/f11461d3f546799113cc7bda4ac52c10e62bbaa0))
63
+
64
+
65
+ - **(es)** Add more execution tests (#5788) ([097245a](https://github.com/swc-project/swc/commit/097245a1960ee94585aaf8f10ce39947642da03c))
66
+
67
+ ## [1.2.249] - 2022-09-08
68
+
69
+ ### Bug Fixes
70
+
71
+
72
+
8
73
  - **(es/minifier)** Don't drop parameters in an exported function (#5757) ([948d708](https://github.com/swc-project/swc/commit/948d7081447c50bc78764f5fe88ec6055ebbcc9c))
9
74
 
10
75
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.249",
3
+ "version": "1.3.0",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -62,6 +62,7 @@
62
62
  "build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
63
63
  "build": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node --release",
64
64
  "build:dev": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings -p binding_core_node",
65
+ "build:bytecheck": "tsc -d && napi build --platform --cargo-name binding_core_node --js ./node-swc/src/binding.js --dts ./node-swc/src/binding.d.ts --cargo-cwd ./bindings --features swc_v1,plugin_bytecheck -p binding_core_node --cargo-flags=--no-default-features --release",
65
66
  "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
66
67
  "version": "napi version -p scripts/npm"
67
68
  },
@@ -108,6 +109,7 @@
108
109
  "axios": "^0.21.1",
109
110
  "babel-plugin-transform-node-env-inline": "^0.4.3",
110
111
  "benchmark": "^2.1.4",
112
+ "bootstrap": "^5.2.1",
111
113
  "class-validator": "^0.13.1",
112
114
  "core-js": "^2.6.11",
113
115
  "core-js-compat": "^3.21.1",
@@ -141,19 +143,19 @@
141
143
  "url": "https://opencollective.com/swc"
142
144
  },
143
145
  "optionalDependencies": {
144
- "@swc/core-win32-x64-msvc": "1.2.249",
145
- "@swc/core-darwin-x64": "1.2.249",
146
- "@swc/core-linux-x64-gnu": "1.2.249",
147
- "@swc/core-linux-x64-musl": "1.2.249",
148
- "@swc/core-freebsd-x64": "1.2.249",
149
- "@swc/core-win32-ia32-msvc": "1.2.249",
150
- "@swc/core-linux-arm64-gnu": "1.2.249",
151
- "@swc/core-linux-arm-gnueabihf": "1.2.249",
152
- "@swc/core-darwin-arm64": "1.2.249",
153
- "@swc/core-android-arm64": "1.2.249",
154
- "@swc/core-linux-arm64-musl": "1.2.249",
155
- "@swc/core-win32-arm64-msvc": "1.2.249",
156
- "@swc/core-android-arm-eabi": "1.2.249"
146
+ "@swc/core-win32-x64-msvc": "1.3.0",
147
+ "@swc/core-darwin-x64": "1.3.0",
148
+ "@swc/core-linux-x64-gnu": "1.3.0",
149
+ "@swc/core-linux-x64-musl": "1.3.0",
150
+ "@swc/core-freebsd-x64": "1.3.0",
151
+ "@swc/core-win32-ia32-msvc": "1.3.0",
152
+ "@swc/core-linux-arm64-gnu": "1.3.0",
153
+ "@swc/core-linux-arm-gnueabihf": "1.3.0",
154
+ "@swc/core-darwin-arm64": "1.3.0",
155
+ "@swc/core-android-arm64": "1.3.0",
156
+ "@swc/core-linux-arm64-musl": "1.3.0",
157
+ "@swc/core-win32-arm64-msvc": "1.3.0",
158
+ "@swc/core-android-arm-eabi": "1.3.0"
157
159
  },
158
160
  "files": [
159
161
  "CHANGELOG.md",
package/types.d.ts CHANGED
@@ -468,7 +468,7 @@ export interface JscConfig {
468
468
  };
469
469
  baseUrl?: string;
470
470
  paths?: {
471
- [from: string]: [string];
471
+ [from: string]: string[];
472
472
  };
473
473
  minify?: JsMinifyOptions;
474
474
  preserveAllComments?: boolean;