@swc/core 1.2.144 → 1.2.145

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,86 @@
5
5
 
6
6
 
7
7
 
8
+ - **(es/codegen)** Fix sourcemap of comments (#3723) ([b8b0c92](https://github.com/swc-project/swc/commit/b8b0c920e49c235fb65ca5585d343d2af79f9526))
9
+
10
+
11
+ - **(es/compat)** Throw an error if a private property is initialized multiple times (#3665) ([b6434e5](https://github.com/swc-project/swc/commit/b6434e52e70e79b96a12d48c4cebe2b0f6d8b7f5))
12
+
13
+
14
+ - **(es/parser)** Emit an error for non-last rest element in an object pattern (#3675) ([6a9d778](https://github.com/swc-project/swc/commit/6a9d77808b8513246592129e8c9e154f686fa8a9))
15
+
16
+
17
+ - **(es/parser)** Allow `Expr::TsInstantiation` in extends clause (#3696) ([d499b8c](https://github.com/swc-project/swc/commit/d499b8c14f0f75fd48fd7f5e4b7ad6e790bf4882))
18
+
19
+
20
+ - **(es/parser)** Disallow using reserved words as an expression in typescript (#3697) ([d6522f3](https://github.com/swc-project/swc/commit/d6522f3a37f38aef713c7cbba06349708b56ee27))
21
+
22
+
23
+ - **(es/parser)** Fix a typescript instantiation expression followed by EOF (#3699) ([010fe04](https://github.com/swc-project/swc/commit/010fe048c20bc5a0acfbc65fe43cdd38aeae8fc1))
24
+
25
+
26
+ - **(es/parser)** Fix the span of an export declaration containing a const enum (#3701) ([4318a2e](https://github.com/swc-project/swc/commit/4318a2e73b1ab7df07da809cf3207268942d77b7))
27
+
28
+
29
+ - **(es/parser)** Don't attach comments to `;` (#3720) ([8b87bb4](https://github.com/swc-project/swc/commit/8b87bb48702f22e270574a0a67206b0dcc0b8058))
30
+
31
+
32
+ - **(es/typescript)** Fix `name` of decorated classes (#3689) ([1e49fcd](https://github.com/swc-project/swc/commit/1e49fcd44daa3107a180f7016d72f8138fb56688))
33
+
34
+
35
+ - **(es/typescript)** Support heterogeneous enums (#3721) ([1761cab](https://github.com/swc-project/swc/commit/1761cab6ff1e3989281493adffda07859eb90a0d))
36
+
37
+ ### Features
38
+
39
+
40
+
41
+ - **(cli)** Support stdin (#3688) ([3cf3b20](https://github.com/swc-project/swc/commit/3cf3b20f15e8ddbb2c32405c71183cfdbbb87835))
42
+
43
+
44
+ - **(css/minifier)** Compress urange (#3668) ([b1476d2](https://github.com/swc-project/swc/commit/b1476d2ac6b7ff37653192fe7f46de9ae282b8cd))
45
+
46
+
47
+ - **(css/minifier)** Compress lengths (#3698) ([7079e88](https://github.com/swc-project/swc/commit/7079e88744ece43ebf82b05a376c5683c8015084))
48
+
49
+
50
+ - **(css/minifier)** Compress more properties (#3708) ([cd95ac4](https://github.com/swc-project/swc/commit/cd95ac4caf0af06db9195790707a475938a5fcb7))
51
+
52
+
53
+ - **(css/minifier)** Compress alpha of values (#3707) ([bff04b4](https://github.com/swc-project/swc/commit/bff04b4afecb9a57046352aaa92e4cec0e25363b))
54
+
55
+
56
+ - **(es/lints)** Implement `default-param-last` rule (#3681) ([e252265](https://github.com/swc-project/swc/commit/e252265a3f21a4c0dcef2e9c13aa7365f683b235))
57
+
58
+
59
+ - **(es/typescript)** Inline typescript `enum`s (#3647) ([1743302](https://github.com/swc-project/swc/commit/1743302819cd385f57c8d30aa8869a0765e1c5b6))
60
+
61
+
62
+ - **(node-swc)** Expose the new `swc_cli` as a binary named `swcx` (#3684) ([9cc094a](https://github.com/swc-project/swc/commit/9cc094ab574940f87f78328e8e1c1a346e62e5bf))
63
+
64
+ ### Miscellaneous Tasks
65
+
66
+
67
+
68
+ - **(ci)** Reduce CI time (#3719) ([76ec275](https://github.com/swc-project/swc/commit/76ec275c3cea182386ad6124c264bc809e1b1633))
69
+
70
+
71
+ - **(clippy)** Improve config (#3691) ([e35d73a](https://github.com/swc-project/swc/commit/e35d73adf4efbd7329cae6c63215e1c0a9193f8d))
72
+
73
+ ### Refactor
74
+
75
+
76
+
77
+ - **(css/ast)** Fix the type definitions for an plus b syntax (#3682) ([321ee75](https://github.com/swc-project/swc/commit/321ee756d95f287ed4d81a9568da59c637febf19))
78
+
79
+
80
+ - **(es)** Improve ast apis (#3690) ([135acf3](https://github.com/swc-project/swc/commit/135acf3b42221b8a9e684e39d762ad8481c75f73))
81
+
82
+ ## [1.2.144] - 2022-02-22
83
+
84
+ ### Bug Fixes
85
+
86
+
87
+
8
88
  - **(es/ast)** Fix definition of `Expr::TsInstantiation` (#3657) ([68a1551](https://github.com/swc-project/swc/commit/68a155165bd04530e97ef62ecede617d954fa98d))
9
89
 
10
90
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.144",
3
+ "version": "1.2.145",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -104,18 +104,18 @@
104
104
  "url": "https://opencollective.com/swc"
105
105
  },
106
106
  "optionalDependencies": {
107
- "@swc/core-win32-x64-msvc": "1.2.144",
108
- "@swc/core-darwin-x64": "1.2.144",
109
- "@swc/core-linux-x64-gnu": "1.2.144",
110
- "@swc/core-linux-x64-musl": "1.2.144",
111
- "@swc/core-freebsd-x64": "1.2.144",
112
- "@swc/core-win32-ia32-msvc": "1.2.144",
113
- "@swc/core-linux-arm64-gnu": "1.2.144",
114
- "@swc/core-linux-arm-gnueabihf": "1.2.144",
115
- "@swc/core-darwin-arm64": "1.2.144",
116
- "@swc/core-android-arm64": "1.2.144",
117
- "@swc/core-linux-arm64-musl": "1.2.144",
118
- "@swc/core-win32-arm64-msvc": "1.2.144",
119
- "@swc/core-android-arm-eabi": "1.2.144"
107
+ "@swc/core-win32-x64-msvc": "1.2.145",
108
+ "@swc/core-darwin-x64": "1.2.145",
109
+ "@swc/core-linux-x64-gnu": "1.2.145",
110
+ "@swc/core-linux-x64-musl": "1.2.145",
111
+ "@swc/core-freebsd-x64": "1.2.145",
112
+ "@swc/core-win32-ia32-msvc": "1.2.145",
113
+ "@swc/core-linux-arm64-gnu": "1.2.145",
114
+ "@swc/core-linux-arm-gnueabihf": "1.2.145",
115
+ "@swc/core-darwin-arm64": "1.2.145",
116
+ "@swc/core-android-arm64": "1.2.145",
117
+ "@swc/core-linux-arm64-musl": "1.2.145",
118
+ "@swc/core-win32-arm64-msvc": "1.2.145",
119
+ "@swc/core-android-arm-eabi": "1.2.145"
120
120
  }
121
121
  }
package/types.d.ts CHANGED
@@ -454,6 +454,7 @@ export interface TransformConfig {
454
454
  * https://swc.rs/docs/configuring-swc.html#jsctransformdecoratormetadata
455
455
  */
456
456
  decoratorMetadata?: boolean;
457
+ treatConstEnumAsEnum?: boolean;
457
458
  }
458
459
  export interface ReactConfig {
459
460
  /**
package/.kodiak.toml DELETED
@@ -1,15 +0,0 @@
1
- # .kodiak.toml
2
- version = 1
3
-
4
- # We can't use automerge because of version bumping.
5
- # But to make merging faster, we auto-update PRs.
6
- [merge]
7
- do_not_merge = true
8
-
9
- [update]
10
- autoupdate_label = "S-approved"
11
- require_automerge_label = false
12
-
13
- # I want to use auto-merge feature of github
14
- [approve]
15
- auto_approve_usernames = ["kdy1"]
package/clippy.toml DELETED
@@ -1,2 +0,0 @@
1
- cognitive-complexity-threshold = 50
2
- type-complexity-threshold = 25000