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.45.0 to 3.45.1

6

CHANGELOG.md
# Change Log
## 3.45.1
### Patch Changes
- 0f5cfa9: Fix bug when decoding lists of global IDs with null items
## 3.45.0

@@ -4,0 +10,0 @@

2

dts/utils/connections.d.ts

@@ -48,5 +48,5 @@ import { MaybePromise, SchemaTypes } from '@pothos/core';

}, false>>;
type NodeType<T> = T extends Promise<(infer N)[] | null> | (infer N)[] | null ? N : never;
type NodeType<T> = T extends (infer N)[] | Promise<(infer N)[] | null> | null ? N : never;
export declare function resolveCursorConnection<U extends Promise<readonly unknown[] | null> | readonly unknown[] | null>(options: ResolveCursorConnectionOptions<NodeType<U>>, resolve: (params: ResolveCursorConnectionArgs) => U): Promise<RemoveMaybePromiseProps<ConnectionShape<SchemaTypes, NodeType<U>, false, false, false>>>;
export {};
//# sourceMappingURL=connections.d.ts.map
import { GraphQLResolveInfo } from 'graphql';
import { SchemaTypes } from '@pothos/core';
export declare function internalEncodeGlobalID<Types extends SchemaTypes>(builder: PothosSchemaTypes.SchemaBuilder<Types>, typename: string, id: bigint | number | string, ctx: object): string;
export declare function internalDecodeGlobalID<Types extends SchemaTypes>(builder: PothosSchemaTypes.SchemaBuilder<Types>, globalID: string, ctx: object, info: GraphQLResolveInfo, parseIdsForTypes: boolean | {
export declare function internalDecodeGlobalID<Types extends SchemaTypes>(builder: PothosSchemaTypes.SchemaBuilder<Types>, globalID: string, ctx: object, info: GraphQLResolveInfo, parseIdsForTypes: {
typename: string;
parseId: (id: string, ctx: object) => unknown;
}[]): {
}[] | boolean): {
id: unknown;

@@ -9,0 +9,0 @@ typename: string;

@@ -48,5 +48,5 @@ import { MaybePromise, SchemaTypes } from '@pothos/core';

}, false>>;
type NodeType<T> = T extends Promise<(infer N)[] | null> | (infer N)[] | null ? N : never;
type NodeType<T> = T extends (infer N)[] | Promise<(infer N)[] | null> | null ? N : never;
export declare function resolveCursorConnection<U extends Promise<readonly unknown[] | null> | readonly unknown[] | null>(options: ResolveCursorConnectionOptions<NodeType<U>>, resolve: (params: ResolveCursorConnectionArgs) => U): Promise<RemoveMaybePromiseProps<ConnectionShape<SchemaTypes, NodeType<U>, false, false, false>>>;
export {};
//# sourceMappingURL=connections.d.ts.map
import { GraphQLResolveInfo } from 'graphql';
import { SchemaTypes } from '@pothos/core';
export declare function internalEncodeGlobalID<Types extends SchemaTypes>(builder: PothosSchemaTypes.SchemaBuilder<Types>, typename: string, id: bigint | number | string, ctx: object): string;
export declare function internalDecodeGlobalID<Types extends SchemaTypes>(builder: PothosSchemaTypes.SchemaBuilder<Types>, globalID: string, ctx: object, info: GraphQLResolveInfo, parseIdsForTypes: boolean | {
export declare function internalDecodeGlobalID<Types extends SchemaTypes>(builder: PothosSchemaTypes.SchemaBuilder<Types>, globalID: string, ctx: object, info: GraphQLResolveInfo, parseIdsForTypes: {
typename: string;
parseId: (id: string, ctx: object) => unknown;
}[]): {
}[] | boolean): {
id: unknown;

@@ -9,0 +9,0 @@ typename: string;

@@ -18,2 +18,3 @@ import { brandWithType, createContextCache, PothosValidationError } from '@pothos/core';

var _idsByType_typename;
// eslint-disable-next-line logical-assignment-operators
idsByType[typename] = (_idsByType_typename = idsByType[typename]) !== null && _idsByType_typename !== void 0 ? _idsByType_typename : new Set();

@@ -20,0 +21,0 @@ idsByType[typename].add(id);

@@ -36,2 +36,3 @@ "use strict";

var _idsByType_typename;
// eslint-disable-next-line logical-assignment-operators
idsByType[typename] = (_idsByType_typename = idsByType[typename]) !== null && _idsByType_typename !== void 0 ? _idsByType_typename : new Set();

@@ -38,0 +39,0 @@ idsByType[typename].add(id);

{
"name": "@pothos/plugin-relay",
"version": "3.45.0",
"version": "3.45.1",
"description": "A Pothos plugin for adding relay style connections, nodes, and cursor based pagination to your GraphQL schema",

@@ -48,3 +48,3 @@ "main": "./lib/index.js",

"graphql-tag": "^2.12.6",
"@pothos/core": "3.40.0",
"@pothos/core": "3.40.1",
"@pothos/plugin-complexity": "3.13.0",

@@ -51,0 +51,0 @@ "@pothos/test-utils": "1.4.8"

@@ -222,3 +222,3 @@ import {

type NodeType<T> = T extends Promise<(infer N)[] | null> | (infer N)[] | null ? N : never;
type NodeType<T> = T extends (infer N)[] | Promise<(infer N)[] | null> | null ? N : never;

@@ -225,0 +225,0 @@ export async function resolveCursorConnection<

@@ -23,3 +23,3 @@ import { GraphQLResolveInfo } from 'graphql';

info: GraphQLResolveInfo,
parseIdsForTypes: boolean | { typename: string; parseId: (id: string, ctx: object) => unknown }[],
parseIdsForTypes: { typename: string; parseId: (id: string, ctx: object) => unknown }[] | boolean,
) {

@@ -26,0 +26,0 @@ const decoded = builder.options.relayOptions.decodeGlobalID

@@ -38,2 +38,3 @@ import { GraphQLResolveInfo } from 'graphql';

// eslint-disable-next-line logical-assignment-operators
idsByType[typename] = idsByType[typename] ?? new Set();

@@ -40,0 +41,0 @@ idsByType[typename].add(id);

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

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

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