Skip to content

Releases: ricokahler/next-data-hooks

v0.5.1

12 Nov 15:10
Compare
Choose a tag to compare

Includes Next.js 12 in peer dependencies

v0.5.0

04 Jan 00:15
04f5554
Compare
Choose a tag to compare

Includes #19 : Adds a TypeScript type guard isServerSidePropsContext

v0.4.0

02 Jan 17:50
affda60
Compare
Choose a tag to compare

Includes #18 . Now with documented support for getServerSideProps.

v0.3.0

17 Dec 22:04
06f6a60
Compare
Choose a tag to compare

Includes #10 and better enables the dataHooks static prop pattern.

See the updated README for new documentation.


Updates:

  • getDataHooksProps now de-dupes functions references so the same function reference can be added more than once.

Breaking changes:

  • Trying to access a data hook that has not been added to the getDataHooksProps will result in a throw now. Previously it would return undefined.
  • getDataHooksProps({ hooks: [/* ... */] }) has been renamed to getDataHooksProps({ dataHooks: [/* ... */] })

v0.2.1

07 Dec 07:42
0a1345b
Compare
Choose a tag to compare

Includes #8

v0.2.0

07 Dec 07:10
Compare
Choose a tag to compare

Includes #6

Breaking: createDataHooksProps => `getDataHooksProps

v0.1.1

16 Nov 09:47
6b03fb4
Compare
Choose a tag to compare

Includes #5

v0.1.0

16 Nov 09:32
3d7abc4
Compare
Choose a tag to compare
Merge pull request #4 from ricokahler/chore/kick-build

chore: kick build