diff --git a/.changeset/connect-spec-definitions.md b/.changeset/connect-spec-definitions.md deleted file mode 100644 index 5322d3b..0000000 --- a/.changeset/connect-spec-definitions.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -'@apollo/subgraph': minor ---- - -Add Apollo Connectors spec definitions. A subgraph that `@link`s `https://specs.apollo.dev/connect/v0.1` through `v0.4` now gets the `@connect` and `@source` directives and their supporting types, following the link's `import` list and `as` namespace, with the definitions composition (v2.15+) expects. Connector usage itself is still validated by composition. - -A connectors subgraph's `_service { sdl }` leaves out the `_service` / `_entities` fields and the `_Service`, `_Any` and `_Entity` types, which composition rejects in a connectors subgraph. The schema still serves them. diff --git a/.changeset/link-handling-fixes.md b/.changeset/link-handling-fixes.md deleted file mode 100644 index 1958839..0000000 --- a/.changeset/link-handling-fixes.md +++ /dev/null @@ -1,10 +0,0 @@ ---- -'@apollo/subgraph': patch ---- - -Align `@link` handling with composition: - -- `@link(as: ...)` is now honoured for the federation link, so elements that aren't imported are namespaced under the alias instead of `federation__`. -- `@link(url: "https://specs.apollo.dev/link/v1.0", import: [...])` now names `Import` and `Purpose` after its imports instead of always using `link__Import` / `link__Purpose`. -- A `@link` URL with a trailing slash after the version (`.../federation/v2.9/`) is now rejected, matching composition. -- A `@link` URL with extra path segments under a known specification (`https://specs.apollo.dev/federation/extra/v1.0`) now links a custom specification (`extra`), as in composition, instead of being read as a federation link. diff --git a/CHANGELOG.md b/CHANGELOG.md index 248859f..482b4e8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,22 @@ # Changelog +## 2.17.0 + +### Minor Changes + +- [#24](https://github.com/apollographql/subgraph-js/pull/24) [`4d9e75c`](https://github.com/apollographql/subgraph-js/commit/4d9e75c45ee1158c0424112836be2d978a78d4ec) Thanks [@dariuszkuc](https://github.com/dariuszkuc)! - Add Apollo Connectors spec definitions. A subgraph that `@link`s `https://specs.apollo.dev/connect/v0.1` through `v0.4` now gets the `@connect` and `@source` directives and their supporting types, following the link's `import` list and `as` namespace, with the definitions composition (v2.15+) expects. Connector usage itself is still validated by composition. + + A connectors subgraph's `_service { sdl }` leaves out the `_service` / `_entities` fields and the `_Service`, `_Any` and `_Entity` types, which composition rejects in a connectors subgraph. The schema still serves them. + +### Patch Changes + +- [#23](https://github.com/apollographql/subgraph-js/pull/23) [`1f7d99a`](https://github.com/apollographql/subgraph-js/commit/1f7d99a089fd7dfeafbc34a776f4cde470feb1b2) Thanks [@dariuszkuc](https://github.com/dariuszkuc)! - Align `@link` handling with composition: + + - `@link(as: ...)` is now honoured for the federation link, so elements that aren't imported are namespaced under the alias instead of `federation__`. + - `@link(url: "https://specs.apollo.dev/link/v1.0", import: [...])` now names `Import` and `Purpose` after its imports instead of always using `link__Import` / `link__Purpose`. + - A `@link` URL with a trailing slash after the version (`.../federation/v2.9/`) is now rejected, matching composition. + - A `@link` URL with extra path segments under a known specification (`https://specs.apollo.dev/federation/extra/v1.0`) now links a custom specification (`extra`), as in composition, instead of being read as a federation link. + ## 2.16.0 ### Minor Changes diff --git a/package-lock.json b/package-lock.json index 262a360..912a670 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@apollo/subgraph", - "version": "2.16.0", + "version": "2.17.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@apollo/subgraph", - "version": "2.16.0", + "version": "2.17.0", "license": "MIT", "workspaces": [ ".", diff --git a/package.json b/package.json index 4b4bb6e..b16e662 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@apollo/subgraph", - "version": "2.16.0", + "version": "2.17.0", "description": "Apollo Federation subgraph utilities built on graphql-js", "main": "dist/index.js", "types": "dist/index.d.ts",