Skip to content

Releases: apollographql/apollo-utils

@apollo/[email protected]

22 Jun 23:20
cc4d393
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • #315 12b76e2 Thanks @jerelmiller! - Allow the persisted query manifest to be loaded synchronously for both createPersistedQueryManifestVerificationLink and generatePersistedQueryIdsFromManifest.

  • #308 b5ca31c Thanks @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.
    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);
      },
    });

@apollo/[email protected]

22 Jun 23:20
cc4d393
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • #309 18981ce Thanks @jerelmiller! - Add the ability to create custom manifest operation IDs by defining a createCustomId 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]

12 Jun 20:32
9558d6d
Compare
Choose a tag to compare
Pre-release

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]

05 Jun 21:17
b12cbb5
Compare
Choose a tag to compare

Minor Changes

  • #299 a4c17b2 Thanks @trevor-scheer! - Update usage reporting protobuf which introduces support for the ConditionNode in query planning.

@apollo/[email protected]

05 Jun 21:17
5534029
Compare
Choose a tag to compare

Minor Changes

  • #298 cfa5dd4 Thanks @trevor-scheer! - Update usage reporting protobuf which introduces support for the ConditionNode in query planning.

@apollo/[email protected]

02 Jun 04:18
a8f712e
Compare
Choose a tag to compare
Pre-release

Patch Changes

  • #287 fb4f6da Thanks @glasser! - Change generatePersistedQueryIdsFromManifest to take an async loadManifest. Ensure Promises don't have unhandled rejections.

@apollo/[email protected]

02 Jun 19:24
3d8dbf5
Compare
Choose a tag to compare
Pre-release

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]

02 Jun 04:18
a8f712e
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/[email protected]

31 May 23:27
f10d9c4
Compare
Choose a tag to compare
Pre-release

Patch Changes

@apollo/[email protected]

31 May 23:26
f10d9c4
Compare
Choose a tag to compare
Pre-release

Patch Changes