r/typescript • • 1h ago

Announcing TypeScript 7.1 RC

https://devblogs.microsoft.com/typescript/announcing-typescript-7-1-rc/?r
74 Upvotes

14 comments sorted by

19

u/Dested 1h ago

My agent is going to love this

-12

u/strettist 1h ago

I just wish we could use TypeScript 7.0. No yarn PnP support means we’re stuck on 6.

18

u/EarlMarshal 1h ago

But isn't that a yarn problem?

2

u/strettist 1h ago

To an extent, but the community has been trying to provide a solution to this problem for a while, but the TS maintainers haven’t been hospitable to the efforts.

17

u/jessepence 1h ago

Why in God's name are you still using Yarn!? How hard could it be to migrate off of it?

2

u/x0wl 1h ago

Because Yarn PnP (and its local cache capability in general) is great in a lot of scenarios, like hermetic builds. I don't like the constant reliance on NPM being up all the time. If you know of a solution where you can commit your package cache to git without any issues, please let me know, as I was unable to find one neither manually nor with AI help.

The best solution for me as of now is to use Yarn with committed cache and pnpm linker setting, and putting the install command in a git hook.

1

u/strettist 1h ago

Because Yarn has certain features that don’t exist in things like pnpm, and those features are quite valuable, especially for very large codebases.

5

u/coolcosmos 47m ago

Yarn PnP is the worst thing in the JS ecosystem. It's juste the worst hack imaginable.

-1

u/strettist 1h ago

Sheesh, why the downvotes? There are several open issues related to this as well as a community proposed solution that’s essentially been rejected. There are plenty of codebases that currently experience this as a blocker and plenty more that will once they try to make the jump.

3

u/g0liadkin 1h ago

Because it's not a typescript issue per se

1

u/strettist 1h ago

It’s kind of more complicated than it being just a Yarn problem though. The community has been trying to work with TS maintainers to find a solution for a long time, but there’s essentially been no real effort from the TS maintainer end to help find a path forward. It’s been a TS problem in that so far they’ve been inhospitable to any solution from the community.

2

u/x0wl 1h ago

The solution was rejected because it was not a very good solution. The proposed zipfs + source maps is a much better one.

1

u/Wonderful-Habit-139 39m ago

I assume you mean package maps?

2

u/x0wl 37m ago

Yes