Created by: dependabot[bot]
Bumps terser from 5.1.0 to 5.8.0.
Changelog
Sourced from terser's changelog.
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
- Mark assignments to the
.prototypeof a class as pure- Parenthesize
awaiton the left of**(while accepting legacy non-parenthesised input)- Avoided outputting NUL bytes in optimized RegExps, to stop the output from breaking other tools
- Added
exportsto domprops (#939)- Fixed a crash when spreading
...this- Fixed the computed size of arrow functions, which improves their inlining
v5.6.0
... (truncated)
Commits
-
d88d6105.8.0 -
86ea74dupdate changelog -
1ea299bupdate dependencies -
f8a1f89collapse_vars: fix inlining expr into scope with shadowed var (#1065) -
438806dCreate README.md -
3409eb6Don't mangle computed properties with keep_quoted (#1058) -
748e3a6Fix mangling nested dothash expressions (#1068) -
e6312f4Fix private getter/setter mangling (#1060) -
f04077cAdd ability to grep for test compress test case (#1061) -
d3fb5b0Added Array.from unsafe optimization (#747) - 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)