Skip to content

Commit

Permalink
Added 2.0.0 changelog entry
Browse files Browse the repository at this point in the history
  • Loading branch information
lordgiotto committed Feb 5, 2024
1 parent 39f1147 commit d406ef5
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
## [1.3.1] - 2020-04-12
## 2.0.0 - 2024-02-04

- Reworked and improved meta tags merging logic, with full support of [double useEffect trigger](https://legacy.reactjs.org/docs/strict-mode.html#ensuring-reusable-state) 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](https://github.com/lordgiotto/react-metatags-hook/issues/new).
- 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.

## 1.3.1 - 2020-04-12

### Added

Expand All @@ -9,7 +28,7 @@

- Upgraded some dependencies to fix vulnerabilities

## [1.3.0] - 2020-04-12
## 1.3.0 - 2020-04-12

### Added

Expand All @@ -20,14 +39,14 @@
- Fixed how meta tags definitions are merged (only defined values overwrites previously set values).
- Upgraded all dependencies.

## [1.2.0] - 2020-04-12
## 1.2.0 - 2020-04-12

### Changed

- `id` is used to identify unique tags.
- Upgraded all dependencies.

## [1.1.1] - 2019-10-09
## 1.1.1 - 2019-10-09

### Added

Expand All @@ -39,12 +58,12 @@
- Improved internal tag representation.
- Changed js bundle generation. Removed es module version, now only the commonjs version is created.

## [1.0.3] - 2019-05-12
## 1.0.3 - 2019-05-12

### Changed

- Updated npmignore.

## [1.0.1] - 2019-05-12
## 1.0.1 - 2019-05-12

Initial Release.

0 comments on commit d406ef5

Please sign in to comment.