@graphql-codegen/typescript-urql-graphcache 2.3.0-alpha-2fbcdb6d3.0 → 2.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/cjs/index.js CHANGED
@@ -160,7 +160,7 @@ const plugin = (schema, _documents, config) => {
160
160
  return {
161
161
  prepend: [imports],
162
162
  content: [
163
- `export type WithTypename<T extends { __typename?: any }> = T & { __typename: NonNullable<T['__typename']> };`,
163
+ `export type WithTypename<T extends { __typename?: any }> = Partial<T> & { __typename: NonNullable<T['__typename']> };`,
164
164
  keys,
165
165
  'export type GraphCacheResolvers = {\n' + resolvers.join(',\n') + '\n};',
166
166
  'export type GraphCacheOptimisticUpdaters = ' +
package/esm/index.js CHANGED
@@ -157,7 +157,7 @@ export const plugin = (schema, _documents, config) => {
157
157
  return {
158
158
  prepend: [imports],
159
159
  content: [
160
- `export type WithTypename<T extends { __typename?: any }> = T & { __typename: NonNullable<T['__typename']> };`,
160
+ `export type WithTypename<T extends { __typename?: any }> = Partial<T> & { __typename: NonNullable<T['__typename']> };`,
161
161
  keys,
162
162
  'export type GraphCacheResolvers = {\n' + resolvers.join(',\n') + '\n};',
163
163
  'export type GraphCacheOptimisticUpdaters = ' +
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-urql-graphcache",
3
- "version": "2.3.0-alpha-2fbcdb6d3.0",
3
+ "version": "2.3.0",
4
4
  "description": "GraphQL Code Generator plugin for generating a generic to be used in graphcache cache config",
5
5
  "peerDependencies": {
6
6
  "graphql": "^0.8.0 || ^0.9.0 || ^0.10.0 || ^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
@@ -8,8 +8,8 @@
8
8
  "@urql/exchange-graphcache": "^4.1.1"
9
9
  },
10
10
  "dependencies": {
11
- "@graphql-codegen/plugin-helpers": "^2.5.0-alpha-2fbcdb6d3.0",
12
- "@graphql-codegen/visitor-plugin-common": "2.11.0-alpha-2fbcdb6d3.0",
11
+ "@graphql-codegen/plugin-helpers": "^2.5.0",
12
+ "@graphql-codegen/visitor-plugin-common": "2.11.0",
13
13
  "auto-bind": "~4.0.0",
14
14
  "change-case-all": "1.0.14",
15
15
  "tslib": "~2.4.0"