terser 4.5.1 → 4.6.3

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.

Potentially problematic release.


This version of terser might be problematic. Click here for more details.

package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## v4.6.3
4
+
5
+ - Annotations such as `/*#__NOINLINE__*/` and `/*#__PURE__*/` may now be preserved using the `preserve_annotations` output option
6
+ - A TypeScript definition update for the `keep_quoted` output option.
7
+
8
+ ## v4.6.2
9
+
10
+ - A bug where functions were inlined into other functions with scope conflicts has been fixed.
11
+ - `/*#__NOINLINE__*/` annotation fixed for more use cases where inlining happens.
12
+
13
+ ## v4.6.1
14
+
15
+ - Fixed an issue where a class is duplicated by reduce_vars when there's a recursive reference to the class.
16
+
17
+ ## v4.6.0
18
+
19
+ - Fixed issues with recursive class references.
20
+ - BigInt evaluation has been prevented, stopping Terser from evaluating BigInts like it would do regular numbers.
21
+ - Class property support has been added
22
+
23
+ ## v4.5.1
24
+
25
+ (hotfix release)
26
+
27
+ - Fixed issue where `() => ({})[something]` was not parenthesised correctly.
28
+
3
29
  ## v4.5.0
4
30
 
5
31
  - Inlining has been improved
package/README.md CHANGED
@@ -1023,6 +1023,8 @@ can pass additional arguments that control the code output:
1023
1023
  - `2` -- always use double quotes
1024
1024
  - `3` -- always use the original quotes
1025
1025
 
1026
+ - `preserve_annotations` -- (default `false`) -- Preserve [Terser annotations](#annotations) in the output.
1027
+
1026
1028
  - `safari10` (default `false`) -- set this option to `true` to work around
1027
1029
  the [Safari 10/11 await bug](https://bugs.webkit.org/show_bug.cgi?id=176685).
1028
1030
  See also: the `safari10` [mangle option](#mangle-options).