Skip to content

Commit

Permalink
updated the list in alphabetic order and added comments for tags
Browse files Browse the repository at this point in the history
  • Loading branch information
kbukum1 committed Jul 17, 2024
1 parent 4268c3c commit a279ac1
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions npm_and_yarn/lib/dependabot/npm_and_yarn/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@ class Version < Dependabot::Version

# These are possible npm versioning tags that can be used in place of a version.
# See https://docs.npmjs.com/cli/v10/commands/npm-dist-tag#purpose for more details.
VERSION_TAGS = T.let(%w(
latest
stable
beta
dev
canary
next
rc
alpha
experimental
nightly
release
legacy
).freeze.map(&:freeze), T::Array[String])
VERSION_TAGS = T.let([
"alpha", # Alpha version, early testing phase
"beta", # Beta version, more stable than alpha
"canary", # Canary version, often used for cutting-edge builds
"dev", # Development version, ongoing development
"experimental", # Experimental version, unstable and new features
"latest", # Latest stable version, used by npm to identify the current version of a package
"legacy", # Legacy version, older version maintained for compatibility
"next", # Next version, used by some projects to identify the upcoming version
"nightly", # Nightly build, daily builds often including latest changes
"rc", # Release candidate, potential final version
"release", # General release version
"stable" # Stable version, thoroughly tested and stable
].freeze.map(&:freeze), T::Array[String])

VERSION_PATTERN = T.let(Gem::Version::VERSION_PATTERN + '(\+[0-9a-zA-Z\-.]+)?', String)
ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})?\s*\z/
Expand Down

0 comments on commit a279ac1

Please sign in to comment.