Skip to content

Latest commit

 

History

History
496 lines (148 loc) · 9.23 KB

CHANGELOG.md

File metadata and controls

496 lines (148 loc) · 9.23 KB

Change Log

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

2.7.5 (2022-08-30)

Note: Version bump only for package root

2.7.4 (2022-05-30)

Bug Fixes

  • Adapt TypeScript validation to work with messages files that only have a single top-level namespace (#115) (cf0b83e)

2.7.3 (2022-05-20)

Bug Fixes

  • Add back the ability to render the provider without messages (#113) (8395822)

2.7.2 (2022-05-10)

Bug Fixes

2.7.1 (2022-04-28)

Bug Fixes

2.7.0 (2022-04-28)

Features

2.6.0 (2022-04-08)

Features

2.5.0 (2022-04-01)

Features

2.4.1 (2022-03-24)

Bug Fixes

2.4.0 (2022-02-08)

Features

2.3.5 (2022-01-19)

Bug Fixes

  • Support identical wrappers with identical text content in rich text (#80) (b35bb9f)

2.3.4 (2022-01-04)

Bug Fixes

  • Allow usage outside of Next.js (e.g. Jest and Storybook) (#76) (7c6925b)

2.3.3 (2021-12-23)

Note: Version bump only for package root

2.3.2 (2021-12-23)

Note: Version bump only for package root

2.3.1 (2021-12-23)

Note: Version bump only for package root

2.3.0 (2021-11-24)

Features

2.2.1 (2021-11-23)

Bug Fixes

  • Clearer error message when no messages are provided (#66) (742729a)

2.2.0 (2021-11-02)

Features

  • TypeScript improvements: Use enum type for style of NumberFormatOptions, only allow passing React children to messages rendered with t.rich and update tslib (#63) (d73e935)

2.1.1 (2021-10-28)

Note: Version bump only for package root

2.1.0 (2021-10-27)

Features

2.0.5 (2021-09-28)

Note: Version bump only for package root

2.0.4 (2021-09-28)

Note: Version bump only for package root

2.0.3 (2021-09-17)

Note: Version bump only for package root

2.0.2 (2021-09-17)

Bug Fixes

  • Render correct messages when the namespace changes in useTranslations (#58) (b8f7dab)

2.0.1 (2021-09-04)

Note: Version bump only for package root

2.0.0 (2021-08-26)

  • feat!: Use a separate API for rich text formatting to avoid type casting in TypeScript #54 (4c13a64), closes #54

BREAKING CHANGES

  • Instead of using the t function for formatting both regular messages and rich text, this function will only work for regular messages now. For rich text you can use t.rich instead now.

1.5.1 (2021-08-13)

Bug Fixes

  • Improve API for rendering raw messages and add docs (#51) (19f4a7e)

1.5.0 (2021-08-10)

Features

1.4.7 (2021-08-02)

Bug Fixes

  • Adjust default for onError of the provider to log errors correctly (#46) (d0a1986)

1.4.6 (2021-08-02)

Bug Fixes

  • Use timeZone in translation function from useTranslations (#45) (ebf75f2)

1.4.5 (2021-07-26)

Note: Version bump only for package root

1.4.4 (2021-07-08)

Note: Version bump only for package root

1.4.3 (2021-07-08)

Note: Version bump only for package root

1.4.2 (2021-06-16)

Bug Fixes

  • Don't require react-dom as a peer dependency (#39) (39edfcd)

1.4.1 (2021-06-16)

Bug Fixes

  • Use correct version range for use-intl (02c33d3)

1.4.0 (2021-06-16)

Features

1.3.11 (2021-05-07)

Note: Version bump only for package root

1.3.10 (2021-05-02)

Note: Version bump only for package root

1.3.9 (2021-05-02)

Note: Version bump only for package root

1.3.8 (2021-03-26)

Note: Version bump only for package root

1.3.7 (2021-02-12)

Note: Version bump only for package root

1.3.6 (2021-02-09)

Note: Version bump only for package root

1.3.5 (2021-02-09)

Note: Version bump only for package root

1.3.4 (2021-02-09)

Note: Version bump only for package root

1.3.3 (2021-02-09)

Bug Fixes

1.3.2

  • Fix: Limit the function signature to return strings or React elements

1.3.1

  • Fix: Apply interval correctly in useNow({updateInterval: …})

1.3.0

  • Feat: Add a global fallback for the now parameter of formatRelativeTime.
  • Feat: Add useNow hook, which can be used in conjunction with formatRelativeTime to continuously update the result.
  • Fix: Allow messages to be optional on the provider.

1.2.0

  • Feat: Added specific types for DateTimeFormatOptions.

1.1.0

  • Feat: Added support for handling time zones.

1.0.1

  • Fix: Use 1.0 version of use-intl.

1.0.0

This library is now considered production ready. There are no changes from the previous version.

0.4.0

  • Feature: Add global formats (see docs)

0.3.2

  • Fix: Export IntlErrorCode for JavaScript users.

0.3.1

  • Fix: Return a stable function reference for t.

0.3.0

  • Feature: Add error handling capabilities (see docs)

0.2.0

  • Chore: Depend on use-intl
  • BREAKING CHANGE: Rename NextIntlMessages to IntlMessages (TypeScript only)

0.1.1

  • Fix: Don't throw for empty messages ("").