Update react-admin monorepo to v4 (major) #20
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
^2.2.0
->^2.2.0 || ^4.0.0
^2.2.0
->^2.2.0 || ^4.0.0
Release Notes
marmelab/react-admin
v4.1.5
Compare Source
css-mediaquery
Dependency (#7849) (fzaninotto)<Sidebar>
does not forward theme substyles to its children (#7854) (septentrion-730n)useFormState
returns null with yarn pnp (#7850) (fzaninotto)<AutocompleteInput>
storybook does not select newly created option (#7847) (slax57)<TextField>
doc mentionslabel
field as required (#7848) (fzaninotto)v4.1.4
Compare Source
<Logout />
appears even when not logged in (#7842) (septentrion-730n)<Show disableAuthentication>
prop is ignored (#7837) (septentrion-730n)<ImageField>
style is ignored for single images (#7836) (fzaninotto)<FileInput>
and<ImageInput>
style don't use MUI theme (#7835) (septentrion-730n)<NumberInput>
seems buggy when used in a Filter Form (#7830) (fzaninotto)<Datagrid expand>
expands ALL rows when used as a child of<ArrayField>
(#7828) (septentrion-730n)<ReferenceInput>
generated label in Filter Form (#7825) (septentrion-730n)useDataProvider
returnsundefined
value when unauthorized 401 error is thrown (#7820) (slax57)<AutocompleteInput>
creation props and examples (#7844) (slax57)<ReferenceOneField>
doc is missing (#7813) (fzaninotto)ra-data-treeql
(#7808) (nkappler)v4.1.3
Compare Source
<BooleanInput>
and<CheckboxInput>
don't have focus states (re-add ripple) (#7772) (andrico1234)alwaysOn
filters are empty (#7786) (fzaninotto)useUpdate
passes old record to onSuccess in optimistic mode (#7783) (djhi)<Menu>
storybook is missing (#7776) (septentrion-730n)<DualListInput>
menu item misses the premium badge (#7789) (davidhenley)v4.1.2
Compare Source
DatagridContext
anduseDatagridContext
aren't exported (#7779) (djhi)<ArrayInput>
doesn't allow null as value (#7768) (septentrion-730n)<AutocompleteArrayInput>
accepts true asdisableClearable
value (#7766) (septentrion-730n)<FunctionField>
generic typing restriction (#7770) (septentrion-730n)<FilterLiveSearch>
missingfullWidth
prop and harmonizelabel
prop type betweenCommonInputProps
andLabeledProps
(#7757) (septentrion-730n)v4.1.1
Compare Source
<DateTimeInput validate={required()} />
doesn't work correctly (#7744) (djhi)validate
function errors messages are not display when passed as translatable object (#7741) (djhi)useUpdateMany
does not support thereturnPromise
option (#7740) (djhi)<SimpleForm>
and<TabbedForm>
toolbar withtoolbar={false}
(#7738) (djhi)<Admin>
calls its child function without permissions while loading them (#7737) (djhi)useConfigureAdminRouterFromChildren
when child function return null (#7731) (djhi)<TabbedForm>
ignores thesx
prop (#7721) (slax57)<Loading>
ignores thesx
prop (#7723) (slax57)<Form>
submit cannot be prevented withevent.preventDefault
(#7715) (slax57)<AutocompleteInput>
tests regression (#7714) (slax57)useSaveContext
code snippet (#7747) (wgiddens)<SelectArrayInput>
doc mentions non-existent prop resettable (#7743) (djhi)<SaveButton>
is documented in two different chapters (#7742) (fzaninotto)useGetOne
section about query aggregation (#7732) (fzaninotto)<BooleanInput>
example for overriding check icon (#7720) (mediafreakch)<Button>
component props accepts a record (#7764) (fzaninotto)<Button>
component props (#7750) (djhi)<SingleFieldList>
rejects thesx
prop (#7735) (djhi)useMutation
error typing definitions (#7722) (soullivaneuh)v4.1.0
Compare Source
LabelPrefix
context to better guess correct input labels (#7710) (fzaninotto)<DashboardMenuItem>
(#7577) (kristelvdakker)v4.0.5
Compare Source
<ReferenceField>
sometimes gets stuck on loading state (#7708) (djhi)<ReferenceInput>
sometimes gets stuck on loading state (#7707) (djhi)<ReferenceArrayInput>
with<AutocompleteArrayInput>
throws error if the array is empty (#7694) (slax57)<FormTab>
doesn't highlight selected tab label (#7693) (slax57)<Filter>
shows filter button even though there is no filter to add (#7691) (fzaninotto)<TextInput>
changes 'on' into 'false' (#7682) (Andonyaa)<Admin queryClient>
prop (#7704) (fzaninotto)v4.0.4
Compare Source
variant
(#7636) (fzaninotto)<NumberInput>
edge cases (#7673) (fzaninotto)<ShowBase>
,<CreateBase>
and<EditBase>
components don't supportresource
override via props (#7652) (slax57)ra-input-rich-text
(#7683) (friday)<Button color>
values (#7681) (smeng9)<Button>
component prop type (#7664) (okovpashko)<RichTextInputToolbar>
example inra-input-rich-text
chapter (#7671) (friday)<SaveButton formId>
prop should be called<SaveButton form>
(#7658) (smeng9)v4.0.3
Compare Source
<SimpleFormIterator disableRemove>
doesn't receive therecord
argument (#7645) (andrico1234)<Admin>
forbids login whenauthProvider.setPermissions()
isn't implemented (#7642) (djhi)<SimpleFormIterator>
children display wrong labels (#7641) (djhi)<SimpleFormIterator>
(#7630) (andrico1234)useCreateController
(#7633) (waltheri)<FileInput>
no longer passessource
toname
attribute (#7619) (djhi)<FileInput>
doesn't acceptoptions
prop (#7611) (fzaninotto)<SingleFieldList>
(#7617) (djhi)<SaveButton type>
is "button" (#7557) (WiXSL)NullableBooleanInput
helper text doesn't takeisSubmitted
into account (#7553) (afilp)ra-data-graphql
options type (#7638) (arjunyel)<Button/>
props type mention unsupportedicon
prop (#7627) (smeng9)<ArrayField>
doc mentions unsupportedfieldKey
prop (#7613) (smeng9)v4.0.2
Compare Source
<Admin queryClient>
prop (#7558) (joshq00)logout
doesn't reset resource registration (#7539) (fzaninotto)<ListGuesser>
does not update when resource changes (#7605) (djhi)<BooleanInput>
(#7556) (WiXSL)<RichTextInput>
buttons don't update correctly (#7585) (djhi)<ArrayInput sx>
prop (#7571) (djhi)<SelectInput choices>
type only allow Records (#7595) (bingluen)<SelectInput>
/<SelectArrayInput>
onChange
handler (#7519) (WiXSL)<SelectInput>
props (#7566) (smeng9)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
<Admin requireAuth>
to hide the app until auth is checked (#7475)<Admin basename>
to allow mounting react-admin inside a sub path (#7100, #6917)dataProvider
hooks (#7116)total
) (#7120)sx
props in allra-ui-materialui
components (#7175)<Form>
component (#7087)<ReferenceOneField>
(#7060)<CustomRoutes>
(#7345)useStore
and persistent preferences (backport fromra-enterprise
) (#7158, #7366)<ToggleThemeButton>
(#7340)<LocalesMenuButton>
(#7332)useSetTheme
(#7008)combineDataProvider
helper (#7055)<Datagrid expandSingle>
to limit the number of expanded rows to 1 (#7454)<ChoicesContextProvider>
in all ReferenceInputs to avoid child cloning and allow choices filtering, pagination, and sorting (#7185)<FileInput validateFileRemoval>
prop to allow confirmation before file deletion (#7003)<Resource options>
(#7392)📦 Dependency Updates
material-ui
to v5 (and it's now calledMUI
) (#6650)react-query
for data fetching instead of home made solution (#6779, #6916, #7006, #7016, #7025, #6891, #7035, #7020, #7035, #7001)react-final-form
withreact-hook-form
(#7087)react-router
to V6 (#6873)Quill
byTipTap
in<RichTextInput>
(#7153)🏹 Updated Syntax
Record
TypeScript name toRaRecord
(#7078)record
prop injectionvariant
andmargin
, and document theme override instead (#7223)loading
toisLoading
inauthProvider
hooks return type (#7334)initialValues
todefaultValues
in<Form>
(caused by switch toreact-hook-form
)bulkActionButtons
from<List>
to<Datagrid>
(#7114)currentSort
tosort
(#7076)setSort
signature to make it consistent across components (#7065)<TranslationProvider>
to<I18nContextProvider>
<WithPermissions>
wrapping to auseAuthenticated
hook in main controllers (#6921)<Notification>
component into<AdminUI>
to avoid gotchas when overriding the layout (#7082)🧹 Cleanup
Redux
(#7177)redux-saga
and saga-based side effects (#6684)connected-react-router
(#6704)basePath
(#7100)addLabel
prop in Field components (#7223)Resource
initialization, Store Resource definitions in Context rather than in store (#7051)addField
) and render propsuseQuery
anduseMutation
(asreact-query
already provides them) (#7001)validUntil
(#7001)useVersion
(#7001)allowEmpty
prop in choice inputs (#7200)sort
prop in<DataGridHeaderCell>
(#7065)<FormWithRedirect>
andhandleSubmitWithRedirect
(#7087)TestContext
(<AdminContext>
does the trick) andra-test
(#7148)useGetMatching
(use getList instead) (#6916)undoable
prop now that we havemutationMode
(#6711)withTranslate
HOC (#7157)ra-test
(#7148)esbuild
instead ofwebpack
for simple example📚 Updated Documentation
🪜 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
history
dependency (#7481) (WiXSL)setFilter
(#7444) (slax57)useGetMany
loading/loaded state does not change when query updated (#6913) (WiXSL)<BulkUpdateButton>
color (#7303) (WiXSL)<AutocompleteInput optionText>
returning an element throws error (#7289) (WiXSL)url-parse
from 1.5.7 to 1.5.10 dependencies(#7313) ([dependabot bot](https://github.com/dependabot bot))url-parse
from 1.5.3 to 1.5.7 dependencies(#7263) ([dependabot bot](https://github.com/dependabot bot))<Datagrid>
example (#7375) (WiXSL)ra-data-graphql
readme (#7347) (dijonkitchen)<Resource options>
label property (#7422) (soullivaneuh)v3.19.10
Compare Source
<CheckboxGroupInput>
changes selected values type (#7248) (WiXSL)<DateField>
shows wrong date on negative time zones (#7242) (fzaninotto)<DateInput>
example offormat
andparse
withDate
object as value (#7233) (WiXSL)v3.19.8
Compare Source
<FilterButton>
throws bad error if no filters are present (#7227) (WiXSL)page
remains the same when changingperPage
in<ReferenceXXX>
Fields (#7213) (WiXSL)useNotify
doesn't allow multi line notifications (#7188) (WiXSL)<AutocompleteInput>
erases input while typing (#7173) (WiXSL)resolveBrowserLocale
tests (#7194) (FernandoKGA)<Toolbar alwaysEnableSaveButton>
doesn't acceptfalse
(#7167) (WiXSL)<ReferenceArrayInput>
logs console warning in certain cases (#7165) (WiXSL)<SelectArrayInput>
as child of<ReferenceArrayInput>
(#7015) (ZachSelindh)BooleanInputProps
isn't exported (#7144) (alanpoulain)<XXXInput initialValue>
description when the value isnull
(#7139) (WiXSL)v3.19.7
Compare Source
<SimpleFormIterator>
assigns items indexes incorrectly (#7123) (WiXSL)<ArrayInput>
could make the form dirty on initialization (#7112) (WiXSL)<AutocompleteInput>
styles (#6486) (mohandes-jiri)<ArrayInput>
(#7104) (vaizki)<AutocompleteArrayInput>
and<SelectArrayInput>
(#7086) (kristelvdakker)v3.19.6
Compare Source
logoutUser
is false (#7044) (WiXSL)redirect=false
after save doesn't clear the form (#7041) (WiXSL)<SelectArrayInput optionText>
function not fully supported with create item (#7039) (WiXSL)<AutocompleteArrayInput optionText>
function not supported with create item set (#7038) (WiXSL)<SelectInput optionText>
for create (#7031) (WiXSL)<SelectArrayInput optionText>
for create (#7030) (WiXSL)v3.19.5
Compare Source
<Autocomplete>
fails when used inside a<FormDataConsumer>
(#7013) (WiXSL)updateMany
throws an error for undefined ID inra-data-graphql-simple
(#7002) (djhi)enableGetChoices
prop when using<SelectInput>
as child of<ReferenceInput>
(#6999) (ZachSelindh)v3.19.4
Compare Source
<FilterButton>
is not accessible (#6967) (WiXSL)exporter
when switching resource (#6989) (WiXSL)<ArrayField>
doesn't accept<SimpleList>
as child (#6975) (Luwangel)<SimpleList toolbar>
doesn't allowfalse
value (#6969) (ZachSelindh)ToolbarProps
to be compatible withFormWithRedirectOwnProps
definition (#6994) (WiXSL)<ReferenceFieldController label>
prop (#6745) (kevinmamaqi)<ArrayInput>
proptype definition (#6617) (WiXSL)<Tab>
jsDoc (#6959) (erakli)<SelectInput label>
is overridden in simple project (#6920) (WiXSL)v3.19.3
Compare Source
<ArrayInput>
issue withinitialValue
(#6932) (djhi)<Datagrid>
select all rows fails over multiple pages (#6950) (WiXSL)<Notification>
component appears only once when saving several times (#6929) (wbojaume)useList
isn't usable with asynchronously fetched data (#6899) (djhi)<FilterListItem>
styles can't be overridden via theme (#6941) (kristelvdakker)<List bulkActionButtons>
prop does not handle the value true (#6926) (WiXSL)<SidebarToggleButton>
is not exported (#6911) (WiXSL)<Tab>
children are missing thefullWidth
prop whenaddLabel
is set (#6915) (WiXSL)useReferenceArrayInputController
setsloading
prop incorrectly (#6914) (WiXSL)<CheckGroupInput>
or<ArrayInput>
components (#6954) (WiXSL)authProvider
example (#6933) (WiXSL)<FormDataConsumer>
(#6936) (WiXSL)createMuiTheme
in theming docs (#6918) (AntoineCrb)useNotify
examples encourage a deprecated syntax (#6912) (WiXSL)v3.19.2
Compare Source
<SimpleForm>
warns of unsaved changes when the form is submitting (#6895) (WiXSL)useMutation
not considering returnPromise option (#6886) (WiXSL)yarn.lock
slows down react-admin CI (#6874) (fzaninotto)<DeleteButton>
props type (#6877) (WiXSL)authProvider.getIdentity()
returns an object instead of a promise in simple demo (#6881) (WiXSL)v3.19.1
Compare Source
history
dependency (#7481) (WiXSL)setFilter
(#7444) (slax57)useGetMany
loading/loaded state does not change when query updated (#6913) (WiXSL)<BulkUpdateButton>
color (#7303) (WiXSL)<AutocompleteInput optionText>
returning an element throws error (#7289) (WiXSL)url-parse
from 1.5.7 to 1.5.10 dependencies(#7313) ([dependabot bot](https://github.com/dependabot bot))url-parse
from 1.5.3 to 1.5.7 dependencies(#7263) ([dependabot bot](https://github.com/dependabot bot))<Datagrid>
example (#7375) (WiXSL)ra-data-graphql
readme (#7347) (dijonkitchen)<Resource options>
label property (#7422) (soullivaneuh)v3.19.0
Compare Source
🚀 New Features
notify
function returned byuseNotify
(#6671) (WiXSL)error
from controllers & add support for customonFailure
onuseShowController
anduseEditController
(#6680) (djhi)🐛 Bug Fixes
🟦 Types
📚 Docs
v3.18.3
Compare Source
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.
This PR has been generated by Mend Renovate. View repository job log here.