Releases: atifaziz/CSharpMinifier
1.3.0 (tool)
This release only contains an update for the console application (tool). It drops support for .NET 2.2 and 3.0 that have reached end of life. It now requires the long-term releases only: .NET Core 3.1 or 2.1. Other than that, it has no functional changes.
The library remains at its latest version of 1.2.1.
See also:
1.2.1
1.2.0
This release primarily adds support for interpolated verbatim strings that, starting with C# 8, can be expressed as @$"..."
in addition to $@"..."
(which was the only allowed form when they were originally introduced).
The console tool version used to require the .NET Core 2.1 run-time but now supports 2.2 as well as 3.0.
See also:
1.1.1
This is bug fix release for the console tool, where the hash
command would ignore the --keep-important-comment
option. There are no changes to the library, which remains at version 1.1.0.
See also:
1.1.0
What's New
The minification process can now be customized through options to prevent the following source code (single- or multi-line) comments from being subject to minification:
- those matching a user-defined regular expression pattern
- those that appear at the start of the source (e.g. typically copyright,
notices, terms and conditions) - those that are marked important, either
/*! ... */
or//! ...
See the new CSharpMinifier.Minifier.Minify
overloads that accept a MinificationOptions
. The command-line version has three new options for controlling filtering of comments for the min
and the hash
commands:
--comment-filter-pattern=PATTERN
filter/keep comments matching PATTERN
--keep-lead-comment keep first multi-line comment or first
consecutive set of single-line comments
--keep-important-comment
keep /*! ... */ comments or single-line comments
starting with //! ...
See also:
1.0.3
1.0.2
Library Changes
Pre-process directive recognition is tightened, even in the face of some invalid C#. See #1 for more details.
Console Utility Changes
Apart from picking up on improving on #1, the version display in the help text is much more SemVer-ish (i.e. 3-part version number where it can be helped). For example, with 1.0.1, the first line of display when running csmin -h
read:
CSharpMinifierConsole (version 1.0.1.0)
After upgrading to this release, the same line will trim the last zero:
CSharpMinifierConsole (version 1.0.2)
1.0.1
Library Changes
Token.Traits
is marked obsolete. Use GetTraits
or HasTraits
extensions for a TokenKind
instead.
Console Utility Changes
Fixed help text inaccuracies for various commands.