Skip to content

Client version in new release marked as beta in NPM registry #3118

@jannis-adamek-dt

Description

@jannis-adamek-dt

Description

Hello,
First of all, thank you for all the hard work and dedication you've put into maintaining Node-Redis!

I noticed that the redis client incorrectly reports its version as 5.9.0-beta.3 in the new release 5.9.0.
I'm wondering if there might have been a mistake with the deployment or a caching issue.

# In a fresh Node.js project
npm install node-redis@5.9.0
grep "version"  node_modules/@redis/client/dist/package.json # "version": "5.9.0-beta.3",

In the parent package-lock.json:

"node_modules/@redis/client": {
  "version": "5.9.0",
  "resolved": "https://registry.npmjs.org/@redis/client/-/client-5.9.0.tgz",
  "integrity": "sha512-EI0Ti5pojD2p7TmcS7RRa+AJVahdQvP/urpcSbK/K9Rlk6+dwMJTQ354pCNGCwfke8x4yKr5+iH85wcERSkwLQ==",
  "license": "MIT",
  "dependencies": {
    "cluster-key-slot": "1.1.2"
  },
  "engines": {
    "node": ">= 18"
  }
},

It claims that the client is on version 5.9.0, but when I actually download the package from the registry:

wget https://registry.npmjs.org/@redis/client/-/client-5.9.0.tgz
mkdir client-5.9.0
tar -xzvf client-5.9.0.tgz -C client-5.9.0
grep "version" client-5.9.0/package.json # "version": "5.9.0",
# but inside the dist/
grep "version" client-5.9.0/dist/package.json # "version": "5.9.0-beta

I could guess that this may be due to caching if 5.9.0-beta.3 and 5.9.0 share the same content.

Best,
Jannis

Node.js Version

v22.20.0

Redis Server Version

No response

Node Redis Version

5.9.0

Platform

Linux

Logs

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions