Skip to content

Commit

Permalink
Version Packages (#320)
Browse files Browse the repository at this point in the history
* Version Packages

* Update READMEs and CHANGELOGs

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: David Glasser <[email protected]>
  • Loading branch information
3 people authored Jul 7, 2023
1 parent 1a64dfa commit 2abfc46
Show file tree
Hide file tree
Showing 18 changed files with 11 additions and 255 deletions.
6 changes: 0 additions & 6 deletions .changeset/cuddly-pillows-mix.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/few-rings-accept.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fifty-gorillas-sell.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/great-onions-punch.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/khaki-cows-suffer.md

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/mighty-rockets-sing.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/moody-pots-promise.md

This file was deleted.

36 changes: 0 additions & 36 deletions .changeset/pre.json

This file was deleted.

6 changes: 0 additions & 6 deletions .changeset/selfish-knives-flow.md

This file was deleted.

20 changes: 0 additions & 20 deletions .changeset/strong-eyes-play.md

This file was deleted.

24 changes: 0 additions & 24 deletions .changeset/twenty-ligers-sip.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/weak-monkeys-reflect.md

This file was deleted.

79 changes: 2 additions & 77 deletions packages/generate-persisted-query-manifest/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,82 +1,7 @@
# @apollo/generate-persisted-query-manifest

## 1.0.0-alpha.7

### Patch Changes

- [#316](https:/apollographql/apollo-utils/pull/316) [`d517125`](https:/apollographql/apollo-utils/commit/d5171251e1a46863d3449ab13668dab32dedebc9) Thanks [@jerelmiller](https:/jerelmiller)! - Consolidate `document` and `documentIgnorePatterns` to the `documents` option. `documents` patterns can now be prefixed with `!` to negate the pattern.

## 1.0.0-alpha.6

### Patch Changes

- [#309](https:/apollographql/apollo-utils/pull/309) [`18981ce`](https:/apollographql/apollo-utils/commit/18981ce68fa65eb99bd46172f2ce6c055170cd18) Thanks [@jerelmiller](https:/jerelmiller)! - Add the ability to create custom manifest operation IDs by defining a `createCustomId` function in the config file.

```ts
// 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`](https://github.com/apollographql/apollo-utils/commit/12b76e24fb29bb43540798a142497b37ba4bd016), [`b5ca31c`](https:/apollographql/apollo-utils/commit/b5ca31c18b1689c08be21bed79ea37c81152abed)]:
- @apollo/persisted-query-lists@1.0.0-alpha.4

## 1.0.0-alpha.5

### Patch Changes

- [#302](https://github.com/apollographql/apollo-utils/pull/302) [`3057433`](https:/apollographql/apollo-utils/commit/30574331ef2ab3215d6c0c0d77aee81f29bafc84) Thanks [@jerelmiller](https:/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.

## 1.0.0-alpha.4

### Patch Changes

- [#295](https://github.com/apollographql/apollo-utils/pull/295) [`c41dd06`](https:/apollographql/apollo-utils/commit/c41dd06ccb0d4b89c12a9458e9cb76ccc3cb4150) Thanks [@jerelmiller](https:/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.

## 1.0.0-alpha.3

### Patch Changes

- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`fb4f6da`](https:/apollographql/apollo-utils/commit/fb4f6da57acf48ba6eba90011a42d8a9397f6649) Thanks [@glasser](https:/glasser)! - Change `generatePersistedQueryIdsFromManifest` to take an async `loadManifest`. Ensure Promises don't have unhandled rejections.

- Updated dependencies [[`fb4f6da`](https://github.com/apollographql/apollo-utils/commit/fb4f6da57acf48ba6eba90011a42d8a9397f6649)]:
- @apollo/persisted-query-lists@1.0.0-alpha.3

## 1.0.0-alpha.2

### Patch Changes

- [#293](https://github.com/apollographql/apollo-utils/pull/293) [`bef53e4`](https:/apollographql/apollo-utils/commit/bef53e4cfc173eefff3b773335002627aaebc35b) Thanks [@jerelmiller](https:/jerelmiller)! - Add `@apollo/persisted-query-lists` as a dependency to fix missing dependency issue.

- [#291](https://github.com/apollographql/apollo-utils/pull/291) [`f72c2d0`](https:/apollographql/apollo-utils/commit/f72c2d08da2e14d477e9c8528d47c2f219554537) Thanks [@jerelmiller](https:/jerelmiller)! - Allow v3.8.0 prerelease versions of @apollo/client.

- Updated dependencies [[`f72c2d0`](https://github.com/apollographql/apollo-utils/commit/f72c2d08da2e14d477e9c8528d47c2f219554537)]:
- @apollo/persisted-query-lists@1.0.0-alpha.2

## 1.0.0-alpha.1

### Patch Changes

- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`9b5c8d9`](https:/apollographql/apollo-utils/commit/9b5c8d92e3f47b43c32b4b014428c49cc0b38219) Thanks [@glasser](https:/glasser)! - Change createPersistedQueryManifestVerificationLink to load manifest asynchronously.

## 1.0.0-alpha.0
## 1.0.0

### Major Changes

- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`f4a710d`](https:/apollographql/apollo-utils/commit/f4a710dbe22bf1b579299e1438ac6cb45ec912ab) Thanks [@glasser](https:/glasser)! - Initial release
- [#287](https:/apollographql/apollo-utils/pull/287) [`1a64dfa`](https:/apollographql/apollo-utils/commit/1a64dfabc47d0d735473aecd23d540cab6737ca8) Thanks [@glasser](https:/glasser)! - Initial release
2 changes: 2 additions & 0 deletions packages/generate-persisted-query-manifest/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ Default: `persisted-query-manifest.json`

A custom function that allows you to customize the `id` for a query operation. By default, a SHA 256 hash of the query string will be used to generate the `id`. This option can only be used if your config file is defined using a `.js`, `.cjs` or `.ts` extension.

When you use this option, you cannot use the `generatePersistedQueryIdsAtRuntime` function from `@apollo/persisted-query-lists` in your client, because that function assumes that you are using the default ID generation (SHA256 hash of the body). It is compatible with `generatePersistedQueryIdsFromManifest`.

```ts
interface CreateOperationIdOptions {
/**
Expand Down
4 changes: 2 additions & 2 deletions 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.0.0-alpha.7",
"version": "1.0.0",
"description": "Creates a Persisted Query Manifest from an Apollo Client Web project",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -24,7 +24,7 @@
"node": ">=16"
},
"dependencies": {
"@apollo/persisted-query-lists": "^1.0.0-alpha.4",
"@apollo/persisted-query-lists": "^1.0.0",
"@graphql-tools/graphql-tag-pluck": "^8.0.0",
"chalk": "^4.1.2",
"commander": "^10.0.1",
Expand Down
45 changes: 2 additions & 43 deletions packages/persisted-query-lists/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,48 +1,7 @@
# @apollo/persisted-query-lists

## 1.0.0-alpha.4

### Patch Changes

- [#315](https:/apollographql/apollo-utils/pull/315) [`12b76e2`](https:/apollographql/apollo-utils/commit/12b76e24fb29bb43540798a142497b37ba4bd016) Thanks [@jerelmiller](https:/jerelmiller)! - Allow the persisted query manifest to be loaded synchronously for both `createPersistedQueryManifestVerificationLink` and `generatePersistedQueryIdsFromManifest`.

- [#308](https:/apollographql/apollo-utils/pull/308) [`b5ca31c`](https:/apollographql/apollo-utils/commit/b5ca31c18b1689c08be21bed79ea37c81152abed) Thanks [@jerelmiller](https:/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.

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

## 1.0.0-alpha.3

### Patch Changes

- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`fb4f6da`](https:/apollographql/apollo-utils/commit/fb4f6da57acf48ba6eba90011a42d8a9397f6649) Thanks [@glasser](https:/glasser)! - Change `generatePersistedQueryIdsFromManifest` to take an async `loadManifest`. Ensure Promises don't have unhandled rejections.

## 1.0.0-alpha.2

### Patch Changes

- [#291](https://github.com/apollographql/apollo-utils/pull/291) [`f72c2d0`](https:/apollographql/apollo-utils/commit/f72c2d08da2e14d477e9c8528d47c2f219554537) Thanks [@jerelmiller](https:/jerelmiller)! - Allow v3.8.0 prerelease versions of @apollo/client.

## 1.0.0-alpha.1

### Patch Changes

- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`9b5c8d9`](https:/apollographql/apollo-utils/commit/9b5c8d92e3f47b43c32b4b014428c49cc0b38219) Thanks [@glasser](https:/glasser)! - Change createPersistedQueryManifestVerificationLink to load manifest asynchronously.

## 1.0.0-alpha.0
## 1.0.0

### Major Changes

- [#287](https://github.com/apollographql/apollo-utils/pull/287) [`f4a710d`](https:/apollographql/apollo-utils/commit/f4a710dbe22bf1b579299e1438ac6cb45ec912ab) Thanks [@glasser](https:/glasser)! - Initial release
- [#287](https:/apollographql/apollo-utils/pull/287) [`1a64dfa`](https:/apollographql/apollo-utils/commit/1a64dfabc47d0d735473aecd23d540cab6737ca8) Thanks [@glasser](https:/glasser)! - Initial release
2 changes: 2 additions & 0 deletions packages/persisted-query-lists/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const persistedQueryLink = createPersistedQueryLink(
);
```

This function will not work properly if you use the `createOperationId` config option to `@apollo/generate-persisted-query-manifest`.

#### Options

- `sha256`: A SHA-256 hashing function. Can be sync or async. Providing a SHA-256
Expand Down
2 changes: 1 addition & 1 deletion packages/persisted-query-lists/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/persisted-query-lists",
"version": "1.0.0-alpha.4",
"version": "1.0.0",
"description": "Support for Persisted Query Lists in Apollo Client Web",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down

0 comments on commit 2abfc46

Please sign in to comment.