Skip to content

Latest commit

 

History

History
376 lines (203 loc) · 6.64 KB

CHANGELOG.md

File metadata and controls

376 lines (203 loc) · 6.64 KB

Changelog

0.32.0

Breaking Changes

  • Support Next v12.1.1+

0.31.0

Breaking Changes

  • Support Next v12.1.0+

Bugfix

  • Fix segfault errors with Next v12

0.30.0

Breaking Changes

  • wrapper option replaced with wrappers. wrappers accepts an absolute url pointing to a wrappers file.

0.29.1

Bugfix

  • Include jest error details on loadFile error

0.29.0

Breaking Changes

  • Support Next v11.1.2+
  • Disable useDocument option

0.28.1

Bugfix

  • Support route params with special characters like -

0.28.0

Breaking Changes

  • Support Next v11.1.0+

0.27.2

Bugfix

  • Extend peerDependencies to include Next.js v11

0.27.1

Bugfix

  • Silence jest.mock error by renaming moduleName -> mockModuleName

0.27.0

Feature

  • Support next/image external hostname
  • Hide global navigator in server environment

0.26.1

Bugfix

  • Pass custom app props to App

0.26.0

Refactor

  • Fine tune things for Jest v27
  • Set jsdom as default test environment
  • Replace fast-glob with tiny-glob
  • Add a comment to empty pages to prevent test from failing
  • Skip testing-library auto cleanup
  • Disable aws-amplify test

0.25.0

New Features

  • Add wrapper.App option
  • Add locale fields to data fetching contexts

0.24.2

Bugfix

  • Prevent @next/env from loading env vars
  • Don't throw if Next.js' config-utils doesn't exist

0.24.1

Bugfix

  • Execute getStaticProps in server mode

0.24.0

  • Populate i18n (locale) router fields

0.23.0

Breaking Changes

  • Support Next v10.0.8+

Bugfix

  • Fix async loadConfig

0.22.0

New Features

  • Introduce sharedModules option to enable server side mocking

Bugfix

  • Pass-through NODE_ENV to client render context

0.21.1

Bugfix

  • Fix catch all route resolution priority

0.21.0

Breaking Changes

  • Initial initTestHelpers() test environment setup should be removed when running in Jest/Jasmine-like environments

Bugfix

  • Respect non-isolated modules when executeWithFreshModules is executed

New Features

  • Filter runtime environment variables
  • Make environment variables declared in dotenv files available in next.config.js
  • Automatically initialise test environment with Jest/Jasmine-like test runners

0.20.0

Breaking Changes

  • Remove nonIsolatedModules option

Bugfix

  • Load files necessary to perform rendering in one single go to preserve module identity

New Features

  • Improve DX by throwing on import failure instead of swallowing error

0.19.0

New Features

  • Render 404 page when matching route not found
  • Add wrapper option

0.18.0

New Features

  • Support custom _document renderPage
  • Introduce dotenvFile option to support environment variables loading
  • Add support for getServerSideProps's notFound return

Bugfixes

  • Support client side navigation when url is provided as object

0.17.0

Breaking Changes

  • Minimum Node.js supported version >= 12

Bugfixes

  • Catch-all and optional cath-all route segments return params entries as array of values

New Features

  • Support next/config runtime configuration

0.16.2

Bugfixes

  • Fix missing cookie package dependency

0.16.1

Bugfixes

  • Fix missing DefaultApp.tsx file in dist folder
  • Uniform error messages

0.16.0

New Features

  • Expose new render, serverRender and serverRenderAsString methods
  • Correctly "simulate" browser behaviour by initial rendering on "server" and hydration on "client"
  • Mount/hydrate with react-dom/server hydrate

Breaking Changes

  • page doesn't render _document when useDocument is true

0.15.0

New Features

  • Add req.cookies property in "getServerSideProps"

0.14.0

New Features

  • Require and execute _document, _app and pages (including data fetching methods) in expected client or server environment

Bugfixes

  • Ensure only pages with allowed extensions are required
  • Prevent custom app from executing data fetching when useApp is false

0.13.0

Bugfixes

  • Ensure router object and rendered page are updated simultaneously

0.12.0

New Features

  • Support next/head
  • Provide initTestHelpers to help setting up test environment

Bugfixes

  • Fix client navigation when useDocument enabled

0.11.0

New Features

  • Handle data fetching redirect returns

0.10.1

Bugfixes

  • Fix user events not firing when using default _document

0.10.0

New Features

  • Make document.cookie available to fetching methods as ctx.req.headers.cookie
  • Make referer available to fetching methods as ctx.req.headers.referer

Bugfixes

  • Don't pass getInitialProps context req/res objects when execution happens as a result of client-side navigation
  • Simplistically simulate non-browser environment when executing server-only methods/modules

0.9.0

Breaking Changes

  • Renamed useCustomApp option to useApp

New Features

  • useDocument experimental option: add _document rendering support

0.8.1

Bugfixes

  • Make paths handling OS insensitive

0.8.0

Breaking Changes

  • Dropped support for Next.js 9
  • getPage promise returns an object with a page prop holding the expected page element (previously page element was directly returned)
  • useCustomApp option defaults to true

New Features

  • Provide support for Next.js 10

0.7.1

Bugfixes

  • Fix default routing behaviour with trailing slash (#24)

0.7.0

New Features

  • Support client-side navigation via Link, router.push, router.replace

0.6.0

Breaking Changes

  • getPage trows when page's fetching methods return an object with missing props field (eg. redirect and notFound responses). The response object is accessible in error.payload.

0.5.0

Breaking Changes

  • Remove pagesDirectory and pageExtensions options
  • Rename customApp option -> useCustomApp

New Features

  • Auto detect pages directory
  • Auto detect pageExtensions option
  • Add nextRoot option

0.4.0

Breaking Changes

  • Support custom App's data fetching with getInitialProps
  • Throw error when no matching page is found

New Features

  • Support custom file extensions via pageExtensions option
  • Migrate tests to TS

0.3.0

Breaking Changes

  • Support pages' getInitialProps data fetching method

New Features

  • Support custom App component behind customApp option flag (no support for App's getInitialProps, yet)

0.2.0

Breaking Changes

  • Expose Typescript types

New Features

  • Migrate codebase to Typescript
  • Replace query-string with node's querystring

0.1.0

Initial release