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.33.0 to 3.33.1

7

CHANGELOG.md
# Change Log
## 3.33.1
### Patch Changes
- be5bff07: Update `resolveArrayConnection` return type to reflect that it always returns a non-null
`ConnectionShape`
## 3.33.0

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

2

dts/utils/connections.d.ts

@@ -34,3 +34,3 @@ import { MaybePromise, SchemaTypes } from '@pothos/core';

export declare function offsetToCursor(offset: number): string;
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, boolean, T extends NonNullable<T> ? false : {
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, false, T extends NonNullable<T> ? false : {
list: false;

@@ -37,0 +37,0 @@ items: true;

@@ -34,3 +34,3 @@ import { MaybePromise, SchemaTypes } from '@pothos/core';

export declare function offsetToCursor(offset: number): string;
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, boolean, T extends NonNullable<T> ? false : {
export declare function resolveArrayConnection<T>(options: ResolveArrayConnectionOptions, array: T[]): ConnectionShape<SchemaTypes, NonNullable<T>, false, T extends NonNullable<T> ? false : {
list: false;

@@ -37,0 +37,0 @@ items: true;

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

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -140,3 +140,3 @@ import { decodeBase64, encodeBase64, MaybePromise, SchemaTypes } from '@pothos/core';

NonNullable<T>,
boolean,
false,
T extends NonNullable<T> ? false : { list: false; items: true },

@@ -143,0 +143,0 @@ false

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