Commit Graph

371 Commits

Author SHA1 Message Date
Alexander van Ratingen
75c8e09d6d
feat(api/rust): Implement more traits for public types (#5488) 2022-08-17 06:43:32 +00:00
Donny/강동윤
f7b34e70e9 chore: Publish crates 2022-08-17 14:28:18 +09:00
OJ Kwon
76797b1fc1
build(bindings): Bump up swc_core (#5484) 2022-08-14 07:48:15 +00:00
Donny/강동윤
925839adc6 chore: Publish crates 2022-08-13 19:11:26 +09:00
Donny/강동윤
1b089be611 chore: Publish crates 2022-08-13 14:09:52 +09:00
Donny/강동윤
d2f2a1315b chore: Publish crates 2022-08-13 00:49:08 +09:00
Donny/강동윤
3eb1f4b2b1
chore(ci): Fix lints (#5462) 2022-08-12 13:13:35 +00:00
Donny/강동윤
033e05677a chore: Publish crates 2022-08-12 15:18:06 +09:00
OJ Kwon
e25b37d579
build(atoms): Bump swc_atoms (#5442) 2022-08-11 18:52:44 +09:00
SWC Bot
cdb9bbd707 chore: Publish crates 2022-08-08 03:00:13 +00:00
magic-akari
9443419591
fix(es/fixer): Preserve parens for optional chaining expressions (#5388) 2022-08-04 04:20:25 +00:00
OJ Kwon
5c9ea16b2a
build(cargo): Update packages (#5331) 2022-07-29 08:30:41 +09:00
SWC Bot
129a886e13 chore: Publish crates 2022-07-27 04:18:47 +00:00
SWC Bot
2017daa2d5 chore: Publish crates 2022-07-26 04:04:42 +00:00
Donny/강동윤
3100bf8c62
fix(es/codegen): Fix sourcemap of multiline comments (#5299) 2022-07-26 04:02:50 +00:00
Donny/강동윤
a37fdca969 chore: Publish crates 2022-07-22 21:06:43 +09:00
Donny/강동윤
037a53d5d1
perf(es/ast): Use Atom in some places (#5271) 2022-07-22 20:09:25 +09:00
SWC Bot
fe74b7067c chore: Publish crates 2022-07-20 04:10:58 +00:00
OJ Kwon
0d91741eb9
build(cargo): Align dependency versions (#5248) 2022-07-20 03:42:04 +00:00
Donny/강동윤
54982d4d72 chore: Publish crates 2022-07-19 11:38:23 +09:00
SWC Bot
364be526f1 chore: Publish crates 2022-07-13 10:58:04 +00:00
magic-akari
ec9378370d
fix(es/parser): Fix parsing of export specifiers (#5190) 2022-07-13 10:55:55 +00:00
SWC Bot
8ee3c8f5fb chore: Publish crates 2022-07-13 10:31:47 +00:00
Austaras
375774d31e
fix(es): Check the syntax context of arguments (#5174) 2022-07-13 10:29:03 +00:00
Donny/강동윤
b433b69263 chore: Publish crates 2022-07-12 23:58:30 +09:00
SWC Bot
2bd5b4413a chore: Publish crates 2022-07-09 10:17:04 +00:00
SWC Bot
297228a690 chore: Publish crates 2022-07-07 07:48:49 +00:00
SWC Bot
09d4aa4a0d chore: Publish crates 2022-07-07 07:25:22 +00:00
三丝
9d4be11f2e
doc(es/parser): Typo (#5136) 2022-07-07 07:23:21 +00:00
Edwin Coronado
2d94797975
feat(es/parser): Support d in regex flag for es2022 (#5127) 2022-07-07 04:35:49 +00:00
SWC Bot
70bfbfba44 chore: Publish crates 2022-07-06 07:53:08 +00:00
magic-akari
fbfca36f58 fix(es/parser): Support type-only export-import declarations (#5122) 2022-07-06 16:51:18 +09:00
SWC Bot
9385103649 chore: Publish crates 2022-07-06 04:44:10 +00:00
SWC Bot
55d71bf9fc chore: Publish crates 2022-07-02 04:48:04 +00:00
Austaras
b62fd3e6cc
feat(es/parser): Support labelled function from annex B (#5078) 2022-07-02 04:45:22 +00:00
Donny/강동윤
c2c923e205 chore: Publish crates 2022-07-01 11:50:45 +09:00
SWC Bot
73874486b2 chore: Publish crates 2022-06-29 11:05:08 +00:00
Alexander Akait
37eb366a1f
feat(es/parser): Add allow_return_outside_function to options (#5046) 2022-06-29 11:02:05 +00:00
SWC Bot
5576c3c601 chore: Publish crates 2022-06-29 03:37:57 +00:00
SWC Bot
ea88660d62 chore: Publish crates 2022-06-25 10:05:37 +00:00
magic-akari
f238093c3b
fix(es/parser): Allow initializer of the var of for-in loop in non-strict mode (#5038) 2022-06-25 10:02:43 +00:00
Pig Fang
6bcb92598b
test(es/parser): Add a test case for instantiation expr (#5014) 2022-06-21 14:54:17 +00:00
SWC Bot
141575d38d chore: Publish crates 2022-06-19 17:54:40 +00:00
Pig Fang
a62b2b3244
fix(es/parser): Allow instantiation expression followed by a line break or a binary operator (#5000) 2022-06-19 17:52:05 +00:00
SWC Bot
fb7b314721 chore: Publish crates 2022-06-18 10:03:39 +00:00
magic-akari
53a8cb1209
fix(es/parser): Don't panic on an invalid import meta property (#4994) 2022-06-18 10:00:52 +00:00
SWC Bot
14140aa5bc chore: Publish crates 2022-06-18 03:29:17 +00:00
Pig Fang
36ef3e4507
fix(es/parser): Fix binary operator parsed as an instantiation expression (#4992) 2022-06-18 03:26:39 +00:00
LongYinan
db9f7a5ad4
chore(ci): Fix publish build on Windows (#4970) 2022-06-14 15:58:10 +00:00
SWC Bot
51715e4d0d chore: Publish crates 2022-06-14 07:08:40 +00:00
Donny/강동윤
3e03ebf8bb
fix(es/parser): Don't assume the length of char (#4967) 2022-06-14 07:05:35 +00:00
SWC Bot
ac7dac6198 chore: Publish crates 2022-06-11 08:13:24 +00:00
magic-akari
381d273f11
fix(es/parser): Check for line break after async (#4940) 2022-06-11 08:10:49 +00:00
SWC Bot
953453ca8c chore: Publish crates 2022-06-11 04:18:13 +00:00
magic-akari
11db191af5
fix(es/parser): Allow negative bigint literal in types (#4938) 2022-06-11 04:15:21 +00:00
Donny/강동윤
eb0acc3859 chore: Publish crates 2022-06-06 04:54:19 +09:00
Donny/강동윤
fd3501bf87
feat(wasm): Add json error (#4853) 2022-06-01 11:51:24 +09:00
Donny/강동윤
f847709787
chore(common): Update rustc (#4828) 2022-05-28 07:07:58 +00:00
SWC Bot
ea92ae10e8 chore: Publish crates 2022-05-23 09:44:48 +00:00
Donny/강동윤
b7a195a1cf
refactor(es/parser): Remove duplicate (#4750) 2022-05-23 09:42:29 +00:00
SWC Bot
4d606effdf chore: Publish crates 2022-05-23 09:21:24 +00:00
Donny/강동윤
98df64517e
perf(common): Add more methods to Spanned (#4749)
- Lots of code only needs `lo` or `hi`, but they call `span()`, which is inefficient in some cases.
 - This PR only adds a trivial amount of optimization. I may add full optimization in future.
 - This PR improves codegen performance of `ExprOrSpread` and `Option<ExprOrSpread>`.
2022-05-23 09:18:40 +00:00
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