tinyify
tinyify copied to clipboard
Bump terser from 3.16.1 to 5.17.1
Bumps terser from 3.16.1 to 5.17.1.
Changelog
Sourced from terser's changelog.
v5.17.1
- Fix evaluating
.lengthwhen the source array might've been mutatedv5.17.0
- Drop vestigial
= undefineddefault argument in IIFE calls (#1366)- Evaluate known arrays'
.lengthproperty when statically determinable- Add
@__KEY__annotation to mangle string literals (#1365)v5.16.9
- Fix parentheses in output of optional chains (
a?.b) (#1374)- More documentation on source maps (#1368)
- New
lhs_constantsoption, allowing to stop Terser from swapping comparison operands (#1361)v5.16.8
- Become even less conservative around function definitions for
reduce_vars- Fix parsing context of
import.metaexpressions such that method calls are allowedv5.16.6
- Become less conservative with analyzing function definitions for
reduce_vars- Parse
import.metaas a real AST node and not anobject.propertyv5.16.5
- Correctly handle AST transform functions that mutate children arrays
- Don't mutate the options object passed to Terser (#1342)
- Do not treat BigInt like a number
v5.16.4
- Keep
(defaultArg = undefined) => ..., because default args don't count for function length- Prevent inlining variables into
?.optional chains- Avoid removing unused arguments while transforming
- Optimize iterating AST node lists
- Make sure
catchandfinallyaren't children oftryin the AST- Use modern unicode property escapes (
\p{...}) to parse identifiers when availablev5.16.3
- Ensure function definitions, don't assume the values of variables defined after them.
v5.16.2
- Fix sourcemaps with non-ascii characters (#1318)
- Support string module name and export * as (#1336)
- Do not move
letout offorinitializers, as it can change scoping- Fix a corner case that would generate the invalid syntax
if (something) let x("let" in braceless if body)- Knowledge of more native object properties (#1330)
- Got rid of Travis (#1323)
... (truncated)
Commits
374073b5.17.12acb238update changelogdd6ebd3Avoid computing the .length of referred arrays in case of mutations. Closes #...028514cHandle droppingvar []in unreachable code. Closes #12934e88c3b5.17.081f0f22update changelog0ddf63adropundefineddefault parameter in IIFE. Closes #136631753d0safely evaluate .length of arrays and strings94ae068fix: Also set annotations in AST_String ctor (#1375)3ab7bbfAdd @KEY annotation to mangle string literals (#1365)- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually 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)