projen 0.99.71 → 0.99.73

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (534) hide show
  1. package/.jsii +3 -3
  2. package/lib/ai-instructions.js +2 -2
  3. package/lib/awscdk/auto-discover.js +6 -6
  4. package/lib/awscdk/awscdk-app-java.js +1 -1
  5. package/lib/awscdk/awscdk-app-py.js +1 -1
  6. package/lib/awscdk/awscdk-app-ts.js +1 -1
  7. package/lib/awscdk/awscdk-construct.js +2 -2
  8. package/lib/awscdk/awscdk-deps-java.js +1 -1
  9. package/lib/awscdk/awscdk-deps-js.js +1 -1
  10. package/lib/awscdk/awscdk-deps-py.js +1 -1
  11. package/lib/awscdk/awscdk-deps.js +1 -1
  12. package/lib/awscdk/cdk-config.js +4 -4
  13. package/lib/awscdk/cdk-tasks.js +1 -1
  14. package/lib/awscdk/integration-test.js +1 -1
  15. package/lib/awscdk/lambda-extension.js +1 -1
  16. package/lib/awscdk/lambda-function.js +2 -2
  17. package/lib/awscdk/private/feature-flags-v2.const.d.ts +1 -1
  18. package/lib/awscdk/private/feature-flags-v2.const.js +2 -2
  19. package/lib/build/build-workflow.js +1 -1
  20. package/lib/cdk/auto-discover-base.js +2 -2
  21. package/lib/cdk/construct-lib.js +1 -1
  22. package/lib/cdk/integration-test-base.js +1 -1
  23. package/lib/cdk/jsii-build.js +1 -1
  24. package/lib/cdk/jsii-docgen.js +1 -1
  25. package/lib/cdk/jsii-project.js +1 -1
  26. package/lib/cdk8s/auto-discover.js +2 -2
  27. package/lib/cdk8s/cdk8s-app-py.js +1 -1
  28. package/lib/cdk8s/cdk8s-app-ts.js +1 -1
  29. package/lib/cdk8s/cdk8s-construct.js +1 -1
  30. package/lib/cdk8s/cdk8s-deps-py.js +1 -1
  31. package/lib/cdk8s/cdk8s-deps.js +1 -1
  32. package/lib/cdk8s/integration-test.js +1 -1
  33. package/lib/cdktf/cdktf-construct.js +1 -1
  34. package/lib/circleci/circleci.js +1 -1
  35. package/lib/component.js +1 -1
  36. package/lib/dependencies.js +1 -1
  37. package/lib/dev-env.js +1 -1
  38. package/lib/docker-compose/docker-compose-service.js +1 -1
  39. package/lib/docker-compose/docker-compose.js +1 -1
  40. package/lib/file.js +1 -1
  41. package/lib/gitattributes.js +1 -1
  42. package/lib/github/actions-provider.js +1 -1
  43. package/lib/github/auto-approve.js +1 -1
  44. package/lib/github/auto-merge.js +1 -1
  45. package/lib/github/auto-queue.js +1 -1
  46. package/lib/github/dependabot.js +1 -1
  47. package/lib/github/dependency-review.js +1 -1
  48. package/lib/github/github-credentials.js +1 -1
  49. package/lib/github/github-project.js +1 -1
  50. package/lib/github/github.js +1 -1
  51. package/lib/github/merge-queue.js +1 -1
  52. package/lib/github/mergify.js +1 -1
  53. package/lib/github/pr-template.js +1 -1
  54. package/lib/github/pull-request-backport.js +1 -1
  55. package/lib/github/pull-request-lint.js +1 -1
  56. package/lib/github/stale.js +1 -1
  57. package/lib/github/task-workflow-job.js +1 -1
  58. package/lib/github/task-workflow.js +1 -1
  59. package/lib/github/workflow-actions.js +1 -1
  60. package/lib/github/workflow-jobs.js +1 -1
  61. package/lib/github/workflow-steps.js +1 -1
  62. package/lib/github/workflows.js +1 -1
  63. package/lib/gitlab/configuration.js +1 -1
  64. package/lib/gitlab/gitlab-configuration.js +1 -1
  65. package/lib/gitlab/nested-configuration.js +1 -1
  66. package/lib/gitpod.js +1 -1
  67. package/lib/ignore-file.js +1 -1
  68. package/lib/ini.js +1 -1
  69. package/lib/java/java-project.js +1 -1
  70. package/lib/java/junit.js +1 -1
  71. package/lib/java/maven-compile.js +1 -1
  72. package/lib/java/maven-packaging.js +1 -1
  73. package/lib/java/maven-sample.js +1 -1
  74. package/lib/java/pom.js +2 -2
  75. package/lib/java/projenrc.js +1 -1
  76. package/lib/javascript/biome/biome.js +1 -1
  77. package/lib/javascript/bundler.js +1 -1
  78. package/lib/javascript/eslint.js +1 -1
  79. package/lib/javascript/jest.js +4 -4
  80. package/lib/javascript/license-checker.js +1 -1
  81. package/lib/javascript/node-package.js +1 -1
  82. package/lib/javascript/node-project.js +1 -1
  83. package/lib/javascript/npm-config.js +1 -1
  84. package/lib/javascript/prettier.js +1 -1
  85. package/lib/javascript/projenrc.js +1 -1
  86. package/lib/javascript/typescript-config.js +2 -2
  87. package/lib/javascript/upgrade-dependencies.js +2 -2
  88. package/lib/javascript/yarnrc.js +1 -1
  89. package/lib/json-patch.js +1 -1
  90. package/lib/json.js +1 -1
  91. package/lib/license.js +1 -1
  92. package/lib/logger.js +1 -1
  93. package/lib/makefile.js +1 -1
  94. package/lib/object-file.js +1 -1
  95. package/lib/project-build.js +1 -1
  96. package/lib/project-tree.js +1 -1
  97. package/lib/project.js +1 -1
  98. package/lib/projects.js +1 -1
  99. package/lib/projenrc-json.js +2 -2
  100. package/lib/projenrc.js +1 -1
  101. package/lib/python/pip.js +1 -1
  102. package/lib/python/poetry.js +2 -2
  103. package/lib/python/projenrc.js +1 -1
  104. package/lib/python/pyproject-toml-file.js +1 -1
  105. package/lib/python/pytest-sample.js +1 -1
  106. package/lib/python/pytest.js +1 -1
  107. package/lib/python/python-project.js +1 -1
  108. package/lib/python/python-sample.js +1 -1
  109. package/lib/python/requirements-file.js +1 -1
  110. package/lib/python/setuppy.js +1 -1
  111. package/lib/python/setuptools.js +1 -1
  112. package/lib/python/uv.js +1 -1
  113. package/lib/python/venv.js +1 -1
  114. package/lib/readme.js +1 -1
  115. package/lib/release/publisher.js +1 -1
  116. package/lib/release/release-trigger.js +1 -1
  117. package/lib/release/release.js +1 -1
  118. package/lib/renovatebot.js +1 -1
  119. package/lib/sample-file.js +2 -2
  120. package/lib/semver.js +1 -1
  121. package/lib/source-code.js +1 -1
  122. package/lib/task-runtime.js +1 -1
  123. package/lib/task.js +1 -1
  124. package/lib/tasks.js +1 -1
  125. package/lib/testing.js +1 -1
  126. package/lib/textfile.js +1 -1
  127. package/lib/toml.js +1 -1
  128. package/lib/typescript/projenrc-ts.js +1 -1
  129. package/lib/typescript/projenrc.js +1 -1
  130. package/lib/typescript/typescript-typedoc.js +1 -1
  131. package/lib/typescript/typescript.js +6 -6
  132. package/lib/version.js +2 -2
  133. package/lib/vscode/devcontainer.js +1 -1
  134. package/lib/vscode/extensions.js +1 -1
  135. package/lib/vscode/launch-config.js +1 -1
  136. package/lib/vscode/settings.js +1 -1
  137. package/lib/vscode/vscode.js +1 -1
  138. package/lib/web/next.js +3 -3
  139. package/lib/web/postcss.js +1 -1
  140. package/lib/web/react.js +4 -4
  141. package/lib/web/tailwind.js +1 -1
  142. package/lib/xmlfile.js +1 -1
  143. package/lib/yaml.js +1 -1
  144. package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/README.md +10 -15
  145. package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/enoent.js +1 -1
  146. package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/parse.js +1 -35
  147. package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/util/readShebang.js +1 -10
  148. package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/util/resolveCommand.js +4 -3
  149. package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/package.json +23 -25
  150. package/node_modules/execa/index.d.ts +564 -0
  151. package/node_modules/execa/index.js +268 -0
  152. package/node_modules/execa/lib/command.js +52 -0
  153. package/node_modules/execa/lib/error.js +88 -0
  154. package/node_modules/execa/lib/kill.js +115 -0
  155. package/node_modules/execa/lib/promise.js +46 -0
  156. package/node_modules/execa/lib/stdio.js +52 -0
  157. package/node_modules/execa/lib/stream.js +97 -0
  158. package/node_modules/execa/license +9 -0
  159. package/node_modules/execa/package.json +74 -0
  160. package/node_modules/execa/readme.md +663 -0
  161. package/node_modules/fastq/README.md +0 -2
  162. package/node_modules/fastq/eslint.config.js +11 -0
  163. package/node_modules/fastq/example.mjs +0 -2
  164. package/node_modules/fastq/index.d.ts +2 -0
  165. package/node_modules/fastq/package.json +5 -9
  166. package/node_modules/fastq/queue.js +36 -1
  167. package/node_modules/fastq/test/promise.js +34 -0
  168. package/node_modules/fastq/test/test.js +80 -0
  169. package/node_modules/get-stream/buffer-stream.js +52 -0
  170. package/node_modules/get-stream/index.d.ts +105 -0
  171. package/node_modules/get-stream/index.js +61 -0
  172. package/node_modules/get-stream/license +9 -0
  173. package/node_modules/{shelljs/node_modules/get-stream → get-stream}/package.json +11 -10
  174. package/node_modules/{shelljs/node_modules/get-stream → get-stream}/readme.md +19 -18
  175. package/node_modules/human-signals/LICENSE +201 -0
  176. package/node_modules/human-signals/README.md +165 -0
  177. package/node_modules/human-signals/build/src/core.js +273 -0
  178. package/node_modules/human-signals/build/src/core.js.map +1 -0
  179. package/node_modules/human-signals/build/src/main.d.ts +52 -0
  180. package/node_modules/human-signals/build/src/main.js +71 -0
  181. package/node_modules/human-signals/build/src/main.js.map +1 -0
  182. package/node_modules/human-signals/build/src/realtime.js +19 -0
  183. package/node_modules/human-signals/build/src/realtime.js.map +1 -0
  184. package/node_modules/human-signals/build/src/signals.js +35 -0
  185. package/node_modules/human-signals/build/src/signals.js.map +1 -0
  186. package/node_modules/human-signals/package.json +64 -0
  187. package/node_modules/is-stream/index.d.ts +79 -0
  188. package/node_modules/is-stream/index.js +28 -0
  189. package/node_modules/is-stream/license +9 -0
  190. package/node_modules/is-stream/package.json +42 -0
  191. package/node_modules/is-stream/readme.md +60 -0
  192. package/node_modules/js-yaml/README.md +4 -20
  193. package/node_modules/js-yaml/bin/js-yaml.js +53 -62
  194. package/node_modules/js-yaml/dist/js-yaml.js +2404 -3880
  195. package/node_modules/js-yaml/dist/js-yaml.js.map +1 -0
  196. package/node_modules/js-yaml/dist/js-yaml.min.js +33 -2
  197. package/node_modules/js-yaml/dist/js-yaml.min.js.map +1 -0
  198. package/node_modules/js-yaml/dist/js-yaml.mjs +2381 -3855
  199. package/node_modules/js-yaml/dist/js-yaml.mjs.map +1 -0
  200. package/node_modules/js-yaml/index.js +32 -35
  201. package/node_modules/js-yaml/lib/common.js +28 -37
  202. package/node_modules/js-yaml/lib/dumper.js +450 -478
  203. package/node_modules/js-yaml/lib/exception.js +23 -27
  204. package/node_modules/js-yaml/lib/index_vite_proxy.tmp.mjs +37 -0
  205. package/node_modules/js-yaml/lib/loader.js +927 -866
  206. package/node_modules/js-yaml/lib/schema/core.js +2 -4
  207. package/node_modules/js-yaml/lib/schema/default.js +2 -4
  208. package/node_modules/js-yaml/lib/schema/failsafe.js +3 -6
  209. package/node_modules/js-yaml/lib/schema/json.js +2 -4
  210. package/node_modules/js-yaml/lib/schema.js +56 -68
  211. package/node_modules/js-yaml/lib/snippet.js +47 -52
  212. package/node_modules/js-yaml/lib/type/binary.js +61 -64
  213. package/node_modules/js-yaml/lib/type/bool.js +14 -14
  214. package/node_modules/js-yaml/lib/type/float.js +47 -45
  215. package/node_modules/js-yaml/lib/type/int.js +65 -79
  216. package/node_modules/js-yaml/lib/type/map.js +4 -4
  217. package/node_modules/js-yaml/lib/type/merge.js +5 -5
  218. package/node_modules/js-yaml/lib/type/null.js +16 -16
  219. package/node_modules/js-yaml/lib/type/omap.js +22 -21
  220. package/node_modules/js-yaml/lib/type/pairs.js +24 -27
  221. package/node_modules/js-yaml/lib/type/seq.js +4 -4
  222. package/node_modules/js-yaml/lib/type/set.js +12 -12
  223. package/node_modules/js-yaml/lib/type/str.js +4 -4
  224. package/node_modules/js-yaml/lib/type/timestamp.js +53 -53
  225. package/node_modules/js-yaml/lib/type.js +30 -30
  226. package/node_modules/js-yaml/package.json +32 -21
  227. package/node_modules/{nice-try → merge-stream}/LICENSE +1 -1
  228. package/node_modules/merge-stream/README.md +78 -0
  229. package/node_modules/merge-stream/index.js +41 -0
  230. package/node_modules/merge-stream/package.json +19 -0
  231. package/node_modules/mimic-fn/index.d.ts +54 -0
  232. package/node_modules/mimic-fn/index.js +13 -0
  233. package/node_modules/mimic-fn/package.json +42 -0
  234. package/node_modules/mimic-fn/readme.md +69 -0
  235. package/node_modules/npm-run-path/index.d.ts +89 -0
  236. package/node_modules/npm-run-path/index.js +47 -0
  237. package/node_modules/npm-run-path/package.json +44 -0
  238. package/node_modules/{shelljs/node_modules/npm-run-path → npm-run-path}/readme.md +39 -5
  239. package/node_modules/onetime/index.d.ts +64 -0
  240. package/node_modules/onetime/index.js +44 -0
  241. package/node_modules/onetime/license +9 -0
  242. package/node_modules/onetime/package.json +43 -0
  243. package/node_modules/onetime/readme.md +94 -0
  244. package/node_modules/path-key/index.d.ts +40 -0
  245. package/node_modules/path-key/index.js +16 -0
  246. package/node_modules/path-key/license +9 -0
  247. package/node_modules/path-key/package.json +39 -0
  248. package/node_modules/{shelljs/node_modules/path-key → path-key}/readme.md +15 -5
  249. package/node_modules/semver/classes/range.js +11 -2
  250. package/node_modules/semver/package.json +2 -2
  251. package/node_modules/shebang-command/index.js +19 -0
  252. package/node_modules/shebang-command/license +9 -0
  253. package/node_modules/shebang-command/package.json +34 -0
  254. package/node_modules/{shelljs/node_modules/shebang-command → shebang-command}/readme.md +1 -6
  255. package/node_modules/shebang-regex/index.d.ts +22 -0
  256. package/node_modules/shebang-regex/index.js +2 -0
  257. package/node_modules/shebang-regex/license +9 -0
  258. package/node_modules/shebang-regex/package.json +35 -0
  259. package/node_modules/shebang-regex/readme.md +33 -0
  260. package/node_modules/shelljs/README.md +7 -1
  261. package/node_modules/shelljs/global.js +4 -1
  262. package/node_modules/shelljs/package.json +8 -13
  263. package/node_modules/shelljs/shell.js +9 -7
  264. package/node_modules/shelljs/src/cat.js +1 -1
  265. package/node_modules/shelljs/src/chmod.js +1 -1
  266. package/node_modules/shelljs/src/cmd.js +25 -9
  267. package/node_modules/shelljs/src/common.js +11 -8
  268. package/node_modules/shelljs/src/dirs.js +1 -1
  269. package/node_modules/shelljs/src/exec.js +6 -6
  270. package/node_modules/shelljs/src/grep.js +121 -7
  271. package/node_modules/shelljs/src/head.js +1 -1
  272. package/node_modules/shelljs/src/ls.js +1 -1
  273. package/node_modules/shelljs/src/mkdir.js +1 -1
  274. package/node_modules/shelljs/src/rm.js +1 -1
  275. package/node_modules/shelljs/src/sed.js +1 -1
  276. package/node_modules/shelljs/src/sort.js +1 -1
  277. package/node_modules/shelljs/src/tail.js +1 -1
  278. package/node_modules/shelljs/src/tempdir.js +1 -1
  279. package/node_modules/shelljs/src/test.js +1 -1
  280. package/node_modules/shelljs/src/to.js +1 -1
  281. package/node_modules/shelljs/src/toEnd.js +1 -1
  282. package/node_modules/shelljs/src/touch.js +1 -1
  283. package/node_modules/shelljs/src/uniq.js +1 -1
  284. package/node_modules/shelljs/src/which.js +1 -1
  285. package/node_modules/strip-final-newline/index.js +16 -0
  286. package/node_modules/strip-final-newline/license +9 -0
  287. package/node_modules/strip-final-newline/package.json +40 -0
  288. package/node_modules/strip-final-newline/readme.md +30 -0
  289. package/node_modules/{shelljs/node_modules/which → which}/README.md +3 -0
  290. package/node_modules/which/package.json +43 -0
  291. package/node_modules/which/which.js +125 -0
  292. package/package.json +5 -2
  293. package/node_modules/end-of-stream/LICENSE +0 -21
  294. package/node_modules/end-of-stream/README.md +0 -54
  295. package/node_modules/end-of-stream/index.js +0 -96
  296. package/node_modules/end-of-stream/package.json +0 -37
  297. package/node_modules/fastq/.github/dependabot.yml +0 -11
  298. package/node_modules/fastq/.github/workflows/ci.yml +0 -75
  299. package/node_modules/function-bind/.eslintrc +0 -21
  300. package/node_modules/function-bind/.github/FUNDING.yml +0 -12
  301. package/node_modules/function-bind/.github/SECURITY.md +0 -3
  302. package/node_modules/function-bind/.nycrc +0 -13
  303. package/node_modules/function-bind/CHANGELOG.md +0 -136
  304. package/node_modules/function-bind/LICENSE +0 -20
  305. package/node_modules/function-bind/README.md +0 -46
  306. package/node_modules/function-bind/implementation.js +0 -84
  307. package/node_modules/function-bind/index.js +0 -5
  308. package/node_modules/function-bind/package.json +0 -87
  309. package/node_modules/function-bind/test/.eslintrc +0 -9
  310. package/node_modules/function-bind/test/index.js +0 -252
  311. package/node_modules/hasown/.eslintrc +0 -5
  312. package/node_modules/hasown/.github/FUNDING.yml +0 -12
  313. package/node_modules/hasown/.nycrc +0 -13
  314. package/node_modules/hasown/CHANGELOG.md +0 -40
  315. package/node_modules/hasown/LICENSE +0 -21
  316. package/node_modules/hasown/README.md +0 -40
  317. package/node_modules/hasown/index.d.ts +0 -3
  318. package/node_modules/hasown/index.js +0 -8
  319. package/node_modules/hasown/package.json +0 -92
  320. package/node_modules/hasown/tsconfig.json +0 -6
  321. package/node_modules/interpret/LICENSE +0 -22
  322. package/node_modules/interpret/README.md +0 -187
  323. package/node_modules/interpret/index.js +0 -168
  324. package/node_modules/interpret/mjs-stub.js +0 -1
  325. package/node_modules/interpret/package.json +0 -75
  326. package/node_modules/is-core-module/.eslintrc +0 -18
  327. package/node_modules/is-core-module/.nycrc +0 -9
  328. package/node_modules/is-core-module/CHANGELOG.md +0 -218
  329. package/node_modules/is-core-module/LICENSE +0 -20
  330. package/node_modules/is-core-module/README.md +0 -40
  331. package/node_modules/is-core-module/core.json +0 -162
  332. package/node_modules/is-core-module/index.js +0 -69
  333. package/node_modules/is-core-module/package.json +0 -76
  334. package/node_modules/is-core-module/test/index.js +0 -157
  335. package/node_modules/nice-try/README.md +0 -32
  336. package/node_modules/nice-try/package.json +0 -33
  337. package/node_modules/nice-try/src/index.js +0 -12
  338. package/node_modules/once/README.md +0 -79
  339. package/node_modules/once/once.js +0 -42
  340. package/node_modules/once/package.json +0 -33
  341. package/node_modules/p-finally/index.js +0 -15
  342. package/node_modules/p-finally/license +0 -21
  343. package/node_modules/p-finally/package.json +0 -42
  344. package/node_modules/p-finally/readme.md +0 -47
  345. package/node_modules/path-parse/LICENSE +0 -21
  346. package/node_modules/path-parse/README.md +0 -42
  347. package/node_modules/path-parse/index.js +0 -75
  348. package/node_modules/path-parse/package.json +0 -33
  349. package/node_modules/pump/.github/FUNDING.yml +0 -2
  350. package/node_modules/pump/.travis.yml +0 -5
  351. package/node_modules/pump/LICENSE +0 -21
  352. package/node_modules/pump/README.md +0 -74
  353. package/node_modules/pump/SECURITY.md +0 -5
  354. package/node_modules/pump/index.js +0 -86
  355. package/node_modules/pump/package.json +0 -24
  356. package/node_modules/pump/test-browser.js +0 -66
  357. package/node_modules/pump/test-node.js +0 -53
  358. package/node_modules/rechoir/.npmignore +0 -1
  359. package/node_modules/rechoir/.travis.yml +0 -24
  360. package/node_modules/rechoir/CHANGELOG +0 -38
  361. package/node_modules/rechoir/LICENSE +0 -22
  362. package/node_modules/rechoir/README.md +0 -42
  363. package/node_modules/rechoir/index.js +0 -59
  364. package/node_modules/rechoir/lib/extension.js +0 -11
  365. package/node_modules/rechoir/lib/normalize.js +0 -15
  366. package/node_modules/rechoir/lib/register.js +0 -15
  367. package/node_modules/rechoir/package.json +0 -88
  368. package/node_modules/resolve/.editorconfig +0 -37
  369. package/node_modules/resolve/.eslintrc +0 -65
  370. package/node_modules/resolve/.github/FUNDING.yml +0 -12
  371. package/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +0 -119
  372. package/node_modules/resolve/.github/THREAT_MODEL.md +0 -74
  373. package/node_modules/resolve/LICENSE +0 -21
  374. package/node_modules/resolve/SECURITY.md +0 -11
  375. package/node_modules/resolve/async.js +0 -3
  376. package/node_modules/resolve/bin/resolve +0 -50
  377. package/node_modules/resolve/example/async.js +0 -5
  378. package/node_modules/resolve/example/sync.js +0 -3
  379. package/node_modules/resolve/index.js +0 -6
  380. package/node_modules/resolve/lib/async.js +0 -333
  381. package/node_modules/resolve/lib/caller.js +0 -8
  382. package/node_modules/resolve/lib/core.js +0 -12
  383. package/node_modules/resolve/lib/core.json +0 -162
  384. package/node_modules/resolve/lib/homedir.js +0 -24
  385. package/node_modules/resolve/lib/is-core.js +0 -5
  386. package/node_modules/resolve/lib/node-modules-paths.js +0 -45
  387. package/node_modules/resolve/lib/normalize-options.js +0 -10
  388. package/node_modules/resolve/lib/sync.js +0 -212
  389. package/node_modules/resolve/package.json +0 -75
  390. package/node_modules/resolve/readme.markdown +0 -301
  391. package/node_modules/resolve/sync.js +0 -3
  392. package/node_modules/resolve/test/core.js +0 -88
  393. package/node_modules/resolve/test/dotdot/abc/index.js +0 -2
  394. package/node_modules/resolve/test/dotdot/index.js +0 -1
  395. package/node_modules/resolve/test/dotdot.js +0 -29
  396. package/node_modules/resolve/test/faulty_basedir.js +0 -29
  397. package/node_modules/resolve/test/filter.js +0 -34
  398. package/node_modules/resolve/test/filter_sync.js +0 -33
  399. package/node_modules/resolve/test/home_paths.js +0 -127
  400. package/node_modules/resolve/test/home_paths_sync.js +0 -114
  401. package/node_modules/resolve/test/mock.js +0 -315
  402. package/node_modules/resolve/test/mock_sync.js +0 -214
  403. package/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +0 -1
  404. package/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +0 -1
  405. package/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +0 -1
  406. package/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +0 -3
  407. package/node_modules/resolve/test/module_dir.js +0 -56
  408. package/node_modules/resolve/test/node-modules-paths.js +0 -143
  409. package/node_modules/resolve/test/node_path/x/aaa/index.js +0 -1
  410. package/node_modules/resolve/test/node_path/x/ccc/index.js +0 -1
  411. package/node_modules/resolve/test/node_path/y/bbb/index.js +0 -1
  412. package/node_modules/resolve/test/node_path/y/ccc/index.js +0 -1
  413. package/node_modules/resolve/test/node_path.js +0 -70
  414. package/node_modules/resolve/test/nonstring.js +0 -9
  415. package/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
  416. package/node_modules/resolve/test/pathfilter.js +0 -75
  417. package/node_modules/resolve/test/precedence/aaa/index.js +0 -1
  418. package/node_modules/resolve/test/precedence/aaa/main.js +0 -1
  419. package/node_modules/resolve/test/precedence/aaa.js +0 -1
  420. package/node_modules/resolve/test/precedence/bbb/main.js +0 -1
  421. package/node_modules/resolve/test/precedence/bbb.js +0 -1
  422. package/node_modules/resolve/test/precedence.js +0 -23
  423. package/node_modules/resolve/test/resolver/baz/doom.js +0 -0
  424. package/node_modules/resolve/test/resolver/baz/package.json +0 -4
  425. package/node_modules/resolve/test/resolver/baz/quux.js +0 -1
  426. package/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
  427. package/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
  428. package/node_modules/resolve/test/resolver/browser_field/package.json +0 -5
  429. package/node_modules/resolve/test/resolver/cup.coffee +0 -1
  430. package/node_modules/resolve/test/resolver/dot_main/index.js +0 -1
  431. package/node_modules/resolve/test/resolver/dot_main/package.json +0 -3
  432. package/node_modules/resolve/test/resolver/dot_slash_main/index.js +0 -1
  433. package/node_modules/resolve/test/resolver/dot_slash_main/package.json +0 -3
  434. package/node_modules/resolve/test/resolver/false_main/index.js +0 -0
  435. package/node_modules/resolve/test/resolver/false_main/package.json +0 -4
  436. package/node_modules/resolve/test/resolver/foo.js +0 -1
  437. package/node_modules/resolve/test/resolver/incorrect_main/index.js +0 -2
  438. package/node_modules/resolve/test/resolver/incorrect_main/package.json +0 -3
  439. package/node_modules/resolve/test/resolver/invalid_main/package.json +0 -7
  440. package/node_modules/resolve/test/resolver/mug.coffee +0 -0
  441. package/node_modules/resolve/test/resolver/mug.js +0 -0
  442. package/node_modules/resolve/test/resolver/multirepo/lerna.json +0 -6
  443. package/node_modules/resolve/test/resolver/multirepo/package.json +0 -20
  444. package/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +0 -35
  445. package/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +0 -14
  446. package/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
  447. package/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +0 -14
  448. package/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +0 -26
  449. package/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +0 -15
  450. package/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +0 -12
  451. package/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
  452. package/node_modules/resolve/test/resolver/other_path/root.js +0 -0
  453. package/node_modules/resolve/test/resolver/quux/foo/index.js +0 -1
  454. package/node_modules/resolve/test/resolver/same_names/foo/index.js +0 -1
  455. package/node_modules/resolve/test/resolver/same_names/foo.js +0 -1
  456. package/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
  457. package/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
  458. package/node_modules/resolve/test/resolver/symlinked/package/bar.js +0 -1
  459. package/node_modules/resolve/test/resolver/symlinked/package/package.json +0 -3
  460. package/node_modules/resolve/test/resolver/without_basedir/main.js +0 -5
  461. package/node_modules/resolve/test/resolver.js +0 -597
  462. package/node_modules/resolve/test/resolver_sync.js +0 -730
  463. package/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
  464. package/node_modules/resolve/test/shadowed_core.js +0 -54
  465. package/node_modules/resolve/test/subdirs.js +0 -13
  466. package/node_modules/resolve/test/symlinks.js +0 -176
  467. package/node_modules/shelljs/bin/shjs +0 -48
  468. package/node_modules/shelljs/node_modules/execa/index.js +0 -361
  469. package/node_modules/shelljs/node_modules/execa/lib/errname.js +0 -39
  470. package/node_modules/shelljs/node_modules/execa/lib/stdio.js +0 -41
  471. package/node_modules/shelljs/node_modules/execa/package.json +0 -69
  472. package/node_modules/shelljs/node_modules/execa/readme.md +0 -327
  473. package/node_modules/shelljs/node_modules/get-stream/buffer-stream.js +0 -51
  474. package/node_modules/shelljs/node_modules/get-stream/index.js +0 -50
  475. package/node_modules/shelljs/node_modules/is-stream/index.js +0 -21
  476. package/node_modules/shelljs/node_modules/is-stream/license +0 -21
  477. package/node_modules/shelljs/node_modules/is-stream/package.json +0 -38
  478. package/node_modules/shelljs/node_modules/is-stream/readme.md +0 -42
  479. package/node_modules/shelljs/node_modules/npm-run-path/index.js +0 -39
  480. package/node_modules/shelljs/node_modules/npm-run-path/license +0 -21
  481. package/node_modules/shelljs/node_modules/npm-run-path/package.json +0 -45
  482. package/node_modules/shelljs/node_modules/path-key/index.js +0 -13
  483. package/node_modules/shelljs/node_modules/path-key/license +0 -21
  484. package/node_modules/shelljs/node_modules/path-key/package.json +0 -39
  485. package/node_modules/shelljs/node_modules/semver/LICENSE +0 -15
  486. package/node_modules/shelljs/node_modules/semver/README.md +0 -412
  487. package/node_modules/shelljs/node_modules/semver/bin/semver +0 -160
  488. package/node_modules/shelljs/node_modules/semver/package.json +0 -38
  489. package/node_modules/shelljs/node_modules/semver/range.bnf +0 -16
  490. package/node_modules/shelljs/node_modules/semver/semver.js +0 -1525
  491. package/node_modules/shelljs/node_modules/shebang-command/index.js +0 -19
  492. package/node_modules/shelljs/node_modules/shebang-command/license +0 -21
  493. package/node_modules/shelljs/node_modules/shebang-command/package.json +0 -39
  494. package/node_modules/shelljs/node_modules/shebang-regex/index.js +0 -2
  495. package/node_modules/shelljs/node_modules/shebang-regex/license +0 -21
  496. package/node_modules/shelljs/node_modules/shebang-regex/package.json +0 -32
  497. package/node_modules/shelljs/node_modules/shebang-regex/readme.md +0 -29
  498. package/node_modules/shelljs/node_modules/which/LICENSE +0 -15
  499. package/node_modules/shelljs/node_modules/which/package.json +0 -30
  500. package/node_modules/shelljs/node_modules/which/which.js +0 -135
  501. package/node_modules/strip-eof/index.js +0 -15
  502. package/node_modules/strip-eof/license +0 -21
  503. package/node_modules/strip-eof/package.json +0 -39
  504. package/node_modules/strip-eof/readme.md +0 -28
  505. package/node_modules/supports-preserve-symlinks-flag/.eslintrc +0 -14
  506. package/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +0 -12
  507. package/node_modules/supports-preserve-symlinks-flag/.nycrc +0 -9
  508. package/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +0 -22
  509. package/node_modules/supports-preserve-symlinks-flag/LICENSE +0 -21
  510. package/node_modules/supports-preserve-symlinks-flag/README.md +0 -42
  511. package/node_modules/supports-preserve-symlinks-flag/browser.js +0 -3
  512. package/node_modules/supports-preserve-symlinks-flag/index.js +0 -9
  513. package/node_modules/supports-preserve-symlinks-flag/package.json +0 -70
  514. package/node_modules/supports-preserve-symlinks-flag/test/index.js +0 -29
  515. package/node_modules/wrappy/LICENSE +0 -15
  516. package/node_modules/wrappy/README.md +0 -36
  517. package/node_modules/wrappy/package.json +0 -29
  518. package/node_modules/wrappy/wrappy.js +0 -33
  519. /package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/LICENSE +0 -0
  520. /package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/index.js +0 -0
  521. /package/node_modules/{shelljs/node_modules/cross-spawn → cross-spawn}/lib/util/escape.js +0 -0
  522. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/LICENSE +0 -0
  523. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/README.md +0 -0
  524. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/index.js +0 -0
  525. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/constants.js +0 -0
  526. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/parse.js +0 -0
  527. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/picomatch.js +0 -0
  528. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/scan.js +0 -0
  529. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/lib/utils.js +0 -0
  530. /package/node_modules/{picomatch → micromatch/node_modules/picomatch}/package.json +0 -0
  531. /package/node_modules/{shelljs/node_modules/execa → mimic-fn}/license +0 -0
  532. /package/node_modules/{shelljs/node_modules/get-stream → npm-run-path}/license +0 -0
  533. /package/node_modules/{once → which}/LICENSE +0 -0
  534. /package/node_modules/{shelljs/node_modules/which/bin/which → which/bin/node-which} +0 -0
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,45 +0,0 @@
1
- {
2
- "name": "npm-run-path",
3
- "version": "2.0.2",
4
- "description": "Get your PATH prepended with locally installed binaries",
5
- "license": "MIT",
6
- "repository": "sindresorhus/npm-run-path",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=4"
14
- },
15
- "scripts": {
16
- "test": "xo && ava"
17
- },
18
- "files": [
19
- "index.js"
20
- ],
21
- "keywords": [
22
- "npm",
23
- "run",
24
- "path",
25
- "package",
26
- "bin",
27
- "binary",
28
- "binaries",
29
- "script",
30
- "cli",
31
- "command-line",
32
- "execute",
33
- "executable"
34
- ],
35
- "dependencies": {
36
- "path-key": "^2.0.0"
37
- },
38
- "devDependencies": {
39
- "ava": "*",
40
- "xo": "*"
41
- },
42
- "xo": {
43
- "esnext": true
44
- }
45
- }
@@ -1,13 +0,0 @@
1
- 'use strict';
2
- module.exports = opts => {
3
- opts = opts || {};
4
-
5
- const env = opts.env || process.env;
6
- const platform = opts.platform || process.platform;
7
-
8
- if (platform !== 'win32') {
9
- return 'PATH';
10
- }
11
-
12
- return Object.keys(env).find(x => x.toUpperCase() === 'PATH') || 'Path';
13
- };
@@ -1,21 +0,0 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in
13
- all copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
- THE SOFTWARE.
@@ -1,39 +0,0 @@
1
- {
2
- "name": "path-key",
3
- "version": "2.0.1",
4
- "description": "Get the PATH environment variable key cross-platform",
5
- "license": "MIT",
6
- "repository": "sindresorhus/path-key",
7
- "author": {
8
- "name": "Sindre Sorhus",
9
- "email": "sindresorhus@gmail.com",
10
- "url": "sindresorhus.com"
11
- },
12
- "engines": {
13
- "node": ">=4"
14
- },
15
- "scripts": {
16
- "test": "xo && ava"
17
- },
18
- "files": [
19
- "index.js"
20
- ],
21
- "keywords": [
22
- "path",
23
- "key",
24
- "environment",
25
- "env",
26
- "variable",
27
- "var",
28
- "get",
29
- "cross-platform",
30
- "windows"
31
- ],
32
- "devDependencies": {
33
- "ava": "*",
34
- "xo": "*"
35
- },
36
- "xo": {
37
- "esnext": true
38
- }
39
- }
@@ -1,15 +0,0 @@
1
- The ISC License
2
-
3
- Copyright (c) Isaac Z. Schlueter and Contributors
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted, provided that the above
7
- copyright notice and this permission notice appear in all copies.
8
-
9
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
- WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
- MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
- ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
- WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
- ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
15
- IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -1,412 +0,0 @@
1
- semver(1) -- The semantic versioner for npm
2
- ===========================================
3
-
4
- ## Install
5
-
6
- ```bash
7
- npm install --save semver
8
- ````
9
-
10
- ## Usage
11
-
12
- As a node module:
13
-
14
- ```js
15
- const semver = require('semver')
16
-
17
- semver.valid('1.2.3') // '1.2.3'
18
- semver.valid('a.b.c') // null
19
- semver.clean(' =v1.2.3 ') // '1.2.3'
20
- semver.satisfies('1.2.3', '1.x || >=2.5.0 || 5.0.0 - 7.2.3') // true
21
- semver.gt('1.2.3', '9.8.7') // false
22
- semver.lt('1.2.3', '9.8.7') // true
23
- semver.minVersion('>=1.0.0') // '1.0.0'
24
- semver.valid(semver.coerce('v2')) // '2.0.0'
25
- semver.valid(semver.coerce('42.6.7.9.3-alpha')) // '42.6.7'
26
- ```
27
-
28
- As a command-line utility:
29
-
30
- ```
31
- $ semver -h
32
-
33
- A JavaScript implementation of the https://semver.org/ specification
34
- Copyright Isaac Z. Schlueter
35
-
36
- Usage: semver [options] <version> [<version> [...]]
37
- Prints valid versions sorted by SemVer precedence
38
-
39
- Options:
40
- -r --range <range>
41
- Print versions that match the specified range.
42
-
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
-
49
- --preid <identifier>
50
- Identifier to be used to prefix premajor, preminor,
51
- prepatch or prerelease version increments.
52
-
53
- -l --loose
54
- Interpret versions and ranges loosely
55
-
56
- -p --include-prerelease
57
- Always include prerelease versions in range matching
58
-
59
- -c --coerce
60
- Coerce a string into SemVer if possible
61
- (does not imply --loose)
62
-
63
- Program exits successfully if any valid version satisfies
64
- all supplied ranges, and prints all satisfying versions.
65
-
66
- If no satisfying versions are found, then exits failure.
67
-
68
- Versions are printed in ascending order, so supplying
69
- multiple versions to the utility will just sort them.
70
- ```
71
-
72
- ## Versions
73
-
74
- A "version" is described by the `v2.0.0` specification found at
75
- <https://semver.org/>.
76
-
77
- A leading `"="` or `"v"` character is stripped off and ignored.
78
-
79
- ## Ranges
80
-
81
- A `version range` is a set of `comparators` which specify versions
82
- that satisfy the range.
83
-
84
- A `comparator` is composed of an `operator` and a `version`. The set
85
- of primitive `operators` is:
86
-
87
- * `<` Less than
88
- * `<=` Less than or equal to
89
- * `>` Greater than
90
- * `>=` Greater than or equal to
91
- * `=` Equal. If no operator is specified, then equality is assumed,
92
- so this operator is optional, but MAY be included.
93
-
94
- For example, the comparator `>=1.2.7` would match the versions
95
- `1.2.7`, `1.2.8`, `2.5.3`, and `1.3.9`, but not the versions `1.2.6`
96
- or `1.1.0`.
97
-
98
- Comparators can be joined by whitespace to form a `comparator set`,
99
- which is satisfied by the **intersection** of all of the comparators
100
- it includes.
101
-
102
- A range is composed of one or more comparator sets, joined by `||`. A
103
- version matches a range if and only if every comparator in at least
104
- one of the `||`-separated comparator sets is satisfied by the version.
105
-
106
- For example, the range `>=1.2.7 <1.3.0` would match the versions
107
- `1.2.7`, `1.2.8`, and `1.2.99`, but not the versions `1.2.6`, `1.3.0`,
108
- or `1.1.0`.
109
-
110
- The range `1.2.7 || >=1.2.9 <2.0.0` would match the versions `1.2.7`,
111
- `1.2.9`, and `1.4.6`, but not the versions `1.2.8` or `2.0.0`.
112
-
113
- ### Prerelease Tags
114
-
115
- If a version has a prerelease tag (for example, `1.2.3-alpha.3`) then
116
- it will only be allowed to satisfy comparator sets if at least one
117
- comparator with the same `[major, minor, patch]` tuple also has a
118
- prerelease tag.
119
-
120
- For example, the range `>1.2.3-alpha.3` would be allowed to match the
121
- version `1.2.3-alpha.7`, but it would *not* be satisfied by
122
- `3.4.5-alpha.9`, even though `3.4.5-alpha.9` is technically "greater
123
- than" `1.2.3-alpha.3` according to the SemVer sort rules. The version
124
- range only accepts prerelease tags on the `1.2.3` version. The
125
- version `3.4.5` *would* satisfy the range, because it does not have a
126
- prerelease flag, and `3.4.5` is greater than `1.2.3-alpha.7`.
127
-
128
- The purpose for this behavior is twofold. First, prerelease versions
129
- frequently are updated very quickly, and contain many breaking changes
130
- that are (by the author's design) not yet fit for public consumption.
131
- Therefore, by default, they are excluded from range matching
132
- semantics.
133
-
134
- Second, a user who has opted into using a prerelease version has
135
- clearly indicated the intent to use *that specific* set of
136
- alpha/beta/rc versions. By including a prerelease tag in the range,
137
- the user is indicating that they are aware of the risk. However, it
138
- is still not appropriate to assume that they have opted into taking a
139
- similar risk on the *next* set of prerelease versions.
140
-
141
- Note that this behavior can be suppressed (treating all prerelease
142
- versions as if they were normal versions, for the purpose of range
143
- matching) by setting the `includePrerelease` flag on the options
144
- object to any
145
- [functions](https://github.com/npm/node-semver#functions) that do
146
- range matching.
147
-
148
- #### Prerelease Identifiers
149
-
150
- The method `.inc` takes an additional `identifier` string argument that
151
- will append the value of the string as a prerelease identifier:
152
-
153
- ```javascript
154
- semver.inc('1.2.3', 'prerelease', 'beta')
155
- // '1.2.4-beta.0'
156
- ```
157
-
158
- command-line example:
159
-
160
- ```bash
161
- $ semver 1.2.3 -i prerelease --preid beta
162
- 1.2.4-beta.0
163
- ```
164
-
165
- Which then can be used to increment further:
166
-
167
- ```bash
168
- $ semver 1.2.4-beta.0 -i prerelease
169
- 1.2.4-beta.1
170
- ```
171
-
172
- ### Advanced Range Syntax
173
-
174
- Advanced range syntax desugars to primitive comparators in
175
- deterministic ways.
176
-
177
- Advanced ranges may be combined in the same way as primitive
178
- comparators using white space or `||`.
179
-
180
- #### Hyphen Ranges `X.Y.Z - A.B.C`
181
-
182
- Specifies an inclusive set.
183
-
184
- * `1.2.3 - 2.3.4` := `>=1.2.3 <=2.3.4`
185
-
186
- If a partial version is provided as the first version in the inclusive
187
- range, then the missing pieces are replaced with zeroes.
188
-
189
- * `1.2 - 2.3.4` := `>=1.2.0 <=2.3.4`
190
-
191
- If a partial version is provided as the second version in the
192
- inclusive range, then all versions that start with the supplied parts
193
- of the tuple are accepted, but nothing that would be greater than the
194
- provided tuple parts.
195
-
196
- * `1.2.3 - 2.3` := `>=1.2.3 <2.4.0`
197
- * `1.2.3 - 2` := `>=1.2.3 <3.0.0`
198
-
199
- #### X-Ranges `1.2.x` `1.X` `1.2.*` `*`
200
-
201
- Any of `X`, `x`, or `*` may be used to "stand in" for one of the
202
- numeric values in the `[major, minor, patch]` tuple.
203
-
204
- * `*` := `>=0.0.0` (Any version satisfies)
205
- * `1.x` := `>=1.0.0 <2.0.0` (Matching major version)
206
- * `1.2.x` := `>=1.2.0 <1.3.0` (Matching major and minor versions)
207
-
208
- A partial version range is treated as an X-Range, so the special
209
- character is in fact optional.
210
-
211
- * `""` (empty string) := `*` := `>=0.0.0`
212
- * `1` := `1.x.x` := `>=1.0.0 <2.0.0`
213
- * `1.2` := `1.2.x` := `>=1.2.0 <1.3.0`
214
-
215
- #### Tilde Ranges `~1.2.3` `~1.2` `~1`
216
-
217
- Allows patch-level changes if a minor version is specified on the
218
- comparator. Allows minor-level changes if not.
219
-
220
- * `~1.2.3` := `>=1.2.3 <1.(2+1).0` := `>=1.2.3 <1.3.0`
221
- * `~1.2` := `>=1.2.0 <1.(2+1).0` := `>=1.2.0 <1.3.0` (Same as `1.2.x`)
222
- * `~1` := `>=1.0.0 <(1+1).0.0` := `>=1.0.0 <2.0.0` (Same as `1.x`)
223
- * `~0.2.3` := `>=0.2.3 <0.(2+1).0` := `>=0.2.3 <0.3.0`
224
- * `~0.2` := `>=0.2.0 <0.(2+1).0` := `>=0.2.0 <0.3.0` (Same as `0.2.x`)
225
- * `~0` := `>=0.0.0 <(0+1).0.0` := `>=0.0.0 <1.0.0` (Same as `0.x`)
226
- * `~1.2.3-beta.2` := `>=1.2.3-beta.2 <1.3.0` Note that prereleases in
227
- the `1.2.3` version will be allowed, if they are greater than or
228
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
229
- `1.2.4-beta.2` would not, because it is a prerelease of a
230
- different `[major, minor, patch]` tuple.
231
-
232
- #### Caret Ranges `^1.2.3` `^0.2.5` `^0.0.4`
233
-
234
- Allows changes that do not modify the left-most non-zero digit in the
235
- `[major, minor, patch]` tuple. In other words, this allows patch and
236
- minor updates for versions `1.0.0` and above, patch updates for
237
- versions `0.X >=0.1.0`, and *no* updates for versions `0.0.X`.
238
-
239
- Many authors treat a `0.x` version as if the `x` were the major
240
- "breaking-change" indicator.
241
-
242
- Caret ranges are ideal when an author may make breaking changes
243
- between `0.2.4` and `0.3.0` releases, which is a common practice.
244
- However, it presumes that there will *not* be breaking changes between
245
- `0.2.4` and `0.2.5`. It allows for changes that are presumed to be
246
- additive (but non-breaking), according to commonly observed practices.
247
-
248
- * `^1.2.3` := `>=1.2.3 <2.0.0`
249
- * `^0.2.3` := `>=0.2.3 <0.3.0`
250
- * `^0.0.3` := `>=0.0.3 <0.0.4`
251
- * `^1.2.3-beta.2` := `>=1.2.3-beta.2 <2.0.0` Note that prereleases in
252
- the `1.2.3` version will be allowed, if they are greater than or
253
- equal to `beta.2`. So, `1.2.3-beta.4` would be allowed, but
254
- `1.2.4-beta.2` would not, because it is a prerelease of a
255
- different `[major, minor, patch]` tuple.
256
- * `^0.0.3-beta` := `>=0.0.3-beta <0.0.4` Note that prereleases in the
257
- `0.0.3` version *only* will be allowed, if they are greater than or
258
- equal to `beta`. So, `0.0.3-pr.2` would be allowed.
259
-
260
- When parsing caret ranges, a missing `patch` value desugars to the
261
- number `0`, but will allow flexibility within that value, even if the
262
- major and minor versions are both `0`.
263
-
264
- * `^1.2.x` := `>=1.2.0 <2.0.0`
265
- * `^0.0.x` := `>=0.0.0 <0.1.0`
266
- * `^0.0` := `>=0.0.0 <0.1.0`
267
-
268
- A missing `minor` and `patch` values will desugar to zero, but also
269
- allow flexibility within those values, even if the major version is
270
- zero.
271
-
272
- * `^1.x` := `>=1.0.0 <2.0.0`
273
- * `^0.x` := `>=0.0.0 <1.0.0`
274
-
275
- ### Range Grammar
276
-
277
- Putting all this together, here is a Backus-Naur grammar for ranges,
278
- for the benefit of parser authors:
279
-
280
- ```bnf
281
- range-set ::= range ( logical-or range ) *
282
- logical-or ::= ( ' ' ) * '||' ( ' ' ) *
283
- range ::= hyphen | simple ( ' ' simple ) * | ''
284
- hyphen ::= partial ' - ' partial
285
- simple ::= primitive | partial | tilde | caret
286
- primitive ::= ( '<' | '>' | '>=' | '<=' | '=' ) partial
287
- partial ::= xr ( '.' xr ( '.' xr qualifier ? )? )?
288
- xr ::= 'x' | 'X' | '*' | nr
289
- nr ::= '0' | ['1'-'9'] ( ['0'-'9'] ) *
290
- tilde ::= '~' partial
291
- caret ::= '^' partial
292
- qualifier ::= ( '-' pre )? ( '+' build )?
293
- pre ::= parts
294
- build ::= parts
295
- parts ::= part ( '.' part ) *
296
- part ::= nr | [-0-9A-Za-z]+
297
- ```
298
-
299
- ## Functions
300
-
301
- All methods and classes take a final `options` object argument. All
302
- options in this object are `false` by default. The options supported
303
- are:
304
-
305
- - `loose` Be more forgiving about not-quite-valid semver strings.
306
- (Any resulting output will always be 100% strict compliant, of
307
- course.) For backwards compatibility reasons, if the `options`
308
- argument is a boolean value instead of an object, it is interpreted
309
- to be the `loose` param.
310
- - `includePrerelease` Set to suppress the [default
311
- behavior](https://github.com/npm/node-semver#prerelease-tags) of
312
- excluding prerelease tagged versions from ranges unless they are
313
- explicitly opted into.
314
-
315
- Strict-mode Comparators and Ranges will be strict about the SemVer
316
- strings that they parse.
317
-
318
- * `valid(v)`: Return the parsed version, or null if it's not valid.
319
- * `inc(v, release)`: Return the version incremented by the release
320
- type (`major`, `premajor`, `minor`, `preminor`, `patch`,
321
- `prepatch`, or `prerelease`), or null if it's not valid
322
- * `premajor` in one call will bump the version up to the next major
323
- version and down to a prerelease of that major version.
324
- `preminor`, and `prepatch` work the same way.
325
- * If called from a non-prerelease version, the `prerelease` will work the
326
- same as `prepatch`. It increments the patch version, then makes a
327
- prerelease. If the input version is already a prerelease it simply
328
- increments it.
329
- * `prerelease(v)`: Returns an array of prerelease components, or null
330
- if none exist. Example: `prerelease('1.2.3-alpha.1') -> ['alpha', 1]`
331
- * `major(v)`: Return the major version number.
332
- * `minor(v)`: Return the minor version number.
333
- * `patch(v)`: Return the patch version number.
334
- * `intersects(r1, r2, loose)`: Return true if the two supplied ranges
335
- or comparators intersect.
336
- * `parse(v)`: Attempt to parse a string as a semantic version, returning either
337
- a `SemVer` object or `null`.
338
-
339
- ### Comparison
340
-
341
- * `gt(v1, v2)`: `v1 > v2`
342
- * `gte(v1, v2)`: `v1 >= v2`
343
- * `lt(v1, v2)`: `v1 < v2`
344
- * `lte(v1, v2)`: `v1 <= v2`
345
- * `eq(v1, v2)`: `v1 == v2` This is true if they're logically equivalent,
346
- even if they're not the exact same string. You already know how to
347
- compare strings.
348
- * `neq(v1, v2)`: `v1 != v2` The opposite of `eq`.
349
- * `cmp(v1, comparator, v2)`: Pass in a comparison string, and it'll call
350
- the corresponding function above. `"==="` and `"!=="` do simple
351
- string comparison, but are included for completeness. Throws if an
352
- invalid comparison string is provided.
353
- * `compare(v1, v2)`: Return `0` if `v1 == v2`, or `1` if `v1` is greater, or `-1` if
354
- `v2` is greater. Sorts in ascending order if passed to `Array.sort()`.
355
- * `rcompare(v1, v2)`: The reverse of compare. Sorts an array of versions
356
- in descending order when passed to `Array.sort()`.
357
- * `diff(v1, v2)`: Returns difference between two versions by the release type
358
- (`major`, `premajor`, `minor`, `preminor`, `patch`, `prepatch`, or `prerelease`),
359
- or null if the versions are the same.
360
-
361
- ### Comparators
362
-
363
- * `intersects(comparator)`: Return true if the comparators intersect
364
-
365
- ### Ranges
366
-
367
- * `validRange(range)`: Return the valid range or null if it's not valid
368
- * `satisfies(version, range)`: Return true if the version satisfies the
369
- range.
370
- * `maxSatisfying(versions, range)`: Return the highest version in the list
371
- that satisfies the range, or `null` if none of them do.
372
- * `minSatisfying(versions, range)`: Return the lowest version in the list
373
- that satisfies the range, or `null` if none of them do.
374
- * `minVersion(range)`: Return the lowest version that can possibly match
375
- the given range.
376
- * `gtr(version, range)`: Return `true` if version is greater than all the
377
- versions possible in the range.
378
- * `ltr(version, range)`: Return `true` if version is less than all the
379
- versions possible in the range.
380
- * `outside(version, range, hilo)`: Return true if the version is outside
381
- the bounds of the range in either the high or low direction. The
382
- `hilo` argument must be either the string `'>'` or `'<'`. (This is
383
- the function called by `gtr` and `ltr`.)
384
- * `intersects(range)`: Return true if any of the ranges comparators intersect
385
-
386
- Note that, since ranges may be non-contiguous, a version might not be
387
- greater than a range, less than a range, *or* satisfy a range! For
388
- example, the range `1.2 <1.2.9 || >2.0.0` would have a hole from `1.2.9`
389
- until `2.0.0`, so the version `1.2.10` would not be greater than the
390
- range (because `2.0.1` satisfies, which is higher), nor less than the
391
- range (since `1.2.8` satisfies, which is lower), and it also does not
392
- satisfy the range.
393
-
394
- If you want to know if a version satisfies or does not satisfy a
395
- range, use the `satisfies(version, range)` function.
396
-
397
- ### Coercion
398
-
399
- * `coerce(version)`: Coerces a string to semver if possible
400
-
401
- This aims to provide a very forgiving translation of a non-semver string to
402
- semver. It looks for the first digit in a string, and consumes all
403
- remaining characters which satisfy at least a partial semver (e.g., `1`,
404
- `1.2`, `1.2.3`) up to the max permitted length (256 characters). Longer
405
- versions are simply truncated (`4.6.3.9.2-alpha2` becomes `4.6.3`). All
406
- surrounding text is simply ignored (`v3.4 replaces v3.3.1` becomes
407
- `3.4.0`). Only text which lacks digits will fail coercion (`version one`
408
- is not valid). The maximum length for any semver component considered for
409
- coercion is 16 characters; longer components will be ignored
410
- (`10000000000000000.4.7.4` becomes `4.7.4`). The maximum value for any
411
- semver component is `Number.MAX_SAFE_INTEGER || (2**53 - 1)`; higher value
412
- components are invalid (`9999999999999999.4.7.4` is likely invalid).