terser 5.46.1 → 5.47.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## v5.47.0
4
+
5
+ - Add `builtins_ecma` and `builtins_pure` options
6
+ - Add Intl options to domprops (#1680)
7
+
8
+ ## v5.46.2
9
+
10
+ - `unused` option: delete computed keys of concise methods and getters/setters.
11
+ - `Error.cause` added to DOM properties list
12
+ - Don't consider `foo.bar` and `foo["bar"]` to be equivalent when property mangler is enabled with `keep_quoted=strict` option.
13
+
3
14
  ## v5.46.1
4
15
 
5
16
  - Fix extremely slow (seemed like a freeze) `evaluate` of method chains
package/README.md CHANGED
@@ -740,6 +740,10 @@ If you happen to need the source map as a raw object, set `sourceMap.asObject` t
740
740
  - `ecma` (default: `5`) -- Pass `2015` or greater to enable `compress` options that
741
741
  will transform ES5 code into smaller ES6+ equivalent forms.
742
742
 
743
+ - `builtins_ecma` (default: `5`) -- An ES version number (like `ecma`). Tells Terser which well-known functions, constants, methods and classes are available in the global object. Does nothing by itself, but is used by `builtins_pure` and `unsafe`.
744
+
745
+ - `builtins_pure` (default: `false`) -- Pass `true` to assume that functions matched by the `builtins_ecma` option (such as `Math.sin` or `unescape`) are pure and calls to them can be removed.
746
+
743
747
  - `evaluate` (default: `true`) -- attempt to evaluate constant expressions
744
748
 
745
749
  - `expression` (default: `false`) -- Pass `true` to preserve completion values