Mirror: The highly customizable and versatile GraphQL client with which you add on features like normalized caching as you grow.

fix(core,graphcache): Update optional graphql types with TS 5.5 compatible switch (#3730)

Co-authored-by: Phil Pluckthun <phil@kitten.sh>

Woky 92f5c477 48f433a4

Changed files
+22 -15
.changeset
exchanges
graphcache
src
ast
operations
packages
core
+6
.changeset/old-ears-hunt.md
···
···
+
---
+
'@urql/exchange-graphcache': patch
+
'@urql/core': patch
+
---
+
+
Fix compatibility with Typescript >5.5 (See: https://github.com/0no-co/graphql.web/pull/49)
+1 -1
exchanges/graphcache/package.json
···
"@urql/core": "^5.0.0"
},
"dependencies": {
-
"@0no-co/graphql.web": "^1.0.5",
"@urql/core": "workspace:^5.1.1",
"wonka": "^6.3.2"
},
···
"@urql/core": "^5.0.0"
},
"dependencies": {
+
"@0no-co/graphql.web": "^1.0.13",
"@urql/core": "workspace:^5.1.1",
"wonka": "^6.3.2"
},
+1 -1
exchanges/graphcache/src/ast/graphql.ts
···
import type * as GraphQL from 'graphql';
-
type OrNever<T> = 0 extends 1 & T ? never : T;
export type IntrospectionQuery =
| {
···
import type * as GraphQL from 'graphql';
+
type OrNever<T> = void extends T ? never : T;
export type IntrospectionQuery =
| {
+2 -1
exchanges/graphcache/src/operations/shared.ts
···
import type {
InlineFragmentNode,
FragmentDefinitionNode,
} from '@0no-co/graphql.web';
import { Kind } from '@0no-co/graphql.web';
···
];
}
-
next() {
while (this.stack.length > 0) {
let state = this.stack[this.stack.length - 1];
while (state.index < state.selectionSet.length) {
···
import type {
InlineFragmentNode,
FragmentDefinitionNode,
+
FieldNode,
} from '@0no-co/graphql.web';
import { Kind } from '@0no-co/graphql.web';
···
];
}
+
next(): FormattedNode<FieldNode> | undefined {
while (this.stack.length > 0) {
let state = this.stack[this.stack.length - 1];
while (state.index < state.selectionSet.length) {
+1 -1
package.json
···
}
},
"devDependencies": {
-
"@0no-co/graphql.web": "^1.0.8",
"@actions/artifact": "^2.0.0",
"@actions/core": "^1.10.1",
"@babel/core": "^7.25.2",
···
}
},
"devDependencies": {
+
"@0no-co/graphql.web": "^1.0.13",
"@actions/artifact": "^2.0.0",
"@actions/core": "^1.10.1",
"@babel/core": "^7.25.2",
+1 -1
packages/core/package.json
···
"jsr": "jsr publish"
},
"dependencies": {
-
"@0no-co/graphql.web": "^1.0.5",
"wonka": "^6.3.2"
},
"publishConfig": {
···
"jsr": "jsr publish"
},
"dependencies": {
+
"@0no-co/graphql.web": "^1.0.13",
"wonka": "^6.3.2"
},
"publishConfig": {
+1 -1
packages/core/src/utils/graphql.ts
···
import type * as GraphQLWeb from '@0no-co/graphql.web';
import type * as GraphQL from 'graphql';
-
type OrNever<T> = 0 extends 1 & T ? never : T;
export type GraphQLError =
| GraphQLWeb.GraphQLError
···
import type * as GraphQLWeb from '@0no-co/graphql.web';
import type * as GraphQL from 'graphql';
+
type OrNever<T> = void extends T ? never : T;
export type GraphQLError =
| GraphQLWeb.GraphQLError
+9 -9
pnpm-lock.yaml
···
version: 3.3.2
devDependencies:
'@0no-co/graphql.web':
-
specifier: ^1.0.8
-
version: 1.0.8(graphql@16.9.0)
'@actions/artifact':
specifier: ^2.0.0
version: 2.1.9(encoding@0.1.13)
···
exchanges/graphcache:
dependencies:
'@0no-co/graphql.web':
-
specifier: ^1.0.5
-
version: 1.0.8(graphql@16.9.0)
'@urql/core':
specifier: workspace:^5.1.1
version: link:../../packages/core
···
packages/core:
dependencies:
'@0no-co/graphql.web':
-
specifier: ^1.0.5
-
version: 1.0.8(graphql@16.9.0)
wonka:
specifier: ^6.3.2
version: 6.3.2
···
packages:
-
'@0no-co/graphql.web@1.0.8':
-
resolution: {integrity: sha512-8BG6woLtDMvXB9Ajb/uE+Zr/U7y4qJ3upXi0JQHZmsKUJa7HjF/gFvmL2f3/mSmfZoQGRr9VoY97LCX2uaFMzA==}
peerDependencies:
graphql: ^16.6.0
peerDependenciesMeta:
···
snapshots:
-
'@0no-co/graphql.web@1.0.8(graphql@16.9.0)':
optionalDependencies:
graphql: 16.9.0
···
version: 3.3.2
devDependencies:
'@0no-co/graphql.web':
+
specifier: ^1.0.13
+
version: 1.0.13(graphql@16.9.0)
'@actions/artifact':
specifier: ^2.0.0
version: 2.1.9(encoding@0.1.13)
···
exchanges/graphcache:
dependencies:
'@0no-co/graphql.web':
+
specifier: ^1.0.13
+
version: 1.0.13(graphql@16.9.0)
'@urql/core':
specifier: workspace:^5.1.1
version: link:../../packages/core
···
packages/core:
dependencies:
'@0no-co/graphql.web':
+
specifier: ^1.0.13
+
version: 1.0.13(graphql@16.9.0)
wonka:
specifier: ^6.3.2
version: 6.3.2
···
packages:
+
'@0no-co/graphql.web@1.0.13':
+
resolution: {integrity: sha512-jqYxOevheVTU1S36ZdzAkJIdvRp2m3OYIG5SEoKDw5NI8eVwkoI0D/Q3DYNGmXCxkA6CQuoa7zvMiDPTLqUNuw==}
peerDependencies:
graphql: ^16.6.0
peerDependenciesMeta:
···
snapshots:
+
'@0no-co/graphql.web@1.0.13(graphql@16.9.0)':
optionalDependencies:
graphql: 16.9.0