@urql/exchange-populate
Advanced tools
Comparing version 1.1.2 to 1.2.0-canary-0204e044
# @urql/exchange-populate | ||
## 1.2.0-canary-0204e044 | ||
### Minor Changes | ||
- Mark `@urql/core` as a peer dependency as well as a regular dependency | ||
Submitted by [@kitten](https://github.com/kitten) (See [#3579](https://github.com/urql-graphql/urql/pull/3579)) | ||
## 1.1.2 | ||
@@ -4,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
/*!@ts-ignore*/ | ||
/*@ts-ignore*/ | ||
import { IntrospectionQuery } from 'graphql'; | ||
@@ -3,0 +3,0 @@ import { Exchange } from '@urql/core'; |
@@ -1,4 +0,3 @@ | ||
Object.defineProperty(exports, '__esModule', { | ||
value: true | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var graphql = require('graphql'); | ||
@@ -16,2 +15,3 @@ var wonka = require('wonka'); | ||
}; | ||
function traverse(node, enter, exit) { | ||
@@ -54,2 +54,4 @@ if (enter) { | ||
/** Input parameters for the {@link populateExchange}. */ | ||
var makeDict = () => Object.create(null); | ||
@@ -59,2 +61,6 @@ | ||
/** stores all known fields per each type key */ | ||
/** Describes information about a given field, i.e. type (owner), arguments, how many operations use this field */ | ||
var SKIP_COUNT_TYPE = /^PageInfo|(Connection|Edge)$/; | ||
@@ -371,3 +377,4 @@ | ||
}; | ||
exports.populateExchange = populateExchange; | ||
//# sourceMappingURL=urql-exchange-populate.js.map |
{ | ||
"name": "@urql/exchange-populate", | ||
"version": "1.1.2", | ||
"version": "1.2.0-canary-0204e044", | ||
"description": "An exchange that automaticcally populates the mutation selection body", | ||
@@ -9,2 +9,3 @@ "sideEffects": false, | ||
"license": "MIT", | ||
"author": "urql GraphQL Contributors", | ||
"repository": { | ||
@@ -26,5 +27,5 @@ "type": "git", | ||
".": { | ||
"types": "./dist/urql-exchange-populate.d.ts", | ||
"import": "./dist/urql-exchange-populate.mjs", | ||
"require": "./dist/urql-exchange-populate.js", | ||
"types": "./dist/urql-exchange-populate.d.ts", | ||
"source": "./src/index.ts" | ||
@@ -42,11 +43,12 @@ }, | ||
"dependencies": { | ||
"@urql/core": ">=4.0.0", | ||
"@urql/core": "^5.0.0", | ||
"wonka": "^6.3.2" | ||
}, | ||
"peerDependencies": { | ||
"graphql": "^0.11.0 || ^0.12.0 || ^0.13.0 || ^14.0.0 || ^15.0.0 || ^16.0.0" | ||
"@urql/core": "^5.0.0", | ||
"graphql": "^14.0.0 || ^15.0.0 || ^16.0.0 || ^17.0.0" | ||
}, | ||
"devDependencies": { | ||
"graphql": "^16.0.0", | ||
"@urql/core": "4.0.7" | ||
"@urql/core": "5.0.3" | ||
}, | ||
@@ -53,0 +55,0 @@ "publishConfig": { |
@@ -20,3 +20,3 @@ # @urql/exchange-populate | ||
```js | ||
import { createClient, dedupExchange, cacheExchange, fetchExchange } from 'urql'; | ||
import { createClient, cacheExchange, fetchExchange } from 'urql'; | ||
import { populateExchange } from '@urql/exchange-populate'; | ||
@@ -26,3 +26,3 @@ | ||
url: 'http://localhost:1234/graphql', | ||
exchanges: [dedupExchange, populateExchange({ schema }), cacheExchange, fetchExchange], | ||
exchanges: [populateExchange({ schema }), cacheExchange, fetchExchange], | ||
}); | ||
@@ -29,0 +29,0 @@ ``` |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
151888
769
1
4
2
Updated@urql/core@^5.0.0