@graphql-codegen/typescript-urql-graphcache 2.3.3-alpha-7e47fba48.0 → 2.4.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/package.json CHANGED
@@ -1,15 +1,15 @@
1
1
  {
2
2
  "name": "@graphql-codegen/typescript-urql-graphcache",
3
- "version": "2.3.3-alpha-7e47fba48.0",
3
+ "version": "2.4.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",
7
7
  "graphql-tag": "^2.0.0",
8
- "@urql/exchange-graphcache": "^4.1.1"
8
+ "@urql/exchange-graphcache": "^4.1.1 || ^5.0.0"
9
9
  },
10
10
  "dependencies": {
11
- "@graphql-codegen/plugin-helpers": "^2.6.1-alpha-7e47fba48.0",
12
- "@graphql-codegen/visitor-plugin-common": "2.12.1-alpha-7e47fba48.0",
11
+ "@graphql-codegen/plugin-helpers": "^2.6.2",
12
+ "@graphql-codegen/visitor-plugin-common": "2.12.1",
13
13
  "auto-bind": "~4.0.0",
14
14
  "change-case-all": "1.0.14",
15
15
  "tslib": "~2.4.0"
@@ -30,7 +30,7 @@
30
30
  "exports": {
31
31
  ".": {
32
32
  "require": {
33
- "types": "./typings/index.d.ts",
33
+ "types": "./typings/index.d.cts",
34
34
  "default": "./cjs/index.js"
35
35
  },
36
36
  "import": {
@@ -0,0 +1,5 @@
1
+ import { RawClientSideBasePluginConfig } from '@graphql-codegen/visitor-plugin-common';
2
+ /**
3
+ * @description This plugin generates a generic for the `@urql/exchange-graphcache` (https://github.com/FormidableLabs/urql/exchanges/graphcache) config.
4
+ */
5
+ export declare type UrqlGraphCacheConfig = RawClientSideBasePluginConfig & {};
@@ -0,0 +1,3 @@
1
+ import { PluginFunction, Types } from '@graphql-codegen/plugin-helpers';
2
+ import { UrqlGraphCacheConfig } from './config.cjs';
3
+ export declare const plugin: PluginFunction<UrqlGraphCacheConfig, Types.ComplexPluginOutput>;