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 xmldom and @api-platform/admin #196

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 Oct 12, 2022

Removes xmldom. It's no longer used after updating ancestor dependency @api-platform/admin. These dependencies need to be updated together.

Removes xmldom

Updates @api-platform/admin from 0.6.2 to 3.4.2

Changelog

Sourced from @​api-platform/admin's changelog.

3.4.2

  • Format identifier values on save (needed when not modified in the form)

3.4.1

  • Fix empty array in form would trigger a file upload

3.4.0

  • Add enum input guesser
  • Handle multiple file upload
  • Allow to use tabbed components in guessers
  • Use native react-admin sanitizeEmptyValues

3.3.8

  • Fix reference input validation

3.3.7

  • Fix missing fully-specified imports for @​mui

3.3.6

  • Build only ESM

3.3.5

  • Fix operations registration in resource guesser

3.3.4

  • Remove type module from package.json

3.3.3

3.3.2

3.3.1

  • A relative entrypoint can be used
  • Improve performance

3.3.0

... (truncated)

Upgrade guide

Sourced from @​api-platform/admin's upgrade guide.

Upgrade to 3.0

First of all, read the UPGRADE guide from react-admin.

Since API Platform Admin is built on top of react-admin, almost everything in the react-admin upgrade guide applies to API Platform Admin as well.

This UPGRADE guide will only cover the specific changes for API Platform Admin.

Authentication Support

Since the way to define custom routes has completely changed in react-admin, the way to add authentication support in API Platform Admin has also been modified.

In short, you need to use the <CustomRoutes> component inside the <HydraAdmin> or <AdminGuesser> component, with a redirect condition on its child. The condition is taken from a state variable, and the state updater function is given to the data provider and will be used when there is an unauthorized error.

To see the full updated example, please go to the related documentation page.

Mercure Support

Since react-admin does not use Redux anymore, it's also the case for Mercure in API Platform Admin.

Instead it uses react-query cache to update the received changes in real time.

You will not see the Redux data action when a resource is updated by Mercure anymore.

Commits

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 [xmldom](https://github.com/xmldom/xmldom). It's no longer used after updating ancestor dependency [@api-platform/admin](https://github.com/api-platform/admin). These dependencies need to be updated together.


Removes `xmldom`

Updates `@api-platform/admin` from 0.6.2 to 3.4.2
- [Release notes](https://github.com/api-platform/admin/releases)
- [Changelog](https://github.com/api-platform/admin/blob/main/CHANGELOG.md)
- [Upgrade guide](https://github.com/api-platform/admin/blob/main/UPGRADE.md)
- [Commits](api-platform/admin@v0.6.2...v3.4.2)

---
updated-dependencies:
- dependency-name: xmldom
  dependency-type: indirect
- dependency-name: "@api-platform/admin"
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file javascript Pull requests that update Javascript code labels Oct 12, 2022
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.

None yet

0 participants