Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upcoming Release Changes #4625

Merged
merged 1 commit into from Aug 9, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
76 changes: 0 additions & 76 deletions .changeset/fifty-experts-unite.md

This file was deleted.

36 changes: 0 additions & 36 deletions .changeset/fluffy-pianos-know.md

This file was deleted.

46 changes: 0 additions & 46 deletions .changeset/tiny-zoos-dance.md

This file was deleted.

8 changes: 8 additions & 0 deletions benchmark/federation/CHANGELOG.md
@@ -1,5 +1,13 @@
# federation-benchmark

## 0.0.43

### Patch Changes

- Updated dependencies [[`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67)]:
- @graphql-tools/stitch@8.7.2
- @graphql-tools/stitching-directives@2.3.2

## 0.0.42

### Patch Changes
Expand Down
6 changes: 3 additions & 3 deletions benchmark/federation/package.json
@@ -1,6 +1,6 @@
{
"name": "federation-benchmark",
"version": "0.0.42",
"version": "0.0.43",
"private": true,
"scripts": {
"start": "cross-env NODE_ENV=production node index.js",
Expand All @@ -11,8 +11,8 @@
"dependencies": {
"@apollo/gateway": "2.0.5",
"@apollo/federation": "0.36.1",
"@graphql-tools/stitch": "8.7.1",
"@graphql-tools/stitching-directives": "2.3.1",
"@graphql-tools/stitch": "8.7.2",
"@graphql-tools/stitching-directives": "2.3.2",
"express": "4.18.1",
"graphql": "16.5.0",
"graphql-tag": "2.12.6",
Expand Down
10 changes: 10 additions & 0 deletions packages/batch-delegate/CHANGELOG.md
@@ -1,5 +1,15 @@
# @graphql-tools/batch-delegate

## 8.3.2

### Patch Changes

- [#4624](https://github.com/ardatan/graphql-tools/pull/4624) [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with `moduleResolution` `node16` or `nodenext`

- Updated dependencies [[`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67), [`d8dc67aa`](https://github.com/ardatan/graphql-tools/commit/d8dc67aa6cb05bf10f5f16e90690e5ccc87b3426)]:
- @graphql-tools/delegate@9.0.0
- @graphql-tools/utils@8.9.1

## 8.3.1

### Patch Changes
Expand Down
10 changes: 5 additions & 5 deletions packages/batch-delegate/package.json
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/batch-delegate",
"version": "8.3.1",
"version": "8.3.2",
"description": "A set of utils for faster development of GraphQL tools",
"repository": {
"type": "git",
Expand Down Expand Up @@ -53,14 +53,14 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/delegate": "8.8.1",
"@graphql-tools/utils": "8.9.0",
"@graphql-tools/delegate": "9.0.0",
"@graphql-tools/utils": "8.9.1",
"dataloader": "2.1.0",
"tslib": "^2.4.0"
},
"devDependencies": {
"@graphql-tools/schema": "8.5.1",
"@graphql-tools/stitch": "8.7.1"
"@graphql-tools/schema": "9.0.0",
"@graphql-tools/stitch": "8.7.2"
},
"publishConfig": {
"directory": "dist",
Expand Down
9 changes: 9 additions & 0 deletions packages/batch-execute/CHANGELOG.md
@@ -1,5 +1,14 @@
# @graphql-tools/batch-execute

## 8.5.2

### Patch Changes

- [#4624](https://github.com/ardatan/graphql-tools/pull/4624) [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with `moduleResolution` `node16` or `nodenext`

- Updated dependencies [[`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67)]:
- @graphql-tools/utils@8.9.1

## 8.5.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/batch-execute/package.json
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/batch-execute",
"version": "8.5.1",
"version": "8.5.2",
"description": "A set of utils for faster development of GraphQL tools",
"repository": {
"type": "git",
Expand Down Expand Up @@ -53,7 +53,7 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/utils": "8.9.0",
"@graphql-tools/utils": "8.9.1",
"dataloader": "2.1.0",
"tslib": "^2.4.0",
"value-or-promise": "1.0.11"
Expand Down
55 changes: 55 additions & 0 deletions packages/delegate/CHANGELOG.md
@@ -1,5 +1,60 @@
# @graphql-tools/delegate

## 9.0.0

### Major Changes

- [#4566](https://github.com/ardatan/graphql-tools/pull/4566) [`d8dc67aa`](https://github.com/ardatan/graphql-tools/commit/d8dc67aa6cb05bf10f5f16e90690e5ccc87b3426) Thanks [@ardatan](https://github.com/ardatan)! - ## Breaking changes

**Schema generation optimization by removing `transfomedSchema` parameter**

Previously we were applying the transforms multiple times. We needed to introduced some breaking changes to improve the initial wrapped/stitched schema generation performance;

- `Transform.transformSchema` no longer accepts `transformedSchema` which can easily be created with `applySchemaTransforms(schema, subschemaConfig)` instead.
- Proxying resolver factory function that is passed as `createProxyingResolver` to `SubschemaConfig` no longer takes `transformedSchema` which can easily be created with `applySchemaTransforms(schema, subschemaConfig)` instead.

**`stitchSchemas` doesn't take nested arrays of subschemas**

`stitchSchemas` no longer accepts an array of arrays of subschema configuration objects. Instead, it accepts an array of subschema configuration objects or schema objects directly.

**`stitchSchemas` no longer prunes the schema with `pruningOptions`**

You can use `pruneSchema` from `@graphql-tools/utils` to prune the schema instead.

**`stitchSchemas` no longer respect "@computed" directive if stitchingDirectivesTransformer isn't applied**

Also `@graphql-tools/stitch` no longer exports `computedDirectiveTransformer` and `defaultSubschemaConfigTransforms`.
Instead, use `@graphql-tools/stitching-directives` package for `@computed` directive.
[Learn more about setting it up](https://www.graphql-tools.com/docs/schema-stitching/stitch-directives-sdl#directives-glossary)

**`computedFields` has been removed from the merged type configuration**

`MergeTypeConfig.computedFields` setting has been removed in favor of new computed field configuration written as:

```js
merge: {
MyType: {
fields: {
myComputedField: {
selectionSet: '{ weight }',
computed: true,
}
}
}
}
```

A field-level `selectionSet` specifies field dependencies while the `computed` setting structures the field in a way that assures it is always selected with this data provided. The `selectionSet` is intentionally generic to support possible future uses. This new pattern organizes all field-level configuration (including `canonical`) into a single structure.

### Patch Changes

- [#4624](https://github.com/ardatan/graphql-tools/pull/4624) [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with `moduleResolution` `node16` or `nodenext`

- Updated dependencies [[`8cc8721f`](https://github.com/ardatan/graphql-tools/commit/8cc8721fbbff3c978fd67d162df833d6973c1860), [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67)]:
- @graphql-tools/schema@9.0.0
- @graphql-tools/batch-execute@8.5.2
- @graphql-tools/utils@8.9.1

## 8.8.1

### Patch Changes
Expand Down
8 changes: 4 additions & 4 deletions packages/delegate/package.json
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/delegate",
"version": "8.8.1",
"version": "9.0.0",
"description": "A set of utils for faster development of GraphQL tools",
"repository": {
"type": "git",
Expand Down Expand Up @@ -53,9 +53,9 @@
"input": "./src/index.ts"
},
"dependencies": {
"@graphql-tools/batch-execute": "8.5.1",
"@graphql-tools/schema": "8.5.1",
"@graphql-tools/utils": "8.9.0",
"@graphql-tools/batch-execute": "8.5.2",
"@graphql-tools/schema": "9.0.0",
"@graphql-tools/utils": "8.9.1",
"dataloader": "2.1.0",
"tslib": "~2.4.0",
"value-or-promise": "1.0.11"
Expand Down
9 changes: 9 additions & 0 deletions packages/graphql-tag-pluck/CHANGELOG.md
@@ -1,5 +1,14 @@
# @graphql-tools/graphql-tag-pluck

## 7.3.2

### Patch Changes

- [#4624](https://github.com/ardatan/graphql-tools/pull/4624) [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with `moduleResolution` `node16` or `nodenext`

- Updated dependencies [[`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67)]:
- @graphql-tools/utils@8.9.1

## 7.3.1

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/graphql-tag-pluck/package.json
@@ -1,6 +1,6 @@
{
"name": "@graphql-tools/graphql-tag-pluck",
"version": "7.3.1",
"version": "7.3.2",
"description": "Pluck graphql-tag template literals",
"license": "MIT",
"repository": {
Expand Down Expand Up @@ -53,7 +53,7 @@
"@babel/parser": "^7.16.8",
"@babel/traverse": "^7.16.8",
"@babel/types": "^7.16.8",
"@graphql-tools/utils": "8.9.0",
"@graphql-tools/utils": "8.9.1",
"tslib": "^2.4.0"
},
"devDependencies": {
Expand Down
9 changes: 9 additions & 0 deletions packages/graphql-tools/CHANGELOG.md
@@ -1,5 +1,14 @@
# graphql-tools

## 8.3.2

### Patch Changes

- [#4624](https://github.com/ardatan/graphql-tools/pull/4624) [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67) Thanks [@n1ru4l](https://github.com/n1ru4l)! - Fix CommonJS TypeScript resolution with `moduleResolution` `node16` or `nodenext`

- Updated dependencies [[`8cc8721f`](https://github.com/ardatan/graphql-tools/commit/8cc8721fbbff3c978fd67d162df833d6973c1860), [`e3167edc`](https://github.com/ardatan/graphql-tools/commit/e3167edc98172fda88ce2306c10c7d4a23d91d67)]:
- @graphql-tools/schema@9.0.0

## 8.3.1

### Patch Changes
Expand Down