-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve usage of generated types (#7001)
- Loading branch information
Showing
63 changed files
with
742 additions
and
694 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
'@keystone-next/keystone': major | ||
'@keystone-next/auth': major | ||
'@keystone-next/fields-document': major | ||
'@keystone-next/cloudinary': major | ||
--- | ||
|
||
- The following types have been renamed: | ||
- `BaseGeneratedListTypes` → `BaseListTypeInfo` | ||
- `ItemRootValue` → `BaseItem` | ||
- `ListInfo` → `ListGraphQLTypes` | ||
- `TypesForList` → `GraphQLTypesForList` | ||
- `FieldTypeFunc` now has a required type parameter which must satisfy `BaseListTypeInfo` | ||
- The following types now have a required type parameter which must satisfy `BaseKeystoneTypeInfo`: | ||
- `ServerConfig` | ||
- `CreateRequestContext` | ||
- `AdminUIConfig` | ||
- `DatabaseConfig` | ||
- `ListOperationAccessControl` | ||
- `MaybeSessionFunction` | ||
- `MaybeItemFunction` | ||
- `GraphQLResolver` and `GraphQLSchemaExtension` now have a required type parameter which must satisfy `KeystoneContext` | ||
- `KeystoneGraphQLAPI` no longer has a type parameter | ||
- The first parameter to the resolver in a `virtual` field will be typed as the item type if the list is typed with `Keystone.Lists` or `Keystone.Lists.ListKey`, otherwise it will be typed as `unknown` | ||
- The `item`/`originalItem` arguments in hooks/access control will now receive the `Item` type if the list is typed with `Keystone.Lists` or `Keystone.Lists.ListKey`, otherwise it will be typed as `BaseItem` | ||
- `args` has been removed from `BaseListTypeInfo` | ||
- `inputs.orderBy` and `all` has been added to `BaseListTypeInfo` | ||
- In `.keystone/types`: | ||
- `ListKeyListTypeInfo` has been moved to `Lists.ListKey.TypeInfo` | ||
- `KeystoneContext` has been renamed to `Context` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.