Skip to content

Releases: statiqdev/Statiq.Framework

1.0.0-beta.52

01 Dec 01:13
Compare
Choose a tag to compare
1.0.0-beta.52 Pre-release
Pre-release
  • Made it easier to override certain interfaces used by the engine by registering alternate implementations in the service collection passed to the engine. Alternate implementations of the following can now be provided: IApplicationState, IMemoryStreamFactory, ILinkGenerator, INamespacesCollection, IScriptHelper, IDocumentFactory, and IFileCleaner. In addition, the default implementations of these interfaces have been refactored to make deriving from them easier (I.e. marked interface members as virtual).
  • Refactored the default LinkGenerator to use strings instead of NormalizedPath which could result in poor results in some edge cases like trailing slashes (#218).
  • Added toggle for keeping trailing slash when hiding a page in LinkGenerator and related extensions, also exposed via a new Keys.LinkHiddenPageTrailingSlash setting (#218).
  • Updated Spectre.Console reference in Statiq.App to 0.43.0.

1.0.0-beta.51

22 Nov 13:30
Compare
Choose a tag to compare
1.0.0-beta.51 Pre-release
Pre-release
  • Fixed a bug with backwards compatability of the HtmlKeys file not being in the original namespace (#973).

1.0.0-beta.50

21 Nov 23:34
Compare
Choose a tag to compare
1.0.0-beta.50 Pre-release
Pre-release
  • Breaking change: Removed Statiq.Html extension and moved all functionality into either Statiq.Common (helpers and utilities) or Statiq.Core (modules). All modules are still available through Statiq.Core and you should remove references to Statiq.Html.
  • Added a reference to AngleSharp in Statiq.Common.
  • Added all keys from HtmlKeys to Keys in Statiq.Common but kept HtmlKeys and marked it obsolete for backwards-compatibility.
  • Changed the behavior of HTML parsing and formatting (I.e. both reading and writing) to preserve any originally encoded character references (#213).
  • Added a new IExecutionContext.GetContentProvider() extension that accepts an AngleSharp IMarkupFormattable (such as IHtmlDocument).
  • Added WithAutoHighlightUnspecifiedLanguage() to the HighlightCode module to avoid time-consuming generation-time code highlighting when the language is unknown (#210, thanks @Turnerj).
  • Changed the HighlightShortcode module to add a <pre> element when there are new lines in the content or when specified using a new AddPre shortcode argument (#215).

1.0.0-beta.49

14 Oct 01:20
Compare
Choose a tag to compare
1.0.0-beta.49 Pre-release
Pre-release
  • Breaking change: The LinkGenerator class is no longer static and now needs to be accessed through a new IExecutionState.LinkGenerator or IExecutionContext.LinkGenerator property.
  • Added the cache directory to the excluded list in Statiq.App.props.
  • Fixed a bug with DocumentFileProvider and documents with a null Destination.
  • Fixed a bug in the Razor engine when run under .NET 6 RC runtimes (#204, thanks @phil-scott-78).
  • Updated several dependencies (#199, #201, #202, thanks @devlead).
  • Added the ability to cache Razor partials using new CachedPartial() and CachedPartialAsync() HTML helpers. (#205)

1.0.0-beta.48

06 Aug 20:00
Compare
Choose a tag to compare
1.0.0-beta.48 Pre-release
Pre-release
  • Added GenerateLunrIndex.WithClientName method to allow setting the name of the client object in the generated JavaScript file.
  • Fixed a bug in GenerateLunrIndex when no documents contain a given search field.
  • Added GenerateLunrIndex.WithStemming methods to control stemming behavior and changed default to no stemming.
  • Added support for typeahead style searching to the generated client JavaScript search file by default (I.e. automatically adds trailing wildcards).

1.0.0-beta.47

13 Jul 13:38
Compare
Choose a tag to compare
1.0.0-beta.47 Pre-release
Pre-release
  • Breaking change: Renamed the erroneous Statiq.SearchIndex namespace in the Statiq.Lunr package to Statiq.Lunr.
  • Breaking change: Completely rewrote the GenerateLunrIndex module to build and output a search index at generation time and add a bunch of new features (#192).
  • Fixed a bug with the reflected namespace collection when dealing with objects in the global namespace (#191).
  • Fixed a bug when getting outputs from a valid pipeline that didn't produce any (it now returns an empty collection instead of throwing and exception) (#172).
  • Fixed a bug in the GenerateSiteMap module when using the LinkRoot setting that included the link root twice (#158, #193, thanks @kkato233).
  • Added support for named strongly-typed pipelines (#173).

1.0.0-beta.46

08 Jun 19:03
Compare
Choose a tag to compare
1.0.0-beta.46 Pre-release
Pre-release
  • Fixed a bug in MirrorResources to prevent it from mirroring links with "rel" values that don't specify artifacts (#190).
  • Fixed a bug in MirrorResources to prevent it from mirroring resources from the current host when Host is specified (#190).
  • Added a ReadExcel module to Statiq.Tables that can read an Excel file into metadata as a IReadOnlyList<IReadOnlyList<string>>.
  • Added a ReadCsv module to Statiq.Tables that can read a CSV file into metadata as a IReadOnlyList<IReadOnlyList<string>>.

1.0.0-beta.45

24 May 20:02
Compare
Choose a tag to compare
1.0.0-beta.45 Pre-release
Pre-release
  • Fixed several bugs related to caching in the CopyFiles module (#189).

1.0.0-beta.44

24 May 15:41
Compare
Choose a tag to compare
1.0.0-beta.44 Pre-release
Pre-release
  • Breaking change: Fixed a bug with Razor layouts and partials and explicit model types. Previously all layouts and partials were assuming
    the model type was an IDocument. This meant that extension methods and other IDocument oriented functionality worked in a layout or partial
    when using the @Model property to access the document, but it also meant they didn't work for alternate models. Layouts and partials are
    supposed to generally handle all model types (since different views can call them), so now the model is dynamic for layouts and partials
    unless explicitly specified. This has the side-effect of making some @Model access like IDocument extension methods that used to work fail.
    If you see "does not contain a definition" error messages in Razor compilation, try changing @Model property access to @Document in your layouts
    and partials, or using an explicit @model directive at the top of the layout pr partial file to explicitly specify the model type for that layout or partial.
  • Fixed a bug when changing the CleanMode setting via the bootstrapper.
  • Improved compilation failure exception messages for Razor layouts and partials.

1.0.0-beta.43

17 May 18:15
Compare
Choose a tag to compare
1.0.0-beta.43 Pre-release
Pre-release
  • Fixed a bug with using statements not being added to Razor layouts and partials (#953).