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

Bump papaparse and react-admin #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot[bot]
Copy link

@dependabot dependabot bot commented on behalf of github Jan 12, 2023

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-callback route and new optional authProvider.handleLoginCalback() method (#8457) (djhi)
  • Add ability to set anchorOrigin in useNotify (#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 nested optionText (#8556) (slax57)
  • Use react-query for useAuthState and useAuthenticated (#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 useList hook 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 warnWhenUnsavedChanges when navigating to the Show view (#8512) (slax57)
  • Fix useGetIdentity throws an error when no authProvider.getIdentity is 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, and useCreateContext (#8497) (fzaninotto)
  • [TypeScript] Fix useReferenceManyFieldController argument type (#8491) (fzaninotto)
  • [Doc] Fix <LocalesMenuButton>'s custom AppBar example and polyglotI18nProvider documentation (#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 useReferenceInputController does not pass meta to useReference (#8477) (stesie)
  • Fix ra-input-richtext TipTap 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-callback route and new optional authProvider.handleLoginCalback() method (#8457) (djhi)
  • Add ability to set anchorOrigin in useNotify (#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 nested optionText (#8556) (slax57)
  • Use react-query for useAuthState and useAuthenticated (#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 useList hook 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 warnWhenUnsavedChanges when navigating to the Show view (#8512) (slax57)
  • Fix useGetIdentity throws an error when no authProvider.getIdentity is 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, and useCreateContext (#8497) (fzaninotto)
  • [TypeScript] Fix useReferenceManyFieldController argument type (#8491) (fzaninotto)
  • [Doc] Fix <LocalesMenuButton>'s custom AppBar example and polyglotI18nProvider documentation (#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)

... (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-query instead of redux, react-hook-form instead of react-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:

  • createAdminStore
  • customReducers
  • customSagas
  • initialState
  • useSelector
  • useDispatch

Running 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
  • 840d856 v4.7.0
  • 26ed481 Prepare changelog for v4.7.0
  • 285572c Fix ts warning
  • f3c9db2 Fix scrollIntoView
  • 7fd9635 Merge branch 'next'
  • 5f7bfc2 Merge pull request #8556 from marmelab/fix-enableGetChoices-examples
  • 5f2001a Merge pull request #8555 from marmelab/realtime-doc
  • 857b91d Mention that these features are part of the EE
  • 6e58866 Apply suggestions from code review
  • 8328931 Fix 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 rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will 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 version will 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 dependency will 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 labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will 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.

Removes [papaparse](https://github.com/mholt/PapaParse). It's no longer used after updating ancestor dependency [react-admin](https://github.com/marmelab/react-admin). These dependencies need to be updated together.


Removes `papaparse`

Updates `react-admin` from 2.9.1 to 4.7.0
- [Release notes](https://github.com/marmelab/react-admin/releases)
- [Changelog](https://github.com/marmelab/react-admin/blob/master/CHANGELOG.md)
- [Upgrade guide](https://github.com/marmelab/react-admin/blob/master/docs/Upgrade.md)
- [Commits](marmelab/react-admin@v2.9.1...v4.7.0)

---
updated-dependencies:
- dependency-name: papaparse
  dependency-type: indirect
- dependency-name: react-admin
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added the dependencies Pull requests that update a dependency file label Jan 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
0 participants