Created by: dependabot[bot]
Bumps terser from 5.1.0 to 5.9.0.
Changelog
Sourced from terser's changelog.
v5.9.0
- Collapsing switch cases with the same bodies (even if they're not next to each other) (#1070).
- Fix evaluation of optional chain expressions (#1062)
- Fix mangling collision in ESM exports (#1063)
- Fix issue with mutating function objects after a second pass (#1047)
- Fix for inlining object spread
{ ...obj }(#1071)- Typescript typings fix (#1069)
v5.8.0
- Fixed shadowing variables while moving code in some cases (#1065)
- Stop mangling computed & quoted properties when keep_quoted is enabled.
- Fix for mangling private getter/setter and .#private access (#1060, #1068)
- Array.from has a new optimization when the unsafe option is set (#737)
- Mangle/propmangle let you generate your own identifiers through the nth_identifier option (#1061)
- More optimizations to switch statements (#1044)
v5.7.2
- Fixed issues with compressing functions defined in
global_defsoption (#1036)- New recipe for using Terser in gulp was added to RECIPES.md (#1035)
- Fixed issues with
??and?.(#1045)- Future reserved words such as
packageno longer require you to disable strict mode to be used as names.- Refactored huge compressor file into multiple more focused files.
- Avoided unparenthesized
inoperator in some for loops (it breaks parsing because of for..in loops)- Improved documentation (#1021, #1025)
- More type definitions (#1021)
v5.7.1
- Avoided collapsing assignments together if it would place a chain assignment on the left hand side, which is invalid syntax (
a?.b = c)- Removed undefined from object expansions (
{ ...void 0 }->{})- Fix crash when checking if something is nullish or undefined (#1009)
- Fixed comparison of private class properties (#1015)
- Minor performance improvements (#993)
- Fixed scope of function defs in strict mode (they are block scoped)
v5.7.0
- Several compile-time evaluation and inlining fixes
- Allow
reduce_funcsto be disabled again.- Add
spidermonkeyoptions to parse and format (#974)- Accept
{get = "default val"}and{set = "default val"}in destructuring arguments.- Change package.json export map to help require.resolve (#971)
- Improve docs
- Fix
export defaultof an anonymous class withextendsv5.6.1
... (truncated)
Commits
-
32024105.9.0 -
dbeb358update changelog -
8430c66collapsing switch cases with same bodies, when not lined in a row (#1070) -
8dea529Fix compress/eval of optional chains (#1062) -
38bef40Fix collisions between original property and mangled property (#1063) -
0479921fix: functions may be compressed mistakenly if passes=2 (#1047) -
c8fa225Fix inlining object spread properties (#1071) -
c4fcdccFix missing nth_identifier default in minify() (#1069) -
d88d6105.8.0 -
86ea74dupdate changelog - Additional commits viewable in compare view
You can trigger a rebase of this PR by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)