Skip to content

(WIP)Chore: Migrate to apollo-server-5#4084

Draft
CGoodwin90 wants to merge 1 commit into
mainfrom
apollo-server-express-update
Draft

(WIP)Chore: Migrate to apollo-server-5#4084
CGoodwin90 wants to merge 1 commit into
mainfrom
apollo-server-express-update

Conversation

@CGoodwin90
Copy link
Copy Markdown
Contributor

General Checklist

  • Affected Issues have been mentioned in the Closing issues section
  • Documentation has been written/updated
  • PR title is ready for inclusion in changelog

Database Migrations

  • If your PR contains a database migation, it MUST be the latest in date order alphabetically

Description

Migrates from the currently deprecated apollo-server-express@3.13.0 to apollo/server@5.5.1.

  • Updated app.ts to define middleware via expressMiddleware instead of applyMiddleware
  • Updated removed error classes from v3 (AuthenticationError & ApolloError) to GraphQLError
  • Updates graphql & graphql-subscriptions

https://www.apollographql.com/docs/apollo-server/migration-from-v3

@github-actions
Copy link
Copy Markdown

Overview

Image reference testlagoon/api:main lagoon/api:ci-latest
- digest f54ea1541782 dfdda7a3e4b7
- tag main ci-latest
- vulnerabilities critical: 4 high: 64 medium: 52 low: 7 critical: 4 high: 64 medium: 51 low: 7
- platform linux/amd64 linux/amd64
- size 151 MB 183 MB (+32 MB)
- packages 1568 1566 (-2)
Base Image node:22-alpine
also known as:
22-alpine3.23
22.22-alpine
22.22-alpine3.23
jod-alpine
jod-alpine3.23
node:22-alpine
also known as:
22-alpine3.23
22.22-alpine
22.22-alpine3.23
jod-alpine
jod-alpine3.23
- vulnerabilities critical: 0 high: 1 medium: 4 low: 0 critical: 0 high: 1 medium: 4 low: 0
Packages and Vulnerabilities (67 package changes and 0 vulnerability changes)
  • ➕ 19 packages added
  • ➖ 21 packages removed
  • ♾️ 27 packages changed
  • 1290 packages unchanged
Changes for packages of type npm (67 changes)
Package Version
testlagoon/api:main
Version
lagoon/api:ci-latest
@apollo/cache-control-types 1.0.3
♾️ @apollo/protobufjs 1.2.7 1.2.8
@apollo/server 5.5.1
@apollo/server-gateway-interface 2.0.0
@apollo/server/errors UNKNOWN
@apollo/server/plugin/cachecontrol UNKNOWN
@apollo/server/plugin/disabled UNKNOWN
@apollo/server/plugin/disablesuggestions UNKNOWN
@apollo/server/plugin/drainhttpserver UNKNOWN
@apollo/server/plugin/inlinetrace UNKNOWN
@apollo/server/plugin/landingpage/default UNKNOWN
@apollo/server/plugin/schemareporting UNKNOWN
@apollo/server/plugin/subscriptioncallback UNKNOWN
@apollo/server/plugin/usagereporting UNKNOWN
@apollo/server/standalone UNKNOWN
♾️ @apollo/usage-reporting-protobuf 4.1.1 4.1.2
@apollo/utils.createhash 3.0.1
♾️ @apollo/utils.dropunuseddefinitions 1.1.0 2.0.1
@apollo/utils.fetcher 3.1.0
@apollo/utils.isnodelike 3.0.0
♾️ @apollo/utils.keyvaluecache 1.0.2 4.0.0
♾️ @apollo/utils.logger 1.0.1 3.0.0
♾️ @apollo/utils.printwithreducedwhitespace 1.1.0 2.0.1
♾️ @apollo/utils.removealiases 1.0.0 2.0.1
♾️ @apollo/utils.sortast 1.1.0 2.0.1
♾️ @apollo/utils.stripsensitiveliterals 1.2.0 2.0.1
♾️ @apollo/utils.usagereporting 1.0.1 2.1.0
@apollo/utils.withrequired 3.0.0
@apollographql/apollo-tools 0.5.4
@apollographql/graphql-playground-html 1.6.29
@as-integrations/express4 1.1.2
♾️ @graphql-tools/merge 9.1.1 9.1.9
@graphql-tools/mock 8.7.20
♾️ @graphql-tools/schema 9.0.19 10.0.33
♾️ @graphql-tools/utils 9.2.1 11.1.0
@josephg/resolvable 1.0.1
@types/accepts 1.3.7
@types/cors 2.8.12
♾️ @types/serve-static 2.2.0 1.15.10
apollo-datasource 3.3.2
apollo-reporting-protobuf 3.4.0
apollo-server-core 3.13.0
apollo-server-env 4.2.1
apollo-server-errors 3.3.1
apollo-server-express 3.13.0
apollo-server-plugin-base 3.7.2
apollo-server-types 3.8.0
♾️ body-parser 1.20.3 2.2.2
♾️ content-type 1.0.5 2.0.0
cssfilter 0.0.10
♾️ finalhandler 1.3.1 2.1.1
♾️ graphql 16.11.0 16.14.0
♾️ graphql-subscriptions 1.2.1 2.0.0
♾️ http-errors 2.0.0 2.0.1
♾️ iconv-lite 0.7.0 0.7.2
♾️ media-typer 0.3.0 1.1.0
♾️ mime-types 2.1.35 3.0.2
node-abort-controller 3.1.1
♾️ raw-body 2.5.2 3.0.2
♾️ statuses 2.0.1 2.0.2
tr46 0.0.3
♾️ type-is 1.6.18 2.1.0
value-or-promise 1.0.12
webidl-conversions 3.0.1
♾️ whatwg-mimetype 3.0.0 4.0.0
whatwg-url 5.0.0
xss 1.0.15

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants