keep-a-changelog 2.5.3 → 2.6.0
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.
- package/CHANGELOG.md +22 -1
- package/README.md +15 -14
- package/esm/keep-a-changelog/bin.d.ts +2 -0
- package/esm/{bin.js → keep-a-changelog/bin.js} +85 -13
- package/esm/{mod.d.ts → keep-a-changelog/mod.d.ts} +1 -1
- package/esm/{mod.js → keep-a-changelog/mod.js} +1 -1
- package/esm/keep-a-changelog/test/changelog.azdo.md +24 -0
- package/esm/keep-a-changelog/test/changelog.sort.md +17 -0
- package/esm/std/cli/parse_args.d.ts +193 -0
- package/esm/std/cli/parse_args.js +357 -0
- package/esm/std/ini/_ini_map.d.ts +90 -0
- package/esm/std/ini/_ini_map.js +371 -0
- package/esm/std/ini/mod.d.ts +31 -0
- package/esm/std/ini/mod.js +33 -0
- package/esm/std/ini/parse.d.ts +77 -0
- package/esm/std/ini/parse.js +72 -0
- package/esm/std/ini/stringify.d.ts +83 -0
- package/esm/std/ini/stringify.js +66 -0
- package/esm/std/path/_common/assert_path.d.ts +1 -0
- package/esm/std/path/_common/assert_path.js +7 -0
- package/esm/std/path/_common/basename.d.ts +3 -0
- package/esm/std/path/_common/basename.js +40 -0
- package/esm/std/path/_common/common.d.ts +1 -0
- package/esm/std/path/_common/common.js +23 -0
- package/esm/{deps/deno.land/std@0.189.0/path/_constants.js → std/path/_common/constants.js} +1 -1
- package/esm/std/path/_common/dirname.d.ts +1 -0
- package/esm/std/path/_common/dirname.js +8 -0
- package/esm/std/path/_common/format.d.ts +3 -0
- package/esm/std/path/_common/format.js +19 -0
- package/esm/std/path/_common/from_file_url.d.ts +2 -0
- package/esm/std/path/_common/from_file_url.js +9 -0
- package/esm/std/path/_common/glob_to_reg_exp.d.ts +34 -0
- package/esm/std/path/_common/glob_to_reg_exp.js +234 -0
- package/esm/std/path/_common/normalize.d.ts +1 -0
- package/esm/std/path/_common/normalize.js +8 -0
- package/esm/std/path/_common/normalize_string.d.ts +1 -0
- package/esm/std/path/_common/normalize_string.js +77 -0
- package/esm/std/path/_common/relative.d.ts +1 -0
- package/esm/std/path/_common/relative.js +9 -0
- package/esm/std/path/_common/strip_trailing_separators.d.ts +1 -0
- package/esm/std/path/_common/strip_trailing_separators.js +19 -0
- package/esm/std/path/_common/to_file_url.d.ts +1 -0
- package/esm/std/path/_common/to_file_url.js +15 -0
- package/esm/std/path/_os.d.ts +1 -0
- package/esm/std/path/_os.js +9 -0
- package/esm/std/path/basename.d.ts +27 -0
- package/esm/std/path/basename.js +36 -0
- package/esm/std/path/common.d.ts +27 -0
- package/esm/std/path/common.js +33 -0
- package/esm/std/path/constants.d.ts +14 -0
- package/esm/std/path/constants.js +17 -0
- package/esm/std/path/dirname.d.ts +22 -0
- package/esm/std/path/dirname.js +29 -0
- package/esm/std/path/extname.d.ts +22 -0
- package/esm/std/path/extname.js +29 -0
- package/esm/std/path/format.d.ts +21 -0
- package/esm/std/path/format.js +27 -0
- package/esm/std/path/from_file_url.d.ts +22 -0
- package/esm/std/path/from_file_url.js +28 -0
- package/esm/std/path/glob_to_regexp.d.ts +76 -0
- package/esm/std/path/glob_to_regexp.js +83 -0
- package/esm/std/path/is_absolute.d.ts +21 -0
- package/esm/std/path/is_absolute.js +28 -0
- package/esm/std/path/is_glob.d.ts +16 -0
- package/esm/std/path/is_glob.js +42 -0
- package/esm/std/path/join.d.ts +22 -0
- package/esm/std/path/join.js +29 -0
- package/esm/std/path/join_globs.d.ts +27 -0
- package/esm/std/path/join_globs.js +34 -0
- package/esm/std/path/mod.d.ts +53 -0
- package/esm/std/path/mod.js +57 -0
- package/esm/std/path/normalize.d.ts +26 -0
- package/esm/std/path/normalize.js +33 -0
- package/esm/std/path/normalize_glob.d.ts +28 -0
- package/esm/std/path/normalize_glob.js +35 -0
- package/esm/std/path/parse.d.ts +34 -0
- package/esm/std/path/parse.js +39 -0
- package/esm/std/path/posix/_util.d.ts +1 -0
- package/esm/std/path/posix/_util.js +8 -0
- package/esm/std/path/posix/basename.d.ts +39 -0
- package/esm/std/path/posix/basename.js +49 -0
- package/esm/std/path/posix/constants.d.ts +12 -0
- package/esm/std/path/posix/constants.js +14 -0
- package/esm/std/path/posix/dirname.d.ts +31 -0
- package/esm/std/path/posix/dirname.js +62 -0
- package/esm/std/path/posix/extname.d.ts +36 -0
- package/esm/std/path/posix/extname.js +89 -0
- package/esm/std/path/posix/format.d.ts +23 -0
- package/esm/std/path/posix/format.js +28 -0
- package/esm/std/path/posix/from_file_url.d.ts +16 -0
- package/esm/std/path/posix/from_file_url.js +21 -0
- package/esm/std/path/posix/glob_to_regexp.d.ts +71 -0
- package/{script/deps/deno.land/std@0.189.0/path/glob.d.ts → esm/std/path/posix/glob_to_regexp.js} +28 -29
- package/esm/std/path/posix/is_absolute.d.ts +16 -0
- package/esm/std/path/posix/is_absolute.js +23 -0
- package/esm/std/path/posix/join.d.ts +32 -0
- package/esm/std/path/posix/join.js +42 -0
- package/esm/std/path/posix/join_globs.d.ts +19 -0
- package/esm/std/path/posix/join_globs.js +40 -0
- package/esm/std/path/posix/normalize.d.ts +39 -0
- package/esm/std/path/posix/normalize.js +57 -0
- package/esm/std/path/posix/normalize_glob.d.ts +19 -0
- package/esm/std/path/posix/normalize_glob.js +32 -0
- package/esm/std/path/posix/parse.d.ts +24 -0
- package/esm/std/path/posix/parse.js +115 -0
- package/esm/std/path/posix/relative.d.ts +19 -0
- package/esm/std/path/posix/relative.js +106 -0
- package/esm/std/path/posix/resolve.d.ts +16 -0
- package/esm/std/path/posix/resolve.js +59 -0
- package/esm/std/path/posix/to_file_url.d.ts +17 -0
- package/esm/std/path/posix/to_file_url.js +27 -0
- package/esm/std/path/posix/to_namespaced_path.d.ts +15 -0
- package/esm/std/path/posix/to_namespaced_path.js +20 -0
- package/esm/std/path/relative.d.ts +23 -0
- package/esm/std/path/relative.js +30 -0
- package/esm/std/path/resolve.d.ts +21 -0
- package/esm/std/path/resolve.js +30 -0
- package/esm/std/path/to_file_url.d.ts +22 -0
- package/esm/std/path/to_file_url.js +28 -0
- package/esm/std/path/to_namespaced_path.d.ts +20 -0
- package/esm/std/path/to_namespaced_path.js +29 -0
- package/esm/{deps/deno.land/std@0.189.0/path/_interface.d.ts → std/path/types.d.ts} +13 -2
- package/esm/std/path/types.js +3 -0
- package/esm/std/path/windows/_util.d.ts +3 -0
- package/esm/std/path/windows/_util.js +15 -0
- package/esm/std/path/windows/basename.d.ts +22 -0
- package/esm/std/path/windows/basename.js +44 -0
- package/esm/std/path/windows/constants.d.ts +12 -0
- package/esm/std/path/windows/constants.js +14 -0
- package/esm/std/path/windows/dirname.d.ts +19 -0
- package/esm/std/path/windows/dirname.js +112 -0
- package/esm/std/path/windows/extname.d.ts +19 -0
- package/esm/std/path/windows/extname.js +81 -0
- package/esm/std/path/windows/format.d.ts +23 -0
- package/esm/std/path/windows/format.js +28 -0
- package/esm/std/path/windows/from_file_url.d.ts +18 -0
- package/esm/std/path/windows/from_file_url.js +30 -0
- package/esm/std/path/windows/glob_to_regexp.d.ts +70 -0
- package/esm/{deps/deno.land/std@0.189.0/path/glob.d.ts → std/path/windows/glob_to_regexp.js} +28 -29
- package/esm/std/path/windows/is_absolute.d.ts +16 -0
- package/esm/std/path/windows/is_absolute.js +38 -0
- package/esm/std/path/windows/join.d.ts +19 -0
- package/esm/std/path/windows/join.js +74 -0
- package/esm/std/path/windows/join_globs.d.ts +20 -0
- package/esm/std/path/windows/join_globs.js +41 -0
- package/esm/std/path/windows/normalize.d.ts +21 -0
- package/esm/std/path/windows/normalize.js +134 -0
- package/esm/std/path/windows/normalize_glob.d.ts +19 -0
- package/esm/std/path/windows/normalize_glob.js +32 -0
- package/esm/std/path/windows/parse.d.ts +24 -0
- package/esm/std/path/windows/parse.js +176 -0
- package/esm/std/path/windows/relative.d.ts +22 -0
- package/esm/std/path/windows/relative.js +131 -0
- package/esm/std/path/windows/resolve.d.ts +16 -0
- package/esm/std/path/windows/resolve.js +154 -0
- package/esm/std/path/windows/to_file_url.d.ts +17 -0
- package/esm/std/path/windows/to_file_url.js +34 -0
- package/esm/std/path/windows/to_namespaced_path.d.ts +16 -0
- package/esm/std/path/windows/to_namespaced_path.js +49 -0
- package/esm/std/semver/_constants.d.ts +15 -0
- package/esm/std/semver/_constants.js +38 -0
- package/esm/std/semver/_shared.d.ts +43 -0
- package/esm/std/semver/_shared.js +162 -0
- package/esm/std/semver/_test_comparator_set.d.ts +2 -0
- package/esm/std/semver/_test_comparator_set.js +58 -0
- package/esm/std/semver/can_parse.d.ts +16 -0
- package/esm/std/semver/can_parse.js +27 -0
- package/esm/std/semver/compare.d.ts +27 -0
- package/esm/std/semver/compare.js +35 -0
- package/esm/std/semver/difference.d.ts +26 -0
- package/esm/std/semver/difference.js +41 -0
- package/esm/std/semver/equals.d.ts +23 -0
- package/esm/std/semver/equals.js +27 -0
- package/esm/std/semver/format.d.ts +21 -0
- package/esm/std/semver/format.js +32 -0
- package/esm/std/semver/format_range.d.ts +17 -0
- package/esm/std/semver/format_range.js +27 -0
- package/esm/std/semver/greater_or_equal.d.ts +24 -0
- package/esm/std/semver/greater_or_equal.js +26 -0
- package/esm/std/semver/greater_than.d.ts +24 -0
- package/esm/std/semver/greater_than.js +28 -0
- package/esm/std/semver/greater_than_range.d.ts +22 -0
- package/esm/std/semver/greater_than_range.js +58 -0
- package/{script/deps/deno.land/std@0.205.0 → esm/std}/semver/increment.d.ts +27 -5
- package/esm/std/semver/increment.js +176 -0
- package/esm/std/semver/is_range.d.ts +22 -0
- package/esm/std/semver/is_range.js +38 -0
- package/{script/deps/deno.land/std@0.205.0 → esm/std}/semver/is_semver.d.ts +16 -0
- package/esm/{deps/deno.land/std@0.205.0 → std}/semver/is_semver.js +25 -13
- package/esm/std/semver/less_or_equal.d.ts +24 -0
- package/esm/std/semver/less_or_equal.js +26 -0
- package/esm/std/semver/less_than.d.ts +24 -0
- package/esm/std/semver/less_than.js +26 -0
- package/esm/std/semver/less_than_range.d.ts +22 -0
- package/esm/std/semver/less_than_range.js +58 -0
- package/esm/std/semver/max_satisfying.d.ts +21 -0
- package/esm/std/semver/max_satisfying.js +30 -0
- package/esm/std/semver/min_satisfying.d.ts +21 -0
- package/esm/std/semver/min_satisfying.js +30 -0
- package/{script/deps/deno.land/std@0.205.0 → esm/std}/semver/mod.d.ts +72 -85
- package/esm/{deps/deno.land/std@0.205.0 → std}/semver/mod.js +73 -86
- package/esm/std/semver/not_equals.d.ts +23 -0
- package/esm/std/semver/not_equals.js +25 -0
- package/esm/std/semver/parse.d.ts +24 -0
- package/esm/std/semver/parse.js +44 -0
- package/esm/std/semver/parse_range.d.ts +26 -0
- package/esm/std/semver/parse_range.js +358 -0
- package/esm/std/semver/range_intersects.d.ts +24 -0
- package/esm/std/semver/range_intersects.js +89 -0
- package/esm/std/semver/satisfies.d.ts +23 -0
- package/esm/std/semver/satisfies.js +26 -0
- package/esm/std/semver/try_parse.d.ts +20 -0
- package/esm/std/semver/try_parse.js +27 -0
- package/esm/std/semver/try_parse_range.d.ts +22 -0
- package/esm/std/semver/try_parse_range.js +33 -0
- package/esm/std/semver/types.d.ts +57 -0
- package/esm/std/semver/types.js +3 -0
- package/package.json +14 -13
- package/script/keep-a-changelog/bin.d.ts +2 -0
- package/script/{bin.js → keep-a-changelog/bin.js} +86 -14
- package/script/{mod.d.ts → keep-a-changelog/mod.d.ts} +1 -1
- package/script/{mod.js → keep-a-changelog/mod.js} +1 -1
- package/script/keep-a-changelog/test/changelog.azdo.md +24 -0
- package/script/keep-a-changelog/test/changelog.sort.md +17 -0
- package/script/std/cli/parse_args.d.ts +193 -0
- package/script/std/cli/parse_args.js +361 -0
- package/script/std/ini/_ini_map.d.ts +90 -0
- package/script/std/ini/_ini_map.js +375 -0
- package/script/std/ini/mod.d.ts +31 -0
- package/script/std/ini/mod.js +49 -0
- package/script/std/ini/parse.d.ts +77 -0
- package/script/std/ini/parse.js +76 -0
- package/script/std/ini/stringify.d.ts +83 -0
- package/script/std/ini/stringify.js +70 -0
- package/script/std/path/_common/assert_path.d.ts +1 -0
- package/script/std/path/_common/assert_path.js +11 -0
- package/script/std/path/_common/basename.d.ts +3 -0
- package/script/std/path/_common/basename.js +46 -0
- package/script/std/path/_common/common.d.ts +1 -0
- package/script/std/path/_common/common.js +27 -0
- package/script/{deps/deno.land/std@0.189.0/path/_constants.js → std/path/_common/constants.js} +1 -1
- package/script/std/path/_common/dirname.d.ts +1 -0
- package/script/std/path/_common/dirname.js +12 -0
- package/script/std/path/_common/format.d.ts +3 -0
- package/script/std/path/_common/format.js +24 -0
- package/script/std/path/_common/from_file_url.d.ts +2 -0
- package/script/std/path/_common/from_file_url.js +13 -0
- package/script/std/path/_common/glob_to_reg_exp.d.ts +34 -0
- package/script/std/path/_common/glob_to_reg_exp.js +238 -0
- package/script/std/path/_common/normalize.d.ts +1 -0
- package/script/std/path/_common/normalize.js +12 -0
- package/script/std/path/_common/normalize_string.d.ts +1 -0
- package/script/std/path/_common/normalize_string.js +81 -0
- package/script/std/path/_common/relative.d.ts +1 -0
- package/script/std/path/_common/relative.js +13 -0
- package/script/std/path/_common/strip_trailing_separators.d.ts +1 -0
- package/script/std/path/_common/strip_trailing_separators.js +23 -0
- package/script/std/path/_common/to_file_url.d.ts +1 -0
- package/script/std/path/_common/to_file_url.js +19 -0
- package/script/std/path/_os.d.ts +1 -0
- package/script/{deps/deno.land/std@0.189.0/_util/os.js → std/path/_os.js} +10 -19
- package/script/std/path/basename.d.ts +27 -0
- package/script/std/path/basename.js +40 -0
- package/script/std/path/common.d.ts +27 -0
- package/script/std/path/common.js +37 -0
- package/script/std/path/constants.d.ts +14 -0
- package/script/std/path/constants.js +20 -0
- package/script/std/path/dirname.d.ts +22 -0
- package/script/std/path/dirname.js +33 -0
- package/script/std/path/extname.d.ts +22 -0
- package/script/std/path/extname.js +33 -0
- package/script/std/path/format.d.ts +21 -0
- package/script/std/path/format.js +31 -0
- package/script/std/path/from_file_url.d.ts +22 -0
- package/script/std/path/from_file_url.js +32 -0
- package/script/std/path/glob_to_regexp.d.ts +76 -0
- package/script/std/path/glob_to_regexp.js +87 -0
- package/script/std/path/is_absolute.d.ts +21 -0
- package/script/std/path/is_absolute.js +32 -0
- package/script/std/path/is_glob.d.ts +16 -0
- package/script/std/path/is_glob.js +46 -0
- package/script/std/path/join.d.ts +22 -0
- package/script/std/path/join.js +33 -0
- package/script/std/path/join_globs.d.ts +27 -0
- package/script/std/path/join_globs.js +38 -0
- package/script/std/path/mod.d.ts +53 -0
- package/script/std/path/mod.js +73 -0
- package/script/std/path/normalize.d.ts +26 -0
- package/script/std/path/normalize.js +37 -0
- package/script/std/path/normalize_glob.d.ts +28 -0
- package/script/std/path/normalize_glob.js +39 -0
- package/script/std/path/parse.d.ts +34 -0
- package/script/std/path/parse.js +43 -0
- package/script/std/path/posix/_util.d.ts +1 -0
- package/script/std/path/posix/_util.js +12 -0
- package/script/std/path/posix/basename.d.ts +39 -0
- package/script/std/path/posix/basename.js +53 -0
- package/script/std/path/posix/constants.d.ts +12 -0
- package/script/std/path/posix/constants.js +17 -0
- package/script/std/path/posix/dirname.d.ts +31 -0
- package/script/std/path/posix/dirname.js +66 -0
- package/script/std/path/posix/extname.d.ts +36 -0
- package/script/std/path/posix/extname.js +93 -0
- package/script/std/path/posix/format.d.ts +23 -0
- package/script/std/path/posix/format.js +32 -0
- package/script/std/path/posix/from_file_url.d.ts +16 -0
- package/script/std/path/posix/from_file_url.js +25 -0
- package/script/std/path/posix/glob_to_regexp.d.ts +71 -0
- package/script/std/path/posix/glob_to_regexp.js +86 -0
- package/script/std/path/posix/is_absolute.d.ts +16 -0
- package/script/std/path/posix/is_absolute.js +27 -0
- package/script/std/path/posix/join.d.ts +32 -0
- package/script/std/path/posix/join.js +46 -0
- package/script/std/path/posix/join_globs.d.ts +19 -0
- package/script/std/path/posix/join_globs.js +44 -0
- package/script/std/path/posix/normalize.d.ts +39 -0
- package/script/std/path/posix/normalize.js +61 -0
- package/script/std/path/posix/normalize_glob.d.ts +19 -0
- package/script/std/path/posix/normalize_glob.js +36 -0
- package/script/std/path/posix/parse.d.ts +24 -0
- package/script/std/path/posix/parse.js +119 -0
- package/script/std/path/posix/relative.d.ts +19 -0
- package/script/std/path/posix/relative.js +110 -0
- package/script/std/path/posix/resolve.d.ts +16 -0
- package/script/std/path/posix/resolve.js +86 -0
- package/script/std/path/posix/to_file_url.d.ts +17 -0
- package/script/std/path/posix/to_file_url.js +31 -0
- package/script/std/path/posix/to_namespaced_path.d.ts +15 -0
- package/script/std/path/posix/to_namespaced_path.js +24 -0
- package/script/std/path/relative.d.ts +23 -0
- package/script/std/path/relative.js +34 -0
- package/script/std/path/resolve.d.ts +21 -0
- package/script/std/path/resolve.js +34 -0
- package/script/std/path/to_file_url.d.ts +22 -0
- package/script/std/path/to_file_url.js +32 -0
- package/script/std/path/to_namespaced_path.d.ts +20 -0
- package/script/std/path/to_namespaced_path.js +33 -0
- package/script/{deps/deno.land/std@0.189.0/path/_interface.d.ts → std/path/types.d.ts} +13 -2
- package/script/{deps/deno.land/std@0.189.0/path/_interface.js → std/path/types.js} +1 -1
- package/script/std/path/windows/_util.d.ts +3 -0
- package/script/std/path/windows/_util.js +21 -0
- package/script/std/path/windows/basename.d.ts +22 -0
- package/script/std/path/windows/basename.js +48 -0
- package/script/std/path/windows/constants.d.ts +12 -0
- package/script/std/path/windows/constants.js +17 -0
- package/script/std/path/windows/dirname.d.ts +19 -0
- package/script/std/path/windows/dirname.js +116 -0
- package/script/std/path/windows/extname.d.ts +19 -0
- package/script/std/path/windows/extname.js +85 -0
- package/script/std/path/windows/format.d.ts +23 -0
- package/script/std/path/windows/format.js +32 -0
- package/script/std/path/windows/from_file_url.d.ts +18 -0
- package/script/std/path/windows/from_file_url.js +34 -0
- package/script/std/path/windows/glob_to_regexp.d.ts +70 -0
- package/script/std/path/windows/glob_to_regexp.js +86 -0
- package/script/std/path/windows/is_absolute.d.ts +16 -0
- package/script/std/path/windows/is_absolute.js +42 -0
- package/script/std/path/windows/join.d.ts +19 -0
- package/script/std/path/windows/join.js +78 -0
- package/script/std/path/windows/join_globs.d.ts +20 -0
- package/script/std/path/windows/join_globs.js +45 -0
- package/script/std/path/windows/normalize.d.ts +21 -0
- package/script/std/path/windows/normalize.js +138 -0
- package/script/std/path/windows/normalize_glob.d.ts +19 -0
- package/script/std/path/windows/normalize_glob.js +36 -0
- package/script/std/path/windows/parse.d.ts +24 -0
- package/script/std/path/windows/parse.js +180 -0
- package/script/std/path/windows/relative.d.ts +22 -0
- package/script/std/path/windows/relative.js +135 -0
- package/script/std/path/windows/resolve.d.ts +16 -0
- package/script/std/path/windows/resolve.js +181 -0
- package/script/std/path/windows/to_file_url.d.ts +17 -0
- package/script/std/path/windows/to_file_url.js +38 -0
- package/script/std/path/windows/to_namespaced_path.d.ts +16 -0
- package/script/std/path/windows/to_namespaced_path.js +53 -0
- package/script/std/semver/_constants.d.ts +15 -0
- package/script/std/semver/_constants.js +41 -0
- package/script/std/semver/_shared.d.ts +43 -0
- package/script/std/semver/_shared.js +174 -0
- package/script/std/semver/_test_comparator_set.d.ts +2 -0
- package/script/std/semver/_test_comparator_set.js +62 -0
- package/script/std/semver/can_parse.d.ts +16 -0
- package/script/std/semver/can_parse.js +31 -0
- package/script/std/semver/compare.d.ts +27 -0
- package/script/std/semver/compare.js +39 -0
- package/script/std/semver/difference.d.ts +26 -0
- package/script/std/semver/difference.js +45 -0
- package/script/std/semver/equals.d.ts +23 -0
- package/script/std/semver/equals.js +31 -0
- package/script/std/semver/format.d.ts +21 -0
- package/script/std/semver/format.js +36 -0
- package/script/std/semver/format_range.d.ts +17 -0
- package/script/std/semver/format_range.js +31 -0
- package/script/std/semver/greater_or_equal.d.ts +24 -0
- package/script/std/semver/greater_or_equal.js +30 -0
- package/script/std/semver/greater_than.d.ts +24 -0
- package/script/std/semver/greater_than.js +32 -0
- package/script/std/semver/greater_than_range.d.ts +22 -0
- package/script/std/semver/greater_than_range.js +62 -0
- package/{esm/deps/deno.land/std@0.205.0 → script/std}/semver/increment.d.ts +27 -5
- package/script/std/semver/increment.js +180 -0
- package/script/std/semver/is_range.d.ts +22 -0
- package/script/std/semver/is_range.js +42 -0
- package/{esm/deps/deno.land/std@0.205.0 → script/std}/semver/is_semver.d.ts +16 -0
- package/script/{deps/deno.land/std@0.205.0 → std}/semver/is_semver.js +26 -14
- package/script/std/semver/less_or_equal.d.ts +24 -0
- package/script/std/semver/less_or_equal.js +30 -0
- package/script/std/semver/less_than.d.ts +24 -0
- package/script/std/semver/less_than.js +30 -0
- package/script/std/semver/less_than_range.d.ts +22 -0
- package/script/std/semver/less_than_range.js +62 -0
- package/script/std/semver/max_satisfying.d.ts +21 -0
- package/script/std/semver/max_satisfying.js +34 -0
- package/script/std/semver/min_satisfying.d.ts +21 -0
- package/script/std/semver/min_satisfying.js +34 -0
- package/{esm/deps/deno.land/std@0.205.0 → script/std}/semver/mod.d.ts +72 -85
- package/script/{deps/deno.land/std@0.205.0 → std}/semver/mod.js +73 -87
- package/script/std/semver/not_equals.d.ts +23 -0
- package/script/std/semver/not_equals.js +29 -0
- package/script/std/semver/parse.d.ts +24 -0
- package/script/std/semver/parse.js +48 -0
- package/script/std/semver/parse_range.d.ts +26 -0
- package/script/std/semver/parse_range.js +362 -0
- package/script/std/semver/range_intersects.d.ts +24 -0
- package/script/std/semver/range_intersects.js +93 -0
- package/script/std/semver/satisfies.d.ts +23 -0
- package/script/std/semver/satisfies.js +30 -0
- package/script/std/semver/try_parse.d.ts +20 -0
- package/script/std/semver/try_parse.js +31 -0
- package/script/std/semver/try_parse_range.d.ts +22 -0
- package/script/std/semver/try_parse_range.js +37 -0
- package/script/std/semver/types.d.ts +57 -0
- package/script/std/semver/types.js +4 -0
- package/esm/bin.d.ts +0 -2
- package/esm/deps/deno.land/std@0.189.0/_util/asserts.d.ts +0 -10
- package/esm/deps/deno.land/std@0.189.0/_util/asserts.js +0 -21
- package/esm/deps/deno.land/std@0.189.0/_util/os.d.ts +0 -4
- package/esm/deps/deno.land/std@0.189.0/_util/os.js +0 -18
- package/esm/deps/deno.land/std@0.189.0/flags/mod.d.ts +0 -166
- package/esm/deps/deno.land/std@0.189.0/flags/mod.js +0 -365
- package/esm/deps/deno.land/std@0.189.0/path/_interface.js +0 -3
- package/esm/deps/deno.land/std@0.189.0/path/_util.d.ts +0 -11
- package/esm/deps/deno.land/std@0.189.0/path/_util.js +0 -161
- package/esm/deps/deno.land/std@0.189.0/path/common.d.ts +0 -13
- package/esm/deps/deno.land/std@0.189.0/path/common.js +0 -36
- package/esm/deps/deno.land/std@0.189.0/path/glob.js +0 -361
- package/esm/deps/deno.land/std@0.189.0/path/mod.d.ts +0 -11
- package/esm/deps/deno.land/std@0.189.0/path/mod.js +0 -35
- package/esm/deps/deno.land/std@0.189.0/path/posix.d.ts +0 -86
- package/esm/deps/deno.land/std@0.189.0/path/posix.js +0 -442
- package/esm/deps/deno.land/std@0.189.0/path/separator.d.ts +0 -2
- package/esm/deps/deno.land/std@0.189.0/path/separator.js +0 -5
- package/esm/deps/deno.land/std@0.189.0/path/win32.d.ts +0 -91
- package/esm/deps/deno.land/std@0.189.0/path/win32.js +0 -909
- package/esm/deps/deno.land/std@0.205.0/semver/_shared.d.ts +0 -42
- package/esm/deps/deno.land/std@0.205.0/semver/_shared.js +0 -230
- package/esm/deps/deno.land/std@0.205.0/semver/cmp.d.ts +0 -9
- package/esm/deps/deno.land/std@0.205.0/semver/cmp.js +0 -35
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_format.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_format.js +0 -11
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_intersects.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_intersects.js +0 -45
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_max.d.ts +0 -9
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_max.js +0 -45
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_min.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/comparator_min.js +0 -32
- package/esm/deps/deno.land/std@0.205.0/semver/compare.d.ts +0 -10
- package/esm/deps/deno.land/std@0.205.0/semver/compare.js +0 -18
- package/esm/deps/deno.land/std@0.205.0/semver/compare_build.d.ts +0 -13
- package/esm/deps/deno.land/std@0.205.0/semver/compare_build.js +0 -23
- package/esm/deps/deno.land/std@0.205.0/semver/constants.d.ts +0 -42
- package/esm/deps/deno.land/std@0.205.0/semver/constants.js +0 -75
- package/esm/deps/deno.land/std@0.205.0/semver/difference.d.ts +0 -4
- package/esm/deps/deno.land/std@0.205.0/semver/difference.js +0 -26
- package/esm/deps/deno.land/std@0.205.0/semver/eq.d.ts +0 -4
- package/esm/deps/deno.land/std@0.205.0/semver/eq.js +0 -7
- package/esm/deps/deno.land/std@0.205.0/semver/format.d.ts +0 -12
- package/esm/deps/deno.land/std@0.205.0/semver/format.js +0 -54
- package/esm/deps/deno.land/std@0.205.0/semver/gt.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/gt.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/gte.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/gte.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/gtr.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/gtr.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/increment.js +0 -207
- package/esm/deps/deno.land/std@0.205.0/semver/is_semver_comparator.d.ts +0 -12
- package/esm/deps/deno.land/std@0.205.0/semver/is_semver_comparator.js +0 -31
- package/esm/deps/deno.land/std@0.205.0/semver/is_semver_range.d.ts +0 -12
- package/esm/deps/deno.land/std@0.205.0/semver/is_semver_range.js +0 -22
- package/esm/deps/deno.land/std@0.205.0/semver/lt.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/lt.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/lte.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/lte.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/ltr.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/ltr.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/max_satisfying.d.ts +0 -9
- package/esm/deps/deno.land/std@0.205.0/semver/max_satisfying.js +0 -14
- package/esm/deps/deno.land/std@0.205.0/semver/min_satisfying.d.ts +0 -9
- package/esm/deps/deno.land/std@0.205.0/semver/min_satisfying.js +0 -14
- package/esm/deps/deno.land/std@0.205.0/semver/neq.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/neq.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/outside.d.ts +0 -11
- package/esm/deps/deno.land/std@0.205.0/semver/outside.js +0 -67
- package/esm/deps/deno.land/std@0.205.0/semver/parse.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/parse.js +0 -66
- package/esm/deps/deno.land/std@0.205.0/semver/parse_comparator.d.ts +0 -7
- package/esm/deps/deno.land/std@0.205.0/semver/parse_comparator.js +0 -28
- package/esm/deps/deno.land/std@0.205.0/semver/parse_range.d.ts +0 -7
- package/esm/deps/deno.land/std@0.205.0/semver/parse_range.js +0 -292
- package/esm/deps/deno.land/std@0.205.0/semver/range_format.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/range_format.js +0 -11
- package/esm/deps/deno.land/std@0.205.0/semver/range_intersects.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/range_intersects.js +0 -35
- package/esm/deps/deno.land/std@0.205.0/semver/range_max.d.ts +0 -7
- package/esm/deps/deno.land/std@0.205.0/semver/range_max.js +0 -15
- package/esm/deps/deno.land/std@0.205.0/semver/range_min.d.ts +0 -7
- package/esm/deps/deno.land/std@0.205.0/semver/range_min.js +0 -14
- package/esm/deps/deno.land/std@0.205.0/semver/rcompare.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/rcompare.js +0 -10
- package/esm/deps/deno.land/std@0.205.0/semver/rsort.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/rsort.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/sort.d.ts +0 -3
- package/esm/deps/deno.land/std@0.205.0/semver/sort.js +0 -5
- package/esm/deps/deno.land/std@0.205.0/semver/test_comparator.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/test_comparator.js +0 -10
- package/esm/deps/deno.land/std@0.205.0/semver/test_range.d.ts +0 -8
- package/esm/deps/deno.land/std@0.205.0/semver/test_range.js +0 -16
- package/esm/deps/deno.land/std@0.205.0/semver/types.d.ts +0 -44
- package/esm/deps/deno.land/std@0.205.0/semver/types.js +0 -2
- package/esm/deps/deno.land/std@0.51.0/fs/eol.d.ts +0 -12
- package/esm/deps/deno.land/std@0.51.0/fs/eol.js +0 -29
- package/esm/deps/deno.land/x/ini@v2.1.0/ini.d.ts +0 -53
- package/esm/deps/deno.land/x/ini@v2.1.0/ini.js +0 -226
- package/esm/deps/deno.land/x/ini@v2.1.0/mod.d.ts +0 -1
- package/esm/deps/deno.land/x/ini@v2.1.0/mod.js +0 -1
- package/esm/src/Change.d.ts +0 -8
- package/esm/src/Change.js +0 -48
- package/esm/src/Changelog.d.ts +0 -23
- package/esm/src/Changelog.js +0 -183
- package/esm/src/Release.d.ts +0 -28
- package/esm/src/Release.js +0 -220
- package/esm/src/deps.d.ts +0 -2
- package/esm/src/deps.js +0 -1
- package/esm/src/parser.d.ts +0 -11
- package/esm/src/parser.js +0 -178
- package/esm/src/settings.d.ts +0 -17
- package/esm/src/settings.js +0 -47
- package/script/bin.d.ts +0 -2
- package/script/deps/deno.land/std@0.189.0/_util/asserts.d.ts +0 -10
- package/script/deps/deno.land/std@0.189.0/_util/asserts.js +0 -27
- package/script/deps/deno.land/std@0.189.0/_util/os.d.ts +0 -4
- package/script/deps/deno.land/std@0.189.0/flags/mod.d.ts +0 -166
- package/script/deps/deno.land/std@0.189.0/flags/mod.js +0 -369
- package/script/deps/deno.land/std@0.189.0/path/_util.d.ts +0 -11
- package/script/deps/deno.land/std@0.189.0/path/_util.js +0 -174
- package/script/deps/deno.land/std@0.189.0/path/common.d.ts +0 -13
- package/script/deps/deno.land/std@0.189.0/path/common.js +0 -40
- package/script/deps/deno.land/std@0.189.0/path/glob.js +0 -391
- package/script/deps/deno.land/std@0.189.0/path/mod.d.ts +0 -11
- package/script/deps/deno.land/std@0.189.0/path/mod.js +0 -66
- package/script/deps/deno.land/std@0.189.0/path/posix.d.ts +0 -86
- package/script/deps/deno.land/std@0.189.0/path/posix.js +0 -481
- package/script/deps/deno.land/std@0.189.0/path/separator.d.ts +0 -2
- package/script/deps/deno.land/std@0.189.0/path/separator.js +0 -8
- package/script/deps/deno.land/std@0.189.0/path/win32.d.ts +0 -91
- package/script/deps/deno.land/std@0.189.0/path/win32.js +0 -948
- package/script/deps/deno.land/std@0.205.0/semver/_shared.d.ts +0 -42
- package/script/deps/deno.land/std@0.205.0/semver/_shared.js +0 -248
- package/script/deps/deno.land/std@0.205.0/semver/cmp.d.ts +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/cmp.js +0 -39
- package/script/deps/deno.land/std@0.205.0/semver/comparator_format.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/comparator_format.js +0 -15
- package/script/deps/deno.land/std@0.205.0/semver/comparator_intersects.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/comparator_intersects.js +0 -49
- package/script/deps/deno.land/std@0.205.0/semver/comparator_max.d.ts +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/comparator_max.js +0 -49
- package/script/deps/deno.land/std@0.205.0/semver/comparator_min.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/comparator_min.js +0 -36
- package/script/deps/deno.land/std@0.205.0/semver/compare.d.ts +0 -10
- package/script/deps/deno.land/std@0.205.0/semver/compare.js +0 -22
- package/script/deps/deno.land/std@0.205.0/semver/compare_build.d.ts +0 -13
- package/script/deps/deno.land/std@0.205.0/semver/compare_build.js +0 -27
- package/script/deps/deno.land/std@0.205.0/semver/constants.d.ts +0 -42
- package/script/deps/deno.land/std@0.205.0/semver/constants.js +0 -78
- package/script/deps/deno.land/std@0.205.0/semver/difference.d.ts +0 -4
- package/script/deps/deno.land/std@0.205.0/semver/difference.js +0 -30
- package/script/deps/deno.land/std@0.205.0/semver/eq.d.ts +0 -4
- package/script/deps/deno.land/std@0.205.0/semver/eq.js +0 -11
- package/script/deps/deno.land/std@0.205.0/semver/format.d.ts +0 -12
- package/script/deps/deno.land/std@0.205.0/semver/format.js +0 -58
- package/script/deps/deno.land/std@0.205.0/semver/gt.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/gt.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/gte.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/gte.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/gtr.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/gtr.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/increment.js +0 -211
- package/script/deps/deno.land/std@0.205.0/semver/is_semver_comparator.d.ts +0 -12
- package/script/deps/deno.land/std@0.205.0/semver/is_semver_comparator.js +0 -35
- package/script/deps/deno.land/std@0.205.0/semver/is_semver_range.d.ts +0 -12
- package/script/deps/deno.land/std@0.205.0/semver/is_semver_range.js +0 -26
- package/script/deps/deno.land/std@0.205.0/semver/lt.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/lt.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/lte.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/lte.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/ltr.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/ltr.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/max_satisfying.d.ts +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/max_satisfying.js +0 -18
- package/script/deps/deno.land/std@0.205.0/semver/min_satisfying.d.ts +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/min_satisfying.js +0 -18
- package/script/deps/deno.land/std@0.205.0/semver/neq.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/neq.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/outside.d.ts +0 -11
- package/script/deps/deno.land/std@0.205.0/semver/outside.js +0 -71
- package/script/deps/deno.land/std@0.205.0/semver/parse.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/parse.js +0 -70
- package/script/deps/deno.land/std@0.205.0/semver/parse_comparator.d.ts +0 -7
- package/script/deps/deno.land/std@0.205.0/semver/parse_comparator.js +0 -32
- package/script/deps/deno.land/std@0.205.0/semver/parse_range.d.ts +0 -7
- package/script/deps/deno.land/std@0.205.0/semver/parse_range.js +0 -296
- package/script/deps/deno.land/std@0.205.0/semver/range_format.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/range_format.js +0 -15
- package/script/deps/deno.land/std@0.205.0/semver/range_intersects.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/range_intersects.js +0 -39
- package/script/deps/deno.land/std@0.205.0/semver/range_max.d.ts +0 -7
- package/script/deps/deno.land/std@0.205.0/semver/range_max.js +0 -19
- package/script/deps/deno.land/std@0.205.0/semver/range_min.d.ts +0 -7
- package/script/deps/deno.land/std@0.205.0/semver/range_min.js +0 -18
- package/script/deps/deno.land/std@0.205.0/semver/rcompare.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/rcompare.js +0 -14
- package/script/deps/deno.land/std@0.205.0/semver/rsort.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/rsort.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/sort.d.ts +0 -3
- package/script/deps/deno.land/std@0.205.0/semver/sort.js +0 -9
- package/script/deps/deno.land/std@0.205.0/semver/test_comparator.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/test_comparator.js +0 -14
- package/script/deps/deno.land/std@0.205.0/semver/test_range.d.ts +0 -8
- package/script/deps/deno.land/std@0.205.0/semver/test_range.js +0 -20
- package/script/deps/deno.land/std@0.205.0/semver/types.d.ts +0 -44
- package/script/deps/deno.land/std@0.205.0/semver/types.js +0 -3
- package/script/deps/deno.land/std@0.51.0/fs/eol.d.ts +0 -12
- package/script/deps/deno.land/std@0.51.0/fs/eol.js +0 -34
- package/script/deps/deno.land/x/ini@v2.1.0/ini.d.ts +0 -53
- package/script/deps/deno.land/x/ini@v2.1.0/ini.js +0 -256
- package/script/deps/deno.land/x/ini@v2.1.0/mod.d.ts +0 -1
- package/script/deps/deno.land/x/ini@v2.1.0/mod.js +0 -17
- package/script/src/Change.d.ts +0 -8
- package/script/src/Change.js +0 -51
- package/script/src/Changelog.d.ts +0 -23
- package/script/src/Changelog.js +0 -186
- package/script/src/Release.d.ts +0 -28
- package/script/src/Release.js +0 -226
- package/script/src/deps.d.ts +0 -2
- package/script/src/deps.js +0 -8
- package/script/src/parser.d.ts +0 -11
- package/script/src/parser.js +0 -184
- package/script/src/settings.d.ts +0 -17
- package/script/src/settings.js +0 -51
- /package/esm/{test → keep-a-changelog/test}/changelog.custom.type.md +0 -0
- /package/esm/{test → keep-a-changelog/test}/changelog.expected.linted.md +0 -0
- /package/esm/{test → keep-a-changelog/test}/changelog.expected.md +0 -0
- /package/esm/{test → keep-a-changelog/test}/changelog.gitlab.md +0 -0
- /package/esm/{test → keep-a-changelog/test}/changelog.md +0 -0
- /package/esm/{test → keep-a-changelog/test}/empty.expected.md +0 -0
- /package/esm/{deps/deno.land/std@0.189.0/path/_constants.d.ts → std/path/_common/constants.d.ts} +0 -0
- /package/script/{test → keep-a-changelog/test}/changelog.custom.type.md +0 -0
- /package/script/{test → keep-a-changelog/test}/changelog.expected.linted.md +0 -0
- /package/script/{test → keep-a-changelog/test}/changelog.expected.md +0 -0
- /package/script/{test → keep-a-changelog/test}/changelog.gitlab.md +0 -0
- /package/script/{test → keep-a-changelog/test}/changelog.md +0 -0
- /package/script/{test → keep-a-changelog/test}/empty.expected.md +0 -0
- /package/script/{deps/deno.land/std@0.189.0/path/_constants.d.ts → std/path/_common/constants.d.ts} +0 -0
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { eq } from "./eq.js";
|
|
2
|
-
/** Returns difference between two versions by the release type, or
|
|
3
|
-
* `undefined` if the versions are the same. */
|
|
4
|
-
export function difference(s0, s1) {
|
|
5
|
-
if (eq(s0, s1)) {
|
|
6
|
-
return undefined;
|
|
7
|
-
}
|
|
8
|
-
else {
|
|
9
|
-
let prefix = "";
|
|
10
|
-
let defaultResult = undefined;
|
|
11
|
-
if (s0 && s1) {
|
|
12
|
-
if (s0.prerelease.length || s1.prerelease.length) {
|
|
13
|
-
prefix = "pre";
|
|
14
|
-
defaultResult = "prerelease";
|
|
15
|
-
}
|
|
16
|
-
for (const key in s0) {
|
|
17
|
-
if (key === "major" || key === "minor" || key === "patch") {
|
|
18
|
-
if (s0[key] !== s1[key]) {
|
|
19
|
-
return (prefix + key);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
return defaultResult; // may be undefined
|
|
25
|
-
}
|
|
26
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
import { compare } from "./compare.js";
|
|
3
|
-
/** Returns `true` if they're logically equivalent, even if they're not the exact
|
|
4
|
-
* same version object. */
|
|
5
|
-
export function eq(s0, s1) {
|
|
6
|
-
return compare(s0, s1) === 0;
|
|
7
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { FormatStyle, SemVer } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Format a SemVer object into a string.
|
|
4
|
-
*
|
|
5
|
-
* If any number is NaN then NaN will be printed.
|
|
6
|
-
*
|
|
7
|
-
* If any number is positive or negative infinity then '∞' or '⧞' will be printed instead.
|
|
8
|
-
*
|
|
9
|
-
* @param semver The semantic version to format
|
|
10
|
-
* @returns The string representation of a semantic version.
|
|
11
|
-
*/
|
|
12
|
-
export declare function format(semver: SemVer, style?: FormatStyle): string;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
import { ANY } from "./constants.js";
|
|
3
|
-
function formatNumber(value) {
|
|
4
|
-
if (value === Number.POSITIVE_INFINITY) {
|
|
5
|
-
return "∞";
|
|
6
|
-
}
|
|
7
|
-
else if (value === Number.NEGATIVE_INFINITY) {
|
|
8
|
-
return "⧞";
|
|
9
|
-
}
|
|
10
|
-
else {
|
|
11
|
-
return value.toFixed(0);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Format a SemVer object into a string.
|
|
16
|
-
*
|
|
17
|
-
* If any number is NaN then NaN will be printed.
|
|
18
|
-
*
|
|
19
|
-
* If any number is positive or negative infinity then '∞' or '⧞' will be printed instead.
|
|
20
|
-
*
|
|
21
|
-
* @param semver The semantic version to format
|
|
22
|
-
* @returns The string representation of a semantic version.
|
|
23
|
-
*/
|
|
24
|
-
export function format(semver, style = "full") {
|
|
25
|
-
if (semver === ANY) {
|
|
26
|
-
return "*";
|
|
27
|
-
}
|
|
28
|
-
const major = formatNumber(semver.major);
|
|
29
|
-
const minor = formatNumber(semver.minor);
|
|
30
|
-
const patch = formatNumber(semver.patch);
|
|
31
|
-
const pre = semver.prerelease.join(".");
|
|
32
|
-
const build = semver.build.join(".");
|
|
33
|
-
const primary = `${major}.${minor}.${patch}`;
|
|
34
|
-
const release = [primary, pre].filter((v) => v).join("-");
|
|
35
|
-
const full = [release, build].filter((v) => v).join("+");
|
|
36
|
-
switch (style) {
|
|
37
|
-
case "full":
|
|
38
|
-
return full;
|
|
39
|
-
case "release":
|
|
40
|
-
return release;
|
|
41
|
-
case "primary":
|
|
42
|
-
return primary;
|
|
43
|
-
case "build":
|
|
44
|
-
return build;
|
|
45
|
-
case "pre":
|
|
46
|
-
return pre;
|
|
47
|
-
case "patch":
|
|
48
|
-
return patch;
|
|
49
|
-
case "minor":
|
|
50
|
-
return minor;
|
|
51
|
-
case "major":
|
|
52
|
-
return major;
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,207 +0,0 @@
|
|
|
1
|
-
function pre(prerelease, identifier) {
|
|
2
|
-
let values = [...prerelease];
|
|
3
|
-
// In reality this will either be 0, 1 or 2 entries.
|
|
4
|
-
let i = values.length;
|
|
5
|
-
while (--i >= 0) {
|
|
6
|
-
if (typeof values[i] === "number") {
|
|
7
|
-
// deno-fmt-ignore
|
|
8
|
-
values[i]++;
|
|
9
|
-
i = -2;
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
if (i === -1) {
|
|
13
|
-
// didn't increment anything
|
|
14
|
-
values.push(0);
|
|
15
|
-
}
|
|
16
|
-
if (identifier) {
|
|
17
|
-
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
|
|
18
|
-
// 1.2.0-beta.foobar or 1.2.0-beta bumps to 1.2.0-beta.0
|
|
19
|
-
if (values[0] === identifier) {
|
|
20
|
-
if (isNaN(values[1])) {
|
|
21
|
-
values = [identifier, 0];
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
else {
|
|
25
|
-
values = [identifier, 0];
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
return values;
|
|
29
|
-
}
|
|
30
|
-
function parseBuild(build, metadata) {
|
|
31
|
-
return metadata === undefined ? build : metadata.split(".").filter((m) => m);
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Returns the new version resulting from an increment by release type.
|
|
35
|
-
*
|
|
36
|
-
* `premajor`, `preminor` and `prepatch` will bump the version up to the next version,
|
|
37
|
-
* based on the type, and will also add prerelease metadata.
|
|
38
|
-
*
|
|
39
|
-
* If called from a non-prerelease version, the `prerelease` will work the same as
|
|
40
|
-
* `prepatch`. The patch version is incremented and then is made into a prerelease. If
|
|
41
|
-
* the input version is already a prerelease it will simply increment the prerelease
|
|
42
|
-
* metadata.
|
|
43
|
-
*
|
|
44
|
-
* If a prerelease identifier is specified without a number then a number will be added.
|
|
45
|
-
* For example `pre` will result in `pre.0`. If the existing version already has a
|
|
46
|
-
* prerelease with a number and its the same prerelease identifier then the number
|
|
47
|
-
* will be incremented. If the identifier differs from the new identifier then the new
|
|
48
|
-
* identifier is applied and the number is reset to `0`.
|
|
49
|
-
*
|
|
50
|
-
* If the input version has build metadata it will be preserved on the resulting version
|
|
51
|
-
* unless a new build parameter is specified. Specifying `""` will unset existing build
|
|
52
|
-
* metadata.
|
|
53
|
-
* @param version The version to increment
|
|
54
|
-
* @param release The type of increment to perform
|
|
55
|
-
* @param prerelease The pre-release metadata of the new version
|
|
56
|
-
* @param build The build metadata of the new version
|
|
57
|
-
* @returns
|
|
58
|
-
*/
|
|
59
|
-
export function increment(version, release, prerelease, build) {
|
|
60
|
-
let result;
|
|
61
|
-
switch (release) {
|
|
62
|
-
case "premajor":
|
|
63
|
-
result = {
|
|
64
|
-
major: version.major + 1,
|
|
65
|
-
minor: 0,
|
|
66
|
-
patch: 0,
|
|
67
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
68
|
-
build: parseBuild(version.build, build),
|
|
69
|
-
};
|
|
70
|
-
break;
|
|
71
|
-
case "preminor":
|
|
72
|
-
result = {
|
|
73
|
-
major: version.major,
|
|
74
|
-
minor: version.minor + 1,
|
|
75
|
-
patch: 0,
|
|
76
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
77
|
-
build: parseBuild(version.build, build),
|
|
78
|
-
};
|
|
79
|
-
break;
|
|
80
|
-
case "prepatch":
|
|
81
|
-
result = {
|
|
82
|
-
major: version.major,
|
|
83
|
-
minor: version.minor,
|
|
84
|
-
patch: version.patch + 1,
|
|
85
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
86
|
-
build: parseBuild(version.build, build),
|
|
87
|
-
};
|
|
88
|
-
break;
|
|
89
|
-
// If the input is a non-prerelease version, this acts the same as
|
|
90
|
-
// prepatch.
|
|
91
|
-
case "prerelease":
|
|
92
|
-
if (version.prerelease.length === 0) {
|
|
93
|
-
result = {
|
|
94
|
-
major: version.major,
|
|
95
|
-
minor: version.minor,
|
|
96
|
-
patch: version.patch + 1,
|
|
97
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
98
|
-
build: parseBuild(version.build, build),
|
|
99
|
-
};
|
|
100
|
-
break;
|
|
101
|
-
}
|
|
102
|
-
else {
|
|
103
|
-
result = {
|
|
104
|
-
major: version.major,
|
|
105
|
-
minor: version.minor,
|
|
106
|
-
patch: version.patch,
|
|
107
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
108
|
-
build: parseBuild(version.build, build),
|
|
109
|
-
};
|
|
110
|
-
break;
|
|
111
|
-
}
|
|
112
|
-
case "major":
|
|
113
|
-
// If this is a pre-major version, bump up to the same major version.
|
|
114
|
-
// Otherwise increment major.
|
|
115
|
-
// 1.0.0-5 bumps to 1.0.0
|
|
116
|
-
// 1.1.0 bumps to 2.0.0
|
|
117
|
-
if (version.minor !== 0 ||
|
|
118
|
-
version.patch !== 0 ||
|
|
119
|
-
version.prerelease.length === 0) {
|
|
120
|
-
result = {
|
|
121
|
-
major: version.major + 1,
|
|
122
|
-
minor: 0,
|
|
123
|
-
patch: 0,
|
|
124
|
-
prerelease: [],
|
|
125
|
-
build: parseBuild(version.build, build),
|
|
126
|
-
};
|
|
127
|
-
break;
|
|
128
|
-
}
|
|
129
|
-
else {
|
|
130
|
-
result = {
|
|
131
|
-
major: version.major,
|
|
132
|
-
minor: 0,
|
|
133
|
-
patch: 0,
|
|
134
|
-
prerelease: [],
|
|
135
|
-
build: parseBuild(version.build, build),
|
|
136
|
-
};
|
|
137
|
-
break;
|
|
138
|
-
}
|
|
139
|
-
case "minor":
|
|
140
|
-
// If this is a pre-minor version, bump up to the same minor version.
|
|
141
|
-
// Otherwise increment minor.
|
|
142
|
-
// 1.2.0-5 bumps to 1.2.0
|
|
143
|
-
// 1.2.1 bumps to 1.3.0
|
|
144
|
-
if (version.patch !== 0 ||
|
|
145
|
-
version.prerelease.length === 0) {
|
|
146
|
-
result = {
|
|
147
|
-
major: version.major,
|
|
148
|
-
minor: version.minor + 1,
|
|
149
|
-
patch: 0,
|
|
150
|
-
prerelease: [],
|
|
151
|
-
build: parseBuild(version.build, build),
|
|
152
|
-
};
|
|
153
|
-
break;
|
|
154
|
-
}
|
|
155
|
-
else {
|
|
156
|
-
result = {
|
|
157
|
-
major: version.major,
|
|
158
|
-
minor: version.minor,
|
|
159
|
-
patch: 0,
|
|
160
|
-
prerelease: [],
|
|
161
|
-
build: parseBuild(version.build, build),
|
|
162
|
-
};
|
|
163
|
-
break;
|
|
164
|
-
}
|
|
165
|
-
case "patch":
|
|
166
|
-
// If this is not a pre-release version, it will increment the patch.
|
|
167
|
-
// If it is a pre-release it will bump up to the same patch version.
|
|
168
|
-
// 1.2.0-5 patches to 1.2.0
|
|
169
|
-
// 1.2.0 patches to 1.2.1
|
|
170
|
-
if (version.prerelease.length === 0) {
|
|
171
|
-
result = {
|
|
172
|
-
major: version.major,
|
|
173
|
-
minor: version.minor,
|
|
174
|
-
patch: version.patch + 1,
|
|
175
|
-
prerelease: [],
|
|
176
|
-
build: parseBuild(version.build, build),
|
|
177
|
-
};
|
|
178
|
-
break;
|
|
179
|
-
}
|
|
180
|
-
else {
|
|
181
|
-
result = {
|
|
182
|
-
major: version.major,
|
|
183
|
-
minor: version.minor,
|
|
184
|
-
patch: version.patch,
|
|
185
|
-
prerelease: [],
|
|
186
|
-
build: parseBuild(version.build, build),
|
|
187
|
-
};
|
|
188
|
-
break;
|
|
189
|
-
}
|
|
190
|
-
// 1.0.0 "pre" would become 1.0.0-0
|
|
191
|
-
// 1.0.0-0 would become 1.0.0-1
|
|
192
|
-
// 1.0.0-beta.0 would be come 1.0.0-beta.1
|
|
193
|
-
// switching the pre identifier resets the number to 0
|
|
194
|
-
case "pre":
|
|
195
|
-
result = {
|
|
196
|
-
major: version.major,
|
|
197
|
-
minor: version.minor,
|
|
198
|
-
patch: version.patch,
|
|
199
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
200
|
-
build: parseBuild(version.build, build),
|
|
201
|
-
};
|
|
202
|
-
break;
|
|
203
|
-
default:
|
|
204
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
205
|
-
}
|
|
206
|
-
return result;
|
|
207
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { SemVerComparator } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Does a deep check on the value to see if it is a valid SemVerComparator object.
|
|
4
|
-
*
|
|
5
|
-
* Objects with extra fields are still considered valid if they have at
|
|
6
|
-
* least the correct fields.
|
|
7
|
-
*
|
|
8
|
-
* Adds a type assertion if true.
|
|
9
|
-
* @param value The value to check if its a SemVerComparator
|
|
10
|
-
* @returns True if the object is a SemVerComparator otherwise false
|
|
11
|
-
*/
|
|
12
|
-
export declare function isSemVerComparator(value: unknown): value is SemVerComparator;
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
import { isSemVer } from "./is_semver.js";
|
|
3
|
-
import { isValidOperator } from "./_shared.js";
|
|
4
|
-
import { ALL, NONE } from "./constants.js";
|
|
5
|
-
/**
|
|
6
|
-
* Does a deep check on the value to see if it is a valid SemVerComparator object.
|
|
7
|
-
*
|
|
8
|
-
* Objects with extra fields are still considered valid if they have at
|
|
9
|
-
* least the correct fields.
|
|
10
|
-
*
|
|
11
|
-
* Adds a type assertion if true.
|
|
12
|
-
* @param value The value to check if its a SemVerComparator
|
|
13
|
-
* @returns True if the object is a SemVerComparator otherwise false
|
|
14
|
-
*/
|
|
15
|
-
export function isSemVerComparator(value) {
|
|
16
|
-
if (value === null || value === undefined)
|
|
17
|
-
return false;
|
|
18
|
-
if (value === NONE)
|
|
19
|
-
return true;
|
|
20
|
-
if (value === ALL)
|
|
21
|
-
return true;
|
|
22
|
-
if (Array.isArray(value))
|
|
23
|
-
return false;
|
|
24
|
-
if (typeof value !== "object")
|
|
25
|
-
return false;
|
|
26
|
-
const { operator, semver, min, max } = value;
|
|
27
|
-
return (isValidOperator(operator) &&
|
|
28
|
-
isSemVer(semver) &&
|
|
29
|
-
isSemVer(min) &&
|
|
30
|
-
isSemVer(max));
|
|
31
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import type { SemVerRange } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Does a deep check on the object to determine if its a valid range.
|
|
4
|
-
*
|
|
5
|
-
* Objects with extra fields are still considered valid if they have at
|
|
6
|
-
* least the correct fields.
|
|
7
|
-
*
|
|
8
|
-
* Adds a type assertion if true.
|
|
9
|
-
* @param value The value to check if its a valid SemVerRange
|
|
10
|
-
* @returns True if its a valid SemVerRange otherwise false.
|
|
11
|
-
*/
|
|
12
|
-
export declare function isSemVerRange(value: unknown): value is SemVerRange;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { isSemVerComparator } from "./is_semver_comparator.js";
|
|
2
|
-
/**
|
|
3
|
-
* Does a deep check on the object to determine if its a valid range.
|
|
4
|
-
*
|
|
5
|
-
* Objects with extra fields are still considered valid if they have at
|
|
6
|
-
* least the correct fields.
|
|
7
|
-
*
|
|
8
|
-
* Adds a type assertion if true.
|
|
9
|
-
* @param value The value to check if its a valid SemVerRange
|
|
10
|
-
* @returns True if its a valid SemVerRange otherwise false.
|
|
11
|
-
*/
|
|
12
|
-
export function isSemVerRange(value) {
|
|
13
|
-
if (value === null || value === undefined)
|
|
14
|
-
return false;
|
|
15
|
-
if (Array.isArray(value))
|
|
16
|
-
return false;
|
|
17
|
-
if (typeof value !== "object")
|
|
18
|
-
return false;
|
|
19
|
-
const { ranges } = value;
|
|
20
|
-
return (Array.isArray(ranges),
|
|
21
|
-
ranges.every((r) => Array.isArray(r) && r.every((c) => isSemVerComparator(c))));
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SemVer, SemVerRange } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Returns the highest version in the list that satisfies the range, or `undefined`
|
|
4
|
-
* if none of them do.
|
|
5
|
-
* @param versions The versions to check.
|
|
6
|
-
* @param range The range of possible versions to compare to.
|
|
7
|
-
* @returns The highest version in versions that satisfies the range.
|
|
8
|
-
*/
|
|
9
|
-
export declare function maxSatisfying(versions: SemVer[], range: SemVerRange): SemVer | undefined;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { sort } from "./sort.js";
|
|
2
|
-
import { testRange } from "./test_range.js";
|
|
3
|
-
/**
|
|
4
|
-
* Returns the highest version in the list that satisfies the range, or `undefined`
|
|
5
|
-
* if none of them do.
|
|
6
|
-
* @param versions The versions to check.
|
|
7
|
-
* @param range The range of possible versions to compare to.
|
|
8
|
-
* @returns The highest version in versions that satisfies the range.
|
|
9
|
-
*/
|
|
10
|
-
export function maxSatisfying(versions, range) {
|
|
11
|
-
const satisfying = versions.filter((v) => testRange(v, range));
|
|
12
|
-
const sorted = sort(satisfying);
|
|
13
|
-
return sorted.pop();
|
|
14
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { SemVer, SemVerRange } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Returns the lowest version in the list that satisfies the range, or `undefined` if
|
|
4
|
-
* none of them do.
|
|
5
|
-
* @param versions The versions to check.
|
|
6
|
-
* @param range The range of possible versions to compare to.
|
|
7
|
-
* @returns The lowest version in versions that satisfies the range.
|
|
8
|
-
*/
|
|
9
|
-
export declare function minSatisfying(versions: SemVer[], range: SemVerRange): SemVer | undefined;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { sort } from "./sort.js";
|
|
2
|
-
import { testRange } from "./test_range.js";
|
|
3
|
-
/**
|
|
4
|
-
* Returns the lowest version in the list that satisfies the range, or `undefined` if
|
|
5
|
-
* none of them do.
|
|
6
|
-
* @param versions The versions to check.
|
|
7
|
-
* @param range The range of possible versions to compare to.
|
|
8
|
-
* @returns The lowest version in versions that satisfies the range.
|
|
9
|
-
*/
|
|
10
|
-
export function minSatisfying(versions, range) {
|
|
11
|
-
const satisfying = versions.filter((v) => testRange(v, range));
|
|
12
|
-
const sorted = sort(satisfying);
|
|
13
|
-
return sorted.shift();
|
|
14
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { SemVer, SemVerRange } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Returns true if the version is outside the bounds of the range in either the
|
|
4
|
-
* high or low direction. The hilo argument must be either the string '>' or
|
|
5
|
-
* '<'. (This is the function called by {@linkcode gtr} and {@linkcode ltr}.)
|
|
6
|
-
* @param version The version to compare to the range
|
|
7
|
-
* @param range The range of possible versions
|
|
8
|
-
* @param hilo The operator for the comparison or both if undefined.
|
|
9
|
-
* @returns True if the version is outside of the range based on the operator
|
|
10
|
-
*/
|
|
11
|
-
export declare function outside(version: SemVer, range: SemVerRange, hilo?: ">" | "<"): boolean;
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
import { gt } from "./gt.js";
|
|
3
|
-
import { gte } from "./gte.js";
|
|
4
|
-
import { lte } from "./lte.js";
|
|
5
|
-
import { lt } from "./lt.js";
|
|
6
|
-
import { ALL, ANY } from "./constants.js";
|
|
7
|
-
import { testRange } from "./test_range.js";
|
|
8
|
-
/**
|
|
9
|
-
* Returns true if the version is outside the bounds of the range in either the
|
|
10
|
-
* high or low direction. The hilo argument must be either the string '>' or
|
|
11
|
-
* '<'. (This is the function called by {@linkcode gtr} and {@linkcode ltr}.)
|
|
12
|
-
* @param version The version to compare to the range
|
|
13
|
-
* @param range The range of possible versions
|
|
14
|
-
* @param hilo The operator for the comparison or both if undefined.
|
|
15
|
-
* @returns True if the version is outside of the range based on the operator
|
|
16
|
-
*/
|
|
17
|
-
export function outside(version, range, hilo) {
|
|
18
|
-
if (!hilo) {
|
|
19
|
-
return outside(version, range, ">") ||
|
|
20
|
-
outside(version, range, "<");
|
|
21
|
-
}
|
|
22
|
-
const [gtfn, ltefn, ltfn, comp, ecomp] = (() => {
|
|
23
|
-
switch (hilo) {
|
|
24
|
-
case ">":
|
|
25
|
-
return [gt, lte, lt, ">", ">="];
|
|
26
|
-
case "<":
|
|
27
|
-
return [lt, gte, gt, "<", "<="];
|
|
28
|
-
}
|
|
29
|
-
})();
|
|
30
|
-
if (testRange(version, range)) {
|
|
31
|
-
return false;
|
|
32
|
-
}
|
|
33
|
-
for (const comparators of range.ranges) {
|
|
34
|
-
let high = undefined;
|
|
35
|
-
let low = undefined;
|
|
36
|
-
for (let comparator of comparators) {
|
|
37
|
-
if (comparator.semver === ANY) {
|
|
38
|
-
comparator = ALL;
|
|
39
|
-
}
|
|
40
|
-
high = high || comparator;
|
|
41
|
-
low = low || comparator;
|
|
42
|
-
if (gtfn(comparator.semver, high.semver)) {
|
|
43
|
-
high = comparator;
|
|
44
|
-
}
|
|
45
|
-
else if (ltfn(comparator.semver, low.semver)) {
|
|
46
|
-
low = comparator;
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
if (!high || !low)
|
|
50
|
-
return true;
|
|
51
|
-
// If the edge version comparator has a operator then our version
|
|
52
|
-
// isn't outside it
|
|
53
|
-
if (high.operator === comp || high.operator === ecomp) {
|
|
54
|
-
return false;
|
|
55
|
-
}
|
|
56
|
-
// If the lowest version comparator has an operator and our version
|
|
57
|
-
// is less than it then it isn't higher than the range
|
|
58
|
-
if ((!low.operator || low.operator === comp) &&
|
|
59
|
-
ltefn(version, low.semver)) {
|
|
60
|
-
return false;
|
|
61
|
-
}
|
|
62
|
-
else if (low.operator === ecomp && ltfn(version, low.semver)) {
|
|
63
|
-
return false;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
return true;
|
|
67
|
-
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { SemVer } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Attempt to parse a string as a semantic version, returning either a `SemVer`
|
|
4
|
-
* object or throws a TypeError.
|
|
5
|
-
* @param version The version string to parse
|
|
6
|
-
* @returns A valid SemVer
|
|
7
|
-
*/
|
|
8
|
-
export declare function parse(version: string | SemVer): SemVer;
|