Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
1.3.75
->1.4.8
0.5.3
->0.5.7
0.2.29
->0.2.36
0.2.3
->0.2.6
Release Notes
swc-project/swc (@swc/core)
v1.4.8
Compare Source
Bug Fixes
(es/module) Fix regression of resolving relative modules (#8748) (f988b66)
(es/parser) Allow
export
after decorators when valid (#8739) (663261b)Miscellaneous Tasks
tokio
(#8740) (9c1eb01)v1.4.7
Compare Source
Bug Fixes
(es/minifier) Fix eval of
toString
of array with holes (#8727) (f3fbd9d)(es/minifier) Do not evaluate
slice
calls with negative index (#8726) (23f9635)(es/minifier) Handle cyclic references while dropping unused properties (#8725) (102241b)
(es/minifier) Fix evaluation of array literals with
void 0
(#8733) (aa0154d)(es/minifier) Fix removal of array pattern bindings (#8730) (312f0d8)
(es/minifier) Make
Finalizer
handlehoisted_props
correctly (#8738) (95761b7)(es/proposal) Fix var placement for using transform (#8732) (633cd89)
Features
(es/lints) Add
no-prototype-builtins
rule (#8684) (a5dbb17)(es/lints) Add
prefer-object-spread
rule (#8696) (aa9297b)Refactor
wasm32-wasi-preview1-threads
target support (#8724) (e3acd14)v1.4.6
Compare Source
Bug Fixes
Performance
v1.4.5
Compare Source
Bug Fixes
jsc.paths
(#8702) (d37125f)Features
v
flag (#8690) (4ce39eb)v1.4.4
Compare Source
v1.4.2
Compare Source
Bug Fixes
(es/helpers) Add
addInitializer
to field decorators (#8619) (cd38ef3)(es/minifier) Abort property hoister on
this
usage (#8647) (9715320)(es/react) Validate pragma before parsing (#8637) (5f1cf01)
(es/typescript) Handle exported JSX members (#8642) (22c8e2e)
Features
(es/minifier) Remove unused parameters of arrow functions (#8636) (8cd4813)
(swc_core) Expose ES linter (#8635) (762959c)
Testing
(es/parser) Add a test for
<<
(#8634) (2c63b31)(es/transforms) Add a test for
reserved_words
pass (#8638) (a0b77e0)v1.4.1
Compare Source
Bug Fixes
(binding/types) Update typings for
options.envs
to match implementation (#8620) (2a115cf)(es/compat) Visit AssignExpr right branch in FnEnvHoister (#8633) (e5d6de0)
(es/decorators) Do not insert duplicate constructors (#8631) (21a447f)
(es/parser) Set class property to
abstract
oroverride
even in error states (#8610) (5a77306)(es/parser) Fix parsing of dynamic source phase imports (#8611) (7d724d8)
(es/parser) Rescan
<<
as<
when parsing type args (#8607) (9e6dad9)(es/parser) Fix detection of
use strict
directive (#8617) (95236e9)(es/plugin) Fix schema version issue (#8621) (132be95)
(es/quote) Allow variables typed
AssignTarget
(#8602) (6a48be4)(es/quote) Support
AssignTarget
, really (#8603) (ef91661)(es/quote) Fix code generation of
AssignTarget
(#8604) (16e9d4c)Features
hoist_props
(#8593) (3122e94)Miscellaneous Tasks
(config) Remove an empty file in
swc_config
(#8609) (d87fef0)(preset-env) Update
browserslist-rs
(#8614) (e5585e9)Refactor
Testing
(es) Update
tsc
conformance test suite (#8615) (c0beba7)Update
@swc/plguin-jest
used for plugin e2e testing (#8601) (95fe3db)Build
(cargo) Update
rustc
tonightly-2024-02-06
(#8618) (6726b63)(plugin) Update
wasmer
tov4.2.5
(#8624) (4e0d240)v1.4.0
Compare Source
Bug Fixes
(cli) Make Rust CLI use sourcemap code from the
swc
crate (#8576) (82bc061)(es/codegen) Fix codegen of async methods with decorators (#8575) (8c32225)
(es/lexer) Fix typo in
package
keyword (#8589) (8413a6c)(es/minifier) Fix top-level check (#8583) (a7c5255)
(es/proposals) Support using
using
keyword with functions (#8574) (d81596c)(es/resolver) Skip property in JSX member (#8598) (d480ab9)
(es/testing) Make
test_inline!
not read output as a file (#8569) (d683089)(es/typescript) Handle exported JSX binding name in TypeScript namespace (#8596) (2a70a6b)
Features
(es/minifier) Inline more IIFE arguments (#8584) (18e0b53)
(es/minifier) Respect more options (#8582) (fd997d3)
Refactor
Testing
(es/minifer) Update the passing terser test list (#8573) (8b86638)
(es/testing) Ensure that
test_inline!
is working properly (#8590) (872a47b)v1.3.107
Compare Source
Bug Fixes
(es/codegen) Do not produce octal literals (#8565) (07634a0)
(es/decorator) Skip TypeScript class method/prop declarations (#8555) (6a8dd8c)
(es/decorator) Preserve state while traversing the
module_items
scope (#8556) (f416aff)(es/loader) Make
tsc
resolver work for bare specifier (#8550) (d6a4615)v1.3.106
Compare Source
Bug Fixes
(binding/types) Add
bugfixes
field to EnvConfig (#8538) (49ebdf9)(common) Fix source map generation with
inputSourceMap
(#8546) (043ee85)(es/ast) Add
definite
andis_override
toAutoAccessor
(#8436) (572bcae)(es/ast) Fix definition of
SetterProp
(#8314) (bc38ac9)(es/codegen) Set
sourceRoot
of sourcemaps (#6086) (ae78669)(es/compat) Support vars from
reserved_word
pass (#8543) (fc929e9)(es/loader) Don't use browser versions for
jsc.paths
(#8548) (fab27da)(es/minifier) Fix a bug related to inliner and the variable scoping (#8542) (aa70131)
(es/module) Fix resolving of dependencies (#8533) (71fb5c1)
(es/module) Fix handling of
*
injsc.paths
(#8535) (2d8bd9e)(es/quote) Add support for import phase to quote macro (#8536) (71930ff)
Features
(css/parser) Implement error reporting for
@value
of CSS Modules (#8547) (00619b1)(es/ast) Support import phase (#8279) (72048ae)
(swc_core) Expose
preset_env_base
(#8537) (793f265)Miscellaneous Tasks
sourcemap
(#8544) (4630426)v1.3.105
Compare Source
Bug Fixes
(common) Remove
<
and>
fromDisplay
impl ofFileName::Custom
(#8530) (014a6cd)(es/codegen) Fix codegen of
\\0
(#8433) (9f1ce3a)(es/minifier) Fix a bug in tpl string <-> string logic (#8510) (4946a11)
(es/typescript) Fix panic on invalid jsx pragma (#8513) (f40f59b)
Miscellaneous Tasks
browserslist-rs
(#8524) (5e40dc7)Testing
(es/codegen) Add tests for
@ctrl/tinycolor
(#8518) (1c4eb1f)(es/codegen) Add a JS test for ascii-only mode (#8519) (974c6a0)
(es/minifier) Add a test for a fixed issue (#8520) (8fac2bb)
(es/module) Add a test for a fixed issue (#8521) (4b4a0a2)
v1.3.104
Compare Source
Bug Fixes
(es) Fix plugin template & restore
test!
astest_inline!
(#8508) (10449e0)(es/systemjs) Handle top level this (#8506) (0f94c8c)
(plugin) Set
swc_common::errors::HANDLER
while invoking plugins (#8511) (ba753f1)v1.3.103
Compare Source
Bug Fixes
(binding/types) Add type for
decoratorVersion
(#8468) (79438e6)(es/codegen) Emit abstract keyword (#8479) (a12eaae)
(es/codegen) Emit declare keyword for class properties (#8478) (2076ef8)
(es/codegen) Emit implements clause with commas (#8477) (d98a282)
(es/codegen) Emit
?
for an optional computed property (#8481) (e0bdc0f)(es/codegen) Fix codegen of a property key in ascii-only mode (#8493) (8d9bf4c)
(es/compat) Set inserted var inside export class in destructing (#8470) (4416077)
(es/compat) Correctly handle
this
in arrow function parameters (#8489) (52a8f05)(es/minifier) Correctly escape more characters (#8490) (f7c4934)
(es/module) Fix resolving of
.js
files (#8480) (b70e96f)(es/parser) Correctly parse the keyword (#8483) (740e6f3)
(es/resolver) Resolve top-level
undefined
,NaN
, andInfinity
correctly (#8471) (82bd807)Documentation
string_cache
withhstr
inARCHITECTURE.md
(#8487) (abd7c51)Features
/>
on non-void HTML elements via a flag (#8460) (566063d)Refactor
Testing
(es/minifier) Enable non esm mode for tests (#8472) (1120336)
(es/minifier) Enable script mode for
terser_exec
andmangle
(#8474) (b676e75)v1.3.102
Compare Source
Bug Fixes
(css/parser) Fix parsing of
hsla(var(--foo), 1)
(#8443) (d89b60a)(es) Apply
paren_remover
for minify (#8442) (e68720a)(es/codegen) Fix codegen of type-only export declarations (#8447) (65dec90)
(es/codegen) Emit
override
keyword (#8449) (0dd96f8)(es/compat) Use correct
span.lo
in class transforms (#8439) (a06d5b2)(es/minifier) Add WeakRef as a safe global reference (#8458) (d681785)
(es/parser) Disallowing await as an identifier in class static block (#8450) (0b188cc)
(es/renamer) Correctly check top level (#8456) (1e44e57)
v1.3.101
Compare Source
v1.3.100
Compare Source
Bug Fixes
(es/codegen) Fix panic due to
\\ud
(#8346) (1891afa)(es/codegen) Wrap quote for length greater than one (#8351) (2cdea3f)
(es/decorators) Resolve enum for
design:returntype
(#8320) (91ef7c9)(es/fixer) Wrap yield expression in await expression (#8357) (ff719f0)
(es/minifier) Fix
if_return
bug related toawait
andyield
(#8328) (01e2c7f)(es/minifier) Give up terminate merge if in
try
withfinally
(#8342) (ed5a9b3)(es/parser) Wrap with
OptChain
acrossTsNonNull
(#8332) (8af6ffb)(es/parser) Fix conditional compilation (#8343) (a423681)
(es/react) Make jsx with single spread child static (#8339) (58568fa)
(es/renamer) Allow
globalThis
to be shadowed (#8327) (3dd73a3)(es/typescript) Handle shebang with jsx pragma (#8318) (c25601d)
Miscellaneous Tasks
Build
vergen
tov8
(#8325) (1315615)v1.3.99
Compare Source
v1.3.96
Compare Source
Bug Fixes
(ci) Set
tag
for wasm publish actions (#8200) (8db80b8)(es/compat) Make
block-scoping
pass rename exports correctly (#8175) (b13bc32)(es/compat) Use dummy span for blocks in
parameters
(#8202) (c1b255a)(es/compat) Handle private names from class properties pass (#8090) (83a5a0c)
(es/react) Visit children nodes in
jsx-src
pass (#8212) (47733a9)(es/transforms) Do not add
PURE
comment toBytePos(0)
(#8207) (c061356)(es/typescript) Preserve const enum for named export (#8208) (abced23)
Features
(es/minifier) Respect inline level and preserve native names (#8205) (dd805e9)
(es/preset-env) Update compat data (#8194) (3dc4e1e)
(es/testing) Support babel-like fixture testing officially (#8190) (e960614)
(es/testing) Use
__swc_snapshots__
fortest!
macro (#8191) (0aafa75)Performance
has_flag
toComments
(#8182) (7530e90)Refactor
v1.3.95
Compare Source
Bug Fixes
(es/compat) Don't add pure annotations to dummy spans (#8172) (9ceb57b)
(es/minifier) Always consider
reassigned
when inlining (#8168) (c26a225)(es/typescript) Support
ts_enum_is_mutable
with const enums (#8171) (02d0613)Build
ahash
(#8174) (5ca3b63)v1.3.94
Compare Source
Bug Fixes
(css/ast) Make
.hash()
ofToken
not recursive (#8151) (8d7894c)(es/minifier) Abort seq inliner if
b
can short-circuit (#8128) (111de26)(es/minifier) Abort function inliner if
keep_fnames
istrue
(#8145) (35601e4)(es/parser) Skip
this
parameters in setter (#8158) (826386f)(es/utils) Skip var declarator name in
RefRewriter
(#8125) (fb81a36)(es/utils) Fix regression of
RefRewriter
(#8153) (08cf1f7)Features
(es/compat) Implement decorator metadata proposal (#8097) (9c029ef)
(es/compat) Skip empty class static blocks (#8138) (e186b80)
(es/minifier) Evaluate more
toFixed
expressions (#8109) (7da3f52)(es/minifier) Inline into the arguments of
new
using seq inliner (#8127) (4f67794)(es/minifier) Drop empty static blocks (#8152) (8a461b8)
(es/parser) Implement
AsRef<str>
forIdentLike
(#8133) (bffe33a)(es/typescript) Add
ts_enum_is_mutable
to disable enum inlining (#8115) (57b171d)Miscellaneous Tasks
(bindings) Add
@deprecated
to JS plugins (#8132) (1e9b4e0)(es/module) Remove
serde(deny_unknown_fields)
(#8163) (5be8e74)Refactor
assign_count
fromreassigned
(#8137) (13106e0)v1.3.93
Compare Source
Bug Fixes
(ci) Fix CI (#8079) (7073e83)
(es/codegen) Fix codegen of type-only imports (#8070) (6f45b46)
(es/compat) Handle
__proto__
edge case inshorthand
pass (#8077) (a912937)(es/compat) Handle export default decorator only if not empty (#8099) (bf523f5)
(es/decorators) Fix a regression about class expressions (#8102) (cb4361f)
(es/helpers) Override mistake in
_interop_require_wildcard
(#8076) (1346528)(es/minifier) Don't inline functions if
keep_fnames
is enabled (#8093) (94bb42e)(es/parser) Fix parsing of
await using
(#8101) (e1043fa)(xtask) Fix nightly command (#8105) (db4ca65)
Features
Miscellaneous Tasks
Refactor
(atoms) Remove usage of
js_word!
to dropstring-cache
(#7976) (84cec87)(es/compat) Split
swc_ecma_transforms_compat
(#8110) (affb6fb)(es/module) Reimplement some functions of module/typescript (#8063) (3e5b062)
(es/parser) Introduce
TokenKind
along withToken
(#8071) (9b9bc51)(es/preset-env) Rename parameter to avoid confusion (#8106) (95eb147)
v1.3.92
Compare Source
Bug Fixes
(es/compat) Fix scoping of
explicit-resource-management
(#8044) (96a7a4d)(es/compat) Transform default-exported class decorators correctly (#8050) (a751f1c)
(es/compat) Use
async
andawait
correctly inblock-scoping
pass (#8056) (8318ea8)(es/module) Handle directives (#8048) (4d8e101)
Miscellaneous Tasks
(ci) Fix publish action (8ddb0da)
(ci) Prepare multi-package repository (#8043) (f2bc6a3)
(ci) Fix publish action for minifier (77b8591)
Fix CI condition (9c9c03b)
Fix CI (0c8d8a3)
Configure
nissuer
(#8053) (2a508bc)Configure issue validator (a555823)
Mark reproduction link required (c6e0a18)
Update nissuer.yml (#8060) (a2f1010)
Add
evanw.github.io
to the allowed repro hosts (c26ee63)Refactor
swc-bump
(#8045) (f717cf2)v1.3.91
Compare Source
Bug Fixes
(es/compat) Use return statements for method and setter decorator (#8017) (38bc710)
(es/compat) Generate
OptCall
forOptCall
for private fields (#8031) (06b6eb9)(es/minifier) Check if object shorthand is skippable for seq inliner (#8036) (01391e3)
(es/module) Sort the exported ESM bindings (#8024) (990ca06)
(es/typescript) Rename wrong
unresolved_mark
(#8018) (5817268)(es/typescript) Preserve default value of an exported binding in a namespace (#8029) (cf96171)
Documentation
Features
Miscellaneous Tasks
(ci) Prepare
@swc/minifier
(#8027) (8214b9e)(ci) Expose more crates to JS (#8033) (186ecfa)
(ci) Remove wrong
if
s (dec68c3)- general: Fix yarn lockfile (7f91274)- general: Fix yarn lockfile (c062536)Refactor
(es) Extract parser/codegen code for
swc::Compiler
(#8030) (a13f5cb)(es/minifier) Move JS options to
swc_ecma_minifier
(#8028) (725f7f5)v1.3.90
Compare Source
Bug Fixes
(es/codegen) Fix codegen of unicode surrogates (#7985) (39c680d)
(es/codegen) Fix codegen of optional chaining expr with a comment (#8005) (f07bb48)
(es/typescript) Handle
DeclareCollect
correctly (#8008) (9d08b8a)(es/typescript) Handle qualified access in assign pat (#8012) (2f01aba)
v1.3.89
Compare Source
Bug Fixes
(es) Enable resolver if
jsc.baseUrl
is specified (#7998) (f374ad9)(es/compat) Skip function scope in
block-scoped-fns
pass (#7975) (d91a554)Refactor
v1.3.88
Compare Source
Features
jsc.experimental.keepImportAssertions
(#7995) (4d777ee)Refactor
@swc/counter
(#7991) (0acbb5f)v1.3.87
Compare Source
Bug Fixes
(bindings/type) Update types of
jsc.experimental
(#7972) (e40fccb)(es/compat) Handle nullish in fn expr scope (#7980) (5050f58)
(es/minifier) Do not inline into a template literal with sequential inliner (#7971) (b3d3a7b)
v1.3.86
Compare Source
Bug Fixes
(es/compat) Handle
PrivateName
inlogical_assignments
(#7958) (28318f0)(es/minifier) Handle
ModuleDecl
when transform const modules (#7959) (06ca1fe)(es/module) Preserve import specifier if resolving fails (#7955) (be5b02a)
Miscellaneous Tasks
(es/preset-env) Add the repository url to
Cargo.toml
(#7941) (ca22359)(es/preset-env) Ignore
tp
in the version of a browser version (#7968) (005ddc5)Refactor
box_patterns
(#7966) (f7b5e16)Build
v1.3.85
Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
👻 Immortal: This PR will be recreated if closed unmerged. Get config help if that's undesired.
This PR has been generated by Mend Renovate. View repository job log here.