terser 4.6.2 → 4.6.6

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,30 @@
1
1
  # Changelog
2
2
 
3
+ ## v4.6.6
4
+
5
+ (hotfix release)
6
+
7
+ - Reverted code to 4.6.4 to allow for more time to investigate an issue.
8
+
9
+ ## v4.6.5 (REVERTED)
10
+
11
+ - Improved compress performance through using a new method to see if two nodes are equivalent, instead of printing them to a string.
12
+
13
+ ## v4.6.4
14
+
15
+ - The `"some"` value in the `comments` output option now preserves `@lic` and other important comments when using `//`
16
+ - `</script>` is now better escaped in regex, and in comments, when using the `inline_script` output option
17
+ - Fixed an issue when transforming `new RegExp` into `/.../` when slashes are included in the source
18
+ - `AST_Node.prototype.constructor` now exists, allowing for easier debugging of crashes
19
+ - Multiple if statements with the same consequents are now collapsed
20
+ - Typescript typings improvements
21
+ - Optimizations while looking for surrogate pairs in strings
22
+
23
+ ## v4.6.3
24
+
25
+ - Annotations such as `/*#__NOINLINE__*/` and `/*#__PURE__*/` may now be preserved using the `preserve_annotations` output option
26
+ - A TypeScript definition update for the `keep_quoted` output option.
27
+
3
28
  ## v4.6.2
4
29
 
5
30
  - A bug where functions were inlined into other functions with scope conflicts has been fixed.
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).