protobufjs / protobuf.js

Protocol Buffers for JavaScript & TypeScript.
Other
9.77k stars 1.4k forks source link

I found that @protobufjs/utf8 on npm or yarn is still the old code version. #1924

Open Amadeuss123 opened 11 months ago

Amadeuss123 commented 11 months ago

protobuf.js version: <7.2.4>

Sorry to disturb. Recently, I encountered a UTF decoding bug during coding, but I noticed that this bug was fixed 3 years ago, here is the commit. However, the latest upload time of @protobufjs/utf8 on npm is still 7 years ago, and it still contains the old problematic code. When can it be republished?

TomWright commented 9 months ago

For anyone who is blocked by this, you can work around it using yarn resolutions with the following:

{
  "dependencies": {
    "protobufjs": "7.2.5"
  },
  "resolutions": {
    "@protobufjs/utf8": "https://gitpkg.now.sh/protobufjs/protobuf.js/lib/utf8?protobufjs-v7.2.5"
  }
}