Skip to content

Releases: apollographql/apollo-utils

@apollo/generate-persisted-query-manifest@1.2.1

09 May 23:40
03d8be1
Compare
Choose a tag to compare

Patch Changes

  • #435 9c3d761 Thanks @jerelmiller! - Better report errors that originate from Apollo Client during manifest generation.

  • #435 9c3d761 Thanks @jerelmiller! - Detect multiple operations during manifest generation and report them as errors.

@apollo/generate-persisted-query-manifest@1.2.0

26 Feb 22:30
d0ceb57
Compare
Choose a tag to compare

Minor Changes

  • #414 b8b7d12 Thanks @jerelmiller! - Add ability to parse documents generated by GraphQL Codegen's persisted documents feature.

    // persisted-query-manifest.config.ts
    import { fromGraphQLCodegenPersistedDocuments } from "@apollo/generate-persisted-query-manifest";
    
    const config = {
      documents: fromGraphQLCodegenPersistedDocuments(
        "./path/to/persisted-documents.json",
      ),
    };
    
    export default config;
  • #412 c43f485 Thanks @jerelmiller! - Add ability to specify a custom document transform used during manifest generation.

    [!NOTE]
    You must be running Apollo Client 3.8.0 or greater to use this feature.

    [!IMPORTANT]
    This should be the same document transform that is passed to your ApolloClient instance, otherwise you risk mismatches in the query output.

    // persisted-query-manifest.config.ts
    import { PersistedQueryManifestConfig } from "@apollo/generate-persisted-query-manifest";
    import { DocumentTransform } from "@apollo/client/core";
    
    const documentTransform = new DocumentTransform((document) => {
      // transform your document
      return transformedDocument;
    });
    
    const config: PersistedQueryManifestConfig = {
      documentTransform,
    };
    
    export default config;

@apollo/utils.fetcher@3.1.0

08 Nov 18:35
3e4fe74
Compare
Choose a tag to compare

Minor Changes

@apollo/utils.keyvaluecache@3.1.0

14 Sep 15:25
d9159b5
Compare
Choose a tag to compare

Minor Changes

  • #337 e02f708 Thanks @HishamAli81! - Updated the KeyValueCache.KeyValueCacheSetOptions type to be configurable, to be able to support custom key value caches that require additional cache set options.

@apollo/utils.keyvadapter@3.1.0

14 Sep 15:25
d9159b5
Compare
Choose a tag to compare

Minor Changes

  • #337 e02f708 Thanks @HishamAli81! - Updated the KeyValueCache.KeyValueCacheSetOptions type to be configurable, to be able to support custom key value caches that require additional cache set options.

Patch Changes

  • Updated dependencies [e02f708]:
    • @apollo/utils.keyvaluecache@3.1.0

@apollo/generate-persisted-query-manifest@1.1.0

24 Aug 16:31
6c86290
Compare
Choose a tag to compare

Minor Changes

  • #344 b32a3d1 Thanks @jerelmiller! - Add a --list-files option that lists the set of matched files against the documents pattern.

Patch Changes

  • #345 145836c Thanks @jerelmiller! - Better error reporting when an error is raised while parsing a source file for GraphQL query strings (such as a syntax error). Previously the stack trace was reported to the console with little to no identifying information as to which file caused the error. The filename is now reported similarly to other errors encountered when running the CLI. An additional improvement is that it will now gather all errors, including syntax errors in a single pass so that syntax errors do not halt the program in place.

  • #348 c3cbc4d Thanks @jerelmiller! - Adds the number of matched operations recorded to the manifest file in the success message once the CLI finishes. If no operations were found, a warning is now logged.

@apollo/persisted-query-lists@1.0.0

07 Jul 23:15
2abfc46
Compare
Choose a tag to compare

Major Changes

@apollo/generate-persisted-query-manifest@1.0.0

07 Jul 23:15
2abfc46
Compare
Choose a tag to compare

Major Changes

@apollo/generate-persisted-query-manifest@1.0.0-alpha.7

07 Jul 21:22
3750d38
Compare
Choose a tag to compare

Patch Changes

  • #316 d517125 Thanks @jerelmiller! - Consolidate document and documentIgnorePatterns to the documents option. documents patterns can now be prefixed with ! to negate the pattern.

@apollo/persisted-query-lists@1.0.0-alpha.4

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

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);
      },
    });