Releases: ZarehD/AspNetStatic
Releases · ZarehD/AspNetStatic
0.24.0
v0.23.0
v0.22.0
v0.21.0
Changes:
- Updated
StaticResourcesInfoProviders
such that it can be used in a fluent style. - Common StaticResourcesInfoProviders (#15)
- Added the
AspNetStaticContrib
project to house non-core extensions for AspNetStatic. - Created
AspNetStatic
folder in 'contrib' project for AspNetStatic contributed extensions. - Added
StaticResourcesInfoProviderExtensions
class with trivial implementations forAddAllProjectRazorPages
andAddAllWebRootContent
extension methods meant to serve as a starting point for more complex community contributed extensions.
- Added the
- Upgraded Nuget packages.
- Updated copyright year.
v0.20.0
New Features
- #14 - Binary Content Optimization: Allow using a custom 'optimizer' for binary content specified in a
BinResource
entry.
Changes:
- Modified
OptimizerType
enumeration: addedBin
enum entry. - Added new type:
IBinOptimizer
. - Added new type:
BinOptimizerResult
. - Modified
BinResource
type: removeOptimizerType
related property overrides, and set defaultOptimizerType
value toOptimizerType.None
. - Modified
OptimizerSelector
class: added implementation for newSelectFor
overload. - Modified
StaticGenerator
implementation to execute configuredIBinOptimizer
onBinResource
content.
Breaking Changes
- Modified
IOptimizerSelector
interface: added new overload forSelectFor
method. - Modified
OptimizerSelector
class: addedIBinOptimizer
constructor parameter.
v0.19.0
New Features
- Non-Page Resource Handling: You can now specify non-page resources (e.g. CSS, JavaScript, images, etc.) to be fetched from your AspNetCore app and stored in the destination folder. This is useful when operating in 'standalone SSG' mode and generating static content to a non-wwwroot destination folder.
Breaking Changes
- Renamed type:
IStaticPagesInfoProvider
toIStaticResourcesInfoProvider
. - Renamed type:
StaticPagesInfoProviderBase
toStaticResourcesInfoProviderBase
. - Renamed type:
StaticPagesInfoProvider
toStaticResourcesInfoProvider
. - Renamed type:
PageInfo
toPageResource
. - Renamed type:
PageInfoExtensions
toResourceInfoExtensions
. - Renamed type:
StaticPageGeneratorHostExtension
toStaticGeneratorHostExtension
. - Renamed type:
NullMinifier
toNullMarkupMinifier
. - Modified Ctor:
StaticResourcesInfoProvider
: renamed parameterpages
toresources
, and changed element type toResourceInfoBase
. - Renamed Property:
Pages
toPageResources
inIStaticResourcesInfoProvider
. - Renamed methods:
GenerateStaticPages
toGenerateStaticContent
inStaticGeneratorHostExtension
. - Renamed methods:
GenerateStaticPagesNow
toGenerateStaticContentNow
inStaticGeneratorHostExtension
. - Renamed methods:
ContainsResourceForRoute
,ContainsResourceForUrl
,GetResourceForRoute
,GetResourceForUrl
inResourceInfoExtensions
, and changed the type parameter of their collection parameter toResourceInfoBase
.