Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@formatjs/intl-utils is deprecated #64

Open
marvin-w opened this issue Apr 30, 2022 · 1 comment · May be fixed by #73
Open

@formatjs/intl-utils is deprecated #64

marvin-w opened this issue Apr 30, 2022 · 1 comment · May be fixed by #73

Comments

@marvin-w
Copy link

The package @formatjs/intl-utils is deprecated and should be replaced with @formatjs/ecma-abstract.

See also logs during npm install:

npm WARN deprecated @formatjs/intl-utils@3.8.4: the package is rather renamed to @formatjs/ecma-abstract with some changes in functionality (primarily selectUnit is removed and we don't plan to make any further changes to this package

Node Version: 16.10.0
NPM Version: 7.24.0

@ironsheep
Copy link

ironsheep commented Feb 9, 2023

And from what I can tell... this introduces a compile time error:

(!) `this` has been rewritten to `undefined`
https://rollupjs.org/guide/en/#error-this-is-undefined
node_modules/@formatjs/intl-utils/lib/src/diff.js
1: var __assign = (this && this.__assign) || function () {
                   ^
2:     __assign = Object.assign || function(t) {
3:         for (var s, i = 1, n = arguments.length; i < n; i++) {
...and 1 other occurrence
node_modules/@formatjs/intl-utils/lib/src/resolve-locale.js
1: var __extends = (this && this.__extends) || (function () {
                    ^
2:     var extendStatics = function (d, b) {
3:         extendStatics = Object.setPrototypeOf ||
...and 3 other occurrences
created dist in 10s

Since custom-card-helpers is the only dependent module consuming @formatjs/intl-utils.

@cerebrate cerebrate linked a pull request Apr 10, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants