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

@pothos/core

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@pothos/core - npm Package Compare versions

Comparing version 3.37.0 to 3.38.0

6

CHANGELOG.md
# Change Log
## 3.38.0
### Minor Changes
- 22d1426a: Support for adding type mappings in SchemaTypes for Input objects
## 3.37.0

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

2

dts/builder.d.ts

@@ -50,3 +50,3 @@ import { GraphQLScalarSerializer, GraphQLScalarType, GraphQLSchema } from 'graphql';

}): ScalarRef<InputShape<Types, Name>, ParentShape<Types, Name>, InputShape<Types, Name>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param>> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param>> : Param extends keyof Types['Inputs'] ? InputFieldsFromShape<InputShape<Types, Param>> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputRef<T extends object>(name: string): ImplementableInputObjectRef<Types, T>;

@@ -53,0 +53,0 @@ objectRef<T>(name: string): ImplementableObjectRef<Types, T>;

import type { GraphQLDirective } from 'graphql';
import type { PluginConstructorMap } from '../plugins';
import type { MergedScalars, SchemaTypes } from '../schema-types';
import type { IsStrictMode } from '../utils';
import type { IsStrictMode, RecursivelyNormalizeNullableFields } from '../utils';
declare global {

@@ -37,2 +37,3 @@ export namespace PothosSchemaTypes {

Objects: {};
Inputs: {};
Interfaces: {};

@@ -47,2 +48,3 @@ Root: object;

Objects: PartialTypes['Objects'] & {};
Inputs: PartialTypes['Inputs'] & {};
Interfaces: PartialTypes['Interfaces'] & {};

@@ -66,2 +68,4 @@ Root: PartialTypes['Root'] & {};

} ? T : never;
} & {
[K in keyof PartialTypes['Inputs']]: RecursivelyNormalizeNullableFields<PartialTypes['Inputs'][K]>;
};

@@ -68,0 +72,0 @@ }

@@ -17,2 +17,3 @@ export interface SchemaTypes extends PothosSchemaTypes.UserSchemaTypes {

Objects: {};
Inputs: {};
Interfaces: {};

@@ -19,0 +20,0 @@ Scalars: {

@@ -50,3 +50,3 @@ import { GraphQLScalarSerializer, GraphQLScalarType, GraphQLSchema } from 'graphql';

}): ScalarRef<InputShape<Types, Name>, ParentShape<Types, Name>, InputShape<Types, Name>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param>> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputType<Param extends InputObjectRef<unknown> | string, Fields extends Param extends PothosSchemaTypes.InputObjectRef<unknown> ? InputFieldsFromShape<InputShape<Types, Param>> : Param extends keyof Types["Inputs"] ? InputFieldsFromShape<InputShape<Types, Param>> : InputFieldMap>(param: Param, options: PothosSchemaTypes.InputObjectTypeOptions<Types, Fields>): PothosSchemaTypes.InputObjectRef<InputShapeFromFields<Fields>>;
inputRef<T extends object>(name: string): ImplementableInputObjectRef<Types, T>;

@@ -53,0 +53,0 @@ objectRef<T>(name: string): ImplementableObjectRef<Types, T>;

import type { GraphQLDirective } from 'graphql';
import type { PluginConstructorMap } from '../plugins.js';
import type { MergedScalars, SchemaTypes } from '../schema-types.js';
import type { IsStrictMode } from '../utils.js';
import type { IsStrictMode, RecursivelyNormalizeNullableFields } from '../utils.js';
declare global {

@@ -37,2 +37,3 @@ export namespace PothosSchemaTypes {

Objects: {};
Inputs: {};
Interfaces: {};

@@ -47,2 +48,3 @@ Root: object;

Objects: PartialTypes["Objects"] & {};
Inputs: PartialTypes["Inputs"] & {};
Interfaces: PartialTypes["Interfaces"] & {};

@@ -66,2 +68,4 @@ Root: PartialTypes["Root"] & {};

} ? T : never;
} & {
[K in keyof PartialTypes["Inputs"]]: RecursivelyNormalizeNullableFields<PartialTypes["Inputs"][K]>;
};

@@ -68,0 +72,0 @@ }

@@ -17,2 +17,3 @@ export interface SchemaTypes extends PothosSchemaTypes.UserSchemaTypes {

Objects: {};
Inputs: {};
Interfaces: {};

@@ -19,0 +20,0 @@ Scalars: {

{
"name": "@pothos/core",
"version": "3.37.0",
"version": "3.38.0",
"description": "Pothos (formerly GiraphQL) is a plugin based schema builder for creating code-first GraphQL schemas in typescript",

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

@@ -545,2 +545,4 @@ import {

? InputFieldsFromShape<InputShape<Types, Param>>
: Param extends keyof Types['Inputs']
? InputFieldsFromShape<InputShape<Types, Param>>
: InputFieldMap,

@@ -547,0 +549,0 @@ >(

@@ -5,3 +5,3 @@ /* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-empty-interface */

import type { MergedScalars, SchemaTypes } from '../schema-types';
import type { IsStrictMode } from '../utils';
import type { IsStrictMode, RecursivelyNormalizeNullableFields } from '../utils';

@@ -52,2 +52,3 @@ declare global {

Objects: {};
Inputs: {};
Interfaces: {};

@@ -64,2 +65,3 @@ Root: object;

Objects: PartialTypes['Objects'] & {};
Inputs: PartialTypes['Inputs'] & {};
Interfaces: PartialTypes['Interfaces'] & {};

@@ -87,2 +89,6 @@ Root: PartialTypes['Root'] & {};

: never;
} & {
[K in keyof PartialTypes['Inputs']]: RecursivelyNormalizeNullableFields<
PartialTypes['Inputs'][K]
>;
};

@@ -89,0 +95,0 @@ }

@@ -17,2 +17,3 @@ export interface SchemaTypes extends PothosSchemaTypes.UserSchemaTypes {

Objects: {};
Inputs: {};
Interfaces: {};

@@ -19,0 +20,0 @@ Scalars: {

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

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