···11+---
22+'@urql/exchange-graphcache': major
33+'@urql/core': major
44+---
55+66+Remove dependence on `graphql` package and replace it with `@0no-co/graphql.web`, which reduces the default bundlesize impact of `urql` packages to a minimum. All types should remain compatible, even if you use `graphql` elsewhere in your app, and if other dependencies are using `graphql` you may alias it to `graphql-web-lite`.
+5
.changeset/tame-pumas-promise.md
···11+---
22+'@urql/core': patch
33+---
44+55+Remove dependence on `import { visit } from 'graphql';` with smaller but functionally equivalent alternative.
···11-import { InlineFragmentNode, FragmentDefinitionNode } from 'graphql';
11+import {
22+ InlineFragmentNode,
33+ FragmentDefinitionNode,
44+} from '@0no-co/graphql.web';
2536import { warn, invariant } from '../helpers/help';
47import { getTypeCondition } from './node';
+1-1
exchanges/graphcache/src/ast/traversal.ts
···66 InlineFragmentNode,
77 valueFromASTUntyped,
88 Kind,
99-} from 'graphql';
99+} from '@0no-co/graphql.web';
10101111import { getName } from './node';
1212
+1-1
exchanges/graphcache/src/ast/variables.ts
···22 FieldNode,
33 OperationDefinitionNode,
44 valueFromASTUntyped,
55-} from 'graphql';
55+} from '@0no-co/graphql.web';
6677import { getName } from './node';
88
+5-1
exchanges/graphcache/src/helpers/help.ts
···33// Every warning and error comes with a number that uniquely identifies them.
44// You can read more about the messages themselves in `docs/graphcache/errors.md`
5566-import { Kind, ExecutableDefinitionNode, InlineFragmentNode } from 'graphql';
66+import {
77+ Kind,
88+ ExecutableDefinitionNode,
99+ InlineFragmentNode,
1010+} from '@0no-co/graphql.web';
711812export type ErrorCode =
913 | 1
+1-1
exchanges/graphcache/src/offlineExchange.ts
···11import { pipe, merge, makeSubject, filter } from 'wonka';
22-import { SelectionNode } from 'graphql';
22+import { SelectionNode } from '@0no-co/graphql.web';
3344import {
55 Operation,
+6-1
exchanges/graphcache/src/operations/query.ts
···11-import { FieldNode, DocumentNode, FragmentDefinitionNode } from 'graphql';
21import { CombinedError } from '@urql/core';
22+33+import {
44+ FieldNode,
55+ DocumentNode,
66+ FragmentDefinitionNode,
77+} from '@0no-co/graphql.web';
3849import {
510 getSelectionSet,
···11-import { print } from 'graphql';
11+import { print } from '@0no-co/graphql.web';
22import { vi, expect, it, beforeEach, describe, afterEach } from 'vitest';
3344/** NOTE: Testing in this file is designed to test both the client and its interaction with default Exchanges */