@swc/core 1.2.189 → 1.2.192

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 (2) hide show
  1. package/CHANGELOG.md +131 -0
  2. package/package.json +14 -14
package/CHANGELOG.md CHANGED
@@ -5,9 +5,140 @@
5
5
 
6
6
 
7
7
 
8
+ - **(css/parser)** Allow `var()` call in color functions (#4713) ([07d31aa](https://github.com/swc-project/swc/commit/07d31aa50ab8420ee2e8e2751833385470337eae))
9
+
10
+
11
+ - **(es/compat)** Fix span of `instanceof` (#4757) ([8720f9a](https://github.com/swc-project/swc/commit/8720f9a948687d5851cb1cfc18961ac61d6406a2))
12
+
13
+
14
+ - **(es/compat)** Handle nested for loops with `break`/`continue` (#4777) ([4f00914](https://github.com/swc-project/swc/commit/4f00914c1af6e2dee7116c09dd6e63b5883cf8b5))
15
+
16
+
17
+ - **(es/compat)** Handle nested `break`/`continue` in `block_scoping` (#4778) ([db1698e](https://github.com/swc-project/swc/commit/db1698e0129c80e32211d4c5545b11541445a471))
18
+
19
+
20
+ - **(es/compat)** Escape keywords in class method names (#4775) ([a3e4c20](https://github.com/swc-project/swc/commit/a3e4c201ded1b5b0cd021a4735e5dcae36284d5b))
21
+
22
+
23
+ - **(es/fixer)** Preserve the paren in a spread element (#4771) ([65b7c4b](https://github.com/swc-project/swc/commit/65b7c4b69510d75065f79701020b8331ee3f88e4))
24
+
25
+
26
+ - **(es/loader)** Fix `jsc.paths` on windows (#4739) ([417b218](https://github.com/swc-project/swc/commit/417b2182cead074c9ebf9358d53f353157637a8d))
27
+
28
+
29
+ - **(es/loader)** Fix hang related to `jsc.paths` (#4742) ([777ea37](https://github.com/swc-project/swc/commit/777ea371d0bd17c6acd7aa2e7b20057de4577c08))
30
+
31
+
32
+ - **(es/minifier)** Consider parameters while detecting pure calls (#4748) ([e4dee1e](https://github.com/swc-project/swc/commit/e4dee1ed3304f9b5950b99360054dc72201c80ad))
33
+
34
+
35
+ - **(es/modules)** Adjust absolute path while rewriting imports (#4776) ([75bb858](https://github.com/swc-project/swc/commit/75bb8586cc7fa8ca08a9b8cf5db6c66eb5de9e85))
36
+
37
+
38
+ - **(es/modules/cjs)** FIx detection of exported names (#4737) ([d9bb59a](https://github.com/swc-project/swc/commit/d9bb59a8cb1998f87b0f115e9cc4b0b53923096a))
39
+
40
+
41
+ - **(es/resolver)** Handle `var` after catch with the same name (#4772) ([e2da3dd](https://github.com/swc-project/swc/commit/e2da3ddc03a6386e308a1b68ffee0e6bc786c16b))
42
+
43
+
44
+ - **(es/resolver)** Fix more edge cases related to `catch` and `var` (#4773) ([f28d9c1](https://github.com/swc-project/swc/commit/f28d9c143ba0e23a2e23d5d53d3680b8a29d7b5e))
45
+
46
+
47
+ - **(es/typescript)** Mark namespaces as concrete (#4736) ([41d4437](https://github.com/swc-project/swc/commit/41d443767147f97909e6b1004cb4be6dcea207c1))
48
+
49
+
50
+ - **(es/typescript)** Preserve referenced imports for namespace (#4759) ([065b2a5](https://github.com/swc-project/swc/commit/065b2a514ff4429e52e244a9f090048f5f764d83))
51
+
52
+
53
+ - **(html/codegen)** Emit `textarea` and `pre` in foreign context (#4766) ([8662665](https://github.com/swc-project/swc/commit/86626659b148fa8d76a433385eea4818c58ac031))
54
+
55
+
56
+ - **(html/parser)** Fix error reporting in the foreign context (#4725) ([4df0637](https://github.com/swc-project/swc/commit/4df06378179bc27562e84e0814c0878b8edf29f5))
57
+
58
+
59
+ - **(html/parser)** Fix parsing of closing tag in foreign contents (#4721) ([1c4d50f](https://github.com/swc-project/swc/commit/1c4d50f06a86a8c34d929090457f8970ed3b58e3))
60
+
61
+ ### Features
62
+
63
+
64
+
65
+ - **(es/helpers)** Import only used helpers (#4767) ([b8d2fb8](https://github.com/swc-project/swc/commit/b8d2fb85461aba2dfd3ee599fbe6a2a42ff34f32))
66
+
67
+
68
+ - **(es/minifier)** Implement `pure_funcs` (#4710) ([9e42382](https://github.com/swc-project/swc/commit/9e423820916ab847731b8b484a165169174b80df))
69
+
70
+
71
+ - **(es/minifier)** Handle prefix update expressions with sequential inliner (#4741) ([a51816a](https://github.com/swc-project/swc/commit/a51816a577cb13a8af6e8086c5aab41b6ac79a58))
72
+
73
+
74
+ - **(es/minifier)** Implement more rules (#4763) ([20b724d](https://github.com/swc-project/swc/commit/20b724d3cd184ce6bc82e244a9e6ef1d1f21cb96))
75
+
76
+
77
+ - **(es/modules/amd)** Support local-scoped amd requires (#4727) ([886585b](https://github.com/swc-project/swc/commit/886585b90e2f240e4d72091629bc547ab74f7e2e))
78
+
79
+
80
+ - **(html/codegen)** Omit end tags (#4770) ([07c197f](https://github.com/swc-project/swc/commit/07c197f51c7935f3825b79c8af4fca7baf18285c))
81
+
82
+
83
+ - **(html/parser)** Improve error reporting for misplaced non-space characters inside a table (#4723) ([e9b2ebf](https://github.com/swc-project/swc/commit/e9b2ebfc3bffb7d28b7ca0e50f8570aaed2f35e5))
84
+
85
+
86
+ - **(html/parser)** Improve error reporting (#4728) ([c346d30](https://github.com/swc-project/swc/commit/c346d309a7f2d16bac84bd9f8bdf74520ab6f711))
87
+
88
+
89
+ - **(html/parser)** Improve error reporting (#4740) ([51f4cea](https://github.com/swc-project/swc/commit/51f4cea10349145a66e45dabb78cc244784b3c98))
90
+
91
+
92
+ - **(html/parser)** Improve public api (#4762) ([c07780f](https://github.com/swc-project/swc/commit/c07780fab3bda752f43353871e5e69c5c4df0e84))
93
+
94
+
95
+ - **(plugin)** Implement more `SourceMap` apis (#4769) ([3298cb7](https://github.com/swc-project/swc/commit/3298cb790682524f740d3f6bff20ec4d07ed7075))
96
+
97
+ ### Miscellaneous Tasks
98
+
99
+
100
+
101
+ - **(ci)** Fix CI (#4747) ([0f85f7b](https://github.com/swc-project/swc/commit/0f85f7b9de970648509aff8ac466fe25ab004cdb))
102
+
103
+
104
+ - **(es/minifier)** Add `#[doc(hidden)]` (#4751) ([22bf5f0](https://github.com/swc-project/swc/commit/22bf5f014e35ac4994d70660ae7e25cfb4659caf))
105
+
106
+ ### Performance
107
+
108
+
109
+
110
+ - **(common)** Add more methods to `Spanned` (#4749) ([98df645](https://github.com/swc-project/swc/commit/98df64517efbc53021e4e386ad876f1f46bd17f0))
111
+
112
+ ### Refactor
113
+
114
+
115
+
116
+ - **(es/minifier)** Make `rust-analyzer` faster (#4744) ([47e6cc5](https://github.com/swc-project/swc/commit/47e6cc519092af220cd735c2eedad3e7ad7f3e18))
117
+
118
+
119
+ - **(es/minifier)** Make `rust-analyzer` fast, really (#4746) ([49b3c27](https://github.com/swc-project/swc/commit/49b3c2715c3b418d982443f47e2c70e6959fd16f))
120
+
121
+
122
+ - **(es/parser)** Remove duplicate (#4750) ([b7a195a](https://github.com/swc-project/swc/commit/b7a195a1cf18763b19846b7f14efc80a0f17fd1e))
123
+
124
+ ### Testing
125
+
126
+
127
+
128
+ - **(html/parser)** Enable error reporting tests (#4764) ([984d69e](https://github.com/swc-project/swc/commit/984d69e67b4a791922dd62050937a77f1f499927))
129
+
130
+ ## [1.2.189] - 2022-05-21
131
+
132
+ ### Bug Fixes
133
+
134
+
135
+
8
136
  - **(es/codegen)** Fix numeric literals (#4733) ([ea46eb4](https://github.com/swc-project/swc/commit/ea46eb41e0e0581765c12a0f50b5c467beb878ea))
9
137
 
10
138
 
139
+ - **(es/config)** Respect `.swcrc` (#4735) ([9966e98](https://github.com/swc-project/swc/commit/9966e98ac692575032b04315dd269b1f05fe2ba4))
140
+
141
+
11
142
  - **(html/parser)** Fix error reporting related to `image` (#4720) ([4cee4ac](https://github.com/swc-project/swc/commit/4cee4ac23804e8e43575477c41e5e0cfb624103a))
12
143
 
13
144
  ## [1.2.188] - 2022-05-21
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc/core",
3
- "version": "1.2.189",
3
+ "version": "1.2.192",
4
4
  "description": "Super-fast alternative for babel",
5
5
  "homepage": "https://swc.rs",
6
6
  "main": "./index.js",
@@ -135,18 +135,18 @@
135
135
  "url": "https://opencollective.com/swc"
136
136
  },
137
137
  "optionalDependencies": {
138
- "@swc/core-win32-x64-msvc": "1.2.189",
139
- "@swc/core-darwin-x64": "1.2.189",
140
- "@swc/core-linux-x64-gnu": "1.2.189",
141
- "@swc/core-linux-x64-musl": "1.2.189",
142
- "@swc/core-freebsd-x64": "1.2.189",
143
- "@swc/core-win32-ia32-msvc": "1.2.189",
144
- "@swc/core-linux-arm64-gnu": "1.2.189",
145
- "@swc/core-linux-arm-gnueabihf": "1.2.189",
146
- "@swc/core-darwin-arm64": "1.2.189",
147
- "@swc/core-android-arm64": "1.2.189",
148
- "@swc/core-linux-arm64-musl": "1.2.189",
149
- "@swc/core-win32-arm64-msvc": "1.2.189",
150
- "@swc/core-android-arm-eabi": "1.2.189"
138
+ "@swc/core-win32-x64-msvc": "1.2.192",
139
+ "@swc/core-darwin-x64": "1.2.192",
140
+ "@swc/core-linux-x64-gnu": "1.2.192",
141
+ "@swc/core-linux-x64-musl": "1.2.192",
142
+ "@swc/core-freebsd-x64": "1.2.192",
143
+ "@swc/core-win32-ia32-msvc": "1.2.192",
144
+ "@swc/core-linux-arm64-gnu": "1.2.192",
145
+ "@swc/core-linux-arm-gnueabihf": "1.2.192",
146
+ "@swc/core-darwin-arm64": "1.2.192",
147
+ "@swc/core-android-arm64": "1.2.192",
148
+ "@swc/core-linux-arm64-musl": "1.2.192",
149
+ "@swc/core-win32-arm64-msvc": "1.2.192",
150
+ "@swc/core-android-arm-eabi": "1.2.192"
151
151
  }
152
152
  }