PlasmoHQ / plasmo

🧩 The Browser Extension Framework
https://www.plasmo.com
MIT License
10.14k stars 350 forks source link

[BUG] 4-digit version number not supported (compile error) #849

Open zystudios opened 8 months ago

zystudios commented 8 months ago

What happened?

https://developer.chrome.com/docs/extensions/reference/manifest/version

Manifest - Version

One to four dot-separated integers identifying the version of this extension. A couple of rules apply to the integers:

The integers must be between 0 and 65535, inclusive. Non-zero integers can't start with 0. For example, 032 is invalid because it begins with a zero. They must not be all zero. For example, 0 and 0.0.0.0 are invalid while 0.1.0.0 is valid. Here are some examples of valid versions:


I read the Google docs that the plugin supports 4-digit version numbers, but if I change the version number in package.json, the compile reports an error, 3-digit does not!

package.json
"version": "1.0.1.1", // compile  error
"version": "1.0.1", //  compile success

image

Version

Latest

What OS are you seeing the problem on?

Windows

What browsers are you seeing the problem on?

Chrome

Relevant log output

No response

(OPTIONAL) Contribution

Code of Conduct