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

Update react-admin monorepo to v4 (major) #20

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

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Oct 20, 2021

Mend Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
ra-core ^2.2.0 -> ^2.2.0 || ^4.0.0 age adoption passing confidence
react-admin ^2.2.0 -> ^2.2.0 || ^4.0.0 age adoption passing confidence

Release Notes

marmelab/react-admin

v4.1.5

Compare Source

v4.1.4

Compare Source

v4.1.3

Compare Source

v4.1.2

Compare Source

v4.1.1

Compare Source

  • Fix <DateTimeInput validate={required()} /> doesn't work correctly (#​7744) (djhi)
  • Fix validate function errors messages are not display when passed as translatable object (#​7741) (djhi)
  • Fix useUpdateMany does not support the returnPromise option (#​7740) (djhi)
  • Fix cannot remove <SimpleForm> and <TabbedForm> toolbar with toolbar={false} (#​7738) (djhi)
  • Fix <Admin> calls its child function without permissions while loading them (#​7737) (djhi)
  • Fix useConfigureAdminRouterFromChildren when child function return null (#​7731) (djhi)
  • Fix <TabbedForm> ignores the sx prop (#​7721) (slax57)
  • Fix <Loading> ignores the sx prop (#​7723) (slax57)
  • Fix <Form> submit cannot be prevented with event.preventDefault (#​7715) (slax57)
  • Fix <AutocompleteInput> tests regression (#​7714) (slax57)
  • [Doc] Fix typo in useSaveContext code snippet (#​7747) (wgiddens)
  • [Doc] Fix <SelectArrayInput> doc mentions non-existent prop resettable (#​7743) (djhi)
  • [Doc] Fix <SaveButton> is documented in two different chapters (#​7742) (fzaninotto)
  • [Doc] Fix typo in custom form layout example (#​7734) (ApolloRisky)
  • [Doc] Fix useGetOne section about query aggregation (#​7732) (fzaninotto)
  • [Doc] Fix global theme overrides example (#​7727) (mediafreakch)
  • [Doc] Fix Form Validation section mentions ability to do both async validation per input and global validation (#​7726) (slax57)
  • [Doc] Fix <BooleanInput> example for overriding check icon (#​7720) (mediafreakch)
  • [Doc] Fix tutorial example cannot be run in CodeSandbox (#​7713) (slax57)
  • [TypeScript] Fix <Button> component props accepts a record (#​7764) (fzaninotto)
  • [TypeScript] Fix <Button> component props (#​7750) (djhi)
  • [TypeScript] Fix <SingleFieldList> rejects the sx prop (#​7735) (djhi)
  • [TypeScript] Fix missing useMutation error typing definitions (#​7722) (soullivaneuh)
  • [TypeScript] Fix cannot specify the error type in mutation hooks (#​7698) (soullivaneuh)

v4.1.0

Compare Source

v4.0.5

Compare Source

  • Fix <ReferenceField> sometimes gets stuck on loading state (#​7708) (djhi)
  • Fix <ReferenceInput> sometimes gets stuck on loading state (#​7707) (djhi)
  • Fix <ReferenceArrayInput> with <AutocompleteArrayInput> throws error if the array is empty (#​7694) (slax57)
  • Fix <FormTab> doesn't highlight selected tab label (#​7693) (slax57)
  • Fix <Filter> shows filter button even though there is no filter to add (#​7691) (fzaninotto)
  • Fix <TextInput> changes 'on' into 'false' (#​7682) (Andonyaa)
  • [Doc] Fix "Save And Add Another" example in forms section (#​7709) (slax57)
  • [Doc] Fix missing doc for <Admin queryClient> prop (#​7704) (fzaninotto)
  • [Doc] Fix Validation chapter misses section explaining that global and input level validation can not be combined (#​7703) (slax57)

v4.0.4

Compare Source

  • Fix cannot use theme to override input variant (#​7636) (fzaninotto)
  • Fix <NumberInput> edge cases (#​7673) (fzaninotto)
  • Fix <ShowBase>, <CreateBase> and <EditBase> components don't support resource override via props (#​7652) (slax57)
  • Fix inconsistent casing for translation keys of ra-input-rich-text (#​7683) (friday)
  • Fix warning when using some valid <Button color> values (#​7681) (smeng9)
  • [TypeScript] Fix <Button> component prop type (#​7664) (okovpashko)
  • [Doc] Fix "Prefilling the Form" example in Create chapter (#​7684) (slax57)
  • [Doc] Fix <RichTextInputToolbar> example in ra-input-rich-text chapter (#​7671) (friday)
  • [Doc] Fix <SaveButton formId> prop should be called <SaveButton form> (#​7658) (smeng9)

v4.0.3

Compare Source

  • Fix <SimpleFormIterator disableRemove> doesn't receive the record argument (#​7645) (andrico1234)
  • Fix cannot create an admin without resources (#​7609) (djhi)
  • Fix cannot define ressource config based on Permissions (#​7606) (djhi)
  • Fix <Admin> forbids login when authProvider.setPermissions() isn't implemented (#​7642) (djhi)
  • Fix <SimpleFormIterator> children display wrong labels (#​7641) (djhi)
  • Fix style overrides in <SimpleFormIterator> (#​7630) (andrico1234)
  • Fix ability to disable redirect in useCreateController (#​7633) (waltheri)
  • Fix <FileInput> no longer passes source to name attribute (#​7619) (djhi)
  • Fix <FileInput> doesn't accept options prop (#​7611) (fzaninotto)
  • Fix duplicate key error in <SingleFieldList> (#​7617) (djhi)
  • Fix Form validation when <SaveButton type> is "button" (#​7557) (WiXSL)
  • Fix NullableBooleanInput helper text doesn't take isSubmitted into account (#​7553) (afilp)
  • [TypeScript] Fix ra-data-graphql options type (#​7638) (arjunyel)
  • [TypeScript] Fix <Button/> props type mention unsupported icon prop (#​7627) (smeng9)
  • [Doc] Fix wrong import in List docs (#​7647) (davidhenley)
  • [Doc] Fix Edit doc mentions unsupported prop (#​7628) (fzaninotto)
  • [Doc] Fix <ArrayField> doc mentions unsupported fieldKey prop (#​7613) (smeng9)
  • [Doc] Fix instructions for using react-admin in a sub path (#​7612) (fzaninotto)
  • [Doc] Add Prisma REST to the list of third-party Data Providers (#​7568) (mshd)

v4.0.2

Compare Source

v4.0.0

Compare Source

React-admin v4 focuses on modernizing the inner workings of the library. It improves the developper experience a great deal, and paves the way for future changes. It is the result of 6 months of intensive refactoring, development, and test.

The following list concerns version 4.0.0, as well as all the pre-releases (alpha, beta, and rc).

🎉 New features
  • Add <Admin requireAuth> to hide the app until auth is checked (#​7475)
  • Add <Admin basename> to allow mounting react-admin inside a sub path (#​7100, #​6917)
  • Add the ability to pass custom params to all dataProvider hooks (#​7116)
  • Add support for partial pagination (i.e. no total) (#​7120)
  • Add support for sx props in all ra-ui-materialui components (#​7175)
  • Add headless <Form> component (#​7087)
  • Add <ReferenceOneField> (#​7060)
  • Add <CustomRoutes> (#​7345)
  • Add useStore and persistent preferences (backport from ra-enterprise) (#​7158, #​7366)
  • Add Saved Queries (#​7354)
  • Add <ToggleThemeButton> (#​7340)
  • Add <LocalesMenuButton> (#​7332)
  • Add useSetTheme (#​7008)
  • Add combineDataProvider helper (#​7055)
  • Add <Datagrid expandSingle> to limit the number of expanded rows to 1 (#​7454)
  • Add <ChoicesContextProvider> in all ReferenceInputs to avoid child cloning and allow choices filtering, pagination, and sorting (#​7185)
  • Add <FileInput validateFileRemoval> prop to allow confirmation before file deletion (#​7003)
  • Add ability to register custom <Resource options> (#​7392)
📦 Dependency Updates
🏹 Updated Syntax
  • Change the Record TypeScript name to RaRecord (#​7078)
  • Change data provider hooks signature to reflect the data provider signature
  • Remove prop injection and child cloning, use context instead (#​7060, #​7218, #​7215, #​7214, #​7207, #​7206, #​7205, #​7203).
  • Remove record prop injection
  • Remove permissions injection in main route controllers (#​6921)
  • Avoid cloning Inputs components to pass variant and margin, and document theme override instead (#​7223)
  • Rename loading to isLoading in authProvider hooks return type (#​7334)
  • Rename initialValues to defaultValues in <Form> (caused by switch to react-hook-form)
  • Move bulkActionButtons from <List> to <Datagrid> (#​7114)
  • Rename currentSort to sort (#​7076)
  • Change setSort signature to make it consistent across components (#​7065)
  • Use MUI autocomplete instead of our own (#​6924, #​6971)
  • Rename <TranslationProvider> to <I18nContextProvider>
  • Switch <WithPermissions> wrapping to a useAuthenticated hook in main controllers (#​6921)
  • Move <Notification> component into <AdminUI> to avoid gotchas when overriding the layout (#​7082)
🧹 Cleanup
  • Remove Redux (#​7177)
  • Remove redux-saga and saga-based side effects (#​6684)
  • Remove connected-react-router (#​6704)
  • Remove basePath (#​7100)
  • Remove addLabel prop in Field components (#​7223)
  • Remove Resource initialization, Store Resource definitions in Context rather than in store (#​7051)
  • Remove HOCs (like addField) and render props
  • Remove useQuery and useMutation (as react-query already provides them) (#​7001)
  • Remove application cache and validUntil (#​7001)
  • Remove useVersion (#​7001)
  • Remove allowEmpty prop in choice inputs (#​7200)
  • Remove deprecated sort prop in <DataGridHeaderCell> (#​7065)
  • Remove <FormWithRedirect> and handleSubmitWithRedirect (#​7087)
  • Remove TestContext (<AdminContext> does the trick) and ra-test (#​7148)
  • Remove declarative side effects support in dataProvider (#​6687)
  • Remove useGetMatching (use getList instead) (#​6916)
  • Remove support for undoable prop now that we have mutationMode (#​6711)
  • Remove withTranslate HOC (#​7157)
  • Remove ra-test (#​7148)
  • Use esbuild instead of webpack for simple example
  • Use GitHub actions instead of Travis for CI
📚 Updated Documentation
  • The v4 documentation was deeply reorganized to allow easier discovery and faster navigation.
  • Most of the common hooks and components now have a dedicated documentation page.
  • We've added a Storybook to help you discover the components API.
  • The demos (e-commerce, CRM) were updated to show how to build application in idiomatic react-admin.
🪜 Upgrade Guide

As this is a major release, there are breaking changes. We documented all the changes required in a react-admin v3 application to make it compatible with version 4 in the react-admin v4 Upgrade Guide.

📊 Statistics

Since react-admin counts about 112,000 lines of code, this means that 90% of the codebase was touched.

💌 Thank You

Many thanks to all the contributors (whether they helped developing, testing, documenting, proofreading react-admin v4), and in particular to the core team (fzaninotto, djhi, WiXSL) for their hard work.

v3.19.11

Compare Source

v3.19.10

Compare Source

  • Fix <CheckboxGroupInput> changes selected values type (#​7248) (WiXSL)
  • Fix <DateField> shows wrong date on negative time zones (#​7242) (fzaninotto)
  • [Doc] Fix <DateInput> example of format and parse with Date object as value (#​7233) (WiXSL)
  • Bump minor dependencies

v3.19.8

Compare Source

  • Fix <FilterButton> throws bad error if no filters are present (#​7227) (WiXSL)
  • Fix page remains the same when changing perPage in <ReferenceXXX> Fields (#​7213) (WiXSL)
  • Fix useNotify doesn't allow multi line notifications (#​7188) (WiXSL)
  • Fix <AutocompleteInput> erases input while typing (#​7173) (WiXSL)
  • Fix resolveBrowserLocale tests (#​7194) (FernandoKGA)
  • Fix <Toolbar alwaysEnableSaveButton> doesn't accept false (#​7167) (WiXSL)
  • Fix <ReferenceArrayInput> logs console warning in certain cases (#​7165) (WiXSL)
  • Fix DOM warnings when using <SelectArrayInput> as child of <ReferenceArrayInput> (#​7015) (ZachSelindh)
  • Fix failing admin test when running all tests together (#​7136) (thdk)
  • Fix GraphQL data provider swallows the Apollo Error (#​6956) (hlubek)
  • [TypeScript] Fix BooleanInputProps isn't exported (#​7144) (alanpoulain)
  • [Doc] Fix bad url in Inputs documentation (#​7230) (WiXSL)
  • [Doc] Add SQLite data provider (#​7201) (fzaninotto)
  • [Doc] Add TreeQL / PHP-CRUD-API data provider (#​7141) (itsjavi)
  • [Doc] Fix <XXXInput initialValue> description when the value is null (#​7139) (WiXSL)

v3.19.7

Compare Source

v3.19.6

Compare Source

  • Fix loading indicator keeps spinning on permissions error when logoutUser is false (#​7044) (WiXSL)
  • Fix redirect=false after save doesn't clear the form (#​7041) (WiXSL)
  • Fix <SelectArrayInput optionText> function not fully supported with create item (#​7039) (WiXSL)
  • Fix <AutocompleteArrayInput optionText> function not supported with create item set (#​7038) (WiXSL)
  • Fix <SelectInput optionText> for create (#​7031) (WiXSL)
  • Fix <SelectArrayInput optionText> for create (#​7030) (WiXSL)
  • [Demo] Fix typescript error (#​7045) (WiXSL)
  • [Demo] Update Create-React-App to V5 (#​7022) (fzaninotto)

v3.19.5

Compare Source

  • Fix <Autocomplete> fails when used inside a <FormDataConsumer> (#​7013) (WiXSL)
  • Fix updateMany throws an error for undefined ID in ra-data-graphql-simple (#​7002) (djhi)
  • Fix warning for unrecognized enableGetChoices prop when using <SelectInput> as child of <ReferenceInput> (#​6999) (ZachSelindh)
  • [Doc] Fix typos (#​7012) (WiXSL)

v3.19.4

Compare Source

  • Fix list <FilterButton> is not accessible (#​6967) (WiXSL)
  • Fix incorrect exporter when switching resource (#​6989) (WiXSL)
  • Fix <ArrayField> doesn't accept <SimpleList> as child (#​6975) (Luwangel)
  • Fix unit tests require build first (#​6983) (WiXSL)
  • [TypeScript] Fix <SimpleList toolbar> doesn't allow false value (#​6969) (ZachSelindh)
  • [TypeScript] Fix ToolbarProps to be compatible with FormWithRedirectOwnProps definition (#​6994) (WiXSL)
  • [TypeScript] Fix missing definition for <ReferenceFieldController label> prop (#​6745) (kevinmamaqi)
  • [TypeScript] Fix <ArrayInput> proptype definition (#​6617) (WiXSL)
  • [Doc] Fix typo in <Tab> jsDoc (#​6959) (erakli)
  • [Demo] Fix <SelectInput label> is overridden in simple project (#​6920) (WiXSL)

v3.19.3

Compare Source

  • Fix <ArrayInput> issue with initialValue (#​6932) (djhi)
  • Fix <Datagrid> select all rows fails over multiple pages (#​6950) (WiXSL)
  • Fix <Notification> component appears only once when saving several times (#​6929) (wbojaume)
  • Fix useList isn't usable with asynchronously fetched data (#​6899) (djhi)
  • Fix <FilterListItem> styles can't be overridden via theme (#​6941) (kristelvdakker)
  • Fix <List bulkActionButtons> prop does not handle the value true (#​6926) (WiXSL)
  • Fix <SidebarToggleButton> is not exported (#​6911) (WiXSL)
  • Fix <Tab> children are missing the fullWidth prop when addLabel is set (#​6915) (WiXSL)
  • Fix useReferenceArrayInputController sets loading prop incorrectly (#​6914) (WiXSL)
  • Fix e2e tests fail on a clean install (#​6938) (WiXSL)
  • Fix wrong imports in tests (#​6931) (djhi)
  • Fix warn about unsaved changes when modifying <CheckGroupInput> or <ArrayInput> components (#​6954) (WiXSL)
  • [TypeScript] Fix types in tests (#​6949) (WiXSL)
  • [Doc] Add Blitzjs data provider (#​6945) (Fidym)
  • [Doc] Fix authProvider example (#​6933) (WiXSL)
  • [Doc] Fix code examples of <FormDataConsumer> (#​6936) (WiXSL)
  • [Doc] Fix mention of deprecated createMuiTheme in theming docs (#​6918) (AntoineCrb)
  • [Doc] Fix useNotify examples encourage a deprecated syntax (#​6912) (WiXSL)
  • [Demo] Fix no-code-demo does not work in CodeSandbox (#​6463) (smeng9)
  • [Demo] Update simple example dependencies (#​6930) (djhi)
  • [Demo] Fix deprecation warnings in simple project (#​6903) (WiXSL)

v3.19.2

Compare Source

  • Fix <SimpleForm> warns of unsaved changes when the form is submitting (#​6895) (WiXSL)
  • Fix useMutation not considering returnPromise option (#​6886) (WiXSL)
  • Fix package duplication in yarn.lock slows down react-admin CI (#​6874) (fzaninotto)
  • [TypeScript] Fix include side effects in <DeleteButton> props type (#​6877) (WiXSL)
  • [Demo] Fix authProvider.getIdentity() returns an object instead of a promise in simple demo (#​6881) (WiXSL)
  • [Doc] Fix typo in README (#​6875) (CoreyB26)
  • [Doc] Fix various typos (#​6872) (WiXSL)
  • [Doc] Fix List actions examples (#​6742) (erakli)

v3.19.1

Compare Source

v3.19.0

Compare Source

🚀 New Features
  • Allow lazy loading of choices in ReferenceInput (#​6013) (@​ValentinH)
  • Add support for custom url in SimpleList (#​6594) (djhi)
  • Added support for customizing the styles of the Datagrid expand panels (#​6596) (mjomble)
  • Blur input on suggestion create (#​6646) (andrico1234)
  • Add support for multiline notifications (#​6670) (WiXSL)
  • Introduce simpler signature for the notify function returned by useNotify (#​6671) (WiXSL)
  • Returns error from controllers & add support for custom onFailure on useShowController and useEditController (#​6680) (djhi)
  • Extract sidebar toggle button (#​6603) (djhi)
  • [GraphQL] Upgrade graphql packages dependencies (Apollo v3) (#​6614) (djhi)
🐛 Bug Fixes
🟦 Types
📚 Docs

v3.18.3

Compare Source

  • Fix custom menus do not shrink when sidebar is closed (#​6635) ([djhi](https:

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about these updates again.


  • If you want to rebase/retry this PR, click this checkbox.

This PR has been generated by Mend Renovate. View repository job log here.

@renovate renovate bot force-pushed the renovate/major-react-admin-monorepo branch from 4838b70 to e33818e Compare April 24, 2022 22:40
@renovate renovate bot changed the title Update react-admin monorepo to v3 (major) Update react-admin monorepo to v4 (major) Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant