Skip to content

Update Express types files, allow further upgrades#5352

Merged
glasser merged 1 commit into
mainfrom
glasser/express-types-upgrade
Jun 22, 2021
Merged

Update Express types files, allow further upgrades#5352
glasser merged 1 commit into
mainfrom
glasser/express-types-upgrade

Conversation

@glasser

@glasser glasser commented Jun 22, 2021

Copy link
Copy Markdown
Member

Our versions for @types/express and @types/express-serve-static-core
have gotten a bit out of date. They are already upgraded on
release-3.0 but that's not quite latest yet. Somehow despite the
fact that neither express nor serve-static have had a new version in
two years, the DefinitelyTyped packages for them keep getting
backwards-incompatible changes. This is apparently helpful for some
users who have upgraded some other packages.

Because of how finicky these types are (eg specific @types/express
versions depends on specific @types/express-serve-static-core versions
without appropriate version dependencies between them) I do generally
think it's best to depend on exact versions here. However I also don't
want to have to make any more AS2 releases. So I'm making these into
caret dependencies but don't intend to make a similar change on
release-3.0.

Fixes #5350.

Our versions for `@types/express` and `@types/express-serve-static-core`
have gotten a bit out of date. They are already upgraded on
`release-3.0` but that's not quite `latest` yet. Somehow despite the
fact that neither `express` nor `serve-static` have had a new version in
two years, the DefinitelyTyped packages for them keep getting
backwards-incompatible changes. This is apparently helpful for some
users who have upgraded some other packages.

Because of how finicky these types are (eg specific `@types/express`
versions depends on specific `@types/express-serve-static-core` versions
without appropriate version dependencies between them) I do generally
think it's best to depend on exact versions here. However I also don't
want to have to make any more AS2 releases. So I'm making these into
caret dependencies but don't intend to make a similar change on
`release-3.0`.

Fixes #5350.
@glasser glasser enabled auto-merge (squash) June 22, 2021 19:24
@glasser glasser merged commit dc8693f into main Jun 22, 2021
@glasser glasser deleted the glasser/express-types-upgrade branch June 22, 2021 19:28
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Apr 21, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Strict type versions in apollo-server-express require update

1 participant