josx / ra-data-feathers

A feathers rest client for react-admin
MIT License
157 stars 53 forks source link

Bump node-fetch and react-admin #191

Closed dependabot[bot] closed 1 year ago

dependabot[bot] commented 1 year ago

Removes node-fetch. It's no longer used after updating ancestor dependency react-admin. These dependencies need to be updated together.

Removes node-fetch

Updates react-admin from 2.1.1 to 4.7.2

Release notes

Sourced from react-admin's releases.

4.7.2

  • Fix useGetManyAggregate error when ids is not an array (#8603) (djhi)
  • Fix <AutocompleteInput> when multiple is true and value is not an array (#8602) (djhi)
  • Fix <SelectArrayInput> error when value is not an array (#8601) (djhi)
  • Fix <AutocompleteInput> flickers inside <ReferenceInput> (#8599) (djhi)
  • [Doc] Fix typo in <Search> example (#8579) (AdamMcquiff)
  • [Doc] Add Features chapter (#8598) (fzaninotto)
  • [Doc] Add illustration to list and edit tutorials (#8588) (fzaninotto)
  • [Doc] Add HelpDesk demo (#8583) (fzaninotto)
  • Bump ua-parser-js from 0.7.31 to 0.7.33 (#8600) (dependabot)

4.7.1

  • Fix <LoginForm> logs a warning in latest Chrome (#8559) (fayazpn)
  • [Doc] Add new authProviders (auth0, cognito) (#8558) (djhi)
  • [Doc] Fix typos in v4 Upgrade instructions (#8577) (harryghgim)
  • [Doc] Fix <AutoCompleteArrayInput> doc about disableCloseOnSelect (#8569) (TurtIeSocks)
  • [Doc] Fix various typos (#8568) (WiXSL)
  • [Doc] Fix missing <Show disableAuthentication> prop description (#8565) (septentrion-730n)
  • [Doc] Fix Data Providers doc about typed fetchJson utility (#8563) (slax57)
  • [TypeScript] Fix <DatagridRowR rowClick> type (#8561) (stesie)
  • Bump json5 from 1.0.1 to 1.0.2 dependenciesPull requests that update a dependency(#8552) (dependabot)

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)

... (truncated)

Changelog

Sourced from react-admin's changelog.

v4.7.2

  • Fix useGetManyAggregate error when ids is not an array (#8603) (djhi)
  • Fix <AutocompleteInput> when multiple is true and value is not an array (#8602) (djhi)
  • Fix <SelectArrayInput> error when value is not an array (#8601) (djhi)
  • Fix <AutocompleteInput> flickers inside <ReferenceInput> (#8599) (djhi)
  • [Doc] Fix typo in <Search> example (#8579) (AdamMcquiff)
  • [Doc] Add Features chapter (#8598) (fzaninotto)
  • [Doc] Add illustration to list and edit tutorials (#8588) (fzaninotto)
  • [Doc] Add HelpDesk demo (#8583) (fzaninotto)
  • Bump ua-parser-js from 0.7.31 to 0.7.33 (#8600) (dependabot)

v4.7.1

  • Fix <LoginForm> logs a warning in latest Chrome (#8559) (fayazpn)
  • [Doc] Add new authProviders (auth0, cognito) (#8558) (djhi)
  • [Doc] Fix typos in v4 Upgrade instructions (#8577) (harryghgim)
  • [Doc] Fix <AutoCompleteArrayInput> doc about disableCloseOnSelect (#8569) (TurtIeSocks)
  • [Doc] Fix various typos (#8568) (WiXSL)
  • [Doc] Fix missing <Show disableAuthentication> prop description (#8565) (septentrion-730n)
  • [Doc] Fix Data Providers doc about typed fetchJson utility (#8563) (slax57)
  • [TypeScript] Fix <DatagridRowR rowClick> type (#8561) (stesie)
  • Bump json5 from 1.0.1 to 1.0.2 dependenciesPull requests that update a dependency(#8552) (dependabot)

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)

... (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
  • 92bde43 v4.7.2
  • 0dcc962 Prepare changelog for v4.7.2
  • b01457f Merge pull request #8603 from marmelab/make-usegetmanyaggregate-resilient
  • 1dc4e6b Merge pull request #8602 from marmelab/make-autocompleteinput-resilient
  • 150a689 Fix useGetManyAggregate ids is not an array
  • b6567aa Fix AutocompleteInput when multiple is true and value is not an array
  • e3ee94c Merge pull request #8598 from marmelab/feature-doc
  • 6e887df Merge pull request #8601 from marmelab/make-selectarrayinput-resilient
  • dc4e5ca review
  • 99b9091 Fix SelectArrayInput when value is not an array
  • 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](https://github.com/josx/ra-data-feathers/network/alerts).