Skip to content

Releases: ricokahler/next-data-hooks

v0.5.1

Choose a tag to compare

@ricokahler ricokahler released this 12 Nov 15:10

Includes Next.js 12 in peer dependencies

v0.5.0

Choose a tag to compare

@ricokahler ricokahler released this 04 Jan 00:15
04f5554

Includes #19 : Adds a TypeScript type guard isServerSidePropsContext

v0.4.0

Choose a tag to compare

@ricokahler ricokahler released this 02 Jan 17:50
affda60

Includes #18 . Now with documented support for getServerSideProps.

v0.3.0

Choose a tag to compare

@ricokahler ricokahler released this 17 Dec 22:04
06f6a60

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

Choose a tag to compare

@ricokahler ricokahler released this 07 Dec 07:42
0a1345b

Includes #8

v0.2.0

Choose a tag to compare

@ricokahler ricokahler released this 07 Dec 07:10

Includes #6

Breaking: createDataHooksProps => `getDataHooksProps

v0.1.1

Choose a tag to compare

@ricokahler ricokahler released this 16 Nov 09:47
6b03fb4

Includes #5

v0.1.0

Choose a tag to compare

@ricokahler ricokahler released this 16 Nov 09:32
3d7abc4
Merge pull request #4 from ricokahler/chore/kick-build

chore: kick build