Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

482 lines
17 KiB

  1. .TH "SEMVER" "7" "August 2018" "" ""
  2. .SH "NAME"
  3. \fBsemver\fR \- The semantic versioner for npm
  4. .SH Install
  5. .P
  6. .RS 2
  7. .nf
  8. npm install \-\-save semver
  9. `
  10. .fi
  11. .RE
  12. .SH Usage
  13. .P
  14. As a node module:
  15. .P
  16. .RS 2
  17. .nf
  18. const semver = require('semver')
  19. semver\.valid('1\.2\.3') // '1\.2\.3'
  20. semver\.valid('a\.b\.c') // null
  21. semver\.clean(' =v1\.2\.3 ') // '1\.2\.3'
  22. semver\.satisfies('1\.2\.3', '1\.x || >=2\.5\.0 || 5\.0\.0 \- 7\.2\.3') // true
  23. semver\.gt('1\.2\.3', '9\.8\.7') // false
  24. semver\.lt('1\.2\.3', '9\.8\.7') // true
  25. semver\.valid(semver\.coerce('v2')) // '2\.0\.0'
  26. semver\.valid(semver\.coerce('42\.6\.7\.9\.3\-alpha')) // '42\.6\.7'
  27. .fi
  28. .RE
  29. .P
  30. As a command\-line utility:
  31. .P
  32. .RS 2
  33. .nf
  34. $ semver \-h
  35. SemVer 5\.3\.0
  36. A JavaScript implementation of the http://semver\.org/ specification
  37. Copyright Isaac Z\. Schlueter
  38. Usage: semver [options] <version> [<version> [\.\.\.]]
  39. Prints valid versions sorted by SemVer precedence
  40. Options:
  41. \-r \-\-range <range>
  42. Print versions that match the specified range\.
  43. \-i \-\-increment [<level>]
  44. Increment a version by the specified level\. Level can
  45. be one of: major, minor, patch, premajor, preminor,
  46. prepatch, or prerelease\. Default level is 'patch'\.
  47. Only one version may be specified\.
  48. \-\-preid <identifier>
  49. Identifier to be used to prefix premajor, preminor,
  50. prepatch or prerelease version increments\.
  51. \-l \-\-loose
  52. Interpret versions and ranges loosely
  53. \-c \-\-coerce
  54. Coerce a string into SemVer if possible
  55. (does not imply \-\-loose)
  56. Program exits successfully if any valid version satisfies
  57. all supplied ranges, and prints all satisfying versions\.
  58. If no satisfying versions are found, then exits failure\.
  59. Versions are printed in ascending order, so supplying
  60. multiple versions to the utility will just sort them\.
  61. .fi
  62. .RE
  63. .SH Versions
  64. .P
  65. A "version" is described by the \fBv2\.0\.0\fP specification found at
  66. http://semver\.org/\|\.
  67. .P
  68. A leading \fB"="\fP or \fB"v"\fP character is stripped off and ignored\.
  69. .SH Ranges
  70. .P
  71. A \fBversion range\fP is a set of \fBcomparators\fP which specify versions
  72. that satisfy the range\.
  73. .P
  74. A \fBcomparator\fP is composed of an \fBoperator\fP and a \fBversion\fP\|\. The set
  75. of primitive \fBoperators\fP is:
  76. .RS 0
  77. .IP \(bu 2
  78. \fB<\fP Less than
  79. .IP \(bu 2
  80. \fB<=\fP Less than or equal to
  81. .IP \(bu 2
  82. \fB>\fP Greater than
  83. .IP \(bu 2
  84. \fB>=\fP Greater than or equal to
  85. .IP \(bu 2
  86. \fB=\fP Equal\. If no operator is specified, then equality is assumed,
  87. so this operator is optional, but MAY be included\.
  88. .RE
  89. .P
  90. For example, the comparator \fB>=1\.2\.7\fP would match the versions
  91. \fB1\.2\.7\fP, \fB1\.2\.8\fP, \fB2\.5\.3\fP, and \fB1\.3\.9\fP, but not the versions \fB1\.2\.6\fP
  92. or \fB1\.1\.0\fP\|\.
  93. .P
  94. Comparators can be joined by whitespace to form a \fBcomparator set\fP,
  95. which is satisfied by the \fBintersection\fR of all of the comparators
  96. it includes\.
  97. .P
  98. A range is composed of one or more comparator sets, joined by \fB||\fP\|\. A
  99. version matches a range if and only if every comparator in at least
  100. one of the \fB||\fP\-separated comparator sets is satisfied by the version\.
  101. .P
  102. For example, the range \fB>=1\.2\.7 <1\.3\.0\fP would match the versions
  103. \fB1\.2\.7\fP, \fB1\.2\.8\fP, and \fB1\.2\.99\fP, but not the versions \fB1\.2\.6\fP, \fB1\.3\.0\fP,
  104. or \fB1\.1\.0\fP\|\.
  105. .P
  106. The range \fB1\.2\.7 || >=1\.2\.9 <2\.0\.0\fP would match the versions \fB1\.2\.7\fP,
  107. \fB1\.2\.9\fP, and \fB1\.4\.6\fP, but not the versions \fB1\.2\.8\fP or \fB2\.0\.0\fP\|\.
  108. .SS Prerelease Tags
  109. .P
  110. If a version has a prerelease tag (for example, \fB1\.2\.3\-alpha\.3\fP) then
  111. it will only be allowed to satisfy comparator sets if at least one
  112. comparator with the same \fB[major, minor, patch]\fP tuple also has a
  113. prerelease tag\.
  114. .P
  115. For example, the range \fB>1\.2\.3\-alpha\.3\fP would be allowed to match the
  116. version \fB1\.2\.3\-alpha\.7\fP, but it would \fInot\fR be satisfied by
  117. \fB3\.4\.5\-alpha\.9\fP, even though \fB3\.4\.5\-alpha\.9\fP is technically "greater
  118. than" \fB1\.2\.3\-alpha\.3\fP according to the SemVer sort rules\. The version
  119. range only accepts prerelease tags on the \fB1\.2\.3\fP version\. The
  120. version \fB3\.4\.5\fP \fIwould\fR satisfy the range, because it does not have a
  121. prerelease flag, and \fB3\.4\.5\fP is greater than \fB1\.2\.3\-alpha\.7\fP\|\.
  122. .P
  123. The purpose for this behavior is twofold\. First, prerelease versions
  124. frequently are updated very quickly, and contain many breaking changes
  125. that are (by the author's design) not yet fit for public consumption\.
  126. Therefore, by default, they are excluded from range matching
  127. semantics\.
  128. .P
  129. Second, a user who has opted into using a prerelease version has
  130. clearly indicated the intent to use \fIthat specific\fR set of
  131. alpha/beta/rc versions\. By including a prerelease tag in the range,
  132. the user is indicating that they are aware of the risk\. However, it
  133. is still not appropriate to assume that they have opted into taking a
  134. similar risk on the \fInext\fR set of prerelease versions\.
  135. .SS Prerelease Identifiers
  136. .P
  137. The method \fB\|\.inc\fP takes an additional \fBidentifier\fP string argument that
  138. will append the value of the string as a prerelease identifier:
  139. .P
  140. .RS 2
  141. .nf
  142. semver\.inc('1\.2\.3', 'prerelease', 'beta')
  143. // '1\.2\.4\-beta\.0'
  144. .fi
  145. .RE
  146. .P
  147. command\-line example:
  148. .P
  149. .RS 2
  150. .nf
  151. $ semver 1\.2\.3 \-i prerelease \-\-preid beta
  152. 1\.2\.4\-beta\.0
  153. .fi
  154. .RE
  155. .P
  156. Which then can be used to increment further:
  157. .P
  158. .RS 2
  159. .nf
  160. $ semver 1\.2\.4\-beta\.0 \-i prerelease
  161. 1\.2\.4\-beta\.1
  162. .fi
  163. .RE
  164. .SS Advanced Range Syntax
  165. .P
  166. Advanced range syntax desugars to primitive comparators in
  167. deterministic ways\.
  168. .P
  169. Advanced ranges may be combined in the same way as primitive
  170. comparators using white space or \fB||\fP\|\.
  171. .SS Hyphen Ranges \fBX\.Y\.Z \- A\.B\.C\fP
  172. .P
  173. Specifies an inclusive set\.
  174. .RS 0
  175. .IP \(bu 2
  176. \fB1\.2\.3 \- 2\.3\.4\fP := \fB>=1\.2\.3 <=2\.3\.4\fP
  177. .RE
  178. .P
  179. If a partial version is provided as the first version in the inclusive
  180. range, then the missing pieces are replaced with zeroes\.
  181. .RS 0
  182. .IP \(bu 2
  183. \fB1\.2 \- 2\.3\.4\fP := \fB>=1\.2\.0 <=2\.3\.4\fP
  184. .RE
  185. .P
  186. If a partial version is provided as the second version in the
  187. inclusive range, then all versions that start with the supplied parts
  188. of the tuple are accepted, but nothing that would be greater than the
  189. provided tuple parts\.
  190. .RS 0
  191. .IP \(bu 2
  192. \fB1\.2\.3 \- 2\.3\fP := \fB>=1\.2\.3 <2\.4\.0\fP
  193. .IP \(bu 2
  194. \fB1\.2\.3 \- 2\fP := \fB>=1\.2\.3 <3\.0\.0\fP
  195. .RE
  196. .SS X\-Ranges \fB1\.2\.x\fP \fB1\.X\fP \fB1\.2\.*\fP \fB*\fP
  197. .P
  198. Any of \fBX\fP, \fBx\fP, or \fB*\fP may be used to "stand in" for one of the
  199. numeric values in the \fB[major, minor, patch]\fP tuple\.
  200. .RS 0
  201. .IP \(bu 2
  202. \fB*\fP := \fB>=0\.0\.0\fP (Any version satisfies)
  203. .IP \(bu 2
  204. \fB1\.x\fP := \fB>=1\.0\.0 <2\.0\.0\fP (Matching major version)
  205. .IP \(bu 2
  206. \fB1\.2\.x\fP := \fB>=1\.2\.0 <1\.3\.0\fP (Matching major and minor versions)
  207. .RE
  208. .P
  209. A partial version range is treated as an X\-Range, so the special
  210. character is in fact optional\.
  211. .RS 0
  212. .IP \(bu 2
  213. \fB""\fP (empty string) := \fB*\fP := \fB>=0\.0\.0\fP
  214. .IP \(bu 2
  215. \fB1\fP := \fB1\.x\.x\fP := \fB>=1\.0\.0 <2\.0\.0\fP
  216. .IP \(bu 2
  217. \fB1\.2\fP := \fB1\.2\.x\fP := \fB>=1\.2\.0 <1\.3\.0\fP
  218. .RE
  219. .SS Tilde Ranges \fB~1\.2\.3\fP \fB~1\.2\fP \fB~1\fP
  220. .P
  221. Allows patch\-level changes if a minor version is specified on the
  222. comparator\. Allows minor\-level changes if not\.
  223. .RS 0
  224. .IP \(bu 2
  225. \fB~1\.2\.3\fP := \fB>=1\.2\.3 <1\.(2+1)\.0\fP := \fB>=1\.2\.3 <1\.3\.0\fP
  226. .IP \(bu 2
  227. \fB~1\.2\fP := \fB>=1\.2\.0 <1\.(2+1)\.0\fP := \fB>=1\.2\.0 <1\.3\.0\fP (Same as \fB1\.2\.x\fP)
  228. .IP \(bu 2
  229. \fB~1\fP := \fB>=1\.0\.0 <(1+1)\.0\.0\fP := \fB>=1\.0\.0 <2\.0\.0\fP (Same as \fB1\.x\fP)
  230. .IP \(bu 2
  231. \fB~0\.2\.3\fP := \fB>=0\.2\.3 <0\.(2+1)\.0\fP := \fB>=0\.2\.3 <0\.3\.0\fP
  232. .IP \(bu 2
  233. \fB~0\.2\fP := \fB>=0\.2\.0 <0\.(2+1)\.0\fP := \fB>=0\.2\.0 <0\.3\.0\fP (Same as \fB0\.2\.x\fP)
  234. .IP \(bu 2
  235. \fB~0\fP := \fB>=0\.0\.0 <(0+1)\.0\.0\fP := \fB>=0\.0\.0 <1\.0\.0\fP (Same as \fB0\.x\fP)
  236. .IP \(bu 2
  237. \fB~1\.2\.3\-beta\.2\fP := \fB>=1\.2\.3\-beta\.2 <1\.3\.0\fP Note that prereleases in
  238. the \fB1\.2\.3\fP version will be allowed, if they are greater than or
  239. equal to \fBbeta\.2\fP\|\. So, \fB1\.2\.3\-beta\.4\fP would be allowed, but
  240. \fB1\.2\.4\-beta\.2\fP would not, because it is a prerelease of a
  241. different \fB[major, minor, patch]\fP tuple\.
  242. .RE
  243. .SS Caret Ranges \fB^1\.2\.3\fP \fB^0\.2\.5\fP \fB^0\.0\.4\fP
  244. .P
  245. Allows changes that do not modify the left\-most non\-zero digit in the
  246. \fB[major, minor, patch]\fP tuple\. In other words, this allows patch and
  247. minor updates for versions \fB1\.0\.0\fP and above, patch updates for
  248. versions \fB0\.X >=0\.1\.0\fP, and \fIno\fR updates for versions \fB0\.0\.X\fP\|\.
  249. .P
  250. Many authors treat a \fB0\.x\fP version as if the \fBx\fP were the major
  251. "breaking\-change" indicator\.
  252. .P
  253. Caret ranges are ideal when an author may make breaking changes
  254. between \fB0\.2\.4\fP and \fB0\.3\.0\fP releases, which is a common practice\.
  255. However, it presumes that there will \fInot\fR be breaking changes between
  256. \fB0\.2\.4\fP and \fB0\.2\.5\fP\|\. It allows for changes that are presumed to be
  257. additive (but non\-breaking), according to commonly observed practices\.
  258. .RS 0
  259. .IP \(bu 2
  260. \fB^1\.2\.3\fP := \fB>=1\.2\.3 <2\.0\.0\fP
  261. .IP \(bu 2
  262. \fB^0\.2\.3\fP := \fB>=0\.2\.3 <0\.3\.0\fP
  263. .IP \(bu 2
  264. \fB^0\.0\.3\fP := \fB>=0\.0\.3 <0\.0\.4\fP
  265. .IP \(bu 2
  266. \fB^1\.2\.3\-beta\.2\fP := \fB>=1\.2\.3\-beta\.2 <2\.0\.0\fP Note that prereleases in
  267. the \fB1\.2\.3\fP version will be allowed, if they are greater than or
  268. equal to \fBbeta\.2\fP\|\. So, \fB1\.2\.3\-beta\.4\fP would be allowed, but
  269. \fB1\.2\.4\-beta\.2\fP would not, because it is a prerelease of a
  270. different \fB[major, minor, patch]\fP tuple\.
  271. .IP \(bu 2
  272. \fB^0\.0\.3\-beta\fP := \fB>=0\.0\.3\-beta <0\.0\.4\fP Note that prereleases in the
  273. \fB0\.0\.3\fP version \fIonly\fR will be allowed, if they are greater than or
  274. equal to \fBbeta\fP\|\. So, \fB0\.0\.3\-pr\.2\fP would be allowed\.
  275. .RE
  276. .P
  277. When parsing caret ranges, a missing \fBpatch\fP value desugars to the
  278. number \fB0\fP, but will allow flexibility within that value, even if the
  279. major and minor versions are both \fB0\fP\|\.
  280. .RS 0
  281. .IP \(bu 2
  282. \fB^1\.2\.x\fP := \fB>=1\.2\.0 <2\.0\.0\fP
  283. .IP \(bu 2
  284. \fB^0\.0\.x\fP := \fB>=0\.0\.0 <0\.1\.0\fP
  285. .IP \(bu 2
  286. \fB^0\.0\fP := \fB>=0\.0\.0 <0\.1\.0\fP
  287. .RE
  288. .P
  289. A missing \fBminor\fP and \fBpatch\fP values will desugar to zero, but also
  290. allow flexibility within those values, even if the major version is
  291. zero\.
  292. .RS 0
  293. .IP \(bu 2
  294. \fB^1\.x\fP := \fB>=1\.0\.0 <2\.0\.0\fP
  295. .IP \(bu 2
  296. \fB^0\.x\fP := \fB>=0\.0\.0 <1\.0\.0\fP
  297. .RE
  298. .SS Range Grammar
  299. .P
  300. Putting all this together, here is a Backus\-Naur grammar for ranges,
  301. for the benefit of parser authors:
  302. .P
  303. .RS 2
  304. .nf
  305. range\-set ::= range ( logical\-or range ) *
  306. logical\-or ::= ( ' ' ) * '||' ( ' ' ) *
  307. range ::= hyphen | simple ( ' ' simple ) * | ''
  308. hyphen ::= partial ' \- ' partial
  309. simple ::= primitive | partial | tilde | caret
  310. primitive ::= ( '<' | '>' | '>=' | '<=' | '=' | ) partial
  311. partial ::= xr ( '\.' xr ( '\.' xr qualifier ? )? )?
  312. xr ::= 'x' | 'X' | '*' | nr
  313. nr ::= '0' | ['1'\-'9'] ( ['0'\-'9'] ) *
  314. tilde ::= '~' partial
  315. caret ::= '^' partial
  316. qualifier ::= ( '\-' pre )? ( '+' build )?
  317. pre ::= parts
  318. build ::= parts
  319. parts ::= part ( '\.' part ) *
  320. part ::= nr | [\-0\-9A\-Za\-z]+
  321. .fi
  322. .RE
  323. .SH Functions
  324. .P
  325. All methods and classes take a final \fBloose\fP boolean argument that, if
  326. true, will be more forgiving about not\-quite\-valid semver strings\.
  327. The resulting output will always be 100% strict, of course\.
  328. .P
  329. Strict\-mode Comparators and Ranges will be strict about the SemVer
  330. strings that they parse\.
  331. .RS 0
  332. .IP \(bu 2
  333. \fBvalid(v)\fP: Return the parsed version, or null if it's not valid\.
  334. .IP \(bu 2
  335. \fBinc(v, release)\fP: Return the version incremented by the release
  336. type (\fBmajor\fP, \fBpremajor\fP, \fBminor\fP, \fBpreminor\fP, \fBpatch\fP,
  337. \fBprepatch\fP, or \fBprerelease\fP), or null if it's not valid
  338. .RS 0
  339. .IP \(bu 2
  340. \fBpremajor\fP in one call will bump the version up to the next major
  341. version and down to a prerelease of that major version\.
  342. \fBpreminor\fP, and \fBprepatch\fP work the same way\.
  343. .IP \(bu 2
  344. If called from a non\-prerelease version, the \fBprerelease\fP will work the
  345. same as \fBprepatch\fP\|\. It increments the patch version, then makes a
  346. prerelease\. If the input version is already a prerelease it simply
  347. increments it\.
  348. .RE
  349. .IP \(bu 2
  350. \fBprerelease(v)\fP: Returns an array of prerelease components, or null
  351. if none exist\. Example: \fBprerelease('1\.2\.3\-alpha\.1') \-> ['alpha', 1]\fP
  352. .IP \(bu 2
  353. \fBmajor(v)\fP: Return the major version number\.
  354. .IP \(bu 2
  355. \fBminor(v)\fP: Return the minor version number\.
  356. .IP \(bu 2
  357. \fBpatch(v)\fP: Return the patch version number\.
  358. .IP \(bu 2
  359. \fBintersects(r1, r2, loose)\fP: Return true if the two supplied ranges
  360. or comparators intersect\.
  361. .RE
  362. .SS Comparison
  363. .RS 0
  364. .IP \(bu 2
  365. \fBgt(v1, v2)\fP: \fBv1 > v2\fP
  366. .IP \(bu 2
  367. \fBgte(v1, v2)\fP: \fBv1 >= v2\fP
  368. .IP \(bu 2
  369. \fBlt(v1, v2)\fP: \fBv1 < v2\fP
  370. .IP \(bu 2
  371. \fBlte(v1, v2)\fP: \fBv1 <= v2\fP
  372. .IP \(bu 2
  373. \fBeq(v1, v2)\fP: \fBv1 == v2\fP This is true if they're logically equivalent,
  374. even if they're not the exact same string\. You already know how to
  375. compare strings\.
  376. .IP \(bu 2
  377. \fBneq(v1, v2)\fP: \fBv1 != v2\fP The opposite of \fBeq\fP\|\.
  378. .IP \(bu 2
  379. \fBcmp(v1, comparator, v2)\fP: Pass in a comparison string, and it'll call
  380. the corresponding function above\. \fB"==="\fP and \fB"!=="\fP do simple
  381. string comparison, but are included for completeness\. Throws if an
  382. invalid comparison string is provided\.
  383. .IP \(bu 2
  384. \fBcompare(v1, v2)\fP: Return \fB0\fP if \fBv1 == v2\fP, or \fB1\fP if \fBv1\fP is greater, or \fB\-1\fP if
  385. \fBv2\fP is greater\. Sorts in ascending order if passed to \fBArray\.sort()\fP\|\.
  386. .IP \(bu 2
  387. \fBrcompare(v1, v2)\fP: The reverse of compare\. Sorts an array of versions
  388. in descending order when passed to \fBArray\.sort()\fP\|\.
  389. .IP \(bu 2
  390. \fBdiff(v1, v2)\fP: Returns difference between two versions by the release type
  391. (\fBmajor\fP, \fBpremajor\fP, \fBminor\fP, \fBpreminor\fP, \fBpatch\fP, \fBprepatch\fP, or \fBprerelease\fP),
  392. or null if the versions are the same\.
  393. .RE
  394. .SS Comparators
  395. .RS 0
  396. .IP \(bu 2
  397. \fBintersects(comparator)\fP: Return true if the comparators intersect
  398. .RE
  399. .SS Ranges
  400. .RS 0
  401. .IP \(bu 2
  402. \fBvalidRange(range)\fP: Return the valid range or null if it's not valid
  403. .IP \(bu 2
  404. \fBsatisfies(version, range)\fP: Return true if the version satisfies the
  405. range\.
  406. .IP \(bu 2
  407. \fBmaxSatisfying(versions, range)\fP: Return the highest version in the list
  408. that satisfies the range, or \fBnull\fP if none of them do\.
  409. .IP \(bu 2
  410. \fBminSatisfying(versions, range)\fP: Return the lowest version in the list
  411. that satisfies the range, or \fBnull\fP if none of them do\.
  412. .IP \(bu 2
  413. \fBgtr(version, range)\fP: Return \fBtrue\fP if version is greater than all the
  414. versions possible in the range\.
  415. .IP \(bu 2
  416. \fBltr(version, range)\fP: Return \fBtrue\fP if version is less than all the
  417. versions possible in the range\.
  418. .IP \(bu 2
  419. \fBoutside(version, range, hilo)\fP: Return true if the version is outside
  420. the bounds of the range in either the high or low direction\. The
  421. \fBhilo\fP argument must be either the string \fB\|'>'\fP or \fB\|'<'\fP\|\. (This is
  422. the function called by \fBgtr\fP and \fBltr\fP\|\.)
  423. .IP \(bu 2
  424. \fBintersects(range)\fP: Return true if any of the ranges comparators intersect
  425. .RE
  426. .P
  427. Note that, since ranges may be non\-contiguous, a version might not be
  428. greater than a range, less than a range, \fIor\fR satisfy a range! For
  429. example, the range \fB1\.2 <1\.2\.9 || >2\.0\.0\fP would have a hole from \fB1\.2\.9\fP
  430. until \fB2\.0\.0\fP, so the version \fB1\.2\.10\fP would not be greater than the
  431. range (because \fB2\.0\.1\fP satisfies, which is higher), nor less than the
  432. range (since \fB1\.2\.8\fP satisfies, which is lower), and it also does not
  433. satisfy the range\.
  434. .P
  435. If you want to know if a version satisfies or does not satisfy a
  436. range, use the \fBsatisfies(version, range)\fP function\.
  437. .SS Coercion
  438. .RS 0
  439. .IP \(bu 2
  440. \fBcoerce(version)\fP: Coerces a string to semver if possible
  441. .RE
  442. .P
  443. This aims to provide a very forgiving translation of a non\-semver
  444. string to semver\. It looks for the first digit in a string, and
  445. consumes all remaining characters which satisfy at least a partial semver
  446. (e\.g\., \fB1\fP, \fB1\.2\fP, \fB1\.2\.3\fP) up to the max permitted length (256 characters)\.
  447. Longer versions are simply truncated (\fB4\.6\.3\.9\.2\-alpha2\fP becomes \fB4\.6\.3\fP)\.
  448. All surrounding text is simply ignored (\fBv3\.4 replaces v3\.3\.1\fP becomes \fB3\.4\.0\fP)\.
  449. Only text which lacks digits will fail coercion (\fBversion one\fP is not valid)\.
  450. The maximum length for any semver component considered for coercion is 16 characters;
  451. longer components will be ignored (\fB10000000000000000\.4\.7\.4\fP becomes \fB4\.7\.4\fP)\.
  452. The maximum value for any semver component is \fBInteger\.MAX_SAFE_INTEGER || (2**53 \- 1)\fP;
  453. higher value components are invalid (\fB9999999999999999\.4\.7\.4\fP is likely invalid)\.