MultiQC / MegaQC

Web application to collect and visualise data across multiple MultiQC runs.
http://megaqc.info/
GNU General Public License v3.0
95 stars 28 forks source link

Bump react-admin from 3.19.11 to 4.16.5 #507

Closed dependabot[bot] closed 9 months ago

dependabot[bot] commented 9 months ago

Bumps react-admin from 3.19.11 to 4.16.5.

Release notes

Sourced from react-admin's releases.

4.16.5

  • Fix <AutocompleteInput> should keep working when passing custom InputProps (#9559) (adguernier)
  • Fix usePreference should throw an error when used outside a <Configurable> context (#9537) (arimet)
  • Revert "Fix <SelectArrayInput> does not use recordRepresentation" (#9563) (slax57)
  • [TypeScript] Fix error when using typed args in <WithRecord render> function (#9552) (seongwon-privatenote)
  • [TypeScript] Fix <MenuItemLink> prop type should omit placeholder (#9555) (smeng9)
  • [Doc] Improve <MarkdownField> doc (#9557) (adguernier)
  • [Doc] Better document <ReferenceOneField emptyText> prop (#9562) (slax57)

4.16.4

  • Fix <SelectArrayInput> does not use recordRepresentation (#9532) (adguernier)
  • [Doc] Fix <DatagridAG> doc on column state persistence (#9540) (djhi)
  • [Doc] Fix typo in <Show queryOptions> doc(#9531) (slax57)
  • [Doc] Update the hooks documentation for consistent TOC (#9453) (sebashwa)
  • [Doc] Improve <MarkdownInput> documentation(#9511) (arimet)

4.16.3

  • Fix <AutocompleteInput TextFieldProps> are not applied (#9527) (adguernier)
  • Fix useReferenceManyFieldController does not debounce setFilters (#9523) (djhi)
  • Fix <TabbedShowLayout> displays its fields as full width blocks (#9522) (djhi)
  • Fix <ArrayInput> does not work in <FilterForm> (#9521) (djhi)
  • Fix <Datagrid>'s rowClick and <ReferenceField>'s link should scroll to top (#9510) (DavidVergnaultMoank)
  • Fix useTheme may return undefined (#9503) (djhi)
  • [TypeScript] Fix useNotify types (#9529) (djhi)
  • [Doc] Fix useInput documentation regarding errors display (#9520) (djhi)
  • [Doc] Update documentation for handling App router part (#9513) (arimet)
  • [Doc] Fix TS warnings in Connecting To A Real API tutorial (#9501) (adguernier)
  • [Doc] Removed postgrest from auth providers (#9500) (gheesh)
  • [Doc] Update <DatagridAG> doc to mention the component is lazy loaded by default (#9499) (slax57)
  • [Doc] Improve <EditableDatagrid> doc (#9494) (adguernier)

4.16.2

  • Fix clearing a nested filter re-renders the previous value when navigating back to the list (#9491) (slax57)
  • Fix ra-data-graphql uses a Proxy, which prevents adding more methods automatically (#9487) (fzaninotto)
  • Fix useUpdateMany doesn't accept the returnPromise option at call time (#9486) (fzaninotto)
  • Fix <Pagination> logs a warning (#9474) (fzaninotto)
  • [Doc] Update ra-form-layouts dialogs documentation (#9482) (djhi)
  • [Doc] Fix snippets fails to render in JS (#9478) (fzaninotto)
  • [Doc] Add link to tutorial for headless admin (#9477) (fzaninotto)

4.16.1

  • Fix <FileInput> should display a validation errors right away when form mode is 'onChange' (#9459) (slax57)
  • [TypeScript] Fix useRecordContext may return undefined (#9460) (groomain)
  • [Doc] Add link to new demo: Note-taking app (#9465) (fzaninotto)
  • [Doc] Add headless section in pages components (#9447) (fzaninotto)
  • [Doc] Add example showing how to add <Inspector> to a custom layout (#9458) (rossb220)
  • [Doc] Update <DatagridAG> doc to use the new package, and document the column order/size persistence (#9472) (slax57)
  • [Doc] Update authProvider and dataProvider lists to target the documentation instead of the repository's root (#9471) (slax57)
  • [Website] Reorder documentation's Discord and Github icons to match the website order (#9454) (adguernier)

... (truncated)

Changelog

Sourced from react-admin's changelog.

v4.16.5

  • Fix <AutocompleteInput> should keep working when passing custom InputProps (#9559) (adguernier)
  • Fix usePreference should throw an error when used outside a <Configurable> context (#9537) (arimet)
  • Revert "Fix <SelectArrayInput> does not use recordRepresentation" (#9563) (slax57)
  • [TypeScript] Fix error when using typed args in <WithRecord render> function (#9552) (seongwon-privatenote)
  • [TypeScript] Fix <MenuItemLink> prop type should omit placeholder (#9555) (smeng9)
  • [Doc] Improve <MarkdownField> doc (#9557) (adguernier)
  • [Doc] Better document <ReferenceOneField emptyText> prop (#9562) (slax57)

v4.16.4

  • Fix <SelectArrayInput> does not use recordRepresentation (#9532) (adguernier)
  • [Doc] Fix <DatagridAG> doc on column state persistence (#9540) (djhi)
  • [Doc] Fix typo in <Show queryOptions> doc(#9531) (slax57)
  • [Doc] Update the hooks documentation for consistent TOC (#9453) (sebashwa)
  • [Doc] Improve <MarkdownInput> documentation(#9511) (arimet)

v4.16.3

  • Fix useNotify types (#9529) (djhi)
  • Fix <AutocompleteInput TextFieldProps> are not applied (#9527) (adguernier)
  • Fix useReferenceManyFieldController does not debounce setFilters (#9523) (djhi)
  • Fix <TabbedShowLayout> displays its fields as full width blocks (#9522) (djhi)
  • Fix <ArrayInput> does not work in <FilterForm> (#9521) (djhi)
  • Fix <Datagrid>'s rowClick and <ReferenceField>'s link should scroll to top (#9510) (DavidVergnaultMoank)
  • Fix useTheme may return undefined (#9503) (djhi)
  • [Doc] Fix useInput documentation regarding errors display (#9520) (djhi)
  • [Doc] Update documentation for handling App router part (#9513) (arimet)
  • [Doc] Fix TS warnings in Connecting To A Real API tutorial (#9501) (adguernier)
  • [Doc] Removed postgrest from auth providers (#9500) (gheesh)
  • [Doc] Update <DatagridAG> doc to mention the component is lazy loaded by default (#9499) (slax57)
  • [Doc] Improve <EditableDatagrid> doc (#9494) (adguernier)

v4.16.2

  • Fix clearing a nested filter re-renders the previous value when navigating back to the list (#9491) (slax57)
  • Fix ra-data-graphql uses a Proxy, which prevents adding more methods automatically (#9487) (fzaninotto)
  • Fix useUpdateMany doesn't accept the returnPromise option at call time (#9486) (fzaninotto)
  • Fix <Pagination> logs a warning (#9474) (fzaninotto)
  • [Doc] Update ra-form-layouts dialogs documentation (#9482) (djhi)
  • [Doc] Fix snippets fails to render in JS (#9478) (fzaninotto)
  • [Doc] Add link to tutorial for headless admin (#9477) (fzaninotto)

v4.16.1

  • Fix <FileInput> should display a validation errors right away when form mode is 'onChange' (#9459) (slax57)
  • [TypeScript] Fix useRecordContext may return undefined (#9460) (groomain)
  • [Doc] Add link to new demo: Note-taking app (#9465) (fzaninotto)
  • [Doc] Add headless section in pages components (#9447) (fzaninotto)

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

Material UI v5

React-admin v4 uses Material UI (Material-UI) v5. The Material UI team has written an upgrade guide, which you should read to upgrade your material-ui code.

https://mui.com/material-ui/migration/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
  • 512bedd v4.16.5
  • 9f2f4c0 [Doc] Fix Datagrid video url
  • 29363c7 changelog for v4.16.5
  • 5bac944 Merge pull request #9563 from marmelab/revert-9532-fix-select-array-input-doe...
  • 844c288 Revert "fix: SelectArrayInput does not use recordRepresentation"
  • 9561dbc Merge pull request #9561 from smeng9/fix-menuitemlink-type2
  • c019911 Merge pull request #9562 from marmelab/doc-ReferenceOneField-emptyText
  • fe19073 [no ci] [Doc] Better document \<ReferenceOneField emptyText> prop
  • 9e61cf5 Merge pull request #9552 from seongwon-privatenote/fix-withrecord-type
  • bb68925 Merge pull request #9559 from marmelab/fix-autocomplete-input-props-are-overr...
  • Additional commits viewable in compare view
Maintainer changes

This version was pushed to npm by slax57, a new releaser for react-admin since your current version.


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 show ignore conditions` will show all of the ignore conditions of the specified dependency - `@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[bot] commented 9 months ago

Superseded by #511.