- [ BREAKING ] Package renamed to
rescript-react-intl
. - [ BREAKING ] ReScript support
- Now requires ReScript >= 9.1.0 and @rescript/react
- The names of "enum" values now exactly match the names in JavaScript, e.g.
#"2-digit"
instead of#twoDigit
.
- [ BREAKING ]
bs-platform >=7.2.2
. - [ BREAKING ]
react-intl >=4.0.0
:- Added
Intl.timeZone
- Added
FormattedList
,Intl.formatList
&Intl.formatListWithOptions
- Added
FormattedDisplayName
,Intl.formatDisplayName
&Intl.formatDisplayNameWithOptions
- Added
FormattedDateParts
,Intl.formatDateToParts
&Intl.formatDateToPartsWithOptions
- Added
FormattedTimeParts
,Intl.formatTimeToParts
&Intl.formatTimeToPartsWithOptions
- Added
FormattedNumberParts
,Intl.formatNumberToParts
&Intl.formatNumberToPartsWithOptions
- Removed
FormattedHTMLMessage
,Intl.formatHTMLMessage
&Intl.formatHtmlMessageWithValues
- Removed
Intl.now
FormattedRelative
has been renamed toFormattedRelativeTime
and its API has been changed as wellIntl.formatRelative
has been renamed toIntl.formatRelativeTime
and its API has been changed as well
- Added
- [ BREAKING ] Changed
ReactIntl.message
to record type. - [ BREAKING ] Removed
ReactIntl.translation
. - [ BREAKING ] Removed
ReactIntlCompat
.
- Added
createIntlCache
,intlConfig
,createIntl
,RawIntlProvider
.
- Updated for react-intl 3.0.0+, including support for the
useIntl
hook. - [ BREAKING ] This requires
reason-react >=0.7.0
andbs-platform >=5.0.3
.
- [ BREAKING ]
bs-platform
updated to5.0.0
. - [ BREAKING ]
reason-react
updated to0.6.0
.
- Add support for react-intl 2.7.x custom error handling (#15).
- [ BREAKING ] Make compatible with React Native (#13).
- [ BREAKING ]
bs-platform
updated to4.0.5
. - [ BREAKING ]
reason-react
updated to0.5.3
.
- [ BREAKING ]
bs-platform
updated to3.0.0
.
- Add
FormattedDate
component. - Add
FormattedTime
component.
- Inline
injectIntl
HOC.
- [ BREAKING ]
reason-cli
updated to3.1.0
. - [ BREAKING ]
FormattedMessage
component now matches API of JS version (instead ofmessage
prop it acceptsid
&defaultMessage
). - If you want to pass
message
prop useDefinedMessage
component.
- [ BREAKING ]
bs-platform
updated to2.2.2
.
Initial release.