From bc6d1dca313d65c74f3045a6a3f30e64efdfe54b Mon Sep 17 00:00:00 2001 From: Thomas Dax Date: Mon, 29 Jul 2024 13:35:19 +0200 Subject: [PATCH] Extend migration guide (#2355) --- docs/docs/migration/migration-from-v6-to-v7.md | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/docs/docs/migration/migration-from-v6-to-v7.md b/docs/docs/migration/migration-from-v6-to-v7.md index 866ecf4730..2c3a4fdf22 100644 --- a/docs/docs/migration/migration-from-v6-to-v7.md +++ b/docs/docs/migration/migration-from-v6-to-v7.md @@ -385,7 +385,7 @@ This requires the following changes: ### Make file uploads upload endpoint public The `/file-uploads/upload` endpoint now requires the `fileUploads` permission by default. -If necessary (e.g., a file upload in the site), make the endpoint public: +**If necessary** (e.g., a file upload in the site), make the endpoint public: ```diff FileUploadsModule.register({ @@ -478,6 +478,15 @@ DamModule.register({ + import { GraphQLJSONObject } from "graphql-scalars"; ``` +### Change arguments of `filtersToMikroOrmQuery` + +The second argument (`applyFilter` callback) was moved into an options object: + +```diff +- filtersToMikroOrmQuery(f, (acc, filterValue, filterKey) => {}), ++ filtersToMikroOrmQuery(f, { applyFilter: (acc, filterValue, filterKey) => {} }), +``` + ## Admin ### Remove `axios` dependency @@ -578,6 +587,7 @@ This has multiple implications: - `AppHeaderButton`: Remove class keys `disabled` and `focusVisible` (use the `:disabled` or `:focus` selectors instead) - `AppHeaderButton`: Rename the `inner` class key to `content` - `AppHeaderDropdown`: Remove the `popoverPaper` class key +- `AppHeaderDropdown`: Replace `popoverProps` with `slotProps.popover` - `AppHeaderDropdown`: Rename the `popoverRoot` class key to `popover` - `ClearInputButton`: Remove the `disabled` class key (use the `:disabled` selector instead) - `CopyToClipboardButton`: Remove `components` prop. Use `copyIcon` and `successIcon` instead