Skip to content

Releases: martpie/next-with-error

1.2.0

Choose a tag to compare

@martpie martpie released this 02 Mar 14:50
  • Removed the requirement of specifying getInitialProps in pages/_app.js, if you don't use _app's getInitialProps for any other use, you can safely remove it.

1.1.1

Choose a tag to compare

@martpie martpie released this 03 Feb 16:38
  • TypeScript: Allow custom Error component to be a NextPage instead of NextComponentType

1.1.0

Choose a tag to compare

@martpie martpie released this 03 Feb 15:34
  • Fix custom Error page not being wrapped by Next.js's <App>
  • Fix custom Error getInitialProps not being called
  • Error object is now merged with custom Error's getInitialProps return value
  • Add some runtime checks in case the error object is invalid

Thanks @OliWalker for the feedback 🙌

1.0.0

Choose a tag to compare

@martpie martpie released this 01 Jan 13:09

Added

  • Added generatePageError helper
  • Added unit and end-to-end tests

Changed

  • ⚠️ WithErrorProps was renamed to PageErrorInitialProps

0.1.1

Choose a tag to compare

@martpie martpie released this 16 May 15:47

Fix an error in an example

0.1.0

Choose a tag to compare

@martpie martpie released this 16 May 15:46

Initial release