Skip to content

Commit 8b14d18

Browse files
committed
Version 2.18.0
1 parent 70cd2fd commit 8b14d18

File tree

35 files changed

+90
-57
lines changed

35 files changed

+90
-57
lines changed

CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
Change log
22
==========
33

4+
## v2.18.0 - November 14, 2024
5+
* In WebMarkupMin.NUglify added support for the NUglify version 1.21.10
6+
* In ASP.NET Core extensions:
7+
* Services required by WebMarkupMin are now conditionally registered using the `TryAdd` methods
8+
* Added a `AspNetCoreLogger` class, which is a wrapper around the standard ASP.NET Core logger
9+
* Created the WebMarkupMin.AspNetCoreLatest module, that contains middleware for the ASP.NET Core 8 and 9
10+
* 3 packages have been deprecated:
11+
* WebMarkupMin.AspNetCore5 package replaced by the WebMarkupMin.AspNetCore3 package
12+
* WebMarkupMin.AspNetCore7 package replaced by the WebMarkupMin.AspNetCore6 package
13+
* WebMarkupMin.AspNetCore8 package replaced by the WebMarkupMin.AspNetCoreLatest package
14+
* In GZip, Deflate and Brotli compression settings for .NET 9 was added one new property - `AlternativeLevel`
15+
* In WebMarkupMin.AspNetCore6 added support for the ASP.NET Core 6.0.36
16+
* In WebMarkupMin.AspNet.Brotli:
17+
* Added support for .NET 9
18+
* Removed a .NET 6 and .NET 7 targets
19+
* In compression settings was changed a default value of the `Level` property from `5` to `4`
20+
421
## v2.18.0 RC 1 - November 11, 2024
522
* In ASP.NET Core extensions:
623
* Services required by WebMarkupMin are now conditionally registered using the `TryAdd` methods

README.md

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ The above mentioned minifiers produce only the most simple minifications of CSS
1515

1616
Also supports minification of views of popular JavaScript template engines: [KnockoutJS](https://knockoutjs.com/), [Kendo UI MVVM](https://www.telerik.com/kendo-ui) and [AngularJS](https://angularjs.org/) 1.X.
1717

18-
In addition, there are several modules that integrate this library into ASP.NET: WebMarkupMin.AspNet4.HttpModules (for ASP.NET 4.X and ASP.NET Web Pages), WebMarkupMin.AspNet4.Mvc (for ASP.NET MVC 3, 4 or 5), WebMarkupMin.AspNet4.WebForms (for ASP.NET Web Forms 4.X), WebMarkupMin.AspNetCore1 (for ASP.NET Core 1.X), WebMarkupMin.AspNetCore2 (for ASP.NET Core 2.X), WebMarkupMin.AspNetCore3 (for ASP.NET Core 3.1+), WebMarkupMin.AspNetCore5 (for ASP.NET Core 5.X), WebMarkupMin.AspNetCore6 (for ASP.NET Core 6), WebMarkupMin.AspNetCore7 (for ASP.NET Core 7) and WebMarkupMin.AspNetCore8 (for ASP.NET Core 8).
18+
In addition, there are several modules that integrate this library into ASP.NET: WebMarkupMin.AspNet4.HttpModules (for ASP.NET 4.X and ASP.NET Web Pages), WebMarkupMin.AspNet4.Mvc (for ASP.NET MVC 3, 4 or 5), WebMarkupMin.AspNet4.WebForms (for ASP.NET Web Forms 4.X), WebMarkupMin.AspNetCore1 (for ASP.NET Core 1.X), WebMarkupMin.AspNetCore2 (for ASP.NET Core 2.X), WebMarkupMin.AspNetCore3 (for ASP.NET Core 3.1 and 5), WebMarkupMin.AspNetCore6 (for ASP.NET Core 6 and 7) and WebMarkupMin.AspNetCoreLatest (for ASP.NET Core 8 and 9).
1919

2020
You can try WebMarkupMin in action and experiment with different minification settings live on the [WebMarkupMin Online](https://webmarkupmin.bsite.net/) site.
2121

@@ -35,12 +35,10 @@ You can try WebMarkupMin in action and experiment with different minification se
3535
* [WebMarkupMin: ASP.NET 4.X Web Forms](http://nuget.org/packages/WebMarkupMin.AspNet4.WebForms/) (supports .NET Framework 4.0 and .NET Framework 4.5)
3636
* [WebMarkupMin: ASP.NET Core 1.X](http://nuget.org/packages/WebMarkupMin.AspNetCore1/) (supports .NET Framework 4.5.1 and .NET Standard 1.3)
3737
* [WebMarkupMin: ASP.NET Core 2.X](http://nuget.org/packages/WebMarkupMin.AspNetCore2/) (supports .NET Standard 2.0)
38-
* [WebMarkupMin: ASP.NET Core 3.X](http://nuget.org/packages/WebMarkupMin.AspNetCore3/) (supports .NET Core App 3.1)
39-
* [WebMarkupMin: ASP.NET Core 5.X](http://nuget.org/packages/WebMarkupMin.AspNetCore5/) (supports .NET 5.0)
40-
* [WebMarkupMin: ASP.NET Core 6](http://nuget.org/packages/WebMarkupMin.AspNetCore6/) (supports .NET 6)
41-
* [WebMarkupMin: ASP.NET Core 7](http://nuget.org/packages/WebMarkupMin.AspNetCore7/) (supports .NET 7)
42-
* [WebMarkupMin: ASP.NET Core 8](http://nuget.org/packages/WebMarkupMin.AspNetCore8/) (supports .NET 8)
43-
* [WebMarkupMin: Brotli for ASP.NET](http://nuget.org/packages/WebMarkupMin.AspNet.Brotli/) (supports .NET Framework 4.0, .NET Framework 4.5, .NET Standard 1.3, .NET Standard 2.0, .NET Standard 2.1, .NET 6 and .NET 7)
38+
* [WebMarkupMin: ASP.NET Core 3.1+](http://nuget.org/packages/WebMarkupMin.AspNetCore3/) (supports .NET Core App 3.1)
39+
* [WebMarkupMin: ASP.NET Core 6+](http://nuget.org/packages/WebMarkupMin.AspNetCore6/) (supports .NET 6)
40+
* [WebMarkupMin: ASP.NET Core Latest](https://www.nuget.org/packages/WebMarkupMin.AspNetCoreLatest/) (supports .NET 8 and .NET 9)
41+
* [WebMarkupMin: Brotli for ASP.NET](http://nuget.org/packages/WebMarkupMin.AspNet.Brotli/) (supports .NET Framework 4.0, .NET Framework 4.5, .NET Standard 1.3, .NET Standard 2.0, .NET Standard 2.1 and .NET 9)
4442

4543
### Unofficial modules
4644
* [Syku.WebMarkupMin.Config](https://www.nuget.org/packages/Syku.WebMarkupMin.Config/) (supports .NET Standard 2.0) by Michał Sykutera

samples/SharedData/text-content/change-log.html

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,33 @@
11
<p>An overview of new features and fixes:</p>
22

3+
<h3>2.18.0 - November 14, 2024</h3>
4+
<ul>
5+
<li>In WebMarkupMin.NUglify added support for the NUglify version 1.21.10</li>
6+
<li>In ASP.NET Core extensions:
7+
<ul>
8+
<li>Services required by WebMarkupMin are now conditionally registered using the <code>TryAdd</code> methods</li>
9+
<li>Added a <code>AspNetCoreLogger</code> class, which is a wrapper around the standard ASP.NET Core logger</li>
10+
<li>Created the WebMarkupMin.AspNetCoreLatest module, that contains middleware for the ASP.NET Core 8 and 9</li>
11+
<li>3 packages have been deprecated:
12+
<ul>
13+
<li>WebMarkupMin.AspNetCore5 package replaced by the WebMarkupMin.AspNetCore3 package</li>
14+
<li>WebMarkupMin.AspNetCore7 package replaced by the WebMarkupMin.AspNetCore6 package</li>
15+
<li>WebMarkupMin.AspNetCore8 package replaced by the WebMarkupMin.AspNetCoreLatest package</li>
16+
</ul>
17+
</li>
18+
<li>In GZip, Deflate and Brotli compression settings for .NET 9 was added one new property - <code>AlternativeLevel</code></li>
19+
</ul>
20+
</li>
21+
<li>In WebMarkupMin.AspNetCore6 added support for the ASP.NET Core 6.0.36</li>
22+
<li>In WebMarkupMin.AspNet.Brotli:
23+
<ul>
24+
<li>Added support for .NET 9</li>
25+
<li>Removed a .NET 6 and .NET 7 targets</li>
26+
<li>In compression settings was changed a default value of the <code>Level</code> property from <code>5</code> to <code>4</code></li>
27+
</ul>
28+
</li>
29+
</ul>
30+
331
<h3>2.18.0 RC 1 - November 11, 2024</h3>
432
<ul>
533
<li>In ASP.NET Core extensions:

samples/SharedData/text-content/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
WebMarkupMin.Core contains built-in JavaScript minifier based on the Douglas Crockford's <a href="https://github.com/douglascrockford/JSMin" target="_blank">JSMin</a> and built-in CSS minifier based on the Mads Kristensen's <a href="https://madskristensen.net/blog/efficient-stylesheet-minification-in-c" target="_blank">Efficient stylesheet minifier</a>.
77
The above mentioned minifiers produce only the most simple minifications of CSS and JavaScript code, but you can always install additional modules that support the more powerful algorithms of minification: WebMarkupMin.MsAjax (contains minifier-adapters for the <a href="https://github.com/microsoft/ajaxmin" target="_blank">Microsoft Ajax Minifier</a>), WebMarkupMin.Yui (contains minifier-adapters for <a href="https://github.com/YUICompressor-NET/YUICompressor.NET" target="_blank">YUI Compressor for .NET</a>) and WebMarkupMin.NUglify (contains minifier-adapters for the <a href="https://github.com/trullock/NUglify" target="_blank">NUglify</a>).</p>
88
<p>Also supports minification of views of popular JavaScript template engines: <a href="http://knockoutjs.com/" target="_blank">KnockoutJS</a>, <a href="https://www.telerik.com/kendo-ui" target="_blank">Kendo UI MVVM</a> and <a href="https://angularjs.org/" target="_blank">AngularJS</a> 1.X.</p>
9-
<p>In addition, there are several modules that integrate this library into ASP.NET: WebMarkupMin.AspNet4.HttpModules (for ASP.NET 4.X and ASP.NET Web Pages), WebMarkupMin.AspNet4.Mvc (for ASP.NET MVC 3, 4 or 5), WebMarkupMin.AspNet4.WebForms (for ASP.NET Web Forms 4.X), WebMarkupMin.AspNetCore1 (for ASP.NET Core 1.X), WebMarkupMin.AspNetCore2 (for ASP.NET Core 2.X), WebMarkupMin.AspNetCore3 (for ASP.NET Core 3.1+), WebMarkupMin.AspNetCore5 (for ASP.NET Core 5.X), WebMarkupMin.AspNetCore6 (for ASP.NET Core 6) and WebMarkupMin.AspNetCore7 (for ASP.NET Core 7).</p>
9+
<p>In addition, there are several modules that integrate this library into ASP.NET: WebMarkupMin.AspNet4.HttpModules (for ASP.NET 4.X and ASP.NET Web Pages), WebMarkupMin.AspNet4.Mvc (for ASP.NET MVC 3, 4 or 5), WebMarkupMin.AspNet4.WebForms (for ASP.NET Web Forms 4.X), WebMarkupMin.AspNetCore1 (for ASP.NET Core 1.X), WebMarkupMin.AspNetCore2 (for ASP.NET Core 2.X), WebMarkupMin.AspNetCore3 (for ASP.NET Core 3.1 and 5), WebMarkupMin.AspNetCore6 (for ASP.NET Core 6 and 7) and WebMarkupMin.AspNetCoreLatest (for ASP.NET Core 8 and 9).</p>
1010
<p>You can try WebMarkupMin in action and experiment with different minification settings live on the <a href="https://webmarkupmin.bsite.net/" target="_blank">WebMarkupMin Online</a> site.</p>
1111
<p>WebMarkupMin was created and is maintained by Andrey Taritsyn.</p>

samples/WebMarkupMin.Sample.AspNetCore1.Mvc1/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ public void ConfigureServices(IServiceCollection services)
5959
{
6060
services.AddSingleton(Configuration);
6161

62+
// Override the default logger for WebMarkupMin.
63+
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
64+
6265
// Add WebMarkupMin services to the services container.
6366
services.AddWebMarkupMin(options =>
6467
{
@@ -122,9 +125,6 @@ public void ConfigureServices(IServiceCollection services)
122125
})
123126
;
124127

125-
// Override the default logger for WebMarkupMin.
126-
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
127-
128128
// Add framework services.
129129
services.AddMvc(options =>
130130
{

samples/WebMarkupMin.Sample.AspNetCore1Full.Mvc1/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@ public void ConfigureServices(IServiceCollection services)
6161
{
6262
services.AddSingleton(Configuration);
6363

64+
// Override the default logger for WebMarkupMin.
65+
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
66+
6467
// Add WebMarkupMin services to the services container.
6568
services.AddWebMarkupMin(options =>
6669
{
@@ -124,9 +127,6 @@ public void ConfigureServices(IServiceCollection services)
124127
})
125128
;
126129

127-
// Override the default logger for WebMarkupMin.
128-
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
129-
130130
// Add framework services.
131131
var manager = new ApplicationPartManager();
132132
manager.ApplicationParts.Add(new AssemblyPart(typeof(Startup).Assembly));

samples/WebMarkupMin.Sample.AspNetCore21.Mvc21/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,9 @@ public void ConfigureServices(IServiceCollection services)
6060
{
6161
services.AddSingleton(Configuration);
6262

63+
// Override the default logger for WebMarkupMin.
64+
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
65+
6366
// Add response caching service.
6467
services.AddResponseCaching();
6568

@@ -126,9 +129,6 @@ public void ConfigureServices(IServiceCollection services)
126129
})
127130
;
128131

129-
// Override the default logger for WebMarkupMin.
130-
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
131-
132132
services.Configure<CookiePolicyOptions>(options =>
133133
{
134134
// This lambda determines whether user consent for non-essential cookies is needed for a given request.

samples/WebMarkupMin.Sample.AspNetCore31.Mvc31/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public void ConfigureServices(IServiceCollection services)
3737
// Add response caching service.
3838
services.AddResponseCaching();
3939

40+
// Override the default logger for WebMarkupMin.
41+
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
42+
4043
// Add WebMarkupMin services to the services container.
4144
services.AddWebMarkupMin(options =>
4245
{
@@ -73,9 +76,6 @@ public void ConfigureServices(IServiceCollection services)
7376
})
7477
;
7578

76-
// Override the default logger for WebMarkupMin.
77-
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
78-
7979
services.AddControllersWithViews();
8080
}
8181

samples/WebMarkupMin.Sample.AspNetCore5.Mvc5/Startup.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ public void ConfigureServices(IServiceCollection services)
3737
// Add response caching service.
3838
services.AddResponseCaching();
3939

40+
// Override the default logger for WebMarkupMin.
41+
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
42+
4043
// Add WebMarkupMin services to the services container.
4144
services.AddWebMarkupMin(options =>
4245
{
@@ -73,9 +76,6 @@ public void ConfigureServices(IServiceCollection services)
7376
})
7477
;
7578

76-
// Override the default logger for WebMarkupMin.
77-
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
78-
7979
services.AddControllersWithViews();
8080
}
8181

samples/WebMarkupMin.Sample.AspNetCore6.Mvc6/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@
1717
// Add response caching service.
1818
services.AddResponseCaching();
1919

20+
// Override the default logger for WebMarkupMin.
21+
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
22+
2023
// Add WebMarkupMin services to the services container.
2124
services.AddWebMarkupMin(options =>
2225
{
@@ -53,9 +56,6 @@
5356
})
5457
;
5558

56-
// Override the default logger for WebMarkupMin.
57-
services.AddSingleton<IWmmLogger, WmmAspNetCoreLogger>();
58-
5959
services.AddControllersWithViews();
6060

6161
#endregion

0 commit comments

Comments
 (0)