All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.
Note: Version bump only for package root
- Adapt TypeScript validation to work with messages files that only have a single top-level namespace (#115) (cf0b83e)
- Overwrite prerelease (6caf5c4)
2.4.0 (2022-02-08)
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
- TypeScript improvements: Use enum type for
style
ofNumberFormatOptions
, only allow passing React children to messages rendered witht.rich
and updatetslib
(#63) (d73e935)
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
- feat!: Use a separate API for rich text formatting to avoid type casting in TypeScript #54 (4c13a64), closes #54
- 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 uset.rich
instead now.
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
1.4.2 (2021-06-16)
1.4.1 (2021-06-16)
- Use correct version range for use-intl (02c33d3)
1.4.0 (2021-06-16)
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
Note: Version bump only for package root
1.3.3 (2021-02-09)
- Fix: Limit the function signature to return strings or React elements
- Fix: Apply interval correctly in
useNow({updateInterval: …})
- Feat: Add a global fallback for the
now
parameter offormatRelativeTime
. - Feat: Add
useNow
hook, which can be used in conjunction withformatRelativeTime
to continuously update the result. - Fix: Allow
messages
to be optional on the provider.
- Feat: Added specific types for
DateTimeFormatOptions
.
- Feat: Added support for handling time zones.
- Fix: Use 1.0 version of
use-intl
.
This library is now considered production ready. There are no changes from the previous version.
- Feature: Add global formats (see docs)
- Fix: Export
IntlErrorCode
for JavaScript users.
- Fix: Return a stable function reference for
t
.
- Feature: Add error handling capabilities (see docs)
- Chore: Depend on
use-intl
- BREAKING CHANGE: Rename
NextIntlMessages
toIntlMessages
(TypeScript only)
- Fix: Don't throw for empty messages (
""
).