Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@pothos/plugin-relay

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/plugin-relay - npm Package Compare versions

Comparing version 3.26.0 to 3.27.0

7

CHANGELOG.md
# Change Log
## 3.27.0
### Minor Changes
- cf93c7c9: Fix some edge cases with how option objects become optional when no arguments are
required
## 3.26.0

@@ -4,0 +11,0 @@

24

dts/global-types.d.ts

@@ -34,8 +34,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';

};
connectionObject: <Type extends OutputType<Types>, ResolveReturnShape, EdgeNullability extends FieldNullability<[unknown]>, NodeNullability extends boolean>(...args: NormalizeArgs<[
connectionOptions: ConnectionObjectOptions<Types, Type, EdgeNullability, NodeNullability, ResolveReturnShape> & {
name: string;
type: Type;
},
edgeOptions?: ObjectRef<{
connectionObject: <Type extends OutputType<Types>, ResolveReturnShape, EdgeNullability extends FieldNullability<[unknown]>, NodeNullability extends boolean>(connectionOptions: ConnectionObjectOptions<Types, Type, EdgeNullability, NodeNullability, ResolveReturnShape> & {
name: string;
type: Type;
}, ...args: NormalizeArgs<[
edgeOptions: ObjectRef<{
cursor: string;

@@ -60,4 +59,4 @@ node?: ShapeFromTypeParam<Types, Type, NodeNullability>;

};
globalID: <Req extends boolean>(...args: NormalizeArgs<[options?: GlobalIDInputFieldOptions<Types, Req, Kind>]>) => InputFieldRef<InputShapeFromTypeParam<Types, GlobalIDInputShape, Req>, Kind>;
globalIDList: <Req extends FieldRequiredness<['ID']>>(...args: NormalizeArgs<[options?: GlobalIDListInputFieldOptions<Types, Req, Kind>]>) => InputFieldRef<InputShapeFromTypeParam<Types, [
globalID: <Req extends boolean>(...args: NormalizeArgs<[options: GlobalIDInputFieldOptions<Types, Req, Kind>]>) => InputFieldRef<InputShapeFromTypeParam<Types, GlobalIDInputShape, Req>, Kind>;
globalIDList: <Req extends FieldRequiredness<['ID']>>(...args: NormalizeArgs<[options: GlobalIDListInputFieldOptions<Types, Req, Kind>]>) => InputFieldRef<InputShapeFromTypeParam<Types, [
{

@@ -76,10 +75,9 @@ [inputShapeKey]: {

nodeList: <Args extends InputFieldMap, ResolveShape>(options: NodeListFieldOptions<Types, ParentShape, Args, ResolveShape, Kind>) => FieldRef<unknown[]>;
connection: <Type extends OutputType<Types>, Args extends InputFieldMap, Nullable extends boolean, ResolveReturnShape, EdgeNullability extends FieldNullability<[unknown]> = Types['DefaultEdgesNullability'], NodeNullability extends boolean = Types['DefaultNodeNullability']>(...args: NormalizeArgs<[
options: ConnectionFieldOptions<Types, ParentShape, Type, Nullable, EdgeNullability, NodeNullability, Args, ResolveReturnShape> & Omit<FieldOptionsFromKind<Types, ParentShape, Type, Nullable, (InputFieldMap extends Args ? {} : Args) & InputFieldsFromShape<DefaultConnectionArguments>, Kind, ParentShape, ResolveReturnShape>, 'args' | 'resolve' | 'type'>,
connectionOptions?: ObjectRef<ConnectionShapeForType<Types, Type, false, EdgeNullability, NodeNullability>> | Omit<ConnectionObjectOptions<Types, Type, EdgeNullability, NodeNullability, ResolveReturnShape>, 'edgesNullable'>,
edgeOptions?: ObjectRef<{
connection: <Type extends OutputType<Types>, Args extends InputFieldMap, Nullable extends boolean, ResolveReturnShape, EdgeNullability extends FieldNullability<[unknown]> = Types['DefaultEdgesNullability'], NodeNullability extends boolean = Types['DefaultNodeNullability']>(options: ConnectionFieldOptions<Types, ParentShape, Type, Nullable, EdgeNullability, NodeNullability, Args, ResolveReturnShape> & Omit<FieldOptionsFromKind<Types, ParentShape, Type, Nullable, (InputFieldMap extends Args ? {} : Args) & InputFieldsFromShape<DefaultConnectionArguments>, Kind, ParentShape, ResolveReturnShape>, 'args' | 'resolve' | 'type'>, ...args: NormalizeArgs<[
connectionOptions: ObjectRef<ConnectionShapeForType<Types, Type, false, EdgeNullability, NodeNullability>> | Omit<ConnectionObjectOptions<Types, Type, EdgeNullability, NodeNullability, ResolveReturnShape>, 'edgesNullable'>,
edgeOptions: ObjectRef<{
cursor: string;
node?: ShapeFromTypeParam<Types, Type, NodeNullability>;
}> | ConnectionEdgeObjectOptions<Types, Type, NodeNullability, ResolveReturnShape>
]>) => FieldRef<ConnectionShapeForType<Types, Type, Nullable, EdgeNullability, NodeNullability>>;
], 0>) => FieldRef<ConnectionShapeForType<Types, Type, Nullable, EdgeNullability, NodeNullability>>;
}

@@ -86,0 +84,0 @@ interface ConnectionFieldOptions<Types extends SchemaTypes, ParentShape, Type extends OutputType<Types>, Nullable extends boolean, EdgeNullability extends FieldNullability<[unknown]>, NodeNullability extends boolean, Args extends InputFieldMap, ResolveReturnShape> {

{
"name": "@pothos/plugin-relay",
"version": "3.26.0",
"version": "3.27.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.20.0",
"@pothos/core": "3.21.0",
"@pothos/plugin-complexity": "3.10.0",

@@ -42,0 +42,0 @@ "@pothos/test-utils": "1.3.0",

@@ -124,15 +124,15 @@ import {

>(
connectionOptions: ConnectionObjectOptions<
Types,
Type,
EdgeNullability,
NodeNullability,
ResolveReturnShape
> & {
name: string;
type: Type;
},
...args: NormalizeArgs<
[
connectionOptions: ConnectionObjectOptions<
Types,
Type,
EdgeNullability,
NodeNullability,
ResolveReturnShape
> & {
name: string;
type: Type;
},
edgeOptions?:
edgeOptions:
| ObjectRef<{

@@ -181,7 +181,7 @@ cursor: string;

globalID: <Req extends boolean>(
...args: NormalizeArgs<[options?: GlobalIDInputFieldOptions<Types, Req, Kind>]>
...args: NormalizeArgs<[options: GlobalIDInputFieldOptions<Types, Req, Kind>]>
) => InputFieldRef<InputShapeFromTypeParam<Types, GlobalIDInputShape, Req>, Kind>;
globalIDList: <Req extends FieldRequiredness<['ID']>>(
...args: NormalizeArgs<[options?: GlobalIDListInputFieldOptions<Types, Req, Kind>]>
...args: NormalizeArgs<[options: GlobalIDListInputFieldOptions<Types, Req, Kind>]>
) => InputFieldRef<

@@ -244,5 +244,14 @@ InputShapeFromTypeParam<

>(
...args: NormalizeArgs<
[
options: ConnectionFieldOptions<
options: ConnectionFieldOptions<
Types,
ParentShape,
Type,
Nullable,
EdgeNullability,
NodeNullability,
Args,
ResolveReturnShape
> &
Omit<
FieldOptionsFromKind<
Types,

@@ -252,22 +261,13 @@ ParentShape,

Nullable,
EdgeNullability,
NodeNullability,
Args,
(InputFieldMap extends Args ? {} : Args) &
InputFieldsFromShape<DefaultConnectionArguments>,
Kind,
ParentShape,
ResolveReturnShape
> &
Omit<
FieldOptionsFromKind<
Types,
ParentShape,
Type,
Nullable,
(InputFieldMap extends Args ? {} : Args) &
InputFieldsFromShape<DefaultConnectionArguments>,
Kind,
ParentShape,
ResolveReturnShape
>,
'args' | 'resolve' | 'type'
>,
connectionOptions?:
>,
'args' | 'resolve' | 'type'
>,
...args: NormalizeArgs<
[
connectionOptions:
| ObjectRef<

@@ -286,3 +286,3 @@ ConnectionShapeForType<Types, Type, false, EdgeNullability, NodeNullability>

>,
edgeOptions?:
edgeOptions:
| ObjectRef<{

@@ -293,3 +293,4 @@ cursor: string;

| ConnectionEdgeObjectOptions<Types, Type, NodeNullability, ResolveReturnShape>,
]
],
0
>

@@ -296,0 +297,0 @@ ) => FieldRef<

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc