Commit Graph

8246 Commits

Author SHA1 Message Date
SWC Bot
979061f6ba chore: Bump crates 2024-01-22 13:04:29 +00:00
Fy
71930ffb56
fix(es/quote): Add support for import phase to quote macro (#8536)
**Description:**

When using quote! to generate import decl, compile error: missing field `phase` in initializer of 'swc_core::ecma::ast::Import'
2024-01-22 22:02:49 +09:00
SWC Bot
240ed1385d chore: Publish 1.3.106-nightly-20240122.2 2024-01-22 09:02:03 +00:00
SWC Bot
ae75dcb710 chore: Bump crates 2024-01-22 08:53:49 +00:00
Donny/강동윤
793f2651a8
feat(swc_core): Expose preset_env_base (#8537) 2024-01-22 17:51:26 +09:00
SWC Bot
6842e646e0 chore: Publish 1.3.106-nightly-20240122.1 2024-01-22 00:18:11 +00:00
SWC Bot
990f291d43 chore: Bump crates 2024-01-21 15:30:11 +00:00
Donny/강동윤
2d8bd9ed89
fix(es/module): Fix handling of * in jsc.paths (#8535)
**Related issue:**

 - Closes #8375
2024-01-21 15:28:38 +00:00
SWC Bot
9c23f1cf38 chore: Bump crates 2024-01-21 12:37:38 +00:00
Donny/강동윤
71fb5c12a7
fix(es/module): Fix resolving of dependencies (#8533)
**Description:**

I changed the signature of `Resolve` because there was a need to pass the `value` part from `jsc.paths` to the caller.


**Related issue:**

 - Closes #8184
2024-01-21 21:35:57 +09:00
강동윤 (Donny)
fb8d6cde0e Update @swc/plugin-jest 2024-01-21 15:59:06 +09:00
SWC Bot
eee7925af2 chore: Publish 1.3.106-nightly-20240121.1 2024-01-21 05:41:23 +00:00
SWC Bot
6210bf19de chore: Bump crates 2024-01-21 03:08:11 +00:00
magic-akari
72048ae1ce feat(es/ast): Support import phase (#8279)
**Description:**

- https://github.com/tc39/proposal-source-phase-imports
2024-01-21 12:05:46 +09:00
Donny/강동윤
bc38ac906c fix(es/ast): Fix definition of SetterProp (#8314)
**Related issue:**

 - Closes #8157
 - Closes #8377
2024-01-21 12:05:46 +09:00
David Sherret
572bcaefc1 fix(es/ast): Add definite and is_override to AutoAccessor (#8436)
**Description:**

Adds a `definite` and `is_override` property to `AutoAccessor` as they were missing.
It also fixes codegen for `AutoAccessor` when emitting TypeScript (which is the main reason I need this PR).

**BREAKING CHANGE:**

Adds a `definite` and `is_override` property.

**Related issue:**

 - Closes #8344
2024-01-21 12:05:46 +09:00
강동윤 (Donny)
c104f64722 chore: Publish crates 2024-01-21 12:04:57 +09:00
Donny/강동윤
40d9fb78d5
chore: Publish v1.3.105 with swc_core v0.87.29 (#8531) 2024-01-21 12:01:52 +09:00
SWC Bot
1ca0d65c29 chore: Bump crates 2024-01-21 02:34:11 +00:00
Donny/강동윤
014a6cda82
fix(common): Remove < and > from Display impl of FileName::Custom (#8530)
**Description:**

It caused a problem for next.js
2024-01-21 02:32:35 +00:00
SWC Bot
48c56d10cc chore: Publish 1.3.105-nightly-20240121.1 2024-01-21 00:13:16 +00:00
SWC Bot
828190c035 chore: Publish 1.3.105-nightly-20240120.1 2024-01-20 02:52:24 +00:00
SWC Bot
6d9939d18e chore: Bump crates 2024-01-19 15:19:51 +00:00
Donny/강동윤
5e40dc7d8c
chore(preset-env): Update browserslist-rs (#8524) 2024-01-19 15:18:08 +00:00
SWC Bot
cdc55b78db chore: Bump crates 2024-01-19 04:15:37 +00:00
Donny/강동윤
974c6a0036
test(es/codegen): Add a JS test for ascii-only mode (#8519)
**Description:**

The issue was fixed by #8493, but it was not included in the latest release because of the wrong bump comment.

**Related issue:**

 - Closes #8491
2024-01-19 04:14:11 +00:00
SWC Bot
4b76b8f0c3 chore: Bump crates 2024-01-19 03:41:23 +00:00
Donny/강동윤
4b4a0a244d
test(es/module): Add a test for a fixed issue (#8521)
**Related issue:**

 - Closes #8375
2024-01-19 03:39:42 +00:00
SWC Bot
a8518410da chore: Bump crates 2024-01-19 03:14:02 +00:00
Donny/강동윤
8fac2bb03c
test(es/minifier): Add a test for a fixed issue (#8520)
**Related issue:**

 - Closes #8407
2024-01-19 03:12:28 +00:00
SWC Bot
26f3448edc chore: Bump crates 2024-01-19 02:47:43 +00:00
Donny/강동윤
1c4eb1f54f
test(es/codegen): Add tests for @ctrl/tinycolor (#8518)
**Related issue:**

 - Closes #8475
 - #8496 (Fixed by #8510)
2024-01-19 02:46:05 +00:00
SWC Bot
e63a5c7e95 chore: Bump crates 2024-01-19 02:14:55 +00:00
Donny/강동윤
9f1ce3acd6
fix(es/codegen): Fix codegen of \\0 (#8433)
**Related issue:**

 - Closes #8431
2024-01-19 02:11:05 +00:00
SWC Bot
fefe9636f0 chore: Publish crates 2024-01-19 01:27:20 +00:00
melbourne2991
f40f59bd70
fix(es/typescript): Fix panic on invalid jsx pragma (#8513)
**Description:**

Currently a jsx pragma with an invalid js identifier (eg, with dashes: `@jsx bad-pragma` causes a panic.

This PR prevents a panic and will ignore an invalid pragma in a comment.

(There may be an argument for showing an error or warning instead, but
given a jsx pragma is still valid ES I'm not sure whether that makes
sense?)

[Original (Deno) issue
here](https://github.com/denoland/deno/issues/21927)
2024-01-19 01:25:46 +00:00
SWC Bot
3c00098dbe chore: Publish crates 2024-01-19 00:45:54 +00:00
Donny/강동윤
4946a11137
fix(es/minifier): Fix a bug in tpl string <-> string logic (#8510)
**Related issue:**

 - Closes #8496
2024-01-19 00:44:19 +00:00
SWC Bot
104f604e50 chore: Publish 1.3.105-nightly-20240119.1 2024-01-19 00:11:55 +00:00
Donny/강동윤
c7236cf077
chore: Add stackblitz.com to nissuer.yml 2024-01-18 23:13:55 +09:00
SWC Bot
4520eca97a chore: Publish crates 2024-01-18 14:05:51 +00:00
Donny/강동윤
3741448b1b
chore: Update dependencies (#8514) 2024-01-18 14:04:09 +00:00
SWC Bot
96b40a9d6a chore: Publish 1.3.105-nightly-20240118.1 2024-01-18 00:10:23 +00:00
강동윤 (Donny)
585c24fc72 chore: Publish crates 2024-01-17 19:36:33 +09:00
Donny/강동윤
72e1383973
chore: Publish v1.3.104 with swc_core v0.87.25 (#8512) 2024-01-17 19:35:29 +09:00
SWC Bot
c9dfedf5ec chore: Publish crates 2024-01-17 09:01:13 +00:00
Donny/강동윤
ba753f1288
fix(plugin): Set swc_common::errors::HANDLER while invoking plugins (#8511)
**Description:**

- `swc_common::errors::handler::HANDLER` should be used, and `swc_core::plugin::errors::HANDLER` is now a simple alias.



**Related issue:**

 - Closes #8502
2024-01-17 08:59:30 +00:00
SWC Bot
fa054817df chore: Publish 1.3.104-nightly-20240117.1 2024-01-17 00:11:10 +00:00
SWC Bot
0763e7e6d6 chore: Publish crates 2024-01-16 04:43:01 +00:00
Donny/강동윤
10449e08d9
fix(es): Fix plugin template & restore test! as test_inline! (#8508)
**Description:**

I made a bad decision while migrating tests in the core repository to snapshot testing. So, I'm adding the `test!` macro back with a slight renaming.

**Related issue:**

 - Closes #8504
2024-01-16 04:41:18 +00:00