Skip to content

Commit

Permalink
Extend migration guide (#2355)
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasdax98 authored Jul 29, 2024
1 parent 5480dc5 commit bc6d1dc
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion docs/docs/migration/migration-from-v6-to-v7.md
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bc6d1dc

Please sign in to comment.