@swc/core 1.3.35 → 1.3.37

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 +76 -0
  2. package/index.js +3 -1
  3. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -5,6 +5,82 @@
5
5
 
6
6
 
7
7
 
8
+ - **(bindings/cli)** Implement `source-file-name` and `source-root` options (#6973) ([3e3e41a](https://github.com/swc-project/swc/commit/3e3e41a1756519515df193db903f6992995420e9))
9
+
10
+
11
+ - **(css/utils)** Fix minification of class names with whitespace (#6983) ([cc1d9bd](https://github.com/swc-project/swc/commit/cc1d9bd567340203d5d2bd228a4d0b19f8052202))
12
+
13
+
14
+ - **(es/decorator)** Preserve evaluation order (#6972) ([703b340](https://github.com/swc-project/swc/commit/703b340d39c3efb69f4a0d375ab6e5a2f9a4acd9))
15
+
16
+ ### Miscellaneous Tasks
17
+
18
+
19
+
20
+ - **(es/parser)** Reduce pre-allocation to reduce memory usage (#6979) ([f1e7a2a](https://github.com/swc-project/swc/commit/f1e7a2a9cc74b19597e9d7105852daf4672514a2))
21
+
22
+ ### Testing
23
+
24
+
25
+
26
+ - **(es/tsc)** Update tsc test suite (#6982) ([b887b30](https://github.com/swc-project/swc/commit/b887b30092c77ec67eedb7f1dd0b5570a1a16eea))
27
+
28
+ ## [1.3.36] - 2023-02-21
29
+
30
+ ### Bug Fixes
31
+
32
+
33
+
34
+ - **(bindings/cli)** Rename `--config` to `--config-json` (#6932) ([cb4436b](https://github.com/swc-project/swc/commit/cb4436bd6ed085bdf1f0d98776f166bf2a6275c9))
35
+
36
+
37
+ - **(bindings/node)** Treat `.cts` and `.mts` as input by default (#6959) ([d5c0dec](https://github.com/swc-project/swc/commit/d5c0dec40c1bb46bb5674242aa0a85f51c0826f7))
38
+
39
+
40
+ - **(bundler)** Don't panic while finding exports (#6947) ([542bb62](https://github.com/swc-project/swc/commit/542bb62ef78a999fe6c636be821427691ce0b071))
41
+
42
+
43
+ - **(css/modules)** Fix CSS `animation` on CSS Modules (#6969) ([4771aa2](https://github.com/swc-project/swc/commit/4771aa206a6aa8c48f41eeafba12040c04358885))
44
+
45
+
46
+ - **(es/minifier)** Fix `toFixed`, `toPrecision`, `toExponential` and `toString` of Number (#6960) ([9382bda](https://github.com/swc-project/swc/commit/9382bda786613abf15cecb0bf3531dd68bb6166b))
47
+
48
+
49
+ - **(es/minifier)** Fix optimization of expressions in numeric context (#6965) ([1dfadb8](https://github.com/swc-project/swc/commit/1dfadb87907ef24c7b4d5184f24f30e028c1cef2))
50
+
51
+
52
+ - **(es/module)** Fix `jsc.paths` on Windows (#6930) ([1ec161a](https://github.com/swc-project/swc/commit/1ec161a0f15886f97d4fb9cbb5d115b29ed5e2a2))
53
+
54
+
55
+ - **(es/react)** Fix handling of whitespaces (#6935) ([a9b25aa](https://github.com/swc-project/swc/commit/a9b25aaf4a776731d3ef2dc3c192a7b18023e765))
56
+
57
+
58
+ - **(es/react)** Don't panic on `key` without a value (#6945) ([14454c9](https://github.com/swc-project/swc/commit/14454c9dbd222cabb8c6eeafa9c664c34030a121))
59
+
60
+
61
+ - **(es/resolver)** Use type context for `export =` if it's unresolved (#6963) ([e946c43](https://github.com/swc-project/swc/commit/e946c43f4e0640bb7ad2470c9c5979583ced2e23))
62
+
63
+ ### Features
64
+
65
+
66
+
67
+ - **(es/minifier)** Drop unused import bindings (#6967) ([a27ffd2](https://github.com/swc-project/swc/commit/a27ffd22423af6e85fa821c2bb3bbd01e199f472))
68
+
69
+ ### Miscellaneous Tasks
70
+
71
+
72
+
73
+ - **(bot)** Allow org members to use bump comments (#6942) ([0324d5a](https://github.com/swc-project/swc/commit/0324d5a78b8d47b8948f4011c0dd982ff43a2203))
74
+
75
+
76
+ - **(swc_nodejs_common)** Remove swc_node_base from swc_nodejs_common (#6940) ([0771418](https://github.com/swc-project/swc/commit/0771418dd0310a7e05bfad76baf4e16cd289351e))
77
+
78
+ ## [1.3.35] - 2023-02-10
79
+
80
+ ### Bug Fixes
81
+
82
+
83
+
8
84
  - **(es/minifier)** Don't skip shorthand properties from sequential inliner (#6918) ([725d3fb](https://github.com/swc-project/swc/commit/725d3fb645976681bc11b1df943f3ca1008788ab))
9
85
 
10
86
 
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.37",
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.37",
142
+ "@swc/core-darwin-x64": "1.3.37",
143
+ "@swc/core-linux-x64-gnu": "1.3.37",
144
+ "@swc/core-linux-x64-musl": "1.3.37",
145
+ "@swc/core-win32-ia32-msvc": "1.3.37",
146
+ "@swc/core-linux-arm64-gnu": "1.3.37",
147
+ "@swc/core-linux-arm-gnueabihf": "1.3.37",
148
+ "@swc/core-darwin-arm64": "1.3.37",
149
+ "@swc/core-linux-arm64-musl": "1.3.37",
150
+ "@swc/core-win32-arm64-msvc": "1.3.37"
151
151
  },
152
152
  "files": [
153
153
  "CHANGELOG.md",