Skip to content
This repository has been archived by the owner on May 10, 2021. It is now read-only.

Latest commit

 

History

History
193 lines (127 loc) · 11.5 KB

CHANGELOG.md

File metadata and controls

193 lines (127 loc) · 11.5 KB

Changelog

3.0.1 (2021-05-10)

  • move execa to prod dependency

3.0.0 (2021-05-09)

  • NoN is still deprecated but @sls-next dependency was causing issues

2.9.0 (2021-02-24)

  • add support for background functions in api pages only (#171)
  • remove next as peer dependency (#167)
  • add watch mode (#162)

2.8.7 (2021-02-02)

  • Fix: next 10.0.6 changed prerender-manifest for i18n (#163)
  • Chore: support node 15

2.8.6 (2021-01-27)

  • Fix: image url in imageFunction (#159)

2.8.5 (2021-01-26)

  • Put back next/image support (#158)
  • Fix: strip file extension when checking if route is dynamic (#155)
  • Fix: prevent copy of .public to .public (#146)
  • Fix: add check if pages-manifest exists before reading (#147)
  • Fix: throw error if .next/static cannot be found (#148)
  • Fix: remove unnecessary * from headers rule (#152)

2.8.4 (2021-01-18)

  • Fix: check existence of dirs before reading them in file tracking logic (#150)

2.8.3 (2021-01-18)

  • Revert next/image support until jimp module issue is resolved (#149)
  • Revert route/redirect sorting logic to static then dynamic (#145)
  • Fix: incorrect headers syntax & broken local cypress (#144)

2.8.2 (2021-01-16)

  • Fix: failing windows test for file tracking (#142)

2.8.1 (2021-01-14)

  • Fix: file tracking bug where publishDir was being used for functons cleaning too (#ba41f)

2.8.0 (2021-01-14)

  • Fix: fallback blocking would cause builds to crash (#139)
  • next/image initial support (#138)
  • generate headers file to override static chunks cache control (#141)
  • track NoN files for configured dirs to clean before each run (#134)

2.7.2 (2021-01-06)

  • Hotfix: index gsp pages caused builds to fail in i18n (#75)

2.7.1 (2021-01-06)

  • Hotfix: update logic for allowing colliding route redirects (#130)

2.7.0 (2021-01-03)

  • Support for i18n in Next 10 (#75)
  • dependabot: node-notifier from 8.0.0 to 8.0.1 (#125)
  • Expose Netlify function params as netlifyFunctionParams (#119)
  • Fix: local cypress cache control (#118)
  • Fix: add res.finished to createResponseObject (#117)
  • Fix: Windows support (#101)
  • Improve logs for specified functions/publish dirs (#100)

2.6.3 (2020-11-18)

  • Fix: don't empty publish/function paths unless they're default (#94)
  • Fix: add support for res.redirect in API routes (#93)
  • Remove next-aws-lambda dependency (now inlined) (#92)
  • Fix: Node.js version in CI (#91)

2.6.2 (2020-11-17)

  • Upgrade version range of next (#90)
  • Configurable functionsDir and publishDir (via exported func only) (#89)
  • Support for Node 10.17.0 (#84)
  • CI tests (#83)

2.6.1 (2020-11-15)

  • Hotfix: no-cache Cache-Control for preview mode (Commit)
  • README updates
  • Update isRootCatchAllRedirect condition (#77)

2.6.0 (2020-10-26)

  • Support for SSG Preview Mode (#50)
  • Expose core setup logic to be required as a package (#64)
  • Miscellaneous README cleanup

2.5.2 (2020-10-23)

  • README rebrand
  • Fix: update logs to correct path constants in prepareFolders (#58)
  • Fix: show experimental-serverless-trace target option in README (#59)
  • Fix: x-forwarded-host is undefined on Netlify (#54)
  • Fix: No-op redirect for root catch-all page chunks (#52)
  • prettier pre-commit hook

2.5.1 (2020-10-02)

  • Fix: broken redirects for optional catch-alls (#47)

2.5.0 (2020-10-01)

  • Copy host property from headers to multiValueHeaders #44
  • More support for ISR (getStaticProps with revalidate) Discussion / Commit
  • Fixed redirect for index with getServerSideProps #39

2.4.0 (2020-09-05)

  • Add support for base64 encoding in responses returned from SSR pages and API endpoints
  • Reduce the number of rewrites generated by skipping SSG & HTML pages with static routing. These pages are routed automatically by Netlify (#26)
  • Limit the default number of lines of build output to 50. More or fewer lines can be shown by running next-on-netlify with the option --max-log-lines XX. See next-on-netlify --help and this comment.
  • Remove workaround for making 404.html work with netlify dev. The workaround is no longer required because netlify dev has been patched.

2.3.2 (2020-08-04)

2.3.1 (2020-07-19)

  • Fix: Correctly get distDir from next.config.js when config is a function (#25)

2.3.0 (2020-06-26)

  • Add support for NextJS Preview Mode (#10)

    Note: NextJS Preview Mode does not work on pages that are pre-rendered (pages with getStaticProps). Netlify currently does not support cookie-based redirects, which are needed for supporting preview mode on pre-rendered pages. Preview mode works correctly on any server-side-rendered pages (pages with getInitialProps or getServerSideProps).

  • Use multiValueHeaders in Netlify Functions for incoming requests and for outgoing responses. This offers many benefits over plain headers, such as setting multiple cookies within one response.

2.2.0 (2020-06-22)

  • Add support for defining custom redirects in a _redirects file at the project root directory. Unlike redirects specified in your netlify.toml file, the redirects from the _redirects file take precedence over those generated by next-on-netlify (#21)

2.1.0 (2020-06-14)

  • Add support for NextJS optional catch-all routes (#15)
  • Fix: An index.js page with getStaticProps no longer causes next-on-netlify to fail (#18)
  • Fix: Catch-all routes now correctly require that at least one URL parameter is present (unlike optional catch-all routes) (479b7e7)
  • Fix: Data routes now correctly work for pages with catch-all routing (0412b45)

2.0.0 (2020-06-02)

  • Breaking: You must change your netlify.toml configuration for next-on-netlify v2.0.0. Please look at the README for the latest configuration.
    next-on-netlify now builds pre-rendered pages and static assets in out_publish. Netlify Functions for SSR pages are built to out_functions.
  • Add support for getStaticProps (#7)
  • Add support for getStaticPaths with and without fallback (#7)
  • Add support for getServerSideProps (#7)
  • Query string parameters are now correctly passed to Next Pages and API endpoints (#9)
  • Response headers are now correctly set (#9)
  • When a user encounters a 404, next-on-netlify now display the NextJS 404 page rather than Netlify's default 404 page. You can customize the NextJS 404 page. (#2)
  • Every page with server-side rendering is now converted to a stand-alone Netlify Function. Previously, all SSR pages were bundled in a single Netlify Function.
  • next-on-netlify now prints out which pages are being converted to Netlify Functions for SSR, which pages are served as pre-rendered HTML, and the redirects that are being generated.
  • Adding custom redirects via a _redirects file in the project root is no longer supported. Let me know if you want this back. Or define your redirects in netlify.toml.

1.2.0 (2020-04-26)

  • Add support for custom NextJS build directory: If distDir is specified in next.config.js, next-on-netlify will use that directory. If no distDir is specified, it will look for the default directory (.next).

1.1.0 (2020-04-19)

  • Add support for catch-all routes (#1, #5)
  • README: Fix instructions for local preview

1.0.1 (2020-01-27)

  • Add README
  • Add CHANGELOG

1.0.0 (2020-01-26)

Initial release of next-on-netlify