graphql-persisted 0.0.5 → 0.0.7

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/mjs/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export { usePersistedQuery, usePersistedMutation, usePreloadedPersistedQuery, useOnMutation, usePersistedSubscription, } from './graphqlHooks.js';
2
- export { unwrapFragment, castFragmentData } from './fragmentData.js';
3
- export type { FragmentType } from './fragmentData.js';
2
+ export { unwrapFragment, castFragmentData, unwrapFragmentDeep } from './fragmentData.js';
3
+ export type { FragmentType, FragmentTypeUnwrapped } from './fragmentData.js';
4
4
  export { GraphQLQueryCache } from './GraphQLQueryCache.js';
5
5
  export { useGraphQLQueryCache, GraphQLQueryProvider } from './context.js';
6
6
  export type { GraphQLPreloadedQueryResult, GraphQLQueryResult, GraphQLQueryCacheConfig } from './types.js';
package/mjs/index.js CHANGED
@@ -1,4 +1,4 @@
1
1
  export { usePersistedQuery, usePersistedMutation, usePreloadedPersistedQuery, useOnMutation, usePersistedSubscription, } from './graphqlHooks.js';
2
- export { unwrapFragment, castFragmentData } from './fragmentData.js';
2
+ export { unwrapFragment, castFragmentData, unwrapFragmentDeep } from './fragmentData.js';
3
3
  export { GraphQLQueryCache } from './GraphQLQueryCache.js';
4
4
  export { useGraphQLQueryCache, GraphQLQueryProvider } from './context.js';
package/mjs/types.d.ts CHANGED
@@ -167,7 +167,7 @@ export interface SubscribeToQueryArgs<Q extends keyof GraphQLQuery.QueryRegistry
167
167
  /**
168
168
  * The result of readQuery, used to check whether the query is stale
169
169
  */
170
- queryResult?: GraphQLQuery.QueryRegistry[Q];
170
+ queryResult?: GraphQLOperationResult<Q>;
171
171
  /**
172
172
  * Invoked when the values for this query are updated
173
173
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "graphql-persisted",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "WIP: An Opinionated GraphQL Query Library, with a focus on fully persisted queries",
5
5
  "keywords": [
6
6
  "graphql",
@@ -29,16 +29,17 @@
29
29
  ],
30
30
  "dependencies": {
31
31
  "tslib": "^2.5.0",
32
- "graphql-normalize": "^0.2.1",
32
+ "graphql-normalize": "^0.2.2",
33
33
  "lodash.isequal": "^4.5.0"
34
34
  },
35
35
  "devDependencies": {
36
+ "@vitejs/plugin-react": "^3.0.0",
36
37
  "@types/lodash.isequal": "^4.5.6",
37
38
  "@types/node": "^18.11.18",
38
39
  "@types/react": "^18.0.27",
39
40
  "@typescript-eslint/eslint-plugin": "^5.49.0",
40
41
  "@typescript-eslint/parser": "^5.49.0",
41
- "cypress": "^12.6.0",
42
+ "cypress": "^12.12.0",
42
43
  "eslint": "^8.32.0",
43
44
  "eslint-plugin-react": "^7.32.1",
44
45
  "eslint-plugin-react-hooks": "^4.6.0",