Skip to content

Latest commit

 

History

History
92 lines (50 loc) · 5.5 KB

CHANGELOG.md

File metadata and controls

92 lines (50 loc) · 5.5 KB

@sumup-oss/intl

3.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'

3.0.1

Patch Changes

3.0.0

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.

2.0.1

Patch Changes

  • #266 d817935 Thanks @connor-baer! - Improved the types to allow passing Temporal objects to the date and time formatting functions.

2.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 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.

1.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.

1.5.0

Minor Changes

1.4.0

Minor Changes

1.3.1

Patch Changes

1.3.0

Minor Changes

Patch Changes

1.2.0

Minor Changes