Typescript 5
Hey folks!
Just wondering, are there any plans to support typescript 5?
As more and more packages make the jump, we start missing out on more and more features (and security patches) - once packages migrate they don't tend to support older versions.
I've managed to patch-package most of my dependencies to avoid problems but I wanted to upgrade to Storybook 7 to find even it doesn't really support anything below 5.1.
As always, no pressure! Just curious to see if we can JFDI or whether we should start curating a list (if you haven't already)
EDIT: Storybook didn't intend to drop ts<5 and are looking at supporting ts 4
We agree that this is something we need to prioritize. However, we need to determine the best path forward as Kibana will not yet be on Typescript 5.
We will perform a spike to see how this works with Kibana.
You may be able to support Typescript 5 as a peer dependency without using any of its new features, i.e. support both! typescript: ~4.3 || ... || ~5.0 || ~5.1
hello everyone, just wanted to know if there any update?
@tkajtoch is spiking this out. Expect an update from him soon.
We're actively working on getting EUI on TypeScript 5.
Here's the issue list you can check to track this effort:
- #7340 - update all existing typings to be compatible with TS 5 (PR open)
- #7344 - update docs
prop-loaderto support the updated TS compiler API and upgradetypescriptto version 5
I encountered issues last week while trying to update our prop-loader but will look into it again this week.
However, please keep in mind that you can already use EUI in applications running on Typescript 5. It will warn you during the install that it's incompatible (because we have typescript@4 set as a peer dependency), but I verified it works totally fine in React 18 and Next.js 13 based apps.
However, please keep in mind that you can already use EUI in applications running on Typescript 5. It will warn you during the install that it's incompatible (because we have typescript@4 set as a peer dependency), but I verified it works totally fine in React 18 and Next.js 13 based apps.
Could we do a release with multi-version support then? i.e. typescript: ~4.3 || ... || ~5.0 || ~5.1 || ...
The EUI codebase is already compatible with TypeScript 5.x. The reason we're currently labeling this as blocked is that our current props table generator, which we use for the EUI docs website, is incompatible with TS 5, and we're waiting until the new EUI website is up and running. You can track this effort in #7401.