Skip to content

Commit

Permalink
Version Packages (#7028)
Browse files Browse the repository at this point in the history
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @apollo/[email protected]

### Patch Changes

- [#7049](#7049)
[`3daee02c6`](3daee02)
Thanks [@glasser](https://github.com/glasser)! - Raise minimum `engines`
requirement from Node.js v14.0.0 to v14.16.0. This is the minimum
version of Node 14 supported by the `engines` requirement of
`[email protected]`.

- Updated dependencies
\[[`3daee02c6`](3daee02),
[`3daee02c6`](3daee02)]:
    -   @apollo/[email protected]

## @apollo/[email protected]

### Patch Changes

- [#7049](#7049)
[`3daee02c6`](3daee02)
Thanks [@glasser](https://github.com/glasser)! - Raise minimum `engines`
requirement from Node.js v14.0.0 to v14.16.0. This is the minimum
version of Node 14 supported by the `engines` requirement of
`[email protected]`.

- Updated dependencies
\[[`3daee02c6`](3daee02),
[`3daee02c6`](3daee02)]:
    -   @apollo/[email protected]

## @apollo/[email protected]

### Patch Changes

- [#7049](#7049)
[`3daee02c6`](3daee02)
Thanks [@glasser](https://github.com/glasser)! - Raise minimum `engines`
requirement from Node.js v14.0.0 to v14.16.0. This is the minimum
version of Node 14 supported by the `engines` requirement of
`[email protected]`.

- [#7049](#7049)
[`3daee02c6`](3daee02)
Thanks [@glasser](https://github.com/glasser)! - Require Node.js v14
rather than v12. This change was intended for v4.0.0 and the
documentation already stated this requirement, but was left off of the
package.json `engines` field in `@apollo/server` inadvertently.

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
github-actions[bot] and github-actions[bot] authored Oct 17, 2022
1 parent ca266ab commit 3f6e243
Show file tree
Hide file tree
Showing 11 changed files with 39 additions and 34 deletions.
7 changes: 0 additions & 7 deletions .changeset/clever-years-think.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/dull-timers-yawn.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/heavy-radios-report.md

This file was deleted.

2 changes: 0 additions & 2 deletions .changeset/lucky-spies-decide.md

This file was deleted.

10 changes: 5 additions & 5 deletions package-lock.json

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

9 changes: 9 additions & 0 deletions packages/integration-testsuite/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @apollo/server-integration-testsuite

## 4.0.1

### Patch Changes

- [#7049](https://github.com/apollographql/apollo-server/pull/7049) [`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3) Thanks [@glasser](https://github.com/glasser)! - Raise minimum `engines` requirement from Node.js v14.0.0 to v14.16.0. This is the minimum version of Node 14 supported by the `engines` requirement of `[email protected]`.

- Updated dependencies [[`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3), [`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3)]:
- @apollo/server@4.0.1

## 4.0.0

Initial release of `@apollo/server-integration-testsuite`.
4 changes: 2 additions & 2 deletions packages/integration-testsuite/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/server-integration-testsuite",
"version": "4.0.0",
"version": "4.0.1",
"description": "Test suite for Apollo Server integrations",
"type": "module",
"main": "dist/index.js",
Expand Down Expand Up @@ -42,7 +42,7 @@
"supertest": "^6.2.3"
},
"peerDependencies": {
"@apollo/server": "^4.0.0",
"@apollo/server": "^4.0.1",
"@jest/globals": "28.x || 29.x",
"graphql": "^16.6.0",
"jest": "28.x || 29.x"
Expand Down
9 changes: 9 additions & 0 deletions packages/plugin-response-cache/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @apollo/server-plugin-response-cache

## 4.0.1

### Patch Changes

- [#7049](https://github.com/apollographql/apollo-server/pull/7049) [`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3) Thanks [@glasser](https://github.com/glasser)! - Raise minimum `engines` requirement from Node.js v14.0.0 to v14.16.0. This is the minimum version of Node 14 supported by the `engines` requirement of `[email protected]`.

- Updated dependencies [[`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3), [`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3)]:
- @apollo/server@4.0.1

## 4.0.0

Initial release of `@apollo/server-plugin-response-cache` with support for Apollo Server 4. The version of this plugin designed for Apollo Server 2 and 3 was named `apollo-server-plugin-response-cache`.
4 changes: 2 additions & 2 deletions packages/plugin-response-cache/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/server-plugin-response-cache",
"version": "4.0.0",
"version": "4.0.1",
"description": "Apollo Server full query response cache",
"type": "module",
"main": "dist/cjs/index.js",
Expand Down Expand Up @@ -33,7 +33,7 @@
"@apollo/utils.keyvaluecache": "^1.0.1"
},
"peerDependencies": {
"@apollo/server": "^4.0.0",
"@apollo/server": "^4.0.1",
"graphql": "^16.6.0"
}
}
19 changes: 11 additions & 8 deletions packages/server/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
# @apollo/server

## 4.0.1

### Patch Changes

- [#7049](https://github.com/apollographql/apollo-server/pull/7049) [`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3) Thanks [@glasser](https://github.com/glasser)! - Raise minimum `engines` requirement from Node.js v14.0.0 to v14.16.0. This is the minimum version of Node 14 supported by the `engines` requirement of `[email protected]`.

- [#7049](https://github.com/apollographql/apollo-server/pull/7049) [`3daee02c6`](https://github.com/apollographql/apollo-server/commit/3daee02c6a0fa34ea0e6f4f18b9a7308539021e3) Thanks [@glasser](https://github.com/glasser)! - Require Node.js v14 rather than v12. This change was intended for v4.0.0 and the documentation already stated this requirement, but was left off of the package.json `engines` field in `@apollo/server` inadvertently.

## 4.0.0

### BREAKING CHANGES

Apollo Server contains quite a few breaking changes: most notably, a brand new package name! Read our [migration guide](https://www.apollographql.com/docs/apollo-server/migration/) for more details on how to update your app.


#### Bumped dependencies

The minimum versions of these dependencies have been bumped to provide an improved foundation for the development of future features.
Expand All @@ -16,7 +23,6 @@ The minimum versions of these dependencies have been bumped to provide an improv
- Upgrading `graphql` may require you to upgrade other libraries that are installed in your project. For example, if you use Apollo Server with Apollo Gateway, you should upgrade Apollo Gateway to at least v0.50.1 or any v2.x version for full `graphql` 16 support before upgrading to Apollo Server 4.
- If you use Apollo Server with TypeScript, you must use TypeScript v4.7.0 or newer.


#### New package structure

Apollo Server 4 is distributed in the `@apollo/server` package. This package replaces `apollo-server`, `apollo-server-core`, `apollo-server-express`, `apollo-server-errors`, `apollo-server-types`, and `apollo-server-plugin-base`.
Expand All @@ -28,19 +34,18 @@ Other functionality is exported from "deep imports" on `@apollo/server`. `startS
The `@apollo/server` package is built natively as both an ECMAScript Module (ESM) and as a CommonJS module (CJS); Apollo Server 3 was only built as CJS. This allows ESM-native bundlers to create more efficient bundles.

Other packages have been renamed:

- `apollo-datasource-rest` is now [`@apollo/datasource-rest`](https://www.npmjs.com/package/@apollo/datasource-rest).
- `apollo-server-plugin-response-cache` is now [`@apollo/server-plugin-response-cache`](https://www.npmjs.com/package/@apollo/server-plugin-response-cache).
- `apollo-server-plugin-operation-registry` is now [`@apollo/server-plugin-operation-registry`](https://www.npmjs.com/package/@apollo/server-plugin-operation-registry).
- `apollo-reporting-protobuf` (an internal implementation detail for the usage reporting plugin) is now [`@apollo/usage-reporting-protobuf`](https://www.npmjs.com/package/@apollo/usage-reporting-protobuf).


#### Removed web framework integrations

Prior to Apollo Server 4, the only way to integrate a web framework with Apollo Server was for the Apollo Server project to add an official `apollo-server-x` subclass maintained as part of the core project. Apollo Server 4 makes it easy for users to integrate with their favorite web framework, and so we have removed most of the framework integrations from the core project so that framework integrations can be maintained by users who are passionate about that framework. Because of this, the core project no longer directly maintains integrations for Fastify, Hapi, Koa, Micro, AWS Lambda,Google Cloud Functions, Azure Functions, or Cloudflare. We expect that [community integrations](https://www.apollographql.com/docs/apollo-server/v4/integrations/integration-index/) will eventually be created for most of these frameworks and serverless environments.
Prior to Apollo Server 4, the only way to integrate a web framework with Apollo Server was for the Apollo Server project to add an official `apollo-server-x` subclass maintained as part of the core project. Apollo Server 4 makes it easy for users to integrate with their favorite web framework, and so we have removed most of the framework integrations from the core project so that framework integrations can be maintained by users who are passionate about that framework. Because of this, the core project no longer directly maintains integrations for Fastify, Hapi, Koa, Micro, AWS Lambda,Google Cloud Functions, Azure Functions, or Cloudflare. We expect that [community integrations](https://www.apollographql.com/docs/apollo-server/v4/integrations/integration-index/) will eventually be created for most of these frameworks and serverless environments.

Apollo Server's support for the Express web framework no longer also supports its older predecessor [Connect](https://github.com/senchalabs/connect).


#### Removed constructor options

- The `dataSources` constructor option essentially added a post-processing step to your app's context function, creating `DataSource` subclasses and adding them to a `dataSources` field on your context value. This meant the TypeScript type the `context` function returns was _different_ from the context type your resolvers and plugins receive. Additionally, this design obfuscated that `DataSource` objects are created once per request (i.e., like the rest of the context object). Apollo Server 4 removes the `dataSources` constructor option. You can now treat `DataSources` like any other part of your `context` object. See the [migration guide](https://www.apollographql.com/docs/apollo-server/migration/) for details on how to move your `dataSources` function into your `context` function.
Expand Down Expand Up @@ -74,7 +79,6 @@ Apollo Server's support for the Express web framework no longer also supports it
- Other [changes to error handling outside of resolvers](https://www.apollographql.com/docs/apollo-server/migration/#improvements-to-error-handling-outside-of-resolvers) are described in the migration guide.
- The `parseOptions` constructor option only affects the parsing of incoming operations, not the parsing of `typeDefs`.


#### Plugin API changes

- The field `GraphQLRequestContext.context` has been renamed to `contextValue`.
Expand All @@ -87,13 +91,12 @@ Apollo Server's support for the Express web framework no longer also supports it
- `requestDidStart` hooks are called in parallel rather than in series.
- A few changes have been made which may affect [custom `gateway` and `GraphQLDataSource` implementations](https://www.apollographql.com/docs/apollo-server/migration/#custom-gateway-and-graphqldatasource-implementations).


#### Changes to defaults

- CSRF prevention is on by default.
- HTTP batching is disabled by default.
- The default in-memory cache is bounded.
- The local landing page defaults to the *embedded* Apollo Sandbox; this provides a user interface for executing GraphQL operations which doesn't require any additional CORS configuration.
- The local landing page defaults to the _embedded_ Apollo Sandbox; this provides a user interface for executing GraphQL operations which doesn't require any additional CORS configuration.
- The usage reporting and inline trace plugins mask errors in their reports by default: error messages are replaced with `<masked>` and error extensions are replaced with a single extension `maskedBy`. This can be configured with the `sendErrors` option to `ApolloServerPluginUsageReporting` and the `includeErrors` option to `ApolloServerPluginInlineTrace`. The `rewriteError` option to these plugins has been removed; its functionality is subsumed by the new options.

#### TypeScript-specific changes
Expand Down
2 changes: 1 addition & 1 deletion packages/server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@apollo/server",
"version": "4.0.0",
"version": "4.0.1",
"description": "Core engine for Apollo GraphQL server",
"type": "module",
"main": "dist/cjs/index.js",
Expand Down

0 comments on commit 3f6e243

Please sign in to comment.