Releases: apollographql/apollo-utils
@apollo/[email protected]
@apollo/[email protected]
Patch Changes
- #468
70a2a65
Thanks @trevor-scheer! - Compatibility with Next.js Turbopack
@apollo/[email protected]
@apollo/[email protected]
@apollo/[email protected]
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/[email protected]
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 yourApolloClient
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/[email protected]
Minor Changes
- #376
7af650b
Thanks @rportugal! - Addredirect
toFetcherRequestInit
@apollo/[email protected]
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/[email protected]
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/[email protected]
@apollo/[email protected]
Minor Changes
- #344
b32a3d1
Thanks @jerelmiller! - Add a--list-files
option that lists the set of matched files against thedocuments
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.