@swc/core 1.3.32 → 1.3.34

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.
package/CHANGELOG.md CHANGED
@@ -5,6 +5,68 @@
5
5
 
6
6
 
7
7
 
8
+ - **(bindings)** Don't require unnecessary package (#6902) ([964dfba](https://github.com/swc-project/swc/commit/964dfbaf1ab018d26d4acc574bd4fce5272bf890))
9
+
10
+
11
+ - **(bindings/node)** Add `esnext` to `JscTarget` (#6908) ([82128e3](https://github.com/swc-project/swc/commit/82128e3734f8f5a92e85ed748e92f4f62bb4c63f))
12
+
13
+
14
+ - **(css/modules)** Fix interop of `&` and `:global` (#6900) ([f85ea9c](https://github.com/swc-project/swc/commit/f85ea9cb570ee9431926fb51559ecd34a701384f))
15
+
16
+
17
+ - **(es/minifier)** Respect span hygiene from expr simplifier (#6899) ([432dca6](https://github.com/swc-project/swc/commit/432dca647b5ab6d083d1cedbf68d6afc511f84fe))
18
+
19
+
20
+ - **(es/minifier)** Don't break ternary with assignment in test (#6906) ([951dafb](https://github.com/swc-project/swc/commit/951dafbc1a56b8b29fd76aaad8138e58eaadda12))
21
+
22
+
23
+ - **(es/module)** Fix SystemJS imports (#6879) ([85fffda](https://github.com/swc-project/swc/commit/85fffdad022cf1bccf8763e7bb73fb15f62d2430))
24
+
25
+
26
+ - **(es/parser)** Fix stack overflow due to deeply nested if (#6910) ([f36d945](https://github.com/swc-project/swc/commit/f36d945a33418e991d3ebee27956976ffd5ef446))
27
+
28
+
29
+ - **(es/parser)** Don't use `stacker` for armv7 (#6916) ([4c5d5a6](https://github.com/swc-project/swc/commit/4c5d5a6fcaf49782effc6079bb92adec45ceb83c))
30
+
31
+
32
+ - **(es/resolver)** Resolve parameters correctly (#6890) ([861d87c](https://github.com/swc-project/swc/commit/861d87cae622f371ea697b1cb07ed79d32579b74))
33
+
34
+
35
+ - **(es/typescript)** Ignore jsx element names (#6911) ([ee3a107](https://github.com/swc-project/swc/commit/ee3a1071a5dbe0f2b718dd4f2e9959076cfa337c))
36
+
37
+ ### Documentation
38
+
39
+
40
+
41
+ - **(readme)** Split download badge (#6917) ([d779927](https://github.com/swc-project/swc/commit/d779927b4d00a19b3eb2b6cb792a682cbc006970))
42
+
43
+ ### Features
44
+
45
+
46
+
47
+ - **(bindings/cli)** Add `--config` (#6835) ([d993c4d](https://github.com/swc-project/swc/commit/d993c4def65b0bf900a6b8b8f0d0dee44ba8e0c8))
48
+
49
+
50
+ - **(bindings/cli)** Support for *.mts/*.cts files (#6909) ([76bc8a2](https://github.com/swc-project/swc/commit/76bc8a29743edf397c59f5283aaa74a08e8fba57))
51
+
52
+ ### Miscellaneous Tasks
53
+
54
+
55
+
56
+ - **(bindings/cli)** Enable `preferUnplugged` by default for the plugins (#6912) ([17f1c50](https://github.com/swc-project/swc/commit/17f1c50287c798b57a0d2ac2a95ba6c864b1c2d7))- **general**: Make issue templates mention `no +1` (#6894) ([5d5140f](https://github.com/swc-project/swc/commit/5d5140f0a50696d747ee62e72866b9b03e52cde3))
57
+
58
+ ### Testing
59
+
60
+
61
+
62
+ - **(es/module)** Add a test for `jsc.paths` on windows (#6915) ([d18027c](https://github.com/swc-project/swc/commit/d18027cf9b6c45a7b70cf3dd4c3a23b81d92c93a))
63
+
64
+ ## [1.3.32] - 2023-02-01
65
+
66
+ ### Bug Fixes
67
+
68
+
69
+
8
70
  - **(es)** Remove useless message (#6882) ([9301703](https://github.com/swc-project/swc/commit/93017033117ff0c89d9a7a992d7a8834ee030227))
9
71
 
10
72
 
package/README.md CHANGED
@@ -10,8 +10,13 @@
10
10
 
11
11
  <p align="center">
12
12
  <a href="https://www.npmjs.com/package/@swc/core">
13
- <img alt="npm Downloads" src="https://img.shields.io/npm/dm/@swc/helpers">
13
+ <img alt="downloads (@swc/core)" src="https://img.shields.io/npm/dm/@swc/core?label=downloads%20%28%40swc%2Fcore%29">
14
14
  </a>
15
+ <a href="https://www.npmjs.com/package/@swc/helpers">
16
+ <img alt="downloads (3rd party)" src="https://img.shields.io/npm/dm/@swc/helpers?label=downloads%20%283rd%20party%29">
17
+ </a>
18
+ </p>
19
+ <p align="center">
15
20
  <a href="https://crates.io/crates/swc_ecma_parser">
16
21
  <img alt="undefined" src="https://img.shields.io/crates/d/swc_ecma_parser.svg?label=crates.io%20downloads">
17
22
  </a>
@@ -78,8 +83,8 @@ Please see [benchmark results](https://swc.rs/docs/benchmark-transform) on the w
78
83
 
79
84
  SWC is a community-driven project, and is maintained by a group of [volunteers](https://opencollective.com/swc#team). If you'd like to help support the future of the project, please consider:
80
85
 
81
- - Giving developer time on the project. (Message us on [Discord](https://discord.gg/GnHbXTdZz6) (preferred) or [Github discussions](https://github.com/swc-project/swc/discussions) for guidance!)
82
- - Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
86
+ - Giving developer time on the project. (Message us on [Discord](https://discord.gg/GnHbXTdZz6) (preferred) or [Github discussions](https://github.com/swc-project/swc/discussions) for guidance!)
87
+ - Giving funds by becoming a sponsor (see https://opencollective.com/swc)!
83
88
 
84
89
  ## Contributing
85
90
 
package/binding.js CHANGED
@@ -105,17 +105,6 @@ switch (platform) {
105
105
  }
106
106
  break;
107
107
  case 'darwin':
108
- localFileExisted = existsSync(join(__dirname, 'swc.darwin-universal.node'));
109
- try {
110
- if (localFileExisted) {
111
- nativeBinding = require('./swc.darwin-universal.node');
112
- }
113
- else {
114
- nativeBinding = require('@swc/core-darwin-universal');
115
- }
116
- break;
117
- }
118
- catch (_a) { }
119
108
  switch (arch) {
120
109
  case 'x64':
121
110
  localFileExisted = existsSync(join(__dirname, 'swc.darwin-x64.node'));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.3.32",
3
+ "version": "1.3.34",
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.32",
142
- "@swc/core-darwin-x64": "1.3.32",
143
- "@swc/core-linux-x64-gnu": "1.3.32",
144
- "@swc/core-linux-x64-musl": "1.3.32",
145
- "@swc/core-win32-ia32-msvc": "1.3.32",
146
- "@swc/core-linux-arm64-gnu": "1.3.32",
147
- "@swc/core-linux-arm-gnueabihf": "1.3.32",
148
- "@swc/core-darwin-arm64": "1.3.32",
149
- "@swc/core-linux-arm64-musl": "1.3.32",
150
- "@swc/core-win32-arm64-msvc": "1.3.32"
141
+ "@swc/core-win32-x64-msvc": "1.3.34",
142
+ "@swc/core-darwin-x64": "1.3.34",
143
+ "@swc/core-linux-x64-gnu": "1.3.34",
144
+ "@swc/core-linux-x64-musl": "1.3.34",
145
+ "@swc/core-win32-ia32-msvc": "1.3.34",
146
+ "@swc/core-linux-arm64-gnu": "1.3.34",
147
+ "@swc/core-linux-arm-gnueabihf": "1.3.34",
148
+ "@swc/core-darwin-arm64": "1.3.34",
149
+ "@swc/core-linux-arm64-musl": "1.3.34",
150
+ "@swc/core-win32-arm64-msvc": "1.3.34"
151
151
  },
152
152
  "files": [
153
153
  "CHANGELOG.md",
package/types.d.ts CHANGED
@@ -474,7 +474,7 @@ export interface JscConfig {
474
474
  minify?: JsMinifyOptions;
475
475
  preserveAllComments?: boolean;
476
476
  }
477
- export type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022";
477
+ export type JscTarget = "es3" | "es5" | "es2015" | "es2016" | "es2017" | "es2018" | "es2019" | "es2020" | "es2021" | "es2022" | "esnext";
478
478
  export type ParserConfig = TsParserConfig | EsParserConfig;
479
479
  export interface TsParserConfig {
480
480
  syntax: "typescript";