virtual icon indicating copy to clipboard operation
virtual copied to clipboard

`npm install @tanstack/react-virtual@latest` installs alpha.0, while beta.18 is actually latest

Open everdimension opened this issue 3 years ago • 2 comments

Describe the bug

Pretty much the title, thanks!

Your minimal, reproducible example

Steps to reproduce

npm install @tanstack/react-virtual@latest installs 3.0.0-alpha.0, while 3.0.0-beta.18 is expected

Expected behavior

3.0.0-beta.18

How often does this bug happen?

No response

Screenshots or Videos

No response

Platform

macOS 11.5.1

tanstack-virtual version

v3.0.0

TypeScript version

No response

Additional context

No response

Terms & Code of Conduct

  • [X] I agree to follow this project's Code of Conduct
  • [X] I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.

everdimension avatar Aug 26 '22 12:08 everdimension

This is correct because all these releases are tagged with beta.

KevinVandy avatar Aug 26 '22 12:08 KevinVandy

npm install @tanstack/react-virtual installed the alpha version for me. I only noticed once I run the application and I got an error. To find that in the alpha only useVirtual is exposed.

Also to note the alpha is a breaking change. useVirtual instead of useVirtualizer. And it's not compatible with the existing doc as well.

MohamedLamineAllal avatar Sep 02 '22 22:09 MohamedLamineAllal

I also got the same error, please public beta version to public v3. Many thank ^^

jvinhit avatar Dec 25 '22 14:12 jvinhit

I also got the same error, please public beta version to public v3. Many thank ^^

This library is still in beta so you have to add@beta to the package name. This is intentional.

KevinVandy avatar Dec 25 '22 14:12 KevinVandy

This is quite confusing. I also ran into this and had to check why the api differs from the documentation. I would expect to get v2 with @latest. v3@beta would be fine as well, but alpha doesn't make any sense.

lgraubner avatar Jan 09 '23 22:01 lgraubner

this only makes sense if the existing latest tag was an actual stable version, but since it is currently pointed at an alpha, the beta is actually "more latest" than the current "latest"

alok-runner avatar Jan 23 '23 13:01 alok-runner

Agree with @alok-runner. I'm pretty that such a small DX issue is taking some part of the devs out using the package

maksym-boytsov avatar Feb 27 '23 16:02 maksym-boytsov

@tannerlinsley This tripped me up as well. Might want to double check this. It means that following the official docs results in an error right off the bat!

wub avatar Jun 27 '23 02:06 wub

IMHO the latest version should be the beta, not the alpha.

When I run pnpm update --latest It reverts to the alpha version even if I specify "@tanstack/react-virtual": "3.0.0-beta.54",

the same happens with yarn. That's because of how versions are tagged.

itsjavi avatar Jul 24 '23 12:07 itsjavi

We're releasing soon on main. Stay tuned.

tannerlinsley avatar Aug 29 '23 19:08 tannerlinsley