Skip to content

Releases: atifaziz/CSharpMinifier

1.3.0 (tool)

26 May 14:21
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

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

29 Nov 16:11
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

This is a minor bug fix release that contains the fix for bug reported in issue #12.

See also:

1.2.0

27 Sep 08:55
1629177
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

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

24 May 12:58
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

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

22 May 16:08
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

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

21 May 14:35
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

This release primarily contains a fix for issue #3.

See also:

1.0.2

28 Mar 23:42
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

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

27 Mar 07:52
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

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.

1.0.0

26 Mar 16:04
Compare
Choose a tag to compare

Library NuGet Package Tool NuGet Package

This is the initial release! 🚀