@swc/core 1.3.75 → 1.3.77

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 +61 -0
  2. package/binding.js +15 -0
  3. package/package.json +12 -12
package/CHANGELOG.md CHANGED
@@ -5,6 +5,67 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es)** Resolve `jsc.baseUrl` for `.swcrc` specified by `--config-file` (#7801) ([fe1ca26](https://github.com/swc-project/swc/commit/fe1ca26218493d2e7d4121433c365a37e13285e6))
9
+
10
+
11
+ - **(es/compat)** Revert #7610 (#7813) ([42dec55](https://github.com/swc-project/swc/commit/42dec557ed2e8fd829aba7847b354003cfea1b18))
12
+
13
+
14
+ - **(es/parser)** Revert lexer fix for `<<` (#7807) ([e527c12](https://github.com/swc-project/swc/commit/e527c12a82740397ed4e909f242326f8e92624a8))
15
+
16
+ ### Features
17
+
18
+
19
+
20
+ - **(es/ast)** Expose `Archived` types (#7811) ([478fa47](https://github.com/swc-project/swc/commit/478fa4736f355555c7a19e7b674db5d7bd81c0e2))
21
+
22
+ ### Refactor
23
+
24
+
25
+
26
+ - **(es/parser)** Don't attempt to handle shebangs in `read_token_number_sign` (#7803) ([5e7834a](https://github.com/swc-project/swc/commit/5e7834aa2ecb0cd01b72979f393a517f1c1e5add))
27
+
28
+ ## [1.3.76] - 2023-08-10
29
+
30
+ ### Bug Fixes
31
+
32
+
33
+
34
+ - **(es/ast)** Bump version (#7793) ([13bedc0](https://github.com/swc-project/swc/commit/13bedc084e46db193b3fd0b7930046b2f013742b))
35
+
36
+
37
+ - **(es/minifier)** Abort seq inliner if a same var is defined in outer scope (#7772) ([ef8d121](https://github.com/swc-project/swc/commit/ef8d12154ddaad47eddb41298bae14460834be0c))
38
+
39
+
40
+ - **(es/minifier)** Do not drop properties used via `this` (#7785) ([552d9aa](https://github.com/swc-project/swc/commit/552d9aa344cb6db2dff1e20011411a56f92d4f06))
41
+
42
+
43
+ - **(es/module)** Use `jsc.baseUrl` while resolving absolute paths (#7775) ([5c4bfa6](https://github.com/swc-project/swc/commit/5c4bfa61f9e4f7732bc1a9da6cd25f52e593a374))
44
+
45
+ ### Features
46
+
47
+
48
+
49
+ - **(es/minifier)** Support `mangle.eval` (#7777) ([eff0cac](https://github.com/swc-project/swc/commit/eff0caca2b6bfd383c8369cf0f4cdad86bb9e575))
50
+
51
+ ### Miscellaneous Tasks
52
+
53
+
54
+
55
+ - **(ci)** Cleanup CI (#7787) ([ab39f1c](https://github.com/swc-project/swc/commit/ab39f1c3c83c7156e6e9979773bf542a59d9b4f4))
56
+
57
+ ### Performance
58
+
59
+
60
+
61
+ - **(es/compat)** Improve time complexity of `class_properties` (#7786) ([76c6258](https://github.com/swc-project/swc/commit/76c6258d1544ede09cb4f281c42e1fc80ad4145b))
62
+
63
+ ## [1.3.75] - 2023-08-08
64
+
65
+ ### Bug Fixes
66
+
67
+
68
+
8
69
  - **(es/codegen)** Don't strip necessary escape characters (#7687) ([b45649b](https://github.com/swc-project/swc/commit/b45649b8d6484bd872f6443fc729f6b1998ff44d))
9
70
 
10
71
 
package/binding.js CHANGED
@@ -1,4 +1,8 @@
1
1
  "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /* prettier-ignore */
5
+ /* auto-generated by NAPI-RS */
2
6
  const { existsSync, readFileSync } = require('fs');
3
7
  const { join } = require('path');
4
8
  const { platform, arch } = process;
@@ -105,6 +109,17 @@ switch (platform) {
105
109
  }
106
110
  break;
107
111
  case 'darwin':
112
+ localFileExisted = existsSync(join(__dirname, 'swc.darwin-universal.node'));
113
+ try {
114
+ if (localFileExisted) {
115
+ nativeBinding = require('./swc.darwin-universal.node');
116
+ }
117
+ else {
118
+ nativeBinding = require('@swc/core-darwin-universal');
119
+ }
120
+ break;
121
+ }
122
+ catch (_a) { }
108
123
  switch (arch) {
109
124
  case 'x64':
110
125
  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.75",
3
+ "version": "1.3.77",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -96,7 +96,7 @@
96
96
  "@swc/plugin-jest": "latest",
97
97
  "@taplo/cli": "^0.3.2",
98
98
  "@types/jest": "^28.1.4",
99
- "@types/node": "^14.14.41",
99
+ "@types/node": "^20.5.0",
100
100
  "@types/terser": "^3.12.0",
101
101
  "acorn": "^8.6.0",
102
102
  "acorn-jsx": "^5.3.2",
@@ -145,16 +145,16 @@
145
145
  "url": "https://opencollective.com/swc"
146
146
  },
147
147
  "optionalDependencies": {
148
- "@swc/core-win32-x64-msvc": "1.3.75",
149
- "@swc/core-darwin-x64": "1.3.75",
150
- "@swc/core-linux-x64-gnu": "1.3.75",
151
- "@swc/core-linux-x64-musl": "1.3.75",
152
- "@swc/core-win32-ia32-msvc": "1.3.75",
153
- "@swc/core-linux-arm64-gnu": "1.3.75",
154
- "@swc/core-linux-arm-gnueabihf": "1.3.75",
155
- "@swc/core-darwin-arm64": "1.3.75",
156
- "@swc/core-linux-arm64-musl": "1.3.75",
157
- "@swc/core-win32-arm64-msvc": "1.3.75"
148
+ "@swc/core-win32-x64-msvc": "1.3.77",
149
+ "@swc/core-darwin-x64": "1.3.77",
150
+ "@swc/core-linux-x64-gnu": "1.3.77",
151
+ "@swc/core-linux-x64-musl": "1.3.77",
152
+ "@swc/core-win32-ia32-msvc": "1.3.77",
153
+ "@swc/core-linux-arm64-gnu": "1.3.77",
154
+ "@swc/core-linux-arm-gnueabihf": "1.3.77",
155
+ "@swc/core-darwin-arm64": "1.3.77",
156
+ "@swc/core-linux-arm64-musl": "1.3.77",
157
+ "@swc/core-win32-arm64-msvc": "1.3.77"
158
158
  },
159
159
  "files": [
160
160
  "CHANGELOG.md",