-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Version Packages * Update READMEs and CHANGELOGs --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: David Glasser <[email protected]>
- Loading branch information
1 parent
1a64dfa
commit 2abfc46
Showing
18 changed files
with
11 additions
and
255 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,82 +1,7 @@ | ||
# @apollo/generate-persisted-query-manifest | ||
|
||
## 1.0.0-alpha.7 | ||
|
||
### Patch Changes | ||
|
||
- [#316](https:/apollographql/apollo-utils/pull/316) [`d517125`](https:/apollographql/apollo-utils/commit/d5171251e1a46863d3449ab13668dab32dedebc9) Thanks [@jerelmiller](https:/jerelmiller)! - Consolidate `document` and `documentIgnorePatterns` to the `documents` option. `documents` patterns can now be prefixed with `!` to negate the pattern. | ||
|
||
## 1.0.0-alpha.6 | ||
|
||
### Patch Changes | ||
|
||
- [#309](https:/apollographql/apollo-utils/pull/309) [`18981ce`](https:/apollographql/apollo-utils/commit/18981ce68fa65eb99bd46172f2ce6c055170cd18) Thanks [@jerelmiller](https:/jerelmiller)! - Add the ability to create custom manifest operation IDs by defining a `createCustomId` function in the config file. | ||
|
||
```ts | ||
// persisted-query-manifest.config.ts | ||
import { PersistedQueryManifestConfig } from "@apollo/generate-persisted-query-manifest"; | ||
import { Buffer } from "node:buffer"; | ||
|
||
const config: PersistedQueryManifestConfig = { | ||
createOperationId(query, { operationName, createDefaultId }) { | ||
switch (operationName) { | ||
case "TestOperation": | ||
return Buffer.from(query).toString("base64"); | ||
default: | ||
return createDefaultId(); | ||
} | ||
}, | ||
}; | ||
|
||
export default config; | ||
``` | ||
|
||
- Updated dependencies [[`12b76e2`](https://github.com/apollographql/apollo-utils/commit/12b76e24fb29bb43540798a142497b37ba4bd016), [`b5ca31c`](https:/apollographql/apollo-utils/commit/b5ca31c18b1689c08be21bed79ea37c81152abed)]: | ||
- @apollo/persisted-query-lists@1.0.0-alpha.4 | ||
|
||
## 1.0.0-alpha.5 | ||
|
||
### Patch Changes | ||
|
||
- [#302](https://github.com/apollographql/apollo-utils/pull/302) [`3057433`](https:/apollographql/apollo-utils/commit/30574331ef2ab3215d6c0c0d77aee81f29bafc84) Thanks [@jerelmiller](https:/jerelmiller)! - Provides more robust error handling and reporting. | ||
|
||
- Collect all errors while generating manifest and report them together at once. Previously it would exit as soon as an error was encountered, even if there were multiple issues. | ||
- Update the error reporting format to make it much easier to determine which file contains the error. | ||
|
||
## 1.0.0-alpha.4 | ||
|
||
### Patch Changes | ||
|
||
- [#295](https://github.com/apollographql/apollo-utils/pull/295) [`c41dd06`](https:/apollographql/apollo-utils/commit/c41dd06ccb0d4b89c12a9458e9cb76ccc3cb4150) Thanks [@jerelmiller](https:/jerelmiller)! - Adds support for a config file to the CLI. This can be used to determine where the CLI should look for GraphQL operations and where the manifest file should be written. The CLI has the ability to specify the path to the config file. | ||
|
||
## 1.0.0-alpha.3 | ||
|
||
### Patch Changes | ||
|
||
- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`fb4f6da`](https:/apollographql/apollo-utils/commit/fb4f6da57acf48ba6eba90011a42d8a9397f6649) Thanks [@glasser](https:/glasser)! - Change `generatePersistedQueryIdsFromManifest` to take an async `loadManifest`. Ensure Promises don't have unhandled rejections. | ||
|
||
- Updated dependencies [[`fb4f6da`](https://github.com/apollographql/apollo-utils/commit/fb4f6da57acf48ba6eba90011a42d8a9397f6649)]: | ||
- @apollo/persisted-query-lists@1.0.0-alpha.3 | ||
|
||
## 1.0.0-alpha.2 | ||
|
||
### Patch Changes | ||
|
||
- [#293](https://github.com/apollographql/apollo-utils/pull/293) [`bef53e4`](https:/apollographql/apollo-utils/commit/bef53e4cfc173eefff3b773335002627aaebc35b) Thanks [@jerelmiller](https:/jerelmiller)! - Add `@apollo/persisted-query-lists` as a dependency to fix missing dependency issue. | ||
|
||
- [#291](https://github.com/apollographql/apollo-utils/pull/291) [`f72c2d0`](https:/apollographql/apollo-utils/commit/f72c2d08da2e14d477e9c8528d47c2f219554537) Thanks [@jerelmiller](https:/jerelmiller)! - Allow v3.8.0 prerelease versions of @apollo/client. | ||
|
||
- Updated dependencies [[`f72c2d0`](https://github.com/apollographql/apollo-utils/commit/f72c2d08da2e14d477e9c8528d47c2f219554537)]: | ||
- @apollo/persisted-query-lists@1.0.0-alpha.2 | ||
|
||
## 1.0.0-alpha.1 | ||
|
||
### Patch Changes | ||
|
||
- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`9b5c8d9`](https:/apollographql/apollo-utils/commit/9b5c8d92e3f47b43c32b4b014428c49cc0b38219) Thanks [@glasser](https:/glasser)! - Change createPersistedQueryManifestVerificationLink to load manifest asynchronously. | ||
|
||
## 1.0.0-alpha.0 | ||
## 1.0.0 | ||
|
||
### Major Changes | ||
|
||
- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`f4a710d`](https:/apollographql/apollo-utils/commit/f4a710dbe22bf1b579299e1438ac6cb45ec912ab) Thanks [@glasser](https:/glasser)! - Initial release | ||
- [#287](https:/apollographql/apollo-utils/pull/287) [`1a64dfa`](https:/apollographql/apollo-utils/commit/1a64dfabc47d0d735473aecd23d540cab6737ca8) Thanks [@glasser](https:/glasser)! - Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,48 +1,7 @@ | ||
# @apollo/persisted-query-lists | ||
|
||
## 1.0.0-alpha.4 | ||
|
||
### Patch Changes | ||
|
||
- [#315](https:/apollographql/apollo-utils/pull/315) [`12b76e2`](https:/apollographql/apollo-utils/commit/12b76e24fb29bb43540798a142497b37ba4bd016) Thanks [@jerelmiller](https:/jerelmiller)! - Allow the persisted query manifest to be loaded synchronously for both `createPersistedQueryManifestVerificationLink` and `generatePersistedQueryIdsFromManifest`. | ||
|
||
- [#308](https:/apollographql/apollo-utils/pull/308) [`b5ca31c`](https:/apollographql/apollo-utils/commit/b5ca31c18b1689c08be21bed79ea37c81152abed) Thanks [@jerelmiller](https:/jerelmiller)! - **`createPersistedQueryManifestVerificationLink`** | ||
|
||
- Consolidate the callbacks to a single `onVerificationFailed` callback with a `reason` property that describes the verification failure. | ||
- The full `operation` is now available as a property to the `onVerificationFailed` callback. | ||
|
||
```ts | ||
createPersistedQueryManifestVerificationLink({ | ||
onVerificationFailed(details) { | ||
// The reason the verification failed, such as an anonymous operation | ||
console.log(details.reason); | ||
|
||
// The operation that caused the verification failure | ||
console.log(details.operation); | ||
}, | ||
}); | ||
``` | ||
|
||
## 1.0.0-alpha.3 | ||
|
||
### Patch Changes | ||
|
||
- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`fb4f6da`](https:/apollographql/apollo-utils/commit/fb4f6da57acf48ba6eba90011a42d8a9397f6649) Thanks [@glasser](https:/glasser)! - Change `generatePersistedQueryIdsFromManifest` to take an async `loadManifest`. Ensure Promises don't have unhandled rejections. | ||
|
||
## 1.0.0-alpha.2 | ||
|
||
### Patch Changes | ||
|
||
- [#291](https://github.com/apollographql/apollo-utils/pull/291) [`f72c2d0`](https:/apollographql/apollo-utils/commit/f72c2d08da2e14d477e9c8528d47c2f219554537) Thanks [@jerelmiller](https:/jerelmiller)! - Allow v3.8.0 prerelease versions of @apollo/client. | ||
|
||
## 1.0.0-alpha.1 | ||
|
||
### Patch Changes | ||
|
||
- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`9b5c8d9`](https:/apollographql/apollo-utils/commit/9b5c8d92e3f47b43c32b4b014428c49cc0b38219) Thanks [@glasser](https:/glasser)! - Change createPersistedQueryManifestVerificationLink to load manifest asynchronously. | ||
|
||
## 1.0.0-alpha.0 | ||
## 1.0.0 | ||
|
||
### Major Changes | ||
|
||
- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`f4a710d`](https:/apollographql/apollo-utils/commit/f4a710dbe22bf1b579299e1438ac6cb45ec912ab) Thanks [@glasser](https:/glasser)! - Initial release | ||
- [#287](https:/apollographql/apollo-utils/pull/287) [`1a64dfa`](https:/apollographql/apollo-utils/commit/1a64dfabc47d0d735473aecd23d540cab6737ca8) Thanks [@glasser](https:/glasser)! - Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters