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.21.0 to 3.22.0

6

CHANGELOG.md
# Change Log
## 3.22.0
### Minor Changes
- 390e74a7: Add `idFieldOptions` to relay plugin options
## 3.21.0

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

1

dts/types.d.ts

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

idFieldName?: string;
idFieldOptions?: Partial<Omit<PothosSchemaTypes.ObjectFieldOptions<Types, {}, 'ID', boolean, {}, PageInfoShape>, 'args' | 'resolve' | 'type' | 'nullable'>>;
clientMutationId?: 'omit' | 'optional' | 'required';

@@ -7,0 +8,0 @@ cursorType?: 'ID' | 'String';

@@ -148,2 +148,3 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ import SchemaBuilder, { createContextCache, getTypeBrand, InputObjectRef, ObjectRef, verifyRef } from '@pothos/core';

nullable: false,
...this.options.relayOptions.idFieldOptions,
...options.id,

@@ -150,0 +151,0 @@ args: {},

@@ -200,2 +200,3 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */ /* eslint-disable @typescript-eslint/no-unsafe-member-access */ "use strict";

nullable: false,
...this.options.relayOptions.idFieldOptions,
...options.id,

@@ -202,0 +203,0 @@ args: {},

9

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

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

"keywords": [
"giraphql",
"pothos",

@@ -41,6 +40,6 @@ "graphql",

"devDependencies": {
"@pothos/core": "3.15.0",
"@pothos/core": "3.18.0",
"@pothos/plugin-complexity": "3.6.1",
"@pothos/test-utils": "1.3.0",
"graphql": "16.5.0",
"graphql": "16.6.0",
"graphql-subscriptions": "^2.0.0",

@@ -58,4 +57,4 @@ "graphql-tag": "^2.12.6"

"esm:extensions": "TS_NODE_PROJECT=../../tsconfig.json node -r @swc-node/register ../../.config/esm-transformer.ts",
"test": "pnpm jest --runInBand"
"test": "pnpm vitest --run"
}
}

@@ -33,2 +33,3 @@ # Relay Plugin

- `idFieldName`: The name of the field that contains the global id for the node. Defaults to `id`.
- `idFieldOptions`: Options to pass to the id field.
- `clientMutationId`: `required` (default) | `omit` | `optional`. Determines if clientMutationId

@@ -35,0 +36,0 @@ fields are created on `relayMutationFields`, and if they are required.

@@ -222,2 +222,3 @@ /* eslint-disable @typescript-eslint/no-unsafe-return */

nullable: false,
...this.options.relayOptions.idFieldOptions,
...options.id,

@@ -224,0 +225,0 @@ args: {},

@@ -34,2 +34,8 @@ import { GraphQLResolveInfo } from 'graphql';

idFieldName?: string;
idFieldOptions?: Partial<
Omit<
PothosSchemaTypes.ObjectFieldOptions<Types, {}, 'ID', boolean, {}, PageInfoShape>,
'args' | 'resolve' | 'type' | 'nullable'
>
>;
clientMutationId?: 'omit' | 'optional' | 'required';

@@ -36,0 +42,0 @@ cursorType?: 'ID' | 'String';

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