terser 4.4.0 → 4.4.1

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,12 @@
1
1
  # Changelog
2
2
 
3
+
4
+ ## v4.4.1
5
+
6
+ - Fixed a crash when `unsafe` was enabled.
7
+ - An issue has been fixed where `let` statements might be collapsed out of their scope.
8
+ - Some error messages have been improved by adding quotes around variable names.
9
+
3
10
  ## v4.4.0
4
11
 
5
12
  - Added `/*#__INLINE__*/` and `/*#__NOINLINE__*/` annotations for calls. If a call has one of these, it either forces or forbids inlining.
package/README.md CHANGED
@@ -121,6 +121,7 @@ a double dash to prevent input files being used as option arguments:
121
121
  "@preserve". You can optionally pass one of the
122
122
  following arguments to this flag:
123
123
  - "all" to keep all comments
124
+ - `false` to omit comments in the output
124
125
  - a valid JS RegExp like `/foo/` or `/^!/` to
125
126
  keep only matching comments.
126
127
  Note that currently not *all* comments can be
@@ -975,8 +976,9 @@ can pass additional arguments that control the code output:
975
976
  `do`, `while` or `with` statements, even if their body is a single
976
977
  statement.
977
978
 
978
- - `comments` (default `false`) -- pass `true` or `"all"` to preserve all
979
- comments, `"some"` to preserve some comments, a regular expression string
979
+ - `comments` (default `"some"`) -- by default it keeps JSDoc-style comments
980
+ that contain "@license" or "@preserve", pass `true` or `"all"` to preserve all
981
+ comments, `false` to omit comments in the output, a regular expression string
980
982
  (e.g. `/^!/`) or a function.
981
983
 
982
984
  - `ecma` (default `5`) -- set output printing mode. Set `ecma` to `6` or