Skip to content

Commit

Permalink
Update @graphql-ts/schema (#6813)
Browse files Browse the repository at this point in the history
  • Loading branch information
emmatown authored Oct 25, 2021
1 parent fb5b21c commit c0661b8
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-donuts-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@keystone-next/keystone': major
---

Updated `@graphql-ts/schema` to `0.5.0`. The `__rootVal` properties on `ObjectType`, `InterfaceType` and `UnionType` have been renamed to `__source`, this is intended to be internal but it could be depended on so if you did, you will need to change to `__source`. The `fields` property on `InterfaceType` has been renamed to `__fields` and it will no longer exist at runtime like the other types.
2 changes: 1 addition & 1 deletion packages/keystone/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"@emotion/hash": "^0.8.0",
"@emotion/weak-memoize": "^0.2.5",
"@graphql-tools/schema": "^8.2.0",
"@graphql-ts/schema": "0.3.1",
"@graphql-ts/schema": "0.5.0",
"@hapi/iron": "^6.0.0",
"@keystone-ui/button": "^5.0.2",
"@keystone-ui/core": "^3.2.1",
Expand Down
12 changes: 6 additions & 6 deletions packages/keystone/src/types/schema/graphql-ts-schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -143,22 +143,22 @@ export type Type = graphqlTsSchema.Type<Context>;
export type NullableOutputType = graphqlTsSchema.NullableOutputType<Context>;
export type OutputType = graphqlTsSchema.OutputType<Context>;
export type Field<
RootVal,
Source,
Args extends Record<string, graphqlTsSchema.Arg<any>>,
TType extends OutputType,
Key extends string
> = graphqlTsSchema.Field<RootVal, Args, TType, Key, Context>;
> = graphqlTsSchema.Field<Source, Args, TType, Key, Context>;
export type FieldResolver<
RootVal,
Source,
Args extends Record<string, graphqlTsSchema.Arg<any>>,
TType extends OutputType
> = graphqlTsSchema.FieldResolver<RootVal, Args, TType, Context>;
> = graphqlTsSchema.FieldResolver<Source, Args, TType, Context>;
export type ObjectType<RootVal> = graphqlTsSchema.ObjectType<RootVal, Context>;
export type UnionType<RootVal> = graphqlTsSchema.UnionType<RootVal, Context>;
export type InterfaceType<
RootVal,
Source,
Fields extends Record<string, graphqlTsSchema.InterfaceField<any, OutputType, Context>>
> = graphqlTsSchema.InterfaceType<RootVal, Fields, Context>;
> = graphqlTsSchema.InterfaceType<Source, Fields, Context>;
export type InterfaceField<
Args extends Record<string, graphqlTsSchema.Arg<any>>,
TType extends OutputType
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1487,10 +1487,10 @@
dependencies:
tslib "~2.3.0"

"@graphql-ts/schema@0.3.1":
version "0.3.1"
resolved "https://registry.yarnpkg.com/@graphql-ts/schema/-/schema-0.3.1.tgz#d98eefce24212c20808a43338ce014ebae1ca6d7"
integrity sha512-sPK1dXo0HEk4+DkMm9eE1MeylcDxtjK/sAKJJ4FJbYKK5F0gew7ohszVfgidVwk1nrjcT2/SWncdwM3plBX28g==
"@graphql-ts/schema@0.5.0":
version "0.5.0"
resolved "https://registry.yarnpkg.com/@graphql-ts/schema/-/schema-0.5.0.tgz#cc9cbf614ed931aff4c9987e88094a4030ad9e32"
integrity sha512-uljlEm6hRk92MG3XMXpKfSWzJ+03MXRLbsmGj5alZ/gbfS+CJkeh+hsvQOjwPD1EL5RhCE7L3E/zDWjH6W+V6g==
dependencies:
"@babel/runtime" "^7.9.2"

Expand Down

0 comments on commit c0661b8

Please sign in to comment.