Skip to content

Releases: moleculerjs/moleculer-apollo-server

v0.4.0

25 Sep 18:37

Choose a tag to compare

Breaking Changes

  • Apollo Server 5: Upgraded from Apollo Server 2 to Apollo Server 5
  • Node.js Requirements: Now requires Node.js >= 20.x.x (updated from >= 10.x)
  • File Upload Removal: Removed GraphQL file upload support because Apollo Server 3+ no longer supports it.
  • Healthcheck Removal: Built-in healthcheck endpoint removed because Apollo Server 4+ no longer supports it.
  • WebSocket Subscriptions: Rewritten subscription function from graphql-subscriptions to graphql-ws.
  • Move from GraphQL Playground to Apollo Sandbox: Apollo Server 3+ removes the GraphQL Playground. It supports Apollo Sandbox.

Major Updates

  • Modern Tooling: Migrated from legacy ESLint config to flat config format
  • GitHub Actions: Updated CI workflow to use latest GitHub Actions (v4) and test on Node.js 20.x, 22.x, 24.x
  • Dependencies: Updated all dependencies to latest compatible versions
  • Configuration: Replaced .eslintrc.js and .prettierrc.js with modern eslint.config.js and prettier.config.js
  • Async Methods: Made makeExecutableSchema and generateGraphQLSchema methods async for better async/await support
  • Preparation: Improved GraphQL schema preparation with promise-based mechanism to prevent multiple concurrent preparations

Removed Features

  • Removed file upload examples and documentation
  • Removed legacy Apollo Server 2/3 configuration options

Documentation

  • Updated README.md to reflect Apollo Server 5 compatibility
  • Improved examples and removed outdated features

Typescript types

  • Improved Typescript d.ts file
  • Exported helper interfaces ApolloServiceSettings, ApolloServiceMethods, ApolloServiceLocalVars to support Moleculer 0.15 Service generics.
  • Augmented Moleculer ActionSchema with graphql property.
  • Typescript CI tests.

Full Changelog: v0.3.8...v0.4.0

v0.3.8

23 Apr 16:04

Choose a tag to compare

What's Changed

  • Add 'graphql.invalidate' event, to invalidate GraphQL Schema manually. by @hotlong in #122

New Contributors

Full Changelog: v0.3.7...v0.3.8

v0.3.7

04 Oct 20:05

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.6...v0.3.7

v0.3.6

17 Jan 19:44

Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.3.5...v0.3.6

v0.3.5

30 Nov 17:58

Choose a tag to compare

Changes

  • Prepare params before action calling. #98
  • update dependencies

v0.3.4

09 Apr 14:32

Choose a tag to compare

Changes

  • disable timeout for ws.
  • gracefully stop Apollo Server.
  • add onAfterCall support.

v0.3.3

08 Sep 16:27

Choose a tag to compare

Changes

  • add ctx.meta.$args to store additional arguments in case of file uploading.

v0.3.2

30 Aug 08:25

Choose a tag to compare

Changes

  • update dependencies
  • new createPubSub & makeExecutableSchema methods
  • fix context in WS by @Hugome. #64

v0.3.1

03 Jun 21:08

Choose a tag to compare

Changes

  • update dependencies
  • No longer installing subscription handlers when disabled by @Kauabunga. #64

v0.3.0

04 Apr 15:54

Choose a tag to compare

Breaking changes

  • transform Uploads to Streams before calling action by @dylanwulf. #71

Changes

  • update dependencies