Releases: apollographql/apollo-utils
@apollo/[email protected]
Patch Changes
-
#315
12b76e2
Thanks @jerelmiller! - Allow the persisted query manifest to be loaded synchronously for bothcreatePersistedQueryManifestVerificationLink
andgeneratePersistedQueryIdsFromManifest
. -
#308
b5ca31c
Thanks @jerelmiller! -createPersistedQueryManifestVerificationLink
- Consolidate the callbacks to a single
onVerificationFailed
callback with areason
property that describes the verification failure. - The full
operation
is now available as a property to theonVerificationFailed
callback.
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); }, });
- Consolidate the callbacks to a single
@apollo/[email protected]
Patch Changes
-
#309
18981ce
Thanks @jerelmiller! - Add the ability to create custom manifest operation IDs by defining acreateCustomId
function in the config file.// 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
,b5ca31c
]:- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
-
#302
3057433
Thanks @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.
@apollo/[email protected]
Minor Changes
- #299
a4c17b2
Thanks @trevor-scheer! - Update usage reporting protobuf which introduces support for theConditionNode
in query planning.
@apollo/[email protected]
Minor Changes
- #298
cfa5dd4
Thanks @trevor-scheer! - Update usage reporting protobuf which introduces support for theConditionNode
in query planning.
@apollo/[email protected]
@apollo/[email protected]
Patch Changes
- #295
c41dd06
Thanks @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.
@apollo/[email protected]
Patch Changes
-
#287
fb4f6da
Thanks @glasser! - ChangegeneratePersistedQueryIdsFromManifest
to take an asyncloadManifest
. Ensure Promises don't have unhandled rejections. -
Updated dependencies [
fb4f6da
]:- @apollo/[email protected]
@apollo/[email protected]
Patch Changes
- #291
f72c2d0
Thanks @jerelmiller! - Allow v3.8.0 prerelease versions of @apollo/client.
@apollo/[email protected]
Patch Changes
-
#293
bef53e4
Thanks @jerelmiller! - Add@apollo/persisted-query-lists
as a dependency to fix missing dependency issue. -
#291
f72c2d0
Thanks @jerelmiller! - Allow v3.8.0 prerelease versions of @apollo/client. -
Updated dependencies [
f72c2d0
]:- @apollo/[email protected]