Skip to content
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
7 changes: 0 additions & 7 deletions .changeset/connect-spec-definitions.md

This file was deleted.

10 changes: 0 additions & 10 deletions .changeset/link-handling-fixes.md

This file was deleted.

17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
Loading