Skip to content

[Deps] Pin typescript to ~ not ^ #5146

@j-m

Description

@j-m

Typescript, surprisingly doesn't follow semver (microsoft/TypeScript#14116) but npm's ~ accuracy follows their policy of non-breaking patch (equivalent) changes.
For example, in typescript 4.4 the type of error in a catch clause is no longer any but unknown.
While this may not affect EUI directly, as typescript is a peer dependency, npm 7 complains that I'm installing 4.2 not 4.4.
My expectation would be for EUI to release a major version when you use a new typescript "minor", but I understand that this may be an unreasonable request, this is a highly debated (heated) topic in the npm community.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions