Donny/강동윤
fe1e62a5e7
perf(common): Improve performance of StringInput
( #4680 )
2022-05-17 03:14:14 +00:00
Donny/강동윤
98e4845fce
build(repo): Update rustc
( #4667 )
2022-05-15 09:03:54 +00:00
Donny/강동윤
11726cc0e1
perf(es/parser): Optimize for cpu code cache ( #4666 )
2022-05-15 08:39:09 +00:00
SWC Bot
97808349a2
chore: Publish crates
2022-05-11 16:17:07 +00:00
Donny/강동윤
67942d5731
feat(common): Reserve BytePos(0)
for dummy spans ( #4616 )
2022-05-11 16:14:42 +00:00
Donny/강동윤
2c861bd9e5
feat(es/ast): Improve Id
APIs ( #4614 )
...
# API Changes
- `Ident` now has `to_id()`. This method is added to allow removing an import.
2022-05-11 12:02:14 +09:00
SWC Bot
e4ce388632
chore: Publish crates
2022-05-06 04:10:39 +00:00
William Tetlow
e2fde1a9a7
fix(es/parser): Revert #4287 ( #4542 )
2022-05-06 04:07:00 +00:00
SWC Bot
416312d0d7
chore: Publish crates
2022-05-06 03:48:41 +00:00
William Tetlow
28310596a6
fix(es/parser): Revert #4067 ( #4540 )
2022-05-06 12:46:15 +09:00
Donny/강동윤
a6d404a8c2
chore(repo): Configure prettier
( #4523 )
2022-05-04 14:25:28 +00:00
SWC Bot
5b12a68cc7
chore: Publish crates
2022-05-04 05:48:37 +00:00
Pig Fang
0e0ded121c
feat(es/parser): Reject accessors named constructor
( #4520 )
2022-05-04 05:45:57 +00:00
SWC Bot
9fc3d2ce58
chore: Publish crates
2022-04-30 12:59:38 +00:00
Pig Fang
857e798194
feat(es/parser): Reject private field called #constructor
( #4491 )
2022-04-30 12:56:55 +00:00
SWC Bot
8c520919fd
chore: Publish crates
2022-04-28 02:11:23 +00:00
Pig Fang
393cfa84b6
fix(es/parser): Throw syntax error for missing function expr body ( #4462 )
2022-04-28 02:08:17 +00:00
SWC Bot
bcef90dc97
chore: Publish crates
2022-04-27 03:10:17 +00:00
Pig Fang
df7b3f611a
feat(es/parser): Reject indirect opt chain in assignment ( #4447 )
2022-04-27 03:07:57 +00:00
SWC Bot
4bdc198a55
chore: Publish crates
2022-04-25 23:13:22 +00:00
Pig Fang
465cc2f929
fix(es/parser): Fix top-level await with binary expr ( #4426 )
2022-04-25 23:10:59 +00:00
SWC Bot
3e2931e878
chore: Publish crates
2022-04-24 03:06:59 +00:00
Pig Fang
6dc64c9ca0
feat(es/parser): Reject 'use strict'
with non-simple params list in TS ( #4416 )
2022-04-24 03:04:38 +00:00
SWC Bot
cda7fc2264
chore: Publish crates
2022-04-23 14:47:56 +00:00
Pig Fang
da02c9dc50
feat(es/parser): Reject invalid new.target
( #4406 )
2022-04-23 14:45:11 +00:00
SWC Bot
5a8250610a
chore: Publish crates
2022-04-23 05:46:23 +00:00
Pig Fang
c96e32243c
feat(es/parser): Reject invalid regex flags ( #4404 )
2022-04-23 05:43:52 +00:00
Donny/강동윤
6b1501cf0f
chore: Publish crates
2022-04-22 10:44:27 +09:00
Pig Fang
59f63da560
feat(es/parser): Reject await expr with **
( #4395 )
2022-04-22 01:40:14 +00:00
OJ Kwon
8419b60430
fix(plugin): Align deps to fix build ( #4377 )
2022-04-20 08:05:02 +00:00
SWC Bot
55708ba272
chore: Publish crates
2022-04-19 22:16:46 +00:00
Hannes Bornö
3bdf5a8960
fix(es/lexer): Fix handling of object properties with the name function
( #4374 )
2022-04-20 07:14:20 +09:00
Donny/강동윤
bf761752f1
test(es/parser): Add a test for a fixed issue ( #4357 )
2022-04-17 22:44:46 +00:00
Donny/강동윤
8309440008
chore(es): Rename benchmarks ( #4355 )
2022-04-17 18:36:15 +00:00
SWC Bot
8937e1c499
chore: Publish crates
2022-04-16 15:27:34 +00:00
Pig Fang
31b3336cd5
fix(es/parser): Reject optional constructor call ( #4340 )
2022-04-16 15:18:14 +00:00
SWC Bot
8191762dd5
chore: Publish crates
2022-04-15 14:18:51 +00:00
Pig Fang
ea466afdc8
fix(es/parser): Make parsing of TS InstantiationExpr more permissive ( #4332 )
2022-04-15 14:16:31 +00:00
SWC Bot
995b4367cc
chore: Publish crates
2022-04-15 07:39:50 +00:00
Donny/강동윤
7599fe7431
fix(es/parser): Enable static blocks by default ( #4334 )
2022-04-15 07:31:41 +00:00
SWC Bot
845312ee45
chore: Publish crates
2022-04-14 00:53:25 +00:00
Pig Fang
37aec5b199
refactor(es/parser): Simplify logic ( #4329 )
2022-04-14 09:50:54 +09:00
SWC Bot
bef183e74a
chore: Publish crates
2022-04-13 19:18:56 +00:00
Pig Fang
1c3d1af01c
feat(es/parser): Support extends
clause to infer
type ( #4326 )
2022-04-13 19:16:15 +00:00
SWC Bot
fa880634bd
chore: Publish crates
2022-04-11 20:05:28 +00:00
magic-akari
d0de5a63a0
feat(es): Support typeof
with private fields ( #4302 )
2022-04-11 20:02:51 +00:00
那里好脏不可以
37a8c90750
chore(*): Typo + fomatting ( #4304 )
2022-04-11 18:45:58 +00:00
OJ Kwon
fad652f879
chore(plugin): Align version of swc_common
to include dummy comment api ( #4270 )
2022-04-07 07:21:37 +00:00
SWC Bot
55418fb4fe
chore: Publish crates
2022-04-07 03:45:35 +00:00
Hannes Bornö
674275c824
feat(es/parser): Report more errors ( #4244 )
2022-04-07 03:43:10 +00:00
SWC Bot
ed2815baec
chore: Publish crates
2022-04-07 03:18:28 +00:00
William Tetlow
b89937c3c0
fix(es/parser): Adjust context in a function block ( #4264 )
2022-04-07 12:15:59 +09:00
SWC Bot
5eb3d8315a
chore: Publish crates
2022-04-05 12:49:22 +00:00
Alexander Akait
f39d3aca4d
feat(es/ast): Add raw
to Num
( #4245 )
2022-04-05 12:46:35 +00:00
OJ Kwon
4093814895
chore(build): Dedup swc_common
( #4247 )
2022-04-05 14:28:07 +09:00
Donny/강동윤
1f466e1d2f
chore(ci): Fix benchmark action ( #4242 )
2022-04-04 20:12:03 +09:00
Donny/강동윤
06d0891e7c
chore(bench): Migrate to criterion ( #4237 )
2022-04-04 00:56:29 +09:00
SWC Bot
14ab63b26e
chore: Publish crates
2022-04-03 14:12:13 +00:00
magic-akari
6d380ea6fa
fix(es/parser): Support error reporting for TS1274 ( #4232 )
2022-04-03 23:09:36 +09:00
SWC Bot
3337777f8c
chore: Publish crates
2022-04-02 06:06:39 +00:00
Alexander Akait
e91f271873
feat(es/ast): Add raw
to BigInt
( #4218 )
2022-04-02 06:04:14 +00:00
SWC Bot
ee9e661e03
chore: Publish crates
2022-04-01 06:22:48 +00:00
Donny/강동윤
164556290b
perf(es/parser): Improve performance by using #[cold]
( #4215 )
2022-04-01 06:20:29 +00:00
SWC Bot
19bc43f3ed
chore: Publish crates
2022-03-30 22:03:54 +00:00
William Tetlow
99a0d34a1e
fix(es/parser): Fix parsing of an arrow and a conditional expression ( #4199 )
2022-03-30 22:01:31 +00:00
SWC Bot
9a3591a424
chore: Publish crates
2022-03-30 20:34:01 +00:00
David Sherret
cffe5ca58e
feat(es/parser): Allow parsing files with missing close braces ( #4187 )
2022-03-30 20:31:24 +00:00
SWC Bot
a320f4ddfd
chore: Publish crates
2022-03-30 06:10:09 +00:00
David Sherret
1759567fc4
chore(es/parser): Add span tests back ( #4186 )
2022-03-30 06:07:40 +00:00
SWC Bot
6125de9808
chore: Publish crates
2022-03-28 12:20:51 +00:00
Alexander Akait
fcf67c4570
fix(es): Consume surrogate pairs ( #4115 )
2022-03-28 12:18:06 +00:00
SWC Bot
d4b6b53641
chore: Publish crates
2022-03-24 11:18:13 +00:00
Hannes Bornö
cd7112b18b
feat(es/parser): Report more errors for invalid patterns ( #4145 )
2022-03-24 11:15:28 +00:00
SWC Bot
a293adca0a
chore: Publish crates
2022-03-24 04:23:15 +00:00
magic-akari
f5ce79a72c
fix(es/parser): Fix logic for consuming ts modifiers ( #4137 )
2022-03-24 04:20:53 +00:00
Donny/강동윤
e6088408bf
chore: Publish crates
2022-03-24 12:05:47 +09:00
SWC Bot
53f4271ab0
chore: Publish crates
2022-03-23 22:34:05 +00:00
William Tetlow
ab4ea9f0cb
fix(es/parser): Allow arrows without parenthesized param in typescript ( #4138 )
2022-03-23 22:31:19 +00:00
magic-akari
bf1924d1a8
feat(es/typescript): Support optional variance annotations ( #4008 )
2022-03-23 14:36:37 +00:00
SWC Bot
77722c4943
chore: Publish crates
2022-03-22 08:03:01 +00:00
Alexander Akait
634d732803
feat(es/ast): Add raw
to Str
( #4071 )
2022-03-22 07:54:08 +00:00
SWC Bot
58e1ed4a5f
chore: Publish crates
2022-03-22 04:54:28 +00:00
Austaras
9a8fc2776e
fix(es/parser): Make let
a reserved word in strict mode ( #4113 )
2022-03-22 04:52:10 +00:00
Donny/강동윤
61f1a37492
fix(es/codegen): Fix codes related to sourcemap ( #4106 )
2022-03-21 05:14:45 +00:00
SWC Bot
7d335cdd28
chore: Publish crates
2022-03-20 11:58:30 +00:00
Hannes Bornö
d38117d4cb
fix(es/parser): Allow parentheses in assignment target ( #4105 )
2022-03-20 11:56:22 +00:00
Donny/강동윤
b31ead5cbe
chore: Fix CI
2022-03-20 15:25:35 +09:00
Donny/강동윤
565a7202ed
chore: Fix CI
2022-03-20 00:15:03 +09:00
Edwin Coronado
57802cfcce
fix(common): Fix the line number of errors ( #4082 )
2022-03-19 23:56:12 +09:00
Donny/강동윤
792ab2ca25
test(es/parser): Add a test for a fixed issue ( #4085 )
2022-03-19 06:14:13 +00:00
SWC Bot
a9708a5a1f
chore: Publish crates
2022-03-17 06:58:38 +00:00
Donny/강동윤
ffcb6ce523
fix(es/parser): Allow nested ambient context in .d.ts
files ( #4060 )
2022-03-17 06:56:26 +00:00
SWC Bot
4d6d766cf8
chore: Publish crates
2022-03-17 05:36:01 +00:00
Austaras
bbe8f3d8fe
fix(es/ast): Revert removal of definite
in PrivateProp
( #4051 )
2022-03-17 05:33:37 +00:00
LongYinan
db9b988845
feat(node-swc): Add libc
field in Linux platform packages ( #4046 )
2022-03-16 18:58:24 +09:00
SWC Bot
0d6fb99384
chore: Publish crates
2022-03-15 16:20:51 +00:00
Austaras
120d2a534e
fix(es/parser): Emit an error for multiple constructors with body ( #4031 )
2022-03-15 16:18:19 +00:00
Donny/강동윤
e19a60aad4
fix(es/compat): Change pass ordering of es2015
( #4029 )
...
**Description:**
We should apply `regenerator` after `block_scoping` because `regenerator` does not know how to handle `const`s.
**Related issue:**
- Closes https://github.com/swc-project/swc/issues/3006
2022-03-15 14:17:03 +00:00
SWC Bot
6d5541ccbe
chore: Publish crates
2022-03-15 11:00:48 +00:00
Lennart
25e5ccc548
fix(es/parser): Allow building with stable rustc
( #4024 )
2022-03-15 19:58:29 +09:00