github withastro/astro @astrojs/underscore-redirects@1.0.0

latest releases: @astrojs/sitemap@3.6.1-alpha.0, @astrojs/node@10.0.0-alpha.2, @astrojs/netlify@7.0.0-alpha.3...
6 months ago

Major Changes

  • #13952 de82ef2 Thanks @ematipico! - - The type Redirects has been renamed to HostRoutes.

    • RouteDefinition.target is now optional
    • RouteDefinition.weight is now optional
    • Redirects.print has been removed. Now you need to pass Redirects type to the print function
    - redirects.print()
    + import { printAsRedirects } from "@astrojs/underscore-redirects"
    + printAsRedirects(redirects)

Minor Changes

  • #13952 de82ef2 Thanks @ematipico! - Adds a new method called createHostedRouteDefinition, which returns a HostRoute type from a IntegrationResolvedRoute.

  • #13952 de82ef2 Thanks @ematipico! - Adds a new method called printAsRedirects to print HostRoutes as redirects for the _redirects file.

Don't miss a new astro release

NewReleases is sending notifications on new releases.