Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
# Changelog

## 5.11.0

* Add ability to use a `ReactNode` as create label in `<AutocompleteInput>` and `<SelectInput>` ([#10883](https://github.com/marmelab/react-admin/pull/10883)) ([Madeorsk](https://github.com/Madeorsk))
* Add `<SelectArrayInput InputLabelProps>` prop to support label configuration ([#10872](https://github.com/marmelab/react-admin/pull/10872)) ([antoinefricker](https://github.com/antoinefricker))
* Add support for embedded resources in ra-data-simple-rest ([#10898](https://github.com/marmelab/react-admin/pull/10898)) ([fzaninotto](https://github.com/fzaninotto))
* Use bulk export ([#10908](https://github.com/marmelab/react-admin/pull/10908)) ([djhi](https://github.com/djhi))
* Introduce `useDeleteController` ([#10876](https://github.com/marmelab/react-admin/pull/10876)) ([djhi](https://github.com/djhi))
* Move more primitives from `ra-ui-materialui` to `ra-core` ([#10907](https://github.com/marmelab/react-admin/pull/10907)) ([djhi](https://github.com/djhi))
* Make all mutations react to their declaration time options changes ([#10857](https://github.com/marmelab/react-admin/pull/10857)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceManyCountBase>` and `<ReferenceManyCount>` ([#10903](https://github.com/marmelab/react-admin/pull/10903)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceManyFieldBase>` and `<ReferenceManyField>` ([#10902](https://github.com/marmelab/react-admin/pull/10902)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceArrayFieldBase>` and `<ReferenceArrayField>` ([#10901](https://github.com/marmelab/react-admin/pull/10901)) ([djhi](https://github.com/djhi))
* Add offline support to `<ListBase>` and `<List>` ([#10896](https://github.com/marmelab/react-admin/pull/10896)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceArrayInputBase>` and `<ReferenceArrayInput>` ([#10895](https://github.com/marmelab/react-admin/pull/10895)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceManyFieldBase>` ([#10865](https://github.com/marmelab/react-admin/pull/10865)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceInputBase>`, `<ReferenceInput>` and `<AutocompleteInput>` ([#10864](https://github.com/marmelab/react-admin/pull/10864)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceOneFieldBase>` and `<ReferenceOneField>` ([#10861](https://github.com/marmelab/react-admin/pull/10861)) ([djhi](https://github.com/djhi))
* Add offline support to `<ReferenceFieldBase>` and `<ReferenceField>` ([#10860](https://github.com/marmelab/react-admin/pull/10860)) ([djhi](https://github.com/djhi))
* Add offline support to `<EditBase>` and `<Edit>` ([#10858](https://github.com/marmelab/react-admin/pull/10858)) ([djhi](https://github.com/djhi))
* Add offline support to `<ShowBase>` and `<Show>` ([#10852](https://github.com/marmelab/react-admin/pull/10852)) ([djhi](https://github.com/djhi))
* Improve offline detection in Edit, Show, ReferenceField and ReferenceOneField ([#10899](https://github.com/marmelab/react-admin/pull/10899)) ([djhi](https://github.com/djhi))
* Add `mutationKey` to all mutations to allow offline mutations ([#10851](https://github.com/marmelab/react-admin/pull/10851)) ([djhi](https://github.com/djhi))
* Fix `<Link>` cannot be styled through MUI theme ([#10905](https://github.com/marmelab/react-admin/pull/10905)) ([djhi](https://github.com/djhi))
* Fix regression regarding `disableAuthentication` in `EditBase` and `ShowBase` ([#10906](https://github.com/marmelab/react-admin/pull/10906)) ([djhi](https://github.com/djhi))
* Fix security vulnerabilities affecting `devalue` and `form-data` ([#10911](https://github.com/marmelab/react-admin/pull/10911)) ([slax57](https://github.com/slax57))
* [Doc] Fix `<ListBase>` is missing the `storeKey` prop ([#10894](https://github.com/marmelab/react-admin/pull/10894)) ([slax57](https://github.com/slax57))
* [TypeScript] Export `ValidationMessageFuncParams` and `ValidationMessageFunc` types ([#10867](https://github.com/marmelab/react-admin/pull/10867)) ([djhi](https://github.com/djhi))
* [chore] move `sanitizeFieldRestProps` and `sanitizeInputRestProps` to `ra-core` ([#10874](https://github.com/marmelab/react-admin/pull/10874)) ([jonathanarnault](https://github.com/jonathanarnault))
* [Chore] Move `ArrayInputContext` to `ra-core` ([#10873](https://github.com/marmelab/react-admin/pull/10873)) ([jonathanarnault](https://github.com/jonathanarnault))
* [chore] Fix CRM demo cannot load MSW when deployed on a sub URL ([#10897](https://github.com/marmelab/react-admin/pull/10897)) ([djhi](https://github.com/djhi))
* [chore] Revert MSW usage on simple example ([#10893](https://github.com/marmelab/react-admin/pull/10893)) ([djhi](https://github.com/djhi))

## 5.10.2

* Add warning when using `queryOptions` to add a `meta` in `<Edit>` and `<EditBase>` ([#10882](https://github.com/marmelab/react-admin/pull/10882)) ([Madeorsk](https://github.com/Madeorsk))
Expand Down
3 changes: 2 additions & 1 deletion docs/OldVersions.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ You have two options to read them:

## v5

- [v5.10](https://github.com/marmelab/react-admin/blob/master/docs/Admin.md)
- [v5.11](https://github.com/marmelab/react-admin/blob/master/docs/Admin.md)
- [v5.10](https://github.com/marmelab/react-admin/blob/v5.10.2/docs/Admin.md)
- [v5.9](https://github.com/marmelab/react-admin/blob/v5.9.2/docs/Admin.md)
- [v5.8](https://github.com/marmelab/react-admin/blob/v5.8.4/docs/Admin.md)
- [v5.7](https://github.com/marmelab/react-admin/blob/v5.7.4/docs/Admin.md)
Expand Down
4 changes: 2 additions & 2 deletions examples/data-generator/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "data-generator-retail",
"version": "5.10.2",
"version": "5.11.0",
"homepage": "https://github.com/marmelab/react-admin/tree/master/examples/data-generator",
"bugs": "https://github.com/marmelab/react-admin/issues",
"license": "MIT",
Expand All @@ -19,7 +19,7 @@
},
"devDependencies": {
"cross-env": "^5.2.0",
"ra-core": "^5.10.2",
"ra-core": "^5.11.0",
"rimraf": "^3.0.2",
"typescript": "^5.1.3"
},
Expand Down
14 changes: 7 additions & 7 deletions examples/simple/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "simple",
"version": "5.10.2",
"version": "5.11.0",
"private": true,
"type": "module",
"scripts": {
Expand All @@ -17,13 +17,13 @@
"fakerest": "^4.1.3",
"jsonexport": "^3.2.0",
"lodash": "~4.17.5",
"ra-data-fakerest": "^5.10.2",
"ra-i18n-polyglot": "^5.10.2",
"ra-input-rich-text": "^5.10.2",
"ra-language-english": "^5.10.2",
"ra-language-french": "^5.10.2",
"ra-data-fakerest": "^5.11.0",
"ra-i18n-polyglot": "^5.11.0",
"ra-input-rich-text": "^5.11.0",
"ra-language-english": "^5.11.0",
"ra-language-french": "^5.11.0",
"react": "^18.3.1",
"react-admin": "^5.10.2",
"react-admin": "^5.11.0",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.0",
"react-router": "^6.28.1",
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"lerna": "2.5.1",
"packages": ["examples/data-generator", "examples/simple", "packages/*"],
"version": "5.10.2",
"version": "5.11.0",
"npmClient": "yarn"
}
2 changes: 1 addition & 1 deletion packages/create-react-admin/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "create-react-admin",
"description": "A CLI to quickly start a new react-admin project",
"version": "5.10.2",
"version": "5.11.0",
"license": "MIT",
"bin": "lib/cli.js",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/create-react-admin/templates/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"@mui/icons-material": "^7.0.1",
"@mui/material": "^7.0.1",
"react": "^19.0.0",
"react-admin": "^5.10.0",
"react-admin": "^5.11.0",
"react-dom": "^19.0.0",
"react-router": "^7.1.3",
"react-router-dom": "^7.1.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"test": "vitest"
},
"dependencies": {
"ra-data-fakerest": "^5.10.0"
"ra-data-fakerest": "^5.11.0"
},
"devDependencies": {
"@testing-library/dom": "^10.4.0",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"ra-data-json-server": "^5.10.0"
"ra-data-json-server": "^5.11.0"
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"dependencies": {
"ra-data-simple-rest": "^5.10.0"
"ra-data-simple-rest": "^5.11.0"
}
}
2 changes: 1 addition & 1 deletion packages/ra-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-core",
"version": "5.10.2",
"version": "5.11.0",
"description": "Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React",
"files": [
"*.md",
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-core/src/controller/edit/useEditController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -327,8 +327,8 @@ export interface EditControllerBaseResult<RecordType extends RaRecord = any>
defaultTitle?: string;
isFetching: boolean;
isLoading: boolean;
isPaused: boolean;
isPlaceholderData: boolean;
isPaused?: boolean;
isPlaceholderData?: boolean;
refetch: UseGetOneHookValue<RecordType>['refetch'];
redirect: RedirectionSideEffect;
resource: string;
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-core/src/controller/show/useShowController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ export interface ShowControllerBaseResult<RecordType extends RaRecord = any> {
defaultTitle?: string;
isFetching: boolean;
isLoading: boolean;
isPaused: boolean;
isPlaceholderData: boolean;
isPaused?: boolean;
isPlaceholderData?: boolean;
resource: string;
record?: RecordType;
refetch: UseGetOneHookValue<RecordType>['refetch'];
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-core/src/controller/useReference.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,9 @@ export interface UseReferenceResult<
ErrorType = Error,
> {
isLoading: boolean;
isPaused: boolean;
isPaused?: boolean;
isPending: boolean;
isPlaceholderData: boolean;
isPlaceholderData?: boolean;
isFetching: boolean;
referenceRecord?: RecordType;
error?: ErrorType | null;
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-core/src/form/choices/ChoicesContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ export type ChoicesContextBaseValue<RecordType extends RaRecord = any> = {
hideFilter: (filterName: string) => void;
isFetching: boolean;
isLoading: boolean;
isPaused: boolean;
isPlaceholderData: boolean;
isPaused?: boolean;
isPlaceholderData?: boolean;
page: number;
perPage: number;
refetch: (() => void) | UseGetListHookValue<RecordType>['refetch'];
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-data-fakerest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-data-fakerest",
"version": "5.10.2",
"version": "5.11.0",
"description": "JSON Server data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -43,7 +43,7 @@
"@types/jest": "^29.5.2",
"cross-env": "^5.2.0",
"expect": "^27.4.6",
"ra-core": "^5.10.2",
"ra-core": "^5.11.0",
"rimraf": "^3.0.2",
"typescript": "^5.1.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-data-graphql-simple/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-data-graphql-simple",
"version": "5.10.2",
"version": "5.11.0",
"description": "A GraphQL simple data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -37,7 +37,7 @@
"graphql-ast-types-browser": "~1.0.2",
"lodash": "~4.17.5",
"pluralize": "~7.0.0",
"ra-data-graphql": "^5.10.2"
"ra-data-graphql": "^5.11.0"
},
"peerDependencies": {
"graphql": "^15.6.0",
Expand Down
2 changes: 1 addition & 1 deletion packages/ra-data-graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-data-graphql",
"version": "5.10.2",
"version": "5.11.0",
"description": "A GraphQL data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-data-json-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-data-json-server",
"version": "5.10.2",
"version": "5.11.0",
"description": "JSON Server data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -26,7 +26,7 @@
},
"dependencies": {
"query-string": "^7.1.3",
"ra-core": "^5.10.2"
"ra-core": "^5.11.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-data-local-forage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-data-local-forage",
"version": "5.10.2",
"version": "5.11.0",
"description": "LocalForage data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -42,7 +42,7 @@
"dependencies": {
"localforage": "^1.7.1",
"lodash": "~4.17.5",
"ra-data-fakerest": "^5.10.2"
"ra-data-fakerest": "^5.11.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-data-local-storage/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-data-local-storage",
"version": "5.10.2",
"version": "5.11.0",
"description": "Local storage data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -38,7 +38,7 @@
},
"dependencies": {
"lodash": "~4.17.5",
"ra-data-fakerest": "^5.10.2"
"ra-data-fakerest": "^5.11.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-data-simple-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-data-simple-rest",
"version": "5.10.2",
"version": "5.11.0",
"description": "Simple REST data provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down Expand Up @@ -29,7 +29,7 @@
},
"devDependencies": {
"cross-env": "^5.2.0",
"ra-core": "^5.10.2",
"ra-core": "^5.11.0",
"rimraf": "^3.0.2",
"typescript": "^5.1.3"
},
Expand Down
8 changes: 4 additions & 4 deletions packages/ra-i18n-i18next/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-i18n-i18next",
"version": "5.10.2",
"version": "5.11.0",
"description": "i18next i18n provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -27,14 +27,14 @@
"dependencies": {
"i18next": "^23.5.1",
"lodash": "^4.17.21",
"ra-core": "^5.10.2",
"ra-core": "^5.11.0",
"react-i18next": "^14.1.1"
},
"devDependencies": {
"cross-env": "^5.2.0",
"i18next-resources-to-backend": "^1.1.4",
"ra-language-english": "^5.10.2",
"ra-language-french": "^5.10.2",
"ra-language-english": "^5.11.0",
"ra-language-french": "^5.11.0",
"rimraf": "^3.0.2",
"typescript": "^5.1.3"
},
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-i18n-polyglot/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-i18n-polyglot",
"version": "5.10.2",
"version": "5.11.0",
"description": "Polyglot i18n provider for react-admin",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand All @@ -26,7 +26,7 @@
},
"dependencies": {
"node-polyglot": "^2.2.2",
"ra-core": "^5.10.2"
"ra-core": "^5.11.0"
},
"devDependencies": {
"cross-env": "^5.2.0",
Expand Down
10 changes: 5 additions & 5 deletions packages/ra-input-rich-text/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-input-rich-text",
"version": "5.10.2",
"version": "5.11.0",
"description": "<RichTextInput> component for react-admin, useful for editing HTML code in admin GUIs.",
"author": "Gildas Garcia",
"repository": "marmelab/react-admin",
Expand Down Expand Up @@ -51,10 +51,10 @@
"@testing-library/react": "^15.0.7",
"@tiptap/extension-mention": "^2.0.3",
"@tiptap/suggestion": "^2.0.3",
"data-generator-retail": "^5.10.2",
"ra-core": "^5.10.2",
"ra-data-fakerest": "^5.10.2",
"ra-ui-materialui": "^5.10.2",
"data-generator-retail": "^5.11.0",
"ra-core": "^5.11.0",
"ra-data-fakerest": "^5.11.0",
"ra-ui-materialui": "^5.11.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-hook-form": "^7.53.0",
Expand Down
4 changes: 2 additions & 2 deletions packages/ra-language-english/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ra-language-english",
"version": "5.10.2",
"version": "5.11.0",
"description": "English messages for react-admin, the frontend framework for building admin applications on top of REST/GraphQL services",
"repository": {
"type": "git",
Expand All @@ -21,7 +21,7 @@
"watch": "tsc --outDir dist/esm --module es2015 --watch"
},
"dependencies": {
"ra-core": "^5.10.2"
"ra-core": "^5.11.0"
},
"devDependencies": {
"rimraf": "^3.0.2",
Expand Down
Loading
Loading