Skip to content

Releases: ZarehD/AspNetStatic

0.24.0

04 Aug 19:23
Compare
Choose a tag to compare

Changes:

  • Cleanup and streamline the Fallback middleware, StaticPageFallbackMiddleware.

v0.23.0

03 Aug 20:38
Compare
Choose a tag to compare

Changes:

  • Change visibility of StaticPageFallbackMiddleware class to internal.
  • Mark internal classes as sealed where possible.

v0.22.0

30 Jul 05:18
4dad8a9
Compare
Choose a tag to compare

Changes:

  • Fallback middleware new feature, reverse fallback: fallback on source url when file for generated static page is not found.

v0.21.0

14 Jan 05:08
Compare
Choose a tag to compare

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 for AddAllProjectRazorPages and AddAllWebRootContent extension methods meant to serve as a starting point for more complex community contributed extensions.
  • Upgraded Nuget packages.
  • Updated copyright year.

v0.20.0

28 Dec 07:51
Compare
Choose a tag to compare

New Features

  • #14 - Binary Content Optimization: Allow using a custom 'optimizer' for binary content specified in a BinResource entry.

Changes:

  • Modified OptimizerType enumeration: added Bin enum entry.
  • Added new type: IBinOptimizer.
  • Added new type: BinOptimizerResult.
  • Modified BinResource type: remove OptimizerType related property overrides, and set default OptimizerType value to OptimizerType.None.
  • Modified OptimizerSelector class: added implementation for new SelectFor overload.
  • Modified StaticGenerator implementation to execute configured IBinOptimizer on BinResource content.

Breaking Changes

  • Modified IOptimizerSelector interface: added new overload for SelectFor method.
  • Modified OptimizerSelector class: added IBinOptimizer constructor parameter.

v0.19.0

11 Dec 02:36
Compare
Choose a tag to compare

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 to IStaticResourcesInfoProvider.
  • Renamed type: StaticPagesInfoProviderBase to StaticResourcesInfoProviderBase.
  • Renamed type: StaticPagesInfoProvider to StaticResourcesInfoProvider.
  • Renamed type: PageInfo to PageResource.
  • Renamed type: PageInfoExtensions to ResourceInfoExtensions.
  • Renamed type: StaticPageGeneratorHostExtension to StaticGeneratorHostExtension.
  • Renamed type: NullMinifier to NullMarkupMinifier.
  • Modified Ctor: StaticResourcesInfoProvider: renamed parameter pages to resources, and changed element type to ResourceInfoBase.
  • Renamed Property: Pages to PageResources in IStaticResourcesInfoProvider.
  • Renamed methods: GenerateStaticPages to GenerateStaticContent in StaticGeneratorHostExtension.
  • Renamed methods: GenerateStaticPagesNow to GenerateStaticContentNow in StaticGeneratorHostExtension.
  • Renamed methods: ContainsResourceForRoute, ContainsResourceForUrl, GetResourceForRoute, GetResourceForUrl in ResourceInfoExtensions, and changed the type parameter of their collection parameter to ResourceInfoBase.

v0.18.4

08 Dec 01:10
Compare
Choose a tag to compare

Changes:

  • Refactor common code in StaticPageGenerator out to a shared method.
  • Modify HasExitWhenDoneArg: accept "SSG" as recognized value.
  • Some light housekeeping in the sample project.

v0.18.3

05 Dec 06:59
Compare
Choose a tag to compare

Changes:

  • Upgrade ThrowGuard package to v1.0.4
  • Add package icon.

v0.18.2

24 Nov 08:16
Compare
Choose a tag to compare

Release 0.18.2

  • Deprecate local throw-helpers in favor of the more complete ThrowGuard package.

Release 0.18.1

  • Bring project up to .NET 8

NOTE: no Nuget package for 0.18.1.

v0.18.0

18 Jul 03:53
Compare
Choose a tag to compare

Changes:

  • Add ability to generate static file for a specified page (GenerateStaticPage).