Skip to content

Conversation

@dependabot-preview
Copy link

Bumps terser from 4.2.1 to 4.6.11.

Changelog

Sourced from terser's changelog.

v4.6.11

  • Read unused classes' properties and method keys, to figure out if they use other variables.
  • Prevent inlining into block scopes when there are name collisions
  • Functions are no longer inlined into parameter defaults, because they live in their own special scope.
  • When inlining identity functions, take into account the fact they may be used to drop this in function calls.
  • Nullish coalescing operator (x ?? y), plus basic optimization for it.
  • Template literals in binary expressions such as + have been further optimized

v4.6.10

  • Do not use reduce_vars when classes are present

v4.6.9

  • Check if block scopes actually exist in blocks

v4.6.8

  • Take into account "executed bits" of classes like static properties or computed keys, when checking if a class evaluation might throw or have side effects.

v4.6.7

  • Some new performance gains through a AST_Node.size() method which measures a node's source code length without printing it to a string first.
  • An issue with setting --comments to false in the CLI has been fixed.
  • Fixed some issues with inlining
  • unsafe_symbols compress option was added, which turns Symbol("name") into just Symbol()
  • Brought back compress performance improvement through the AST_Node.equivalent_to(other) method (which was reverted in v4.6.6).

v4.6.6

(hotfix release)

  • Reverted code to 4.6.4 to allow for more time to investigate an issue.

v4.6.5 (REVERTED)

  • Improved compress performance through using a new method to see if two nodes are equivalent, instead of printing them to a string.

v4.6.4

  • The "some" value in the comments output option now preserves @lic and other important comments when using //
  • </script> is now better escaped in regex, and in comments, when using the inline_script output option
  • Fixed an issue when transforming new RegExp into /.../ when slashes are included in the source
  • AST_Node.prototype.constructor now exists, allowing for easier debugging of crashes
  • Multiple if statements with the same consequents are now collapsed
  • Typescript typings improvements
  • Optimizations while looking for surrogate pairs in strings

v4.6.3

... (truncated)
Commits
  • d23fa85 4.6.11
  • 89a7e8c update changelog
  • 0bdf068 add more tests for #407
  • 91eb48b Merge pull request #633 from jridgewell/template-literals
  • 31f0992 Reivew fixes
  • 575ba80 implement nullish coalescing operator
  • 1861ae9 make id(foo.prop)() => (0, foo.prop) check stricter
  • bf8ff8f do not inline identity functions if that means that this is not lost. Fixes...
  • 5e6cded add some global variables for tests
  • b781da2 do not inline functions into default params. fixes #612
  • Additional commits viewable in compare view

Dependabot compatibility score

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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Pull request limits (per update run and/or open at any time)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant