See release notes: https://github.com/api-platform/admin/releases
- Compatibility with react-admin v5
- Fix validation errors shown as "Server communication error" when creating an entity
- Enum support in field guesser
- Fix random error message about apiSchema being null
- Fix inconsistencies between dark and light theme
- Format identifier values on save (needed when not modified in the form)
- Fix empty array in form would trigger a file upload
- Add enum input guesser
- Handle multiple file upload
- Allow to use tabbed components in guessers
- Use native react-admin
sanitizeEmptyValues
- Fix reference input validation
- Fix missing fully-specified imports for @mui
- Build only ESM
- Fix operations registration in resource guesser
- Remove type module from package.json
- Fix getting the field type for https://schema.org
- Fix displaying name of relation in place of iri not working for https://schema.org/name
- A relative entrypoint can be used
- Improve performance
- Add
sanitizeEmptyValuesprop (defaulttrue) toCreateGuesserandEditGuesser - Add
sanitizeEmptyValueprop (defaulttrue) toInputGuesser - Fix
transformprop inCreateGuesserandEditGuesser
- Take the operations into account (list, create, edit, delete)
- Mercure: add back the possibility to use a boolean
- Add full OpenAPI support (introduce
OpenApiAdmin) - Make sure i18n provider and theme are passed down to
AdminGuesser
- Introduce
useDisplayOverrideCodehook to avoid displaying the code message if the guesser component is rendered multiple times
- Make sure columns can be sorted when there is an order filter in
ListGuesser
- Compatibility with react-admin 4 (see UPGRADE.md)
- Add a light/dark theme switcher by default
- Improve the error page with more information to get help
- Improve parsing and formatting of embedded relations
- Add a new
useIntrospecthook (calling the actual introspection request, useuseIntrospectionto ask for a new introspection) - Partial pagination support is back (native to react-admin)
- Embedded support is enabled by default
- Hydra: manage empty response correctly
- Hydra: total was overridden by partial pagination
- Make sure i18n provider is passed down to
AdminGuesser
- TypeScript: make some props partial in HydraAdmin and AdminGuesser
- Hydra: use right URL for getManyReference
- Migrate codebase to TypeScript (export CommonJS module and ECMAScript module)
- Correctly parse the
idinput inInputGuesser - Hydra: use pagination when fetching data with a search id filter (getMany)
- Mercure: close event source connection when unsubscribing
- Extract the Mercure hub from response headers
- Mercure support
- Hydra: add possibility to disable caching
- Make sure a property's value is not null before checking if there is a
toJSONproperty in a form data value
- Always use an array for
inputChildrenin guessers
- Do not use modern operators
- Accept
extraInformationin data passed to data provider. Use ahasFileFieldfield to force multipart encoding. CreateGuesserandEditGuesseradd thehasFileFieldfield toextraInformationif a child is aFile
- Call
toJSONinstead ofJSON.stringifywhen there is atoJSONproperty in a form data value
- Use
JSON.stringifywhen there is atoJSONproperty in a form data value
- Downgrade history
- Remove final-form-submit-errors
- Bump dependencies (history, jsonld)
- Submission errors per field
- Add missing props for
SimpleFormandDatagridin guessers - Improve react-admin compatibility
- Hydra: return id when deleting in the data provider
- Fix
customSagasprop type inAdminGuesser - Pause validation when the Final Form field is registered in
InputGuesser
- Add
rowClickprop inListGuesser - Do not display user menu if there is no auth provider
- Do not use guessers in
ResourceGuesserifcreate,edit,show,listprops have a falsy value - Add ESLint hook rules
- Add sort for nested properties in ListGuesser
- Hydra: use
fetchJsonLdwhen expanding an error (to use authorization header)
- Fix sent
FormDatawhen a value is an object or an array (use JSON)
- Fix
ResourceGuesserpropTypes
- Bump dependencies (
@api-platform/api-doc-parserto 0.11)
- Call
logoutIfAccessDeniedif theschemaAnalyzerthrows an error (to logout in case of an unauthorized access)
- Hydra: manage file upload (use
FormDatainstead of JSON)
- Humanize
ReferenceInputandReferenceArrayInputlabel inInputGuesser
- Introspection should be done before loading
- Set loading when introspecting with
useIntrospection - Add React 17 as peer dependency
- Add
useIntrospectionhook in order to ask for a new introspection if needed - Hydra:
apiSchemashould not be cached if there are no resources
- Add custom
searchParamsfor the Hydra data provider methods
- Define history only in a browser context
- Add missing propTypes
- Fix
loadingprops usage inAdminUI
- Remove unuseful optional chaining
- Fix updateMany to send parameters into data fetch
- Hydra: display empty page when
hydra:totalItemsis 0
- Hydra: correctly display all errors
- Embedded support for array relation
- Fix optimistic introspect calls
- Hydra: better CORS error
- Add embedded support (disabled by default, set
useEmbeddedtotruein the Hydra data provider) - BC: If your API uses an embedded, it will not be a reference anymore if you use
ListGuesser,InputGuesserorResourceGuesser. Use the new way of handling embedded instead. - BC: In the
schemaAnalyser,getReferenceNameFieldhas been renamed togetFieldNameFromSchema. - Require
@api-platform/api-doc-parser^0.9 (embedded) - Add partial pagination support
- Hydra: fix default per page parameter value
- Hydra: remove
tracein error - Hydra: add
bodytoHttpError
- If a search filter for the identifier is available, use it for
MANYrequests
- Fix authentication
- Better error handling
- Use readable and writable fields instead of fields
- Use array notation for exists, range and date filters
- Compatibility with react-admin 3
- Use hooks instead of classes
AdminGuessercan be used instead ofHydraAdmin- A custom
resourceSchemaAnalyzercan be pass as a prop ofAdminGuesser - A custom
historycan be pass as a prop - The Hydra data provider is using the new type
- Do not display guesser console logs in production
- Better UI when displaying errors at the first loading
- Undoable editing has been fixed
Breaking Changes:
dataProviderimported from@api-platform/adminhas been renamed tohydraDataProvider
- Pass down initial props to
HydraAdmin - Allow to disable filters on
ListGuesser - Fix nested search filters and search filter for collection in Hydra data provider
- Add console logs in guessers to improve DX
- Check for the value to be defined before checking the position of the prefix in
InputGuesser
- Render login page when unauthorized
- Allow to inject custom API documentation parser in Hydra data provider
- Initial release (use
Guessercomponents)