gund / eslint-plugin-deprecation

ESLint rule that reports usage of deprecated code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript v5 support

gund opened this issue Β· comments

This issue tracks a support for Typescript v5.

Before the following steps are done Typescript v5 support will NOT land into latest release:

  • Update Typescript to v5 in dev dependencies and make sure tests are passing
  • Add backwards compatibility tests for Typescript v4
  • Add stable Typescript v5 to peer dependencies
  • Typescript v5 is released as stable

If you already would like to play around with Typescript v5 beta you can try @next NPM tag version of this package which includes Typescript v5 beta in it's peer dependencies.

If you find any issues with it you may report them in this issue or open a PR to next branch with a fix.
Any fixes merged into next branch will be automatically released under @next NPM release tag.

There are some issues with tsconfig.test.json, which cause tests to fail, all of them. May be packages updating and project reconfiguring will solve.

Please prioritize this issue.
The TypeScript peerDependency prevents me from upgrading our projects to TypeScript 5.0...

@josundt you can try installing 1.4.0-next.1

Final release for TS v5 support has been published in v1.4.0-next.2!

Could you please try it out on your projects and let me know if it's working fine so we can proceed with the latest release?

@gund I've just tried v1.4.0-next.2 with TS v5.0.3 and getting FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory as on v1.3.0. (https://gist.github.com/amikheychik/2c138a6f7be88c0d2723d52834bde2cd)

@gund I've just tried v1.4.0-next.2 with TS v5.0.3 and getting FATAL ERROR: Reached heap limit Allocation failed - JavaScript heap out of memory as on v1.3.0. (gist.github.com/amikheychik/2c138a6f7be88c0d2723d52834bde2cd)

Same issue on my side

Wow that is unexpected as we did not change any code at all since the last release...
Does anyone have more logs maybe on last stack trace to see maybe there is somewhere an infinity loop or something?
I have completely no idea where to look right now πŸ€·β€β™‚οΈ

Btw are you testing new version with the updated typescript-eslint package versions?
At least v5.55.0 is needed for TS5 compatibility.

I'm using v5.57.0 and typescript @ v5.0.3. I digged down a bit and it seems, that the error isn't related to eslint-plugin-deprecation as the issue also occurs if I remove this package and the related configuration.
@amikheychik can you confirm this?

@maxnowack you're right. I just assumed it's eslint-plugin-deprecation, because it was the only one with version limitation and not latest.

@gund sorry about false alarm :)

Oh well that's good. But does it mean that eslint and typescript v5 does not work in general right now?
Did you manage to execute any rules at all with the typescript v5? Maybe just with this rule enabled to see if we can release v5 support to latest?

@maxnowack it looks like in my case, the problem is with tsconfig.json: I'm extending a configuration from another package and it was not working. Once I copied the config, the build started working and after that the linters worked fine too.

Nice, so we have one confirmation that support for v5 works. Let's wait for a few more and then we can publish it on latest.
I think by the end of today we can do it.
Also there is still probably a 24hr cooldown from NPM until we can publish next release as it was published yesterday by mistake in the automation - so anyway we have to wait a bit 😁

I tried it in a NestJS project together with several other ESLint plugins and it worked fine. πŸ‘

I haven't tried v1.4.0-next.2 yet, but I was using v1.4.0-next.1 in a few projects without issue.

Same experience as mscharley

πŸŽ‰ This issue has been resolved in version 1.4.0 πŸŽ‰

The release is available on:

Your semantic-release bot πŸ“¦πŸš€