@swc/core 1.2.233 → 1.2.239

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 +122 -0
  2. package/index.js +1 -0
  3. package/package.json +18 -18
package/CHANGELOG.md CHANGED
@@ -1,6 +1,128 @@
1
1
  # Changelog
2
2
  ## [unreleased]
3
3
 
4
+ ### Bug Fixes
5
+
6
+
7
+
8
+ - **(css/prefixer)** Reduce duplicates (#5537) ([0985c15](https://github.com/swc-project/swc/commit/0985c1546b38a4072099e45af354c4534e0e23cb))
9
+
10
+ ### Features
11
+
12
+
13
+
14
+ - **(dbg-swc)** Improve minifier comparator (#5541) ([935a2fb](https://github.com/swc-project/swc/commit/935a2fbd002398a9593135fb765127d24f4e4dbb))
15
+
16
+
17
+ - **(es/minifier)** Ignore recursive usage for function calls and pure calls (#5526) ([d2f3e29](https://github.com/swc-project/swc/commit/d2f3e29bb054ffcb557fb54d535dc98640a77dc4))
18
+
19
+ ## [1.2.238] - 2022-08-17
20
+
21
+ ### Bug Fixes
22
+
23
+
24
+
25
+ - **(css/codegen)** Improve output of `@supports` (#5529) ([0f45822](https://github.com/swc-project/swc/commit/0f45822410809b1d05658057a1ce8d8b446ee28c))
26
+
27
+
28
+ - **(css/prefixer)** Handle supports (#5503) ([dc98234](https://github.com/swc-project/swc/commit/dc98234fab255a411d56a363b7a9e1d0c7ff131d))
29
+
30
+
31
+ - **(es/fixer)** Wrap first `function` or `class` of a sequence expression (#5508) ([f27ed73](https://github.com/swc-project/swc/commit/f27ed73594110b27b3937a7f5211503f0f72f3f9))
32
+
33
+
34
+ - **(es/fixer)** Fix handling of `yield` and `await` (#5533) ([7394dee](https://github.com/swc-project/swc/commit/7394deef428e15bb9b03e0113e72b8b6b2ae07bc))
35
+
36
+
37
+ - **(es/minifier)** Remove recklessly inline (#5528) ([5aa96e0](https://github.com/swc-project/swc/commit/5aa96e00d852a7a05a97be0ef625c5d798ef36da))
38
+
39
+
40
+ - **(html/minifier)** Apply `fixer` (#5514) ([1a4d755](https://github.com/swc-project/swc/commit/1a4d7553b8688e567d1a5a3b0f51a1f50eb3810a))
41
+
42
+ ### Features
43
+
44
+
45
+
46
+ - **(api/rust)** Implement more traits for public types (#5488) ([75c8e09](https://github.com/swc-project/swc/commit/75c8e09d6d412e1012a921d9f3932d6f253781e6))
47
+
48
+
49
+ - **(css/prefixer)** Support more env properties and values (#5512) ([674c788](https://github.com/swc-project/swc/commit/674c788654714512000c64abf1a088e0f9f2820b))
50
+
51
+
52
+ - **(es/plugin/runner)** Add more traces for the plugin host (#5538) ([d46418b](https://github.com/swc-project/swc/commit/d46418bb470761db48cd1a3e50578d4e1e82e577))
53
+
54
+
55
+ - **(es/react)** Add `VisitMut` bound to the return type of react preset (#5499) ([14606d9](https://github.com/swc-project/swc/commit/14606d92225c67145d484f30902d798297a4ffe2))
56
+
57
+ ### Testing
58
+
59
+
60
+
61
+ - **(es/minifier)** Remove useless, slow tests (#5502) ([69ce1b2](https://github.com/swc-project/swc/commit/69ce1b24d5ed1e6699678363195e1c2f8d2c7eee))
62
+
63
+ ## [1.2.237] - 2022-08-17
64
+
65
+ ### Bug Fixes
66
+
67
+
68
+
69
+ - **(es/plugin/runner)** Provide guest memory allocator for the sourcemap (#5517) ([3bdb39c](https://github.com/swc-project/swc/commit/3bdb39c0eea3c8c5473ff6034be7f7f44d9ba9e7))
70
+
71
+
72
+ - **(es/plugin/runner)** Revert wasmer@3 (#5521) ([4a9b1dd](https://github.com/swc-project/swc/commit/4a9b1dde1aaf84e233a9d1a59a1de539706e652b))
73
+
74
+ ### Features
75
+
76
+
77
+
78
+ - **(bindings)** Update `swc_core` (#5518) ([b37b640](https://github.com/swc-project/swc/commit/b37b64013354d621b47bddca6e3bf6294f29b11d))
79
+
80
+
81
+ - **(bindings)** Bump `swc_core` (#5525) ([ac60c0a](https://github.com/swc-project/swc/commit/ac60c0a2a01009a29ab71e7805eb8ee2aad40b34))
82
+
83
+ ## [1.2.235] - 2022-08-16
84
+
85
+ ### Bug Fixes
86
+
87
+
88
+
89
+ - **(plugin/proxy)** Fix a compilation attribute (#5495) ([ca82f64](https://github.com/swc-project/swc/commit/ca82f64b0e4a550be86bd36d61b3e358b14a720a))
90
+
91
+
92
+ - **(swc_core)** Revert crate version metadata patch (#5501) ([ef1f259](https://github.com/swc-project/swc/commit/ef1f259a93495128947e2010998b0f879e59a538))
93
+
94
+ ### Features
95
+
96
+
97
+
98
+ - **(bindings)** Update `swc_core` (#5510) ([b9f88ff](https://github.com/swc-project/swc/commit/b9f88ff7203e0143de78f43ec0a4770907fa42da))
99
+
100
+
101
+ - **(es/compat)** Fix syntax context of transpiled class methods (#5498) ([b9933b1](https://github.com/swc-project/swc/commit/b9933b159a208a0bccbb9bf7cd9383b6a9be0e51))
102
+
103
+
104
+ - **(es/plugin)** Update `wasmer` to 3 (#5456) ([92f006c](https://github.com/swc-project/swc/commit/92f006c9a033bf4a49b48e842fd0668a96a13c61))
105
+
106
+
107
+ - **(swc_core)** Provide build-time metadata diagnostics (#5494) ([808e68b](https://github.com/swc-project/swc/commit/808e68b4b1cdbaff6a38cbec6d8b07c406d7d550))
108
+
109
+ ### Refactor
110
+
111
+
112
+
113
+ - **(bindings)** Use separate workspace for bindings (#5506) ([496346a](https://github.com/swc-project/swc/commit/496346ac04483581c29444e205392c479e1f8c4b))
114
+
115
+
116
+ - **(bindings)** Merge cargo workspace (#5511) ([bbf9e2f](https://github.com/swc-project/swc/commit/bbf9e2f24363094819c7d0aa390122db85645f39))
117
+
118
+ ### Build
119
+
120
+
121
+
122
+ - **(swc_core)** Bump up `rkyv` (#5507) ([becc3ae](https://github.com/swc-project/swc/commit/becc3aebf2469cc29ddfce0c082470d06a6117df))
123
+
124
+ ## [1.2.233] - 2022-08-15
125
+
4
126
  ### Build
5
127
 
6
128
 
package/index.js CHANGED
@@ -54,6 +54,7 @@ const assert = __importStar(require("assert"));
54
54
  // Allow overrides to the location of the .node binding file
55
55
  const bindingsOverride = process.env["SWC_BINARY_PATH"];
56
56
  // `@swc/core` includes d.ts for the `@swc/wasm` to provide typed fallback bindings
57
+ // todo: fix package.json scripts
57
58
  let fallbackBindings;
58
59
  const bindings = (() => {
59
60
  let binding;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.233",
3
+ "version": "1.2.239",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -59,9 +59,9 @@
59
59
  "prepublishOnly": "tsc -d && napi prepublish -p scripts/npm --tagstyle npm",
60
60
  "pack": "wasm-pack",
61
61
  "build:ts": "tsc -d",
62
- "build:wasm": "npm-run-all \"pack -- build ./crates/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
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 -p binding_core_node --release",
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 -p binding_core_node",
62
+ "build:wasm": "npm-run-all \"pack -- build ./bindings/binding_core_wasm --scope swc {1} -t {2} --features plugin\" --",
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/binding_core_node --release",
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/binding_core_node",
65
65
  "test": "cross-env NODE_OPTIONS='--experimental-vm-modules' jest --config ./node-swc/jest.config.js",
66
66
  "version": "napi version -p scripts/npm"
67
67
  },
@@ -138,19 +138,19 @@
138
138
  "url": "https://opencollective.com/swc"
139
139
  },
140
140
  "optionalDependencies": {
141
- "@swc/core-win32-x64-msvc": "1.2.233",
142
- "@swc/core-darwin-x64": "1.2.233",
143
- "@swc/core-linux-x64-gnu": "1.2.233",
144
- "@swc/core-linux-x64-musl": "1.2.233",
145
- "@swc/core-freebsd-x64": "1.2.233",
146
- "@swc/core-win32-ia32-msvc": "1.2.233",
147
- "@swc/core-linux-arm64-gnu": "1.2.233",
148
- "@swc/core-linux-arm-gnueabihf": "1.2.233",
149
- "@swc/core-darwin-arm64": "1.2.233",
150
- "@swc/core-android-arm64": "1.2.233",
151
- "@swc/core-linux-arm64-musl": "1.2.233",
152
- "@swc/core-win32-arm64-msvc": "1.2.233",
153
- "@swc/core-android-arm-eabi": "1.2.233"
141
+ "@swc/core-win32-x64-msvc": "1.2.239",
142
+ "@swc/core-darwin-x64": "1.2.239",
143
+ "@swc/core-linux-x64-gnu": "1.2.239",
144
+ "@swc/core-linux-x64-musl": "1.2.239",
145
+ "@swc/core-freebsd-x64": "1.2.239",
146
+ "@swc/core-win32-ia32-msvc": "1.2.239",
147
+ "@swc/core-linux-arm64-gnu": "1.2.239",
148
+ "@swc/core-linux-arm-gnueabihf": "1.2.239",
149
+ "@swc/core-darwin-arm64": "1.2.239",
150
+ "@swc/core-android-arm64": "1.2.239",
151
+ "@swc/core-linux-arm64-musl": "1.2.239",
152
+ "@swc/core-win32-arm64-msvc": "1.2.239",
153
+ "@swc/core-android-arm-eabi": "1.2.239"
154
154
  },
155
155
  "files": [
156
156
  "CHANGELOG.md",
@@ -171,6 +171,6 @@
171
171
  "spack.d.ts",
172
172
  "types.js",
173
173
  "postinstall.js",
174
- "crates/binding_core_wasm/pkg/binding_core_wasm.d.ts"
174
+ "bindings/binding_core_wasm/pkg/binding_core_wasm.d.ts"
175
175
  ]
176
176
  }