Skip to content

Version 7.0.0

Compare
Choose a tag to compare
@jaydenseric jaydenseric released this 29 Jan 08:03
· 344 commits to master since this release

Major

  • Removed the preload function. It was not going to work with React hooks.
  • Added the react-dom peer dependency.
  • Reorganized file structure. This is only a breaking change for consumers that were not importing the documented way (via the main package entry).

Minor

  • Added a ssr function, which is for server use only and is React hooks ready. It is simpler and more future-proof than the removed preload function as it leverages ReactDOMServer for rendering.
  • GraphQL now emits a cache promise in the fetch event payload. These events are undocumented, so this could be considered an internal change.

Patch

  • Updated dependencies.
  • Handle exceptions outside tests (see tapjs/node-tap#463 (comment)).
  • Added a ReactNode JSDoc type, replacing ReactElement types.
  • Removed tests made redundant by the removal of the preload function.
  • Document the official Next.js example.
  • Improved documentation.