@swc/core 1.3.35 → 1.3.36

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 +50 -0
  2. package/index.js +3 -1
  3. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -5,6 +5,56 @@
5
5
 
6
6
 
7
7
 
8
+ - **(bindings/cli)** Rename `--config` to `--config-json` (#6932) ([cb4436b](https://github.com/swc-project/swc/commit/cb4436bd6ed085bdf1f0d98776f166bf2a6275c9))
9
+
10
+
11
+ - **(bindings/node)** Treat `.cts` and `.mts` as input by default (#6959) ([d5c0dec](https://github.com/swc-project/swc/commit/d5c0dec40c1bb46bb5674242aa0a85f51c0826f7))
12
+
13
+
14
+ - **(bundler)** Don't panic while finding exports (#6947) ([542bb62](https://github.com/swc-project/swc/commit/542bb62ef78a999fe6c636be821427691ce0b071))
15
+
16
+
17
+ - **(css/modules)** Fix CSS `animation` on CSS Modules (#6969) ([4771aa2](https://github.com/swc-project/swc/commit/4771aa206a6aa8c48f41eeafba12040c04358885))
18
+
19
+
20
+ - **(es/minifier)** Fix `toFixed`, `toPrecision`, `toExponential` and `toString` of Number (#6960) ([9382bda](https://github.com/swc-project/swc/commit/9382bda786613abf15cecb0bf3531dd68bb6166b))
21
+
22
+
23
+ - **(es/minifier)** Fix optimization of expressions in numeric context (#6965) ([1dfadb8](https://github.com/swc-project/swc/commit/1dfadb87907ef24c7b4d5184f24f30e028c1cef2))
24
+
25
+
26
+ - **(es/module)** Fix `jsc.paths` on Windows (#6930) ([1ec161a](https://github.com/swc-project/swc/commit/1ec161a0f15886f97d4fb9cbb5d115b29ed5e2a2))
27
+
28
+
29
+ - **(es/react)** Fix handling of whitespaces (#6935) ([a9b25aa](https://github.com/swc-project/swc/commit/a9b25aaf4a776731d3ef2dc3c192a7b18023e765))
30
+
31
+
32
+ - **(es/react)** Don't panic on `key` without a value (#6945) ([14454c9](https://github.com/swc-project/swc/commit/14454c9dbd222cabb8c6eeafa9c664c34030a121))
33
+
34
+
35
+ - **(es/resolver)** Use type context for `export =` if it's unresolved (#6963) ([e946c43](https://github.com/swc-project/swc/commit/e946c43f4e0640bb7ad2470c9c5979583ced2e23))
36
+
37
+ ### Features
38
+
39
+
40
+
41
+ - **(es/minifier)** Drop unused import bindings (#6967) ([a27ffd2](https://github.com/swc-project/swc/commit/a27ffd22423af6e85fa821c2bb3bbd01e199f472))
42
+
43
+ ### Miscellaneous Tasks
44
+
45
+
46
+
47
+ - **(bot)** Allow org members to use bump comments (#6942) ([0324d5a](https://github.com/swc-project/swc/commit/0324d5a78b8d47b8948f4011c0dd982ff43a2203))
48
+
49
+
50
+ - **(swc_nodejs_common)** Remove swc_node_base from swc_nodejs_common (#6940) ([0771418](https://github.com/swc-project/swc/commit/0771418dd0310a7e05bfad76baf4e16cd289351e))
51
+
52
+ ## [1.3.35] - 2023-02-10
53
+
54
+ ### Bug Fixes
55
+
56
+
57
+
8
58
  - **(es/minifier)** Don't skip shorthand properties from sequential inliner (#6918) ([725d3fb](https://github.com/swc-project/swc/commit/725d3fb645976681bc11b1df943f3ca1008788ab))
9
59
 
10
60
 
package/index.js CHANGED
@@ -419,7 +419,9 @@ exports.DEFAULT_EXTENSIONS = Object.freeze([
419
419
  ".es",
420
420
  ".mjs",
421
421
  ".ts",
422
- ".tsx"
422
+ ".tsx",
423
+ ".cts",
424
+ ".mts"
423
425
  ]);
424
426
  function toBuffer(t) {
425
427
  return Buffer.from(JSON.stringify(t));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.35",
3
+ "version": "1.3.36",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -138,16 +138,16 @@
138
138
  "url": "https://opencollective.com/swc"
139
139
  },
140
140
  "optionalDependencies": {
141
- "@swc/core-win32-x64-msvc": "1.3.35",
142
- "@swc/core-darwin-x64": "1.3.35",
143
- "@swc/core-linux-x64-gnu": "1.3.35",
144
- "@swc/core-linux-x64-musl": "1.3.35",
145
- "@swc/core-win32-ia32-msvc": "1.3.35",
146
- "@swc/core-linux-arm64-gnu": "1.3.35",
147
- "@swc/core-linux-arm-gnueabihf": "1.3.35",
148
- "@swc/core-darwin-arm64": "1.3.35",
149
- "@swc/core-linux-arm64-musl": "1.3.35",
150
- "@swc/core-win32-arm64-msvc": "1.3.35"
141
+ "@swc/core-win32-x64-msvc": "1.3.36",
142
+ "@swc/core-darwin-x64": "1.3.36",
143
+ "@swc/core-linux-x64-gnu": "1.3.36",
144
+ "@swc/core-linux-x64-musl": "1.3.36",
145
+ "@swc/core-win32-ia32-msvc": "1.3.36",
146
+ "@swc/core-linux-arm64-gnu": "1.3.36",
147
+ "@swc/core-linux-arm-gnueabihf": "1.3.36",
148
+ "@swc/core-darwin-arm64": "1.3.36",
149
+ "@swc/core-linux-arm64-musl": "1.3.36",
150
+ "@swc/core-win32-arm64-msvc": "1.3.36"
151
151
  },
152
152
  "files": [
153
153
  "CHANGELOG.md",