Tdewolff-minify

Latest version: v2.20.37

Safety actively analyzes 685670 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 15 of 21

2.9.8

- Fix `1e-10` which was invalidly converted to `.e-9` (this only applied to `1e-10`, `1e-100`, etc and not to other numbers such as `1e-11` or `1e-9`), fixes 339
- JS: remove the use of the nullish operator `??` which is not supported by IE, Android+Firefox, and Android+Opera, fixes 338
- JS: fix bug in merging var declarations, where partial merges resulted in duplicate assignments

2.9.7

- cmd: add JS options
- JS: remove unassigned bindings in for statement initializer when it cannot be merged with variable declaration
- JS: use `Precision` option in minifying numbers
- SVG: fix bugs in skipping `foreignObject` tags

2.9.6

- JS: add var decl as undeclared in block scopes between the current scope and the function scope, fixes 334
- JS: fix overwriting next statement in if-else => if-if conversion, fixes 335

2.9.5

- cmd: minify input even if extension is unknown but type/mimetype is given
- CSS: fix timeout in property with many commas
- CSS: convert RGBA to `transparent` only if the color is fully transparent black (and not any other transparent color), fixes 332
- CSS: fix crash when rgb/rgba functions have less than three arguments
- CSS: fix `box-shadow` value `none` conversion to `0 0` as they are not equivalent, fixes 332
- HTML: remove space between attributes when after a quoted value
- HTML: keep empty `title` and `lang` attributes, fixes 331
- JS: merge variable declarations even if one has an ObjectPattern
- JS: remove trailing commas in BindingArray (except when Rest ellipsis is set)
- JS: add parenthesis around object literal in arrow function body, fixes 333

2.9.4

- JS: don't remove braces when there are lexical declarations, fixes 326
- JS: don't convert lexical declarations to expressions when hoisting variables, fixes 326
- JS: merge variable declaration and for initializer with variable declaration

2.9.3

- CSS: minify comma-separated lists for `box-shadow`, `background`, `background-repeat`, `background-size`, and `background-position` properties (fixes 322)
- CSS/SVG: remove deprecated `Decimals` options in favor of `Precision`
- cmd: remove `--decimals` options for CSS and SVG minifiers in favor of `--precision`
- cmd: add `--bundle` option to explicitly bundle (concatenate/merge) files into one, do not asume from the `-o` options if it lacks a `/` at the end that it outputs to a file and thus needs to merge the inputs
- cmd: directory inputs needs `--recursive`, previously directories would be expanded by defaults (but not their subdirectories). This matches behaviour of the `cp` command and will be more intuitive.
- cmd: file inputs are copied without considering and recreating its directory path. For example, `minify -o out path/to/file` would output to `out/path/to/file` but will now output to `out/file`. This is the same behaviour as the `cp` command and will be more intuitive for users.

Page 15 of 21

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.