Skip to content

v2.0.0

Latest
Compare
Choose a tag to compare
@lordgiotto lordgiotto released this 05 Feb 00:30
· 1 commit to main since this release
  • Reworked and improved meta tags merging logic, with full support of double useEffect trigger in development.
  • New ESM version (alongside the CJS one) of the distribution code with support for tree-shaking.
  • Set react peer dependency to support any version >=16.8.0.
  • Upgraded all dev dependencies.
  • Improved testing tooling.
  • Adapted code to the latest react types definitions.
  • Various type safety improvements.
  • Reworked Typescript, ESLint and Prettier configuration.

Breaking Changes

  • Library's default export is deprecated. Please import the named export useMetaTags instead. (e.g. import { useMetaTags } from 'react-metatags-hook')
  • useMetaTags() dependencies array is now required.
  • The logic of meta tags merging from multiple useMetaTags(), while following the same principles as before, has been completely reworked in the implementation: in case of unexpected behaviours, please open an issue.
  • Target for transpiled code changed from es5 to es6/es2015, so legacy browsers (Internet Explorer) or very old NodeJS version are no longer supported without transpilation.
  • Distribution code has changed structure, from file bundles to separated javascript files organized in multiple folders. If your code relies on imports of internal files within the library's file structure, it might now break.