@pothos/plugin-relay
Advanced tools
Comparing version 3.9.0 to 3.10.0
# Change Log | ||
## 3.10.0 | ||
### Minor Changes | ||
- a8e31a70: Improve user experience when srtict mode is disabled | ||
## 3.9.0 | ||
@@ -4,0 +10,0 @@ |
@@ -18,5 +18,7 @@ import { FieldKind, FieldNullability, FieldOptionsFromKind, FieldRef, FieldRequiredness, InputFieldMap, InputFieldRef, InputFieldsFromShape, InputShapeFromFields, InputShapeFromTypeParam, inputShapeKey, InterfaceParam, NormalizeArgs, ObjectFieldsShape, ObjectFieldThunk, ObjectParam, OutputShape, OutputType, ParentShape, Resolver, SchemaTypes, ShapeFromTypeParam } from '@pothos/core'; | ||
interface ExtendDefaultTypes<PartialTypes extends Partial<UserSchemaTypes>> { | ||
Connection: undefined extends PartialTypes['Connection'] ? {} : PartialTypes['Connection'] & {}; | ||
DefaultEdgesNullability: undefined extends PartialTypes['DefaultEdgesNullability'] ? DefaultEdgesNullability : NonNullable<PartialTypes['DefaultEdgesNullability']>; | ||
DefaultNodeNullability: undefined extends PartialTypes['DefaultNodeNullability'] ? false : NonNullable<PartialTypes['DefaultNodeNullability']> & boolean; | ||
Connection: PartialTypes['Connection'] & {}; | ||
DefaultEdgesNullability: FieldNullability<[ | ||
unknown | ||
]> extends PartialTypes['DefaultEdgesNullability'] ? DefaultEdgesNullability : PartialTypes['DefaultEdgesNullability'] & FieldNullability<[unknown]>; | ||
DefaultNodeNullability: boolean extends PartialTypes['DefaultNodeNullability'] ? false : PartialTypes['DefaultNodeNullability'] & boolean; | ||
} | ||
@@ -23,0 +25,0 @@ interface SchemaBuilder<Types extends SchemaTypes> { |
{ | ||
"name": "@pothos/plugin-relay", | ||
"version": "3.9.0", | ||
"version": "3.10.0", | ||
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema", | ||
@@ -39,3 +39,3 @@ "main": "./lib/index.js", | ||
"devDependencies": { | ||
"@pothos/core": "3.5.1", | ||
"@pothos/core": "3.6.0", | ||
"@pothos/test-utils": "1.1.0", | ||
@@ -42,0 +42,0 @@ "graphql": "16.3.0", |
@@ -63,11 +63,11 @@ import { | ||
export interface ExtendDefaultTypes<PartialTypes extends Partial<UserSchemaTypes>> { | ||
Connection: undefined extends PartialTypes['Connection'] | ||
? {} | ||
: PartialTypes['Connection'] & {}; | ||
DefaultEdgesNullability: undefined extends PartialTypes['DefaultEdgesNullability'] | ||
Connection: PartialTypes['Connection'] & {}; | ||
DefaultEdgesNullability: FieldNullability< | ||
[unknown] | ||
> extends PartialTypes['DefaultEdgesNullability'] | ||
? DefaultEdgesNullability | ||
: NonNullable<PartialTypes['DefaultEdgesNullability']>; | ||
DefaultNodeNullability: undefined extends PartialTypes['DefaultNodeNullability'] | ||
: PartialTypes['DefaultEdgesNullability'] & FieldNullability<[unknown]>; | ||
DefaultNodeNullability: boolean extends PartialTypes['DefaultNodeNullability'] | ||
? false | ||
: NonNullable<PartialTypes['DefaultNodeNullability']> & boolean; | ||
: PartialTypes['DefaultNodeNullability'] & boolean; | ||
} | ||
@@ -74,0 +74,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3722
478169