Skip to content

Update Typescript #4870

@dyladan

Description

@dyladan

Selected option 2

  • Update typescript to 5.x
  • Document our new minimum typescript version
    • Document a policy for updating typescript in minor versions in the future
  • Add a test project to ensure that minimum typescript version can compile using the updated otel dependencies

Option 1 - Update and downlevel types

  • Update typescript to latest 4.x version
  • Use downlevel-dts to downlevel types to 4.4 (previously supported version)
  • Use typesVersions so that old Typescript versions use 4.4 types
  • Add a test project to ensure that typescript 4.4 can compile using the updated otel dependencies
  • Close Typescript compatiblitly #2329 if not already closed

Option 2 - Update and raise our minimum typescript version

  • Update typescript to some later version that allows us to update our dependencies (see chore(deps): lock file maintenance #4834)
  • Document our new minimum typescript version
  • Possibly log warnings before we actually make this change in order to give users who will be broken a warning

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions