Support semver build metadata in package versions

What I Wanted to Do

I wanted to specify version like this 1.0.1+foo

What Happened Instead

NPM strips build metadata from version

Reproduction Steps

npm init
npm publish

Platform Info

$ npm --versions
{ 'memes.cool.js': '1.0.1+foo',
  npm: '6.7.0',
  ares: '1.15.0',
  brotli: '1.0.7',
  cldr: '34.0',
  http_parser: '2.8.0',
  icu: '63.1',
  llhttp: '1.1.1',
  modules: '67',
  napi: '4',
  nghttp2: '1.34.0',
  node: '11.11.0',
  openssl: '1.1.1a',
  tz: '2018e',
  unicode: '11.0',
  uv: '1.26.0',
  v8: '7.0.276.38-node.18',
  zlib: '1.2.11' }
$ node -p process.platform
darwin

(Moved to #idea as I think npm is working as intended.)

Is this to publish a single copy of a given version number with some extra metadata? (As opposed to multiple variations of a single version number for different platforms, say.)

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.