SWC Bot
e9dfe879d9
chore: Publish crates
2023-08-16 18:04:14 +00:00
SWC Bot
d5495eeb9a
chore: Publish crates
2023-08-16 14:18:56 +00:00
SWC Bot
2dc88ef147
chore: Publish crates
2023-08-16 13:26:52 +00:00
Donny/강동윤
8b809dbe23
refactor(es/parser): Remove needless unsafe
( #7818 )
...
**Related issue:**
- Closes #7797
2023-08-16 13:24:35 +00:00
SWC Bot
a671afa0aa
chore: Publish crates
2023-08-16 02:12:39 +00:00
SWC Bot
0f66ee315a
chore: Publish crates
2023-08-14 15:47:58 +00:00
David Sherret
e527c12a82
fix(es/parser): Revert lexer fix for <<
( #7807 )
...
This temporarily reverts commit 68503726a7
until https://github.com/swc-project/swc/issues/7621 can be fixed.
Re-opens #7187 .
2023-08-14 15:45:51 +00:00
SWC Bot
74d446f759
chore: Publish crates
2023-08-14 01:35:45 +00:00
Manish Goregaokar
5e7834aa2e
refactor(es/parser): Don't attempt to handle shebangs in read_token_number_sign
( #7803 )
...
bump() has a safety invariant that there must be input in the buffer to
read (See https://github.com/swc-project/swc/issues/7709 ).
This function as currently written calls `bump()` after calling
`read_token_interpreter()`, which *may* have exhausted the buffer
already in the specific case that it is handling a shebang. (The input
string `#!/bin/js` with no newline is sufficient to cause UB here)
Fortunately, shebangs never reach this function, due to `read_shebang`!
Hurray!
It's cleaner to not attempt to handle shebangs here when this code path
will never be reached, and use a debug assertion to ensure that we're
not dealing with shebangs.
2023-08-14 01:33:50 +00:00
SWC Bot
b5dcce03c1
chore: Publish crates
2023-08-10 08:01:19 +00:00
SWC Bot
0219eebeb9
chore: Publish crates
2023-08-07 21:31:50 +00:00
Fy
5f97f8656f
refactor(es/parser): Do not validate top-level await with target ( #7774 )
2023-08-07 21:30:04 +00:00
SWC Bot
1e6ade8cfa
chore: Publish crates
2023-08-07 20:01:21 +00:00
SWC Bot
97289b4edc
chore: Publish crates
2023-08-06 20:31:13 +00:00
Gareth McSorley
e50cfde938
refactor(es/parser): Do not use lexical
( #7758 )
...
This PR replaces the current usage of lexical within the swc_ecma_parser
crate with equivalent parsing of large numbers using BigInt.
**Description:**
As discussed in
https://github.com/swc-project/swc/issues/7752 , lexical contains a
number of soundness issues but doesn't appear to be actively supported.
Given the relatively low integration surface it seems reasonable to
replace the usage of lexical with another package to avoid this issue.
**Related issue:**
- Closes #7752
2023-08-06 20:29:17 +00:00
SWC Bot
d3b516d692
chore: Publish crates
2023-07-28 05:59:26 +00:00
Rene B
864bdefbe0
refactor(es/parser): Make stacker
an optional dependency ( #7720 )
2023-07-28 05:57:31 +00:00
SWC Bot
026101b71e
chore: Publish crates
2023-07-20 05:57:51 +00:00
SWC Bot
26d79444c6
chore: Publish crates
2023-07-13 02:09:23 +00:00
Manish Goregaokar
a961090c9d
chore(es/parser): Scope use of lexical
to certain features ( #7644 )
2023-07-13 11:07:25 +09:00
SWC Bot
735a82d6a4
chore: Publish crates
2023-07-05 03:52:51 +00:00
Donny/강동윤
b34f1adbcc
build(cargo): Update rustc
to 2023-07-03
( #7623 )
2023-07-05 03:50:43 +00:00
SWC Bot
cba986807a
chore: Publish crates
2023-06-30 07:43:11 +00:00
Donny/강동윤
68503726a7
fix(es/parser): Re-lex <<
as two <
-s if required ( #7439 )
...
**Related issue:**
- Closes #7187 .
2023-06-30 07:41:19 +00:00
SWC Bot
efc1afd96a
chore: Publish crates
2023-06-29 14:15:31 +00:00
Donny/강동윤
bcd5a1d666
feat(es/compat): Implement transform for explicit resource management ( #7376 )
...
**Related issue:**
- Closes #7316 .
- Closes #7369 .
2023-06-29 14:13:43 +00:00
SWC Bot
b4ae28b053
chore: Publish crates
2023-06-26 04:02:12 +00:00
Donny/강동윤
9d5dda1299
fix(es/parser): Adjust context while parsing type arguments of TypeScript type queries ( #7582 )
...
**Related issue:**
- Closes #7580 .
2023-06-26 04:00:00 +00:00
SWC Bot
4efefb0f4e
chore: Publish crates
2023-06-23 02:28:10 +00:00
SWC Bot
8c1436aaf5
chore: Publish crates
2023-06-22 13:40:52 +00:00
Donny/강동윤
d57d0d3ad3
build(cargo): Update deps ( #7566 )
2023-06-22 13:37:35 +00:00
SWC Bot
33355cf707
chore: Publish crates
2023-06-22 07:43:38 +00:00
Donny/강동윤
d12dc70c91
build(cargo): Update deps ( #7564 )
2023-06-22 07:40:41 +00:00
SWC Bot
f9c5265bde
chore: Publish crates
2023-06-21 15:44:11 +00:00
SWC Bot
c023a03d7b
chore: Publish crates
2023-06-21 03:18:22 +00:00
SWC Bot
fec056f5db
chore: Publish crates
2023-06-20 03:21:20 +00:00
SWC Bot
44aac8fe27
chore: Publish crates
2023-06-19 05:51:51 +00:00
SWC Bot
08574e690b
chore: Publish crates
2023-06-12 08:04:50 +00:00
Donny/강동윤
3958f1792c
refactor(es/ast): Remove unused fields ( #7518 )
...
**Related issue:**
- Closes #7347 .
- Closes #7487 .
2023-06-12 08:02:34 +00:00
SWC Bot
96895b1f3f
chore: Publish crates
2023-06-12 06:49:35 +00:00
Donny/강동윤
aa83584634
refactor(es/ast): Reimplement optional chaining ( #7441 )
...
**Related issue:**
- Closes #7003 .
- Closes #7156 .
2023-06-12 06:47:40 +00:00
SWC Bot
cea1237c5e
chore: Publish crates
2023-06-12 01:39:32 +00:00
Pig Fang
6c00a2422a
feat(es/parser): Disallow tagged tpl in optional chaining ( #7515 )
2023-06-12 01:37:39 +00:00
SWC Bot
a63905aa2c
chore: Publish crates
2023-05-30 05:18:06 +00:00
Donny/강동윤
8274cce9a7
test(es/parser): Add a test for a fixed issue ( #7467 )
...
**Related issue:**
- Closes #7456 .
2023-05-30 04:35:07 +00:00
SWC Bot
a85816d505
chore: Publish crates
2023-05-25 04:54:11 +00:00
Donny/강동윤
77850dd8f0
fix(es/parser): Fix parsing of generic jsx element name ( #7449 )
...
**Related issue:**
- Closes #7444 .
2023-05-25 13:52:14 +09:00
SWC Bot
6c3ff01a53
chore: Publish crates
2023-05-24 07:48:00 +00:00
SWC Bot
c1f2b4a09f
chore: Publish crates
2023-05-24 06:59:37 +00:00
Donny/강동윤
a37d59a134
fix(es/parser): Fix parsing of tsx with a type annotation in a conditional expression ( #7440 )
...
**Related issue:**
- Closes #7224 .
2023-05-24 15:57:50 +09:00