Releases: sumup-oss/intl-js
v3.1.0
Minor Changes
-
4cd3fbe
Thanks @connor-baer! - Added support for formatting relative times.import { formatRelativeTime } from '@sumup-oss/intl'; formatRelativeTime(7, 'years', 'pt-BR'); // 'em 7 anos'
v3.0.1
Patch Changes
- #270
44ad012
Thanks @connor-baer! - Removed theintl-format-cache
dependency.
v3.0.0
Major Changes
-
#268
3d4219e
Thanks @connor-baer! - This package is now pure ESM. Please read this. -
#268
3d4219e
Thanks @connor-baer! - Raised the minimum Node.js version to 18+. This is the first maintained version with support for ES modules.
v2.0.1
Patch Changes
- #266
d817935
Thanks @connor-baer! - Improved the types to allow passing Temporal objects to the date and time formatting functions.
v2.0.0
Major Changes
-
#251
ae93e19
Thanks @connor-baer! - Renamed the package scope from@sumup
to@sumup-oss
. Replace@sumup/intl
with@sumup-oss/intl
in yourpackage.json
file, then update all imports:-import { formatNumber } from '@sumup/intl'; +import { formatNumber } from '@sumup-oss/intl';
-
#252
53a8574
Thanks @connor-baer! - Removed the deprecatedformat
,formatToParts
,resolveFormat
, andisIntlSupported
exports. Use the explicitly namedformatNumber
,formatNumberToParts
,resolveNumberFormat
, andisNumberFormatSupported
exports instead. -
#250
bf12d97
Thanks @connor-baer! - Added support forTemporal
objects to the date and time formatting functions. Thetemporal-polyfill
package is now a required peer dependency.
v1.6.0
Minor Changes
- #198
fe8e8dc
Thanks @connor-baer! - Added exceptions for the COP and HUF currencies to be formatted without decimals. While these currencies support decimals under the ISO standard, the decimals are not used in everyday life.