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

release: on branch next (alpha) #2364

Merged
merged 1 commit into from
Mar 10, 2023
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,11 @@
"@apollo/query-planner": "2.3.3",
"@apollo/subgraph": "2.3.3"
},
"changesets": []
"changesets": [
"forty-gifts-burn",
"forty-hairs-flow",
"gentle-rockets-roll",
"old-humans-try",
"shaggy-knives-exercise"
]
}
13 changes: 13 additions & 0 deletions composition-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# CHANGELOG for `@apollo/composition`

## 2.4.0-alpha.0
### Minor Changes


- Addition of new query planner node types to enable federated subscriptions support ([#2389](https://github.com/apollographql/federation/pull/2389))


### Patch Changes

- Updated dependencies [[`6e2d24b5`](https://github.com/apollographql/federation/commit/6e2d24b5491914316b9930395817f0c3780f181a), [`1a555d98`](https://github.com/apollographql/federation/commit/1a555d98f2030814ebd5074269d035b7f298f71e)]:
- @apollo/[email protected]
- @apollo/[email protected]

## 2.3.3
### Patch Changes

Expand Down
6 changes: 3 additions & 3 deletions composition-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/composition",
"version": "2.3.3",
"version": "2.4.0-alpha.0",
"description": "Apollo Federation composition utilities",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -27,8 +27,8 @@
"access": "public"
},
"dependencies": {
"@apollo/federation-internals": "2.3.3",
"@apollo/query-graphs": "2.3.3"
"@apollo/federation-internals": "2.4.0-alpha.0",
"@apollo/query-graphs": "2.4.0-alpha.0"
},
"peerDependencies": {
"graphql": "^16.5.0"
Expand Down
2 changes: 2 additions & 0 deletions federation-integration-testsuite-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# CHANGELOG for `federation-integration-testsuite-js`

## 2.4.0-alpha.0

## 2.3.3

## 2.3.2
Expand Down
2 changes: 1 addition & 1 deletion federation-integration-testsuite-js/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "apollo-federation-integration-testsuite",
"private": true,
"version": "2.3.3",
"version": "2.4.0-alpha.0",
"description": "Apollo Federation Integrations / Test Fixtures",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
54 changes: 54 additions & 0 deletions gateway-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,59 @@
# CHANGELOG for `@apollo/gateway`

## 2.4.0-alpha.0
### Minor Changes


- This change introduces a configurable query plan cache. This option allows ([#2385](https://github.com/apollographql/federation/pull/2385))
developers to provide their own query plan cache like so:

```
new ApolloGateway({
queryPlannerConfig: {
cache: new MyCustomQueryPlanCache(),
},
});
```

The current default implementation is effectively as follows:
```
import { InMemoryLRUCache } from "@apollo/utils.keyvaluecache";

const cache = new InMemoryLRUCache<string>({
maxSize: Math.pow(2, 20) * 30,
sizeCalculation<T>(obj: T): number {
return Buffer.byteLength(JSON.stringify(obj), "utf8");
},
});
```

TypeScript users should implement the `QueryPlanCache` type which is now
exported by `@apollo/query-planner`:
```
import { QueryPlanCache } from '@apollo/query-planner';

class MyCustomQueryPlanCache implements QueryPlanCache {
// ...
}
```

- Adds debug/testing query planner options (`debug.bypassPlannerForSingleSubgraph`) to bypass the query planning ([#2441](https://github.com/apollographql/federation/pull/2441))
process for federated supergraph having only a single subgraph. The option is disabled by default, is not recommended
for production, and is not supported (it may be removed later). It is meant for debugging/testing purposes.

### Patch Changes


- Handle defaulted variables correctly during post-processing. ([#2443](https://github.com/apollographql/federation/pull/2443))

Users who tried to use built-in conditional directives (skip/include) with _defaulted_ variables and no variable provided would encounter an error thrown by operation post-processing saying that the variables weren't provided. The defaulted values went unaccounted for, so the operation would validate but then fail an assertion while resolving the conditional.

With this change, defaulted variable values are now collected and provided to post-processing (with defaults being overwritten by variables that are actually provided).
- Updated dependencies [[`d4426ff9`](https://github.com/apollographql/federation/commit/d4426ff9ea86273c145351f80d8d18eb56ebab38), [`a9385bdb`](https://github.com/apollographql/federation/commit/a9385bdb0d6f5e9b03f9c143bbc7f34e5b5bf166), [`6e2d24b5`](https://github.com/apollographql/federation/commit/6e2d24b5491914316b9930395817f0c3780f181a), [`1a555d98`](https://github.com/apollographql/federation/commit/1a555d98f2030814ebd5074269d035b7f298f71e), [`ade7ceb8`](https://github.com/apollographql/federation/commit/ade7ceb8093f3c6ad01362d4aec4d806bff4e4fd)]:
- @apollo/[email protected]
- @apollo/[email protected]
- @apollo/[email protected]

## 2.3.3
### Patch Changes

Expand Down
8 changes: 4 additions & 4 deletions gateway-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/gateway",
"version": "2.3.3",
"version": "2.4.0-alpha.0",
"description": "Apollo Gateway",
"author": "Apollo <[email protected]>",
"main": "dist/index.js",
Expand All @@ -25,9 +25,9 @@
"access": "public"
},
"dependencies": {
"@apollo/composition": "2.3.3",
"@apollo/federation-internals": "2.3.3",
"@apollo/query-planner": "2.3.3",
"@apollo/composition": "2.4.0-alpha.0",
"@apollo/federation-internals": "2.4.0-alpha.0",
"@apollo/query-planner": "2.4.0-alpha.0",
"@apollo/server-gateway-interface": "^1.1.0",
"@apollo/usage-reporting-protobuf": "^4.1.0",
"@apollo/utils.createhash": "^2.0.0",
Expand Down
12 changes: 12 additions & 0 deletions internals-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
# CHANGELOG for `@apollo/federation-internals`

## 2.4.0-alpha.0
### Patch Changes


- Handle defaulted variables correctly during post-processing. ([#2443](https://github.com/apollographql/federation/pull/2443))

Users who tried to use built-in conditional directives (skip/include) with _defaulted_ variables and no variable provided would encounter an error thrown by operation post-processing saying that the variables weren't provided. The defaulted values went unaccounted for, so the operation would validate but then fail an assertion while resolving the conditional.

With this change, defaulted variable values are now collected and provided to post-processing (with defaults being overwritten by variables that are actually provided).

- Use globally available URL object instead of node builtin "url" module ([#2293](https://github.com/apollographql/federation/pull/2293))

## 2.3.3

## 2.3.2
Expand Down
2 changes: 1 addition & 1 deletion internals-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/federation-internals",
"version": "2.3.3",
"version": "2.4.0-alpha.0",
"description": "Apollo Federation internal utilities",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
50 changes: 25 additions & 25 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions query-graphs-js/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# CHANGELOG for `@apollo/query-graphs`

## 2.4.0-alpha.0
### Patch Changes

- Updated dependencies [[`6e2d24b5`](https://github.com/apollographql/federation/commit/6e2d24b5491914316b9930395817f0c3780f181a), [`1a555d98`](https://github.com/apollographql/federation/commit/1a555d98f2030814ebd5074269d035b7f298f71e)]:
- @apollo/[email protected]

## 2.3.3
### Patch Changes

Expand Down
4 changes: 2 additions & 2 deletions query-graphs-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/query-graphs",
"version": "2.3.3",
"version": "2.4.0-alpha.0",
"description": "Apollo Federation library to work with 'query graphs'",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -23,7 +23,7 @@
"node": ">=14.15.0"
},
"dependencies": {
"@apollo/federation-internals": "2.3.3",
"@apollo/federation-internals": "2.4.0-alpha.0",
"deep-equal": "^2.0.5",
"ts-graphviz": "^1.5.4",
"uuid": "^9.0.0"
Expand Down
Loading