Skip to content

Releases: sumup-oss/intl-js

v3.1.0

05 Dec 22:09
8cba2e2
Compare
Choose a tag to compare

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

17 Oct 20:09
9ead45e
Compare
Choose a tag to compare

Patch Changes

v3.0.0

17 Oct 09:10
12da01b
Compare
Choose a tag to compare

Major Changes

  • #268 3d4219e Thanks @connor-baer! - This package is now pure ESM. Please read this.

    • If you use TypeScript, you need to use TypeScript 4.7 or later (ref).
    • If you use a bundler, make sure it supports ESM and that you have correctly configured it for ESM. (Next.js supports ESM packages out of the box since v12).
  • #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

11 Oct 12:20
e8f0005
Compare
Choose a tag to compare

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

14 Aug 14:56
112126e
Compare
Choose a tag to compare

Major Changes

  • #251 ae93e19 Thanks @connor-baer! - Renamed the package scope from @sumup to @sumup-oss. Replace @sumup/intl with @sumup-oss/intl in your package.json file, then update all imports:

    -import { formatNumber } from '@sumup/intl';
    +import { formatNumber } from '@sumup-oss/intl';
  • #252 53a8574 Thanks @connor-baer! - Removed the deprecated format, formatToParts, resolveFormat, and isIntlSupported exports. Use the explicitly named formatNumber, formatNumberToParts, resolveNumberFormat, and isNumberFormatSupported exports instead.

  • #250 bf12d97 Thanks @connor-baer! - Added support for Temporal objects to the date and time formatting functions. The temporal-polyfill package is now a required peer dependency.

v1.6.0

31 Aug 15:35
b365740
Compare
Choose a tag to compare

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.

v1.5.0

26 Jan 16:15
a579522
Compare
Choose a tag to compare

1.5.0 (2023-01-26)

Features

v1.4.0

15 Dec 09:33
f3932b6
Compare
Choose a tag to compare

1.4.0 (2022-12-15)

Features

  • Add support for formatting dates and times (#125) (f3932b6)

v1.3.1

28 Nov 08:33
a35b171
Compare
Choose a tag to compare

1.3.1 (2022-11-28)

Bug Fixes

  • correct types for resolveCurrencyFormat (#139) (a35b171)

v1.3.0

17 Oct 10:40
d856d84
Compare
Choose a tag to compare

1.3.0 (2022-10-17)

Bug Fixes

  • improve types of function parameters (de86dad)
  • mark groupDelimiter and decimalDelimiter as optional (dafc682)

Features

  • use explicit names for number formatting functions (682ae11)