keep-a-changelog 2.5.2 → 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 +28 -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} +96 -18
- 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} +97 -19
- 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,78 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NONE = exports.ALL = exports.ANY = exports.INVALID = exports.MIN = exports.MAX = void 0;
|
|
4
|
-
/**
|
|
5
|
-
* MAX is a sentinel value used by some range calculations.
|
|
6
|
-
* It is equivalent to `∞.∞.∞`.
|
|
7
|
-
*/
|
|
8
|
-
exports.MAX = {
|
|
9
|
-
major: Number.POSITIVE_INFINITY,
|
|
10
|
-
minor: Number.POSITIVE_INFINITY,
|
|
11
|
-
patch: Number.POSITIVE_INFINITY,
|
|
12
|
-
prerelease: [],
|
|
13
|
-
build: [],
|
|
14
|
-
};
|
|
15
|
-
/**
|
|
16
|
-
* The minimum valid SemVer object. Equivalent to `0.0.0`.
|
|
17
|
-
*/
|
|
18
|
-
exports.MIN = {
|
|
19
|
-
major: 0,
|
|
20
|
-
minor: 0,
|
|
21
|
-
patch: 0,
|
|
22
|
-
prerelease: [],
|
|
23
|
-
build: [],
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* A sentinel value used to denote an invalid SemVer object
|
|
27
|
-
* which may be the result of impossible ranges or comparator operations.
|
|
28
|
-
* @example
|
|
29
|
-
* ```ts
|
|
30
|
-
* import { eq } from "https://deno.land/std@$STD_VERSION/semver/eq.ts";
|
|
31
|
-
* import { parse } from "https://deno.land/std@$STD_VERSION/semver/parse.ts";
|
|
32
|
-
* import { INVALID } from "https://deno.land/std@$STD_VERSION/semver/constants.ts"
|
|
33
|
-
* eq(parse("1.2.3"), INVALID);
|
|
34
|
-
* ```
|
|
35
|
-
*/
|
|
36
|
-
exports.INVALID = {
|
|
37
|
-
major: Number.NEGATIVE_INFINITY,
|
|
38
|
-
minor: Number.POSITIVE_INFINITY,
|
|
39
|
-
patch: Number.POSITIVE_INFINITY,
|
|
40
|
-
prerelease: [],
|
|
41
|
-
build: [],
|
|
42
|
-
};
|
|
43
|
-
/**
|
|
44
|
-
* ANY is a sentinel value used by some range calculations. It is not a valid
|
|
45
|
-
* SemVer object and should not be used directly.
|
|
46
|
-
* @example
|
|
47
|
-
* ```ts
|
|
48
|
-
* import { eq } from "https://deno.land/std@$STD_VERSION/semver/eq.ts";
|
|
49
|
-
* import { parse } from "https://deno.land/std@$STD_VERSION/semver/parse.ts";
|
|
50
|
-
* import { ANY } from "https://deno.land/std@$STD_VERSION/semver/constants.ts"
|
|
51
|
-
* eq(parse("1.2.3"), ANY); // false
|
|
52
|
-
* ```
|
|
53
|
-
*/
|
|
54
|
-
exports.ANY = {
|
|
55
|
-
major: Number.NaN,
|
|
56
|
-
minor: Number.NaN,
|
|
57
|
-
patch: Number.NaN,
|
|
58
|
-
prerelease: [],
|
|
59
|
-
build: [],
|
|
60
|
-
};
|
|
61
|
-
/**
|
|
62
|
-
* A comparator which will span all valid semantic versions
|
|
63
|
-
*/
|
|
64
|
-
exports.ALL = {
|
|
65
|
-
operator: "",
|
|
66
|
-
semver: exports.ANY,
|
|
67
|
-
min: exports.MIN,
|
|
68
|
-
max: exports.MAX,
|
|
69
|
-
};
|
|
70
|
-
/**
|
|
71
|
-
* A comparator which will not span any semantic versions
|
|
72
|
-
*/
|
|
73
|
-
exports.NONE = {
|
|
74
|
-
operator: "<",
|
|
75
|
-
semver: exports.MIN,
|
|
76
|
-
min: exports.MAX,
|
|
77
|
-
max: exports.MIN,
|
|
78
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.difference = void 0;
|
|
4
|
-
const eq_js_1 = require("./eq.js");
|
|
5
|
-
/** Returns difference between two versions by the release type, or
|
|
6
|
-
* `undefined` if the versions are the same. */
|
|
7
|
-
function difference(s0, s1) {
|
|
8
|
-
if ((0, eq_js_1.eq)(s0, s1)) {
|
|
9
|
-
return undefined;
|
|
10
|
-
}
|
|
11
|
-
else {
|
|
12
|
-
let prefix = "";
|
|
13
|
-
let defaultResult = undefined;
|
|
14
|
-
if (s0 && s1) {
|
|
15
|
-
if (s0.prerelease.length || s1.prerelease.length) {
|
|
16
|
-
prefix = "pre";
|
|
17
|
-
defaultResult = "prerelease";
|
|
18
|
-
}
|
|
19
|
-
for (const key in s0) {
|
|
20
|
-
if (key === "major" || key === "minor" || key === "patch") {
|
|
21
|
-
if (s0[key] !== s1[key]) {
|
|
22
|
-
return (prefix + key);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
return defaultResult; // may be undefined
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
exports.difference = difference;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.eq = void 0;
|
|
4
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
5
|
-
const compare_js_1 = require("./compare.js");
|
|
6
|
-
/** Returns `true` if they're logically equivalent, even if they're not the exact
|
|
7
|
-
* same version object. */
|
|
8
|
-
function eq(s0, s1) {
|
|
9
|
-
return (0, compare_js_1.compare)(s0, s1) === 0;
|
|
10
|
-
}
|
|
11
|
-
exports.eq = eq;
|
|
@@ -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,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.format = void 0;
|
|
4
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
5
|
-
const constants_js_1 = require("./constants.js");
|
|
6
|
-
function formatNumber(value) {
|
|
7
|
-
if (value === Number.POSITIVE_INFINITY) {
|
|
8
|
-
return "∞";
|
|
9
|
-
}
|
|
10
|
-
else if (value === Number.NEGATIVE_INFINITY) {
|
|
11
|
-
return "⧞";
|
|
12
|
-
}
|
|
13
|
-
else {
|
|
14
|
-
return value.toFixed(0);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Format a SemVer object into a string.
|
|
19
|
-
*
|
|
20
|
-
* If any number is NaN then NaN will be printed.
|
|
21
|
-
*
|
|
22
|
-
* If any number is positive or negative infinity then '∞' or '⧞' will be printed instead.
|
|
23
|
-
*
|
|
24
|
-
* @param semver The semantic version to format
|
|
25
|
-
* @returns The string representation of a semantic version.
|
|
26
|
-
*/
|
|
27
|
-
function format(semver, style = "full") {
|
|
28
|
-
if (semver === constants_js_1.ANY) {
|
|
29
|
-
return "*";
|
|
30
|
-
}
|
|
31
|
-
const major = formatNumber(semver.major);
|
|
32
|
-
const minor = formatNumber(semver.minor);
|
|
33
|
-
const patch = formatNumber(semver.patch);
|
|
34
|
-
const pre = semver.prerelease.join(".");
|
|
35
|
-
const build = semver.build.join(".");
|
|
36
|
-
const primary = `${major}.${minor}.${patch}`;
|
|
37
|
-
const release = [primary, pre].filter((v) => v).join("-");
|
|
38
|
-
const full = [release, build].filter((v) => v).join("+");
|
|
39
|
-
switch (style) {
|
|
40
|
-
case "full":
|
|
41
|
-
return full;
|
|
42
|
-
case "release":
|
|
43
|
-
return release;
|
|
44
|
-
case "primary":
|
|
45
|
-
return primary;
|
|
46
|
-
case "build":
|
|
47
|
-
return build;
|
|
48
|
-
case "pre":
|
|
49
|
-
return pre;
|
|
50
|
-
case "patch":
|
|
51
|
-
return patch;
|
|
52
|
-
case "minor":
|
|
53
|
-
return minor;
|
|
54
|
-
case "major":
|
|
55
|
-
return major;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
exports.format = format;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.gt = void 0;
|
|
4
|
-
const compare_js_1 = require("./compare.js");
|
|
5
|
-
/** Greater than comparison */
|
|
6
|
-
function gt(s0, s1) {
|
|
7
|
-
return (0, compare_js_1.compare)(s0, s1) > 0;
|
|
8
|
-
}
|
|
9
|
-
exports.gt = gt;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.gte = void 0;
|
|
4
|
-
const compare_js_1 = require("./compare.js");
|
|
5
|
-
/** Greater than or equal to comparison */
|
|
6
|
-
function gte(s0, s1) {
|
|
7
|
-
return (0, compare_js_1.compare)(s0, s1) >= 0;
|
|
8
|
-
}
|
|
9
|
-
exports.gte = gte;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.gtr = void 0;
|
|
4
|
-
const outside_js_1 = require("./outside.js");
|
|
5
|
-
/** Checks to see if the version is greater than all possible versions of the range. */
|
|
6
|
-
function gtr(version, range) {
|
|
7
|
-
return (0, outside_js_1.outside)(version, range, ">");
|
|
8
|
-
}
|
|
9
|
-
exports.gtr = gtr;
|
|
@@ -1,211 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.increment = void 0;
|
|
4
|
-
function pre(prerelease, identifier) {
|
|
5
|
-
let values = [...prerelease];
|
|
6
|
-
// In reality this will either be 0, 1 or 2 entries.
|
|
7
|
-
let i = values.length;
|
|
8
|
-
while (--i >= 0) {
|
|
9
|
-
if (typeof values[i] === "number") {
|
|
10
|
-
// deno-fmt-ignore
|
|
11
|
-
values[i]++;
|
|
12
|
-
i = -2;
|
|
13
|
-
}
|
|
14
|
-
}
|
|
15
|
-
if (i === -1) {
|
|
16
|
-
// didn't increment anything
|
|
17
|
-
values.push(0);
|
|
18
|
-
}
|
|
19
|
-
if (identifier) {
|
|
20
|
-
// 1.2.0-beta.1 bumps to 1.2.0-beta.2,
|
|
21
|
-
// 1.2.0-beta.foobar or 1.2.0-beta bumps to 1.2.0-beta.0
|
|
22
|
-
if (values[0] === identifier) {
|
|
23
|
-
if (isNaN(values[1])) {
|
|
24
|
-
values = [identifier, 0];
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
else {
|
|
28
|
-
values = [identifier, 0];
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
return values;
|
|
32
|
-
}
|
|
33
|
-
function parseBuild(build, metadata) {
|
|
34
|
-
return metadata === undefined ? build : metadata.split(".").filter((m) => m);
|
|
35
|
-
}
|
|
36
|
-
/**
|
|
37
|
-
* Returns the new version resulting from an increment by release type.
|
|
38
|
-
*
|
|
39
|
-
* `premajor`, `preminor` and `prepatch` will bump the version up to the next version,
|
|
40
|
-
* based on the type, and will also add prerelease metadata.
|
|
41
|
-
*
|
|
42
|
-
* If called from a non-prerelease version, the `prerelease` will work the same as
|
|
43
|
-
* `prepatch`. The patch version is incremented and then is made into a prerelease. If
|
|
44
|
-
* the input version is already a prerelease it will simply increment the prerelease
|
|
45
|
-
* metadata.
|
|
46
|
-
*
|
|
47
|
-
* If a prerelease identifier is specified without a number then a number will be added.
|
|
48
|
-
* For example `pre` will result in `pre.0`. If the existing version already has a
|
|
49
|
-
* prerelease with a number and its the same prerelease identifier then the number
|
|
50
|
-
* will be incremented. If the identifier differs from the new identifier then the new
|
|
51
|
-
* identifier is applied and the number is reset to `0`.
|
|
52
|
-
*
|
|
53
|
-
* If the input version has build metadata it will be preserved on the resulting version
|
|
54
|
-
* unless a new build parameter is specified. Specifying `""` will unset existing build
|
|
55
|
-
* metadata.
|
|
56
|
-
* @param version The version to increment
|
|
57
|
-
* @param release The type of increment to perform
|
|
58
|
-
* @param prerelease The pre-release metadata of the new version
|
|
59
|
-
* @param build The build metadata of the new version
|
|
60
|
-
* @returns
|
|
61
|
-
*/
|
|
62
|
-
function increment(version, release, prerelease, build) {
|
|
63
|
-
let result;
|
|
64
|
-
switch (release) {
|
|
65
|
-
case "premajor":
|
|
66
|
-
result = {
|
|
67
|
-
major: version.major + 1,
|
|
68
|
-
minor: 0,
|
|
69
|
-
patch: 0,
|
|
70
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
71
|
-
build: parseBuild(version.build, build),
|
|
72
|
-
};
|
|
73
|
-
break;
|
|
74
|
-
case "preminor":
|
|
75
|
-
result = {
|
|
76
|
-
major: version.major,
|
|
77
|
-
minor: version.minor + 1,
|
|
78
|
-
patch: 0,
|
|
79
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
80
|
-
build: parseBuild(version.build, build),
|
|
81
|
-
};
|
|
82
|
-
break;
|
|
83
|
-
case "prepatch":
|
|
84
|
-
result = {
|
|
85
|
-
major: version.major,
|
|
86
|
-
minor: version.minor,
|
|
87
|
-
patch: version.patch + 1,
|
|
88
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
89
|
-
build: parseBuild(version.build, build),
|
|
90
|
-
};
|
|
91
|
-
break;
|
|
92
|
-
// If the input is a non-prerelease version, this acts the same as
|
|
93
|
-
// prepatch.
|
|
94
|
-
case "prerelease":
|
|
95
|
-
if (version.prerelease.length === 0) {
|
|
96
|
-
result = {
|
|
97
|
-
major: version.major,
|
|
98
|
-
minor: version.minor,
|
|
99
|
-
patch: version.patch + 1,
|
|
100
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
101
|
-
build: parseBuild(version.build, build),
|
|
102
|
-
};
|
|
103
|
-
break;
|
|
104
|
-
}
|
|
105
|
-
else {
|
|
106
|
-
result = {
|
|
107
|
-
major: version.major,
|
|
108
|
-
minor: version.minor,
|
|
109
|
-
patch: version.patch,
|
|
110
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
111
|
-
build: parseBuild(version.build, build),
|
|
112
|
-
};
|
|
113
|
-
break;
|
|
114
|
-
}
|
|
115
|
-
case "major":
|
|
116
|
-
// If this is a pre-major version, bump up to the same major version.
|
|
117
|
-
// Otherwise increment major.
|
|
118
|
-
// 1.0.0-5 bumps to 1.0.0
|
|
119
|
-
// 1.1.0 bumps to 2.0.0
|
|
120
|
-
if (version.minor !== 0 ||
|
|
121
|
-
version.patch !== 0 ||
|
|
122
|
-
version.prerelease.length === 0) {
|
|
123
|
-
result = {
|
|
124
|
-
major: version.major + 1,
|
|
125
|
-
minor: 0,
|
|
126
|
-
patch: 0,
|
|
127
|
-
prerelease: [],
|
|
128
|
-
build: parseBuild(version.build, build),
|
|
129
|
-
};
|
|
130
|
-
break;
|
|
131
|
-
}
|
|
132
|
-
else {
|
|
133
|
-
result = {
|
|
134
|
-
major: version.major,
|
|
135
|
-
minor: 0,
|
|
136
|
-
patch: 0,
|
|
137
|
-
prerelease: [],
|
|
138
|
-
build: parseBuild(version.build, build),
|
|
139
|
-
};
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
case "minor":
|
|
143
|
-
// If this is a pre-minor version, bump up to the same minor version.
|
|
144
|
-
// Otherwise increment minor.
|
|
145
|
-
// 1.2.0-5 bumps to 1.2.0
|
|
146
|
-
// 1.2.1 bumps to 1.3.0
|
|
147
|
-
if (version.patch !== 0 ||
|
|
148
|
-
version.prerelease.length === 0) {
|
|
149
|
-
result = {
|
|
150
|
-
major: version.major,
|
|
151
|
-
minor: version.minor + 1,
|
|
152
|
-
patch: 0,
|
|
153
|
-
prerelease: [],
|
|
154
|
-
build: parseBuild(version.build, build),
|
|
155
|
-
};
|
|
156
|
-
break;
|
|
157
|
-
}
|
|
158
|
-
else {
|
|
159
|
-
result = {
|
|
160
|
-
major: version.major,
|
|
161
|
-
minor: version.minor,
|
|
162
|
-
patch: 0,
|
|
163
|
-
prerelease: [],
|
|
164
|
-
build: parseBuild(version.build, build),
|
|
165
|
-
};
|
|
166
|
-
break;
|
|
167
|
-
}
|
|
168
|
-
case "patch":
|
|
169
|
-
// If this is not a pre-release version, it will increment the patch.
|
|
170
|
-
// If it is a pre-release it will bump up to the same patch version.
|
|
171
|
-
// 1.2.0-5 patches to 1.2.0
|
|
172
|
-
// 1.2.0 patches to 1.2.1
|
|
173
|
-
if (version.prerelease.length === 0) {
|
|
174
|
-
result = {
|
|
175
|
-
major: version.major,
|
|
176
|
-
minor: version.minor,
|
|
177
|
-
patch: version.patch + 1,
|
|
178
|
-
prerelease: [],
|
|
179
|
-
build: parseBuild(version.build, build),
|
|
180
|
-
};
|
|
181
|
-
break;
|
|
182
|
-
}
|
|
183
|
-
else {
|
|
184
|
-
result = {
|
|
185
|
-
major: version.major,
|
|
186
|
-
minor: version.minor,
|
|
187
|
-
patch: version.patch,
|
|
188
|
-
prerelease: [],
|
|
189
|
-
build: parseBuild(version.build, build),
|
|
190
|
-
};
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
|
-
// 1.0.0 "pre" would become 1.0.0-0
|
|
194
|
-
// 1.0.0-0 would become 1.0.0-1
|
|
195
|
-
// 1.0.0-beta.0 would be come 1.0.0-beta.1
|
|
196
|
-
// switching the pre identifier resets the number to 0
|
|
197
|
-
case "pre":
|
|
198
|
-
result = {
|
|
199
|
-
major: version.major,
|
|
200
|
-
minor: version.minor,
|
|
201
|
-
patch: version.patch,
|
|
202
|
-
prerelease: pre(version.prerelease, prerelease),
|
|
203
|
-
build: parseBuild(version.build, build),
|
|
204
|
-
};
|
|
205
|
-
break;
|
|
206
|
-
default:
|
|
207
|
-
throw new Error(`invalid increment argument: ${release}`);
|
|
208
|
-
}
|
|
209
|
-
return result;
|
|
210
|
-
}
|
|
211
|
-
exports.increment = increment;
|
|
@@ -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,35 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSemVerComparator = void 0;
|
|
4
|
-
// Copyright 2018-2023 the Deno authors. All rights reserved. MIT license.
|
|
5
|
-
const is_semver_js_1 = require("./is_semver.js");
|
|
6
|
-
const _shared_js_1 = require("./_shared.js");
|
|
7
|
-
const constants_js_1 = require("./constants.js");
|
|
8
|
-
/**
|
|
9
|
-
* Does a deep check on the value to see if it is a valid SemVerComparator object.
|
|
10
|
-
*
|
|
11
|
-
* Objects with extra fields are still considered valid if they have at
|
|
12
|
-
* least the correct fields.
|
|
13
|
-
*
|
|
14
|
-
* Adds a type assertion if true.
|
|
15
|
-
* @param value The value to check if its a SemVerComparator
|
|
16
|
-
* @returns True if the object is a SemVerComparator otherwise false
|
|
17
|
-
*/
|
|
18
|
-
function isSemVerComparator(value) {
|
|
19
|
-
if (value === null || value === undefined)
|
|
20
|
-
return false;
|
|
21
|
-
if (value === constants_js_1.NONE)
|
|
22
|
-
return true;
|
|
23
|
-
if (value === constants_js_1.ALL)
|
|
24
|
-
return true;
|
|
25
|
-
if (Array.isArray(value))
|
|
26
|
-
return false;
|
|
27
|
-
if (typeof value !== "object")
|
|
28
|
-
return false;
|
|
29
|
-
const { operator, semver, min, max } = value;
|
|
30
|
-
return ((0, _shared_js_1.isValidOperator)(operator) &&
|
|
31
|
-
(0, is_semver_js_1.isSemVer)(semver) &&
|
|
32
|
-
(0, is_semver_js_1.isSemVer)(min) &&
|
|
33
|
-
(0, is_semver_js_1.isSemVer)(max));
|
|
34
|
-
}
|
|
35
|
-
exports.isSemVerComparator = isSemVerComparator;
|
|
@@ -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,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isSemVerRange = void 0;
|
|
4
|
-
const is_semver_comparator_js_1 = require("./is_semver_comparator.js");
|
|
5
|
-
/**
|
|
6
|
-
* Does a deep check on the object to determine if its a valid range.
|
|
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 valid SemVerRange
|
|
13
|
-
* @returns True if its a valid SemVerRange otherwise false.
|
|
14
|
-
*/
|
|
15
|
-
function isSemVerRange(value) {
|
|
16
|
-
if (value === null || value === undefined)
|
|
17
|
-
return false;
|
|
18
|
-
if (Array.isArray(value))
|
|
19
|
-
return false;
|
|
20
|
-
if (typeof value !== "object")
|
|
21
|
-
return false;
|
|
22
|
-
const { ranges } = value;
|
|
23
|
-
return (Array.isArray(ranges),
|
|
24
|
-
ranges.every((r) => Array.isArray(r) && r.every((c) => (0, is_semver_comparator_js_1.isSemVerComparator)(c))));
|
|
25
|
-
}
|
|
26
|
-
exports.isSemVerRange = isSemVerRange;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lt = void 0;
|
|
4
|
-
const compare_js_1 = require("./compare.js");
|
|
5
|
-
/** Less than comparison */
|
|
6
|
-
function lt(s0, s1) {
|
|
7
|
-
return (0, compare_js_1.compare)(s0, s1) < 0;
|
|
8
|
-
}
|
|
9
|
-
exports.lt = lt;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lte = void 0;
|
|
4
|
-
const compare_js_1 = require("./compare.js");
|
|
5
|
-
/** Less than or equal to comparison */
|
|
6
|
-
function lte(s0, s1) {
|
|
7
|
-
return (0, compare_js_1.compare)(s0, s1) <= 0;
|
|
8
|
-
}
|
|
9
|
-
exports.lte = lte;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ltr = void 0;
|
|
4
|
-
const outside_js_1 = require("./outside.js");
|
|
5
|
-
/** Greater than range comparison */
|
|
6
|
-
function ltr(version, range) {
|
|
7
|
-
return (0, outside_js_1.outside)(version, range, "<");
|
|
8
|
-
}
|
|
9
|
-
exports.ltr = ltr;
|
|
@@ -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,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.maxSatisfying = void 0;
|
|
4
|
-
const sort_js_1 = require("./sort.js");
|
|
5
|
-
const test_range_js_1 = require("./test_range.js");
|
|
6
|
-
/**
|
|
7
|
-
* Returns the highest version in the list that satisfies the range, or `undefined`
|
|
8
|
-
* if none of them do.
|
|
9
|
-
* @param versions The versions to check.
|
|
10
|
-
* @param range The range of possible versions to compare to.
|
|
11
|
-
* @returns The highest version in versions that satisfies the range.
|
|
12
|
-
*/
|
|
13
|
-
function maxSatisfying(versions, range) {
|
|
14
|
-
const satisfying = versions.filter((v) => (0, test_range_js_1.testRange)(v, range));
|
|
15
|
-
const sorted = (0, sort_js_1.sort)(satisfying);
|
|
16
|
-
return sorted.pop();
|
|
17
|
-
}
|
|
18
|
-
exports.maxSatisfying = maxSatisfying;
|
|
@@ -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,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.minSatisfying = void 0;
|
|
4
|
-
const sort_js_1 = require("./sort.js");
|
|
5
|
-
const test_range_js_1 = require("./test_range.js");
|
|
6
|
-
/**
|
|
7
|
-
* Returns the lowest version in the list that satisfies the range, or `undefined` if
|
|
8
|
-
* none of them do.
|
|
9
|
-
* @param versions The versions to check.
|
|
10
|
-
* @param range The range of possible versions to compare to.
|
|
11
|
-
* @returns The lowest version in versions that satisfies the range.
|
|
12
|
-
*/
|
|
13
|
-
function minSatisfying(versions, range) {
|
|
14
|
-
const satisfying = versions.filter((v) => (0, test_range_js_1.testRange)(v, range));
|
|
15
|
-
const sorted = (0, sort_js_1.sort)(satisfying);
|
|
16
|
-
return sorted.shift();
|
|
17
|
-
}
|
|
18
|
-
exports.minSatisfying = minSatisfying;
|