-
-
Notifications
You must be signed in to change notification settings - Fork 306
Frontend dependency updates #5721
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
Merged
ramyaragupathy
merged 29 commits into
hotosm:develop
from
facebook:chore/frontend-dependency-cleanup
Apr 30, 2024
Merged
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
3e7d824
Prettier
tsmock 6f310e5
Update node versions used in CI and docker images
tsmock 9731475
Initial frontend dependency updates
tsmock 45e18c0
Drop polyfills
tsmock 02b3acc
ReactJS: update root rendering method
tsmock 75fa01b
Load only necessary translations
tsmock 4d4c5b2
Wrap methods which affect UI by act in tests
tsmock e078b11
React Tooltip v4 -> v5 adaptions
tsmock 1c2e977
Update test message
tsmock 33ea26d
Fix query-string usages
tsmock 6046222
Fix infinite recursion due to state changes
tsmock 0df82c3
Use CRACO to workaround CRA #11770
tsmock e1ce970
Fix tests
tsmock 190f75e
ReactJS: Fix "<div> cannot appear as a descendant of <p>" warnings
tsmock f4cf85d
Fix forwardRef warnings
tsmock 0ee01c0
commentInput: Ensure react-md-editor is not part of the main chunk
tsmock c14841b
Improve treeshaking
tsmock a5724da
fixup! Improve treeshaking
tsmock da410aa
Revise implementation to insert testimonial image
HelNershingThapa 978c2ad
Fix tests again
tsmock 191c6f6
internationalization: Fix Sonar issues for promises with no exception…
tsmock 845d617
Add JOSM responses to server-handlers
tsmock bf33971
Fix navigation on point click
tsmock de0b494
Testing-Library: Increase default timeout
tsmock e53fe0b
project.test.js: Attempt to fix resource leak by waiting for renderin…
tsmock 2a911ca
Fix Rapid imports for newer build-time dependencies
tsmock 56da86b
Cancel call to ohsome when a component is unloaded
tsmock e8e93dc
Explicitly import lazy imports in tests
tsmock 67ad269
Fix failing test in projectStats.test.js by waiting for text
tsmock File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| module.exports = { | ||
| webpack: { | ||
| configure: (webpackConfig, { env, paths }) => { | ||
| // Fix CRA #11770 | ||
| const rules = webpackConfig.module.rules; | ||
| for (const rule of rules) { | ||
| if (Object.hasOwn(rule, 'oneOf')) { | ||
| rule.oneOf.filter((currentValue, index, arr) => { | ||
| const toRemove = | ||
| currentValue.test instanceof RegExp && currentValue.test.test('something.svg'); | ||
| if (toRemove) { | ||
| arr.splice(index, 1); | ||
| } | ||
| return toRemove; | ||
| }); | ||
| rule.oneOf.push({ | ||
| test: /\.svg$/i, | ||
| issuer: { | ||
| and: [/\.(ts|tsx|js|jsx|md|mdx)$/], | ||
| }, | ||
| type: 'asset', | ||
| }); | ||
| } | ||
| } | ||
| return webpackConfig; | ||
| }, | ||
| }, | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import React from 'react'; | ||
| import { FormattedMessage } from 'react-intl'; | ||
|
|
||
| import messages from './messages'; | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,3 @@ | ||
| import React from 'react'; | ||
| import { useIntl } from 'react-intl'; | ||
|
|
||
| import messages from './messages'; | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.