mirror of
https://github.com/S2-/minifyfromhtml.git
synced 2025-08-03 04:10:04 +02:00
update node modules
This commit is contained in:
118
node_modules/terser/CHANGELOG.md
generated
vendored
118
node_modules/terser/CHANGELOG.md
generated
vendored
@@ -1,5 +1,123 @@
|
||||
# Changelog
|
||||
|
||||
## v5.7.0
|
||||
|
||||
- Several compile-time evaluation and inlining fixes
|
||||
- Allow `reduce_funcs` to be disabled again.
|
||||
- Add `spidermonkey` options 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 default` of an anonymous class with `extends`
|
||||
|
||||
## v5.6.1
|
||||
|
||||
- Mark assignments to the `.prototype` of a class as pure
|
||||
- Parenthesize `await` on 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 `exports` to domprops (#939)
|
||||
- Fixed a crash when spreading `...this`
|
||||
- Fixed the computed size of arrow functions, which improves their inlining
|
||||
|
||||
## v5.6.0
|
||||
|
||||
- Added top-level await
|
||||
- Beautify option has been removed in #895
|
||||
- Private properties, getters and setters have been added in #913 and some more commits
|
||||
- Docs improvements: #896, #903, #916
|
||||
|
||||
## v5.5.1
|
||||
|
||||
- Fixed object properties with unicode surrogates on safari.
|
||||
|
||||
## v5.5.0
|
||||
|
||||
- Fixed crash when inlining uninitialized variable into template string.
|
||||
- The sourcemap for dist was removed for being too large.
|
||||
|
||||
## v5.4.0
|
||||
|
||||
- Logical assignment
|
||||
- Change `let x = undefined` to just `let x`
|
||||
- Removed some optimizations for template strings, placing them behind `unsafe` options. Reason: adding strings is not equivalent to template strings, due to valueOf differences.
|
||||
- The AST_Token class was slimmed down in order to use less memory.
|
||||
|
||||
## v5.3.8
|
||||
|
||||
- Restore node 13 support
|
||||
|
||||
## v5.3.7
|
||||
|
||||
Hotfix release, fixes package.json "engines" syntax
|
||||
|
||||
## v5.3.6
|
||||
|
||||
- Fixed parentheses when outputting `??` mixed with `||` and `&&`
|
||||
- Improved hygiene of the symbol generator
|
||||
|
||||
## v5.3.5
|
||||
|
||||
- Avoid moving named functions into default exports.
|
||||
- Enabled transform() for chain expressions. This allows AST transformers to reach inside chain expressions.
|
||||
|
||||
## v5.3.4
|
||||
|
||||
- Fixed a crash when hoisting (with `hoist_vars`) a destructuring variable declaration
|
||||
|
||||
## v5.3.3
|
||||
|
||||
- `source-map` library has been updated, bringing memory usage and CPU time improvements when reading input source maps (the SourceMapConsumer is now WASM based).
|
||||
- The `wrap_func_args` option now also wraps arrow functions, as opposed to only function expressions.
|
||||
|
||||
## v5.3.2
|
||||
|
||||
- Prevented spread operations from being expanded when the expanded array/object contains getters, setters, or array holes.
|
||||
- Fixed _very_ slow self-recursion in some cases of removing extraneous parentheses from `+` operations.
|
||||
|
||||
## v5.3.1
|
||||
|
||||
- An issue with destructuring declarations when `pure_getters` is enabled has been fixed
|
||||
- Fixed a crash when chain expressions need to be shallowly compared
|
||||
- Made inlining functions more conservative to make sure a function that contains a reference to itself isn't moved into a place that can create multiple instances of itself.
|
||||
|
||||
## v5.3.0
|
||||
|
||||
- Fixed a crash when compressing object spreads in some cases
|
||||
- Fixed compiletime evaluation of optional chains (caused typeof a?.b to always return "object")
|
||||
- domprops has been updated to contain every single possible prop
|
||||
|
||||
## v5.2.1
|
||||
|
||||
- The parse step now doesn't accept an `ecma` option, so that all ES code is accepted.
|
||||
- Optional dotted chains now accept keywords, just like dotted expressions (`foo?.default`)
|
||||
|
||||
## v5.2.0
|
||||
|
||||
- Optional chaining syntax is now supported.
|
||||
- Consecutive await expressions don't have unnecessary parens
|
||||
- Taking the variable name's length (after mangling) into consideration when deciding to inline
|
||||
|
||||
## v5.1.0
|
||||
|
||||
- `import.meta` is now supported
|
||||
- Typescript typings have been improved
|
||||
|
||||
## v5.0.0
|
||||
|
||||
- `in` operator now taken into account during property mangle.
|
||||
- Fixed infinite loop in face of a reference loop in some situations.
|
||||
- Kept exports and imports around even if there's something which will throw before them.
|
||||
- The main exported bundle for commonjs, dist/bundle.min.js is no longer minified.
|
||||
|
||||
## v5.0.0-beta.0
|
||||
|
||||
- BREAKING: `minify()` is now async and rejects a promise instead of returning an error.
|
||||
- BREAKING: Internal AST is no longer exposed, so that it can be improved without releasing breaking changes.
|
||||
- BREAKING: Lowest supported node version is 10
|
||||
- BREAKING: There are no more warnings being emitted
|
||||
- Module is now distributed as a dual package - You can `import` and `require()` too.
|
||||
- Inline improvements were made
|
||||
|
||||
## v4.8.0
|
||||
|
||||
- Support for numeric separators (`million = 1_000_000`) was added.
|
||||
|
Reference in New Issue
Block a user