-
Notifications
You must be signed in to change notification settings - Fork 12
Bump react-intl to v10 #288
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
base: main
Are you sure you want to change the base?
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -23,66 +23,6 @@ | |
| * | ||
| */ | ||
|
|
||
| /** | ||
| * @name createIntl | ||
| * @kind function | ||
| * @see {@link https://formatjs.io/docs/react-intl/api#createIntl Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name FormattedDate | ||
| * @kind class | ||
| * @see {@link https://formatjs.io/docs/react-intl/components/#formatteddate Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name FormattedTime | ||
| * @kind class | ||
| * @see {@link https://formatjs.io/docs/react-intl/components/#formattedtime Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name FormattedRelativeTime | ||
| * @kind class | ||
| * @see {@link https://formatjs.io/docs/react-intl/components/#formattedrelativetime Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name FormattedNumber | ||
| * @kind class | ||
| * @see {@link https://formatjs.io/docs/react-intl/components/#formattednumber Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name FormattedPlural | ||
| * @kind class | ||
| * @see {@link https://formatjs.io/docs/react-intl/components/#formattedplural Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name FormattedMessage | ||
| * @kind class | ||
| * @see {@link https://formatjs.io/docs/react-intl/components/#formattedmessage Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name IntlProvider | ||
| * @kind class | ||
| * @see {@link https://formatjs.io/docs/react-intl/components/#intlprovider Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name defineMessages | ||
| * @kind function | ||
| * @see {@link https://formatjs.io/docs/react-intl/api#definemessagesdefinemessage Intl} | ||
| */ | ||
|
|
||
| /** | ||
| * @name useIntl | ||
| * @kind function | ||
| * @see {@link https://formatjs.io/docs/react-intl/api#useIntl Intl} | ||
| */ | ||
|
|
||
| export { | ||
| createIntl, | ||
| defineMessages, | ||
|
|
@@ -93,7 +33,10 @@ export { | |
| FormattedRelativeTime, | ||
| FormattedTime, | ||
| IntlProvider, | ||
| useIntl | ||
| useIntl, | ||
| type IntlConfig, | ||
| type ResolvedIntlConfig, | ||
| type IntlShape, | ||
| } from 'react-intl'; | ||
|
|
||
| export { | ||
|
|
@@ -104,14 +47,9 @@ export { | |
| getPrimaryLanguageSubtag, | ||
| getSupportedLanguageList, | ||
| handleRtl, | ||
| intlShape, | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah good catch. Done. |
||
| isRtl, | ||
| LOCALE_CHANGED, | ||
| LOCALE_TOPIC, | ||
| mergeMessages, | ||
| updateLocale | ||
| updateLocale, | ||
| } from './lib'; | ||
|
|
||
| export { | ||
| default as injectIntl | ||
| } from './injectIntlWithShim'; | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,6 +19,8 @@ describe('helpButtonSlotOperation', () => { | |
| mergeAppConfig(TEST_APP_ID, { SUPPORT_URL: 'https://help.example.com/test' }); | ||
|
|
||
| const op = helpButtonSlotOperation({ appId: TEST_APP_ID, role: TEST_ROLE }); | ||
| // The following is for TypeScript, since `WidgetRendererProps` sometimes has 'element' and sometimes 'component'. | ||
| if (!('element' in op)) throw new Error(`Expected ${op} to have an 'element'.`); | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This fix is totally unrelated, but
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nice catch! #294 Otherwise,
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Thanks for creating the issue. I've updated this to |
||
| expect(isValidElement(op.element)).toBe(true); | ||
|
|
||
| const getUrl = (op.element as React.ReactElement<{ getUrl: () => string | undefined }>).props.getUrl; | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Paragon only started allowing react-intl 10 in 23.23.0, I think.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And I should have known that, since it was my PR 😛 . Fixed! Thank you.