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 react-admin from 3.19.11 to 4.8.1 #471

Closed
wants to merge 1 commit into from

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 27, 2023

Bumps react-admin from 3.19.11 to 4.8.1.

Release notes

Sourced from react-admin's releases.

4.8.1

  • Fix <Notification> raises a MUI warning when message is a string (#8666) (slax57)
  • Fix <ArrayField> breaks when value is null (#8659) (slax57)
  • Fix <SimpleForm> save toolbar hides content on mobile (#8656) (fzaninotto)
  • [TypeScript] Fix bad type deprecation on onError type (#8668) (djhi)
  • [TypeScript] Fix bad casing on onError type (#8667) (djhi)
  • [Doc] Explain <ReferenceOneField> usage with one-to-many relationships (#8660) (fzaninotto)
  • [Doc] Fix Remix installation instructions to avoid react-router error (#8655) (fzaninotto)
  • [Doc] Fix typos, snippets and file extensions in Tutorial (#8607) (erikvanderwerf)
  • [Doc] Improve <CheckboxGroupInput translateChoice> code example (#8657) (WiXSL)
  • [Demo] Fix Datagrid shows gutter on last row (#8661) (slax57)

4.8.0

  • Add ability for <List> children to handle the empty state (#8585) (djhi)
  • Add ability to override available routes for a <Resource> (#8640) (slax57)
  • Add support for <ExportButton meta> and <BulkExportButton meta> (#8636) (fkowal)
  • Add ability to use a React Node as useNotify message (#8580) (fzaninotto)
  • Add ability for <Datagrid isRowSelectable> to show a disabled checkbox for unselectable rows (#8650) (WiXSL)
  • Improve performance by memoizing mutation callbacks (#8526) (rkfg)
  • Fix shouldUnregister prop used in an Input logs a DOM warning (#8653) (fzaninotto)
  • Fix <CheckboxGroupInput helperText> placement and color (#8652) (fzaninotto)
  • Fix useList filter option not working with nested objects (#8646) (WiXSL)
  • [TypeScript] Make <FormDataConsumer> generic (#8389) (Gabriel-Malenowitch)
  • [Doc] Add section in <Breadcrumb> documentation about nested resources (#8648) (fzaninotto)
  • [Doc] Fix useMutation usage examples use the wrong syntax (#8647) (WiXSL)

4.7.6

This release contains a security fix. You must upgrade to this version if you use <RichTextField> with rich text data that isn't sanitized server-side.

  • [Security] Fix XSS vulnerability in <RichTextField> (#8644) (fzaninotto)
  • Fix <FilterForm> cannot clear filter with complex object value (#8637) (slax57)
  • [Doc] Add <StackedFilters> chapter (#8631) (fzaninotto)

4.7.5

  • Fix <FileInput> label color (#8625) (fzaninotto)
  • Fix cannot override <CreateButton> and <EditButton> style with a theme (#8624) (IAmVisco)
  • Fix ra-input-rich-text dependencies on tiptap (#8622) (slax57)
  • [Doc] Fix useList with useGetList example (#8634) (slax57)
  • Bump http-cache-semantics from 4.1.0 to 4.1.1 (#8620) (dependabot)

4.7.4

4.7.3

  • Fix <AutocompleteArrayInput> when value is not an array (#8608) (djhi)
  • Fix <NumberInput> should support entering a decimal number with a transitory invalid value (#8610) (slax57)

4.7.2

... (truncated)

Changelog

Sourced from react-admin's changelog.

v4.8.1

  • Fix <Notification> raises a MUI warning when message is a string (#8666) (slax57)
  • Fix <ArrayField> breaks when value is null (#8659) (slax57)
  • Fix <SimpleForm> save toolbar hides content on mobile (#8656) (fzaninotto)
  • [TypeScript] Fix bad type deprecation on onError type (#8668) (djhi)
  • [TypeScript] Fix bad casing on onError type (#8667) (djhi)
  • [Doc] Explain <ReferenceOneField> usage with one-to-many relationships (#8660) (fzaninotto)
  • [Doc] Fix Remix installation instructions to avoid react-router error (#8655) (fzaninotto)
  • [Doc] Fix typos, snippets and file extensions in Tutorial (#8607) (erikvanderwerf)
  • [Doc] Improve <CheckboxGroupInput translateChoice> code example (#8657) (WiXSL)
  • [Demo] Fix Datagrid shows gutter on last row (#8661) (slax57)

v4.8.0

  • Add ability for <List> children to handle the empty state (#8585) (djhi)
  • Add ability to override available routes for a <Resource> (#8640) (slax57)
  • Add support for <ExportButton meta> and <BulkExportButton meta> (#8636) (fkowal)
  • Add ability to use a React Node as useNotify message (#8580) (fzaninotto)
  • Add ability for <Datagrid isRowSelectable> to show a disabled checkbox for unselectable rows (#8650) (WiXSL)
  • Improve performance by memoizing mutation callbacks (#8526) (rkfg)
  • Fix shouldUnregister prop used in an Input logs a DOM warning (#8653) (fzaninotto)
  • Fix <CheckboxGroupInput helperText> placement and color (#8652) (fzaninotto)
  • Fix useList filter option not working with nested objects (#8646) (WiXSL)
  • [TypeScript] Make <FormDataConsumer> generic (#8389) (Gabriel-Malenowitch)
  • [Doc] Add section in <Breadcrumb> documentation about nested resources (#8648) (fzaninotto)
  • [Doc] Fix useMutation usage examples use the wrong syntax (#8647) (WiXSL)

v4.7.6

This release contains a security fix. You must upgrade to this version if you use <RichTextField> with rich text data that isn't sanitized server-side.

  • [Security] Fix XSS vulnerability in <RichTextField> (#8644) (fzaninotto)
  • Fix <FilterForm> cannot clear filter with complex object value (#8637) (slax57)
  • [Doc] Add <StackedFilters> chapter (#8631) (fzaninotto)

v4.7.5

  • Fix <FileInput> label color (#8625) (fzaninotto)
  • Fix cannot override <CreateButton> and <EditButton> style with a theme (#8624) (IAmVisco)
  • Fix ra-input-rich-text dependencies on tiptap (#8622) (slax57)
  • [Doc] Fix useList with useGetList example (#8634) (slax57)
  • Bump http-cache-semantics from 4.1.0 to 4.1.1 (#8620) (dependabot)

v4.7.4

... (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

Dependabot compatibility score

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)

Bumps [react-admin](https://github.com/marmelab/react-admin) from 3.19.11 to 4.8.1.
- [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@v3.19.11...v4.8.1)

---
updated-dependencies:
- dependency-name: react-admin
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Feb 27, 2023
Copy link
Contributor Author

dependabot bot commented on behalf of github Dec 19, 2023

Superseded by #498.

@dependabot dependabot bot closed this Dec 19, 2023
@dependabot dependabot bot deleted the dependabot/npm_and_yarn/react-admin-4.8.1 branch December 19, 2023 12:10
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 javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants