Skip to content

Commit

Permalink
Version Packages (#413)
Browse files Browse the repository at this point in the history
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Feb 26, 2024
1 parent 4f013ca commit d0ceb57
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 45 deletions.
16 changes: 0 additions & 16 deletions .changeset/beige-pans-impress.md

This file was deleted.

28 changes: 0 additions & 28 deletions .changeset/dirty-masks-nail.md

This file was deleted.

44 changes: 44 additions & 0 deletions packages/generate-persisted-query-manifest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,49 @@
# @apollo/generate-persisted-query-manifest

## 1.2.0

### Minor Changes

- [#414](https:/apollographql/apollo-utils/pull/414) [`b8b7d12`](https:/apollographql/apollo-utils/commit/b8b7d12693967376b47e11504ede13972e5bcef7) Thanks [@jerelmiller](https:/jerelmiller)! - Add ability to parse documents generated by GraphQL Codegen's [persisted documents](https://the-guild.dev/graphql/codegen/plugins/presets/preset-client#persisted-documents) feature.

```ts
// 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](https://github.com/apollographql/apollo-utils/pull/412) [`c43f485`](https:/apollographql/apollo-utils/commit/c43f485534bc22c93c37ca513b894089c25f899c) Thanks [@jerelmiller](https:/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.

```ts
// 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;
```

## 1.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/generate-persisted-query-manifest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/generate-persisted-query-manifest",
"version": "1.1.0",
"version": "1.2.0",
"description": "Creates a Persisted Query Manifest from an Apollo Client Web project",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit d0ceb57

Please sign in to comment.