Bump papaparse and react-admin
Removes papaparse. It's no longer used after updating ancestor dependency react-admin. These dependencies need to be updated together.
Removes papaparse
Updates react-admin from 2.9.1 to 4.7.0
Release notes
Sourced from react-admin's releases.
4.7.0
- Add lifecycle callbacks (
beforeDelete,afterUpdate, etc.) to facilitate dataProvider customization (#8511) (fzaninotto)- Add
<Count>and<ReferenceManyCount>components (#8492) (fzaninotto)- Add
/auth-callbackroute and new optionalauthProvider.handleLoginCalback()method (#8457) (djhi)- Add ability to set
anchorOrigininuseNotify(#8541) (fzaninotto)- Add ability to pass multiple children to
<List>and<Create>(#8533) (fzaninotto)- Add
<TabbedForm.Tab>and<TabbedShowLayout.Tab>shortcuts (#8525) (fzaninotto)- Add ability to pass a tab count in
<TabbedForm.Tab>and<TabbedShowLayout.Tab>(#8543) (fzaninotto)- Add data sharing across tabs in
ra-data-local-storage(#8542) (fzaninotto)- Fix
<AutocompleteInput create>does not support nestedoptionText(#8556) (slax57)- Use react-query for
useAuthStateanduseAuthenticated(#8496) (djhi)- Deprecate
usePermissionsOptimised(#8521) (fzaninotto)- [TypeScript] Add ability to to extend the authProvider (#8551) (djhi)
- [Doc] Add Realtime documentation (#8555) (fzaninotto)
- [Doc] Add
<DateTimeInput>section about how to build a parse function (#8553) (slax57)- [Doc] Fix instructions for setting up a redirection url for third-party auth (#8494) (fzaninotto)
4.6.3
- Fix
<ListGuesser>links to Edit view even though there is only a ShowView (#8546) (WiXSL)- Fix notifications with type 'warning' should use the warning text color from the MUI palette (#8532) (Seojun-Park)
- Fix notifications with type 'warning' should use the warning color from the MUI palette (#8519) (Seojun-Park)
- [Doc] Improve Index/Reference page (#8550) (fzaninotto)
- [Doc] Improve
<Search>usage documentation (#8527) (fzaninotto)- [Doc] Fix
<ContainerLayout>is hard to find (#8547) (fzaninotto)- [Doc] Fix Theming doc does not mention limitations of custom error page (#8538) (slax57)
- [Doc] Fix
<XXXInput helperText>description to explain that it cannot be used inside a filter (#8531) (slax57)- [Doc] Fix
useListhook doc contains wrong examples (#8524) (fzaninotto)- [Doc] Fix
<ImageInput accept>prop examples (#8514) (slax57)- [Doc] Show nav sidebar on main navigation page (#8461) (fzaninotto)
4.6.2
- Fix
<ReferenceArrayInput>and<AutoCompleteInput>when identifiers have the wrong type (#8500) (septentrion-730n)- Fix
warnWhenUnsavedChangeswhen navigating to the Show view (#8512) (slax57)- Fix
useGetIdentitythrows an error when noauthProvider.getIdentityis defined (#8509) (slax57)- Fix
<Datagrid>positioning of bulk action buttons (#8504) (fzaninotto)- Fix incorrect
<Ready>page when dynamically load routes with no resources (#8490) (smeng9)- Fix
<Ready>page points to the wrong documentation URL (#8495) (fzaninotto)- [TypeScript] Fix return type of
useShowContext,useEditContext, anduseCreateContext(#8497) (fzaninotto)- [TypeScript] Fix
useReferenceManyFieldControllerargument type (#8491) (fzaninotto)- [Doc] Fix
<LocalesMenuButton>'s custom AppBar example andpolyglotI18nProviderdocumentation (#8452) (smeng9)- [Doc] Fix
<Menu>donc contains invalid code example (#8502) (Aikain)- [Doc] Fix
<Menu>example misses JSX closing tag (#8493) (the133448)- Bump express from 4.16.4 to 4.17.3 (#8487) (dependabot)
4.6.1
- Fix
<SelectColumnsButton referenceKey>prop handling (#8432) (wcoppens)- Fix
<TextInput>missing placeholder with MUI v5.4 (#8439) (kosmotema)- Fix
<ResourceMenuItem>throws an error when used with only<Resource>as<Admin>children (#8473) (slax57)- Fix
useReferenceInputControllerdoes not pass meta touseReference(#8477) (stesie)- Fix
ra-input-richtextTipTap dependencies on prosemirror (#8470) (slax57)
... (truncated)
Changelog
Sourced from react-admin's changelog.
v4.7.0
- Add lifecycle callbacks (
beforeDelete,afterUpdate, etc.) to facilitate dataProvider customization (#8511) (fzaninotto)- Add
<Count>and<ReferenceManyCount>components (#8492) (fzaninotto)- Add
/login-callbackroute and new optionalauthProvider.handleLoginCalback()method (#8457) (djhi)- Add ability to set
anchorOrigininuseNotify(#8541) (fzaninotto)- Add ability to pass multiple children to
<List>and<Create>(#8533) (fzaninotto)- Add
<TabbedForm.Tab>and<TabbedShowLayout.Tab>shortcuts (#8525) (fzaninotto)- Add ability to pass a tab count in
<TabbedForm.Tab>and<TabbedShowLayout.Tab>(#8543) (fzaninotto)- Add data sharing across tabs in
ra-data-local-storage(#8542) (fzaninotto)- Fix
<AutocompleteInput create>does not support nestedoptionText(#8556) (slax57)- Use react-query for
useAuthStateanduseAuthenticated(#8496) (djhi)- Deprecate
usePermissionsOptimised(#8521) (fzaninotto)- [TypeScript] Add ability to to extend the authProvider (#8551) (djhi)
- [Doc] Add Realtime documentation (#8555) (fzaninotto)
- [Doc] Add
<DataTimeInput>section about how to build a parse function (#8553) (slax57)- [Doc] Fix instructions for setting up a redirection url for third-party auth (#8494) (fzaninotto)
4.6.3
- Fix
<ListGuesser>links to Edit view even though there is only a ShowView (#8546) (WiXSL)- Fix notifications with type 'warning' should use the warning text color from the MUI palette (#8532) (Seojun-Park)
- Fix notifications with type 'warning' should use the warning color from the MUI palette (#8519) (Seojun-Park)
- [Doc] Improve Index/Reference page (#8550) (fzaninotto)
- [Doc] Improve
<Search>usage documentation (#8527) (fzaninotto)- [Doc] Fix
<ContainerLayout>is hard to find (#8547) (fzaninotto)- [Doc] Fix Theming doc does not mention limitations of custom error page (#8538) (slax57)
- [Doc] Fix
<XXXInput helperText>description to explain that it cannot be used inside a filter (#8531) (slax57)- [Doc] Fix
useListhook doc contains wrong examples (#8524) (fzaninotto)- [Doc] Fix
<ImageInput accept>prop examples (#8514) (slax57)- [Doc] Show nav sidebar on main navigation page (#8461) (fzaninotto)
4.6.2
- Fix
<ReferenceArrayInput>and<AutoCompleteInput>when identifiers have the wrong type (#8500) (septentrion-730n)- Fix
warnWhenUnsavedChangeswhen navigating to the Show view (#8512) (slax57)- Fix
useGetIdentitythrows an error when noauthProvider.getIdentityis defined (#8509) (slax57)- Fix
<Datagrid>positioning of bulk action buttons (#8504) (fzaninotto)- Fix incorrect
<Ready>page when dynamically load routes with no resources (#8490) (smeng9)- Fix
<Ready>page points to the wrong documentation URL (#8495) (fzaninotto)- [TypeScript] Fix return type of
useShowContext,useEditContext, anduseCreateContext(#8497) (fzaninotto)- [TypeScript] Fix
useReferenceManyFieldControllerargument type (#8491) (fzaninotto)- [Doc] Fix
<LocalesMenuButton>'s custom AppBar example andpolyglotI18nProviderdocumentation (#8452) (smeng9)- [Doc] Fix
<Menu>donc contains invalid code example (#8502) (Aikain)- [Doc] Fix
<Menu>example misses JSX closing tag (#8493) (the133448)- Bump express from 4.16.4 to 4.17.3 (#8487) (dependabot)
4.6.1
... (truncated)
Upgrade guide
Sourced from react-admin's upgrade guide.
layout: default title: "Upgrading to v4"
Upgrading to v4
React-admin v4 has upgraded all its dependencies to their latest major version. Some major dependencies were swapped (
react-queryinstead ofredux,react-hook-forminstead ofreact-final-form). In addition, the lower layers of the react-admin code have been rewritten for better extensibility.We've done our best to keep the general API of react-admin v4 similar with the v3 API. But the changes mentioned above result in many small compatibility breaks. An application built with react-admin v3 will need some work to run with react-admin v4.
Depending on the size of your v3 application, the upgrade will take between a few hours to a few days. If you use TypeScript, the migration will be much faster.
MUI v5
React-admin v4 uses MUI (Material-UI) v5. The MUI team has written an upgrade guide, which you should read to upgrade your material-ui code.
https://mui.com/guides/migration-v4/
Redux Is Gone
React-admin no longer relies on Redux. Instead, it relies on React context and third-party libraries (e.g. react-query).
You will need to update your code if it contains any of the following keywords:
createAdminStorecustomReducerscustomSagasinitialStateuseSelectoruseDispatchRunning Inside A Redux App
You could run a react-admin app inside an existing Redux app, provided that you initialized the react-admin reducers. This is no longer necessary, so you can directly put your custom reducers in your Redux store:
-import { createAdminStore, Admin } from 'react-admin'; +import { Admin } from 'react-admin'; +import { createStore, combineReducers } from 'redux'; import { Provider } from 'react-redux';const App = () => ( <Provider
store={createAdminStore({authProvider,dataProvider,history,customReducers,})}</tr></table>
... (truncated)
Commits
840d856v4.7.026ed481Prepare changelog for v4.7.0285572cFix ts warningf3c9db2Fix scrollIntoView7fd9635Merge branch 'next'5f7bfc2Merge pull request #8556 from marmelab/fix-enableGetChoices-examples5f2001aMerge pull request #8555 from marmelab/realtime-doc857b91dMention that these features are part of the EE6e58866Apply suggestions from code review8328931Fix AutocompleteInput nested optionText with create and enableGetChoices exam...- Additional commits viewable in compare view
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
-
@dependabot rebasewill rebase this PR -
@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it -
@dependabot mergewill merge this PR after your CI passes on it -
@dependabot squash and mergewill squash and merge this PR after your CI passes on it -
@dependabot cancel mergewill cancel a previously requested merge and block automerging -
@dependabot reopenwill reopen this PR if it is closed -
@dependabot closewill close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually -
@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) -
@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) -
@dependabot use these labelswill set the current labels as the default for future PRs for this repo and language -
@dependabot use these reviewerswill set the current reviewers as the default for future PRs for this repo and language -
@dependabot use these assigneeswill set the current assignees as the default for future PRs for this repo and language -
@dependabot use this milestonewill set the current milestone as the default for future PRs for this repo and language
You can disable automated security fix PRs for this repo from the Security Alerts page.