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,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.rsort = void 0;
|
|
4
|
-
const compare_js_1 = require("./compare.js");
|
|
5
|
-
/** Sorts a list of semantic versions in descending order. */
|
|
6
|
-
function rsort(list) {
|
|
7
|
-
return list.sort((a, b) => (0, compare_js_1.compare)(b, a));
|
|
8
|
-
}
|
|
9
|
-
exports.rsort = rsort;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sort = void 0;
|
|
4
|
-
const compare_js_1 = require("./compare.js");
|
|
5
|
-
/** Sorts a list of semantic versions in ascending order. */
|
|
6
|
-
function sort(list) {
|
|
7
|
-
return list.sort((a, b) => (0, compare_js_1.compare)(a, b));
|
|
8
|
-
}
|
|
9
|
-
exports.sort = sort;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SemVer, SemVerComparator } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Test to see if a semantic version falls within the range of the comparator.
|
|
4
|
-
* @param version The version to compare
|
|
5
|
-
* @param comparator The comparator
|
|
6
|
-
* @returns True if the version is within the comparators set otherwise false
|
|
7
|
-
*/
|
|
8
|
-
export declare function testComparator(version: SemVer, comparator: SemVerComparator): boolean;
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testComparator = void 0;
|
|
4
|
-
const cmp_js_1 = require("./cmp.js");
|
|
5
|
-
/**
|
|
6
|
-
* Test to see if a semantic version falls within the range of the comparator.
|
|
7
|
-
* @param version The version to compare
|
|
8
|
-
* @param comparator The comparator
|
|
9
|
-
* @returns True if the version is within the comparators set otherwise false
|
|
10
|
-
*/
|
|
11
|
-
function testComparator(version, comparator) {
|
|
12
|
-
return (0, cmp_js_1.cmp)(version, comparator.operator, comparator.semver);
|
|
13
|
-
}
|
|
14
|
-
exports.testComparator = testComparator;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SemVer, SemVerRange } from "./types.js";
|
|
2
|
-
/**
|
|
3
|
-
* Test to see if the version satisfies the range.
|
|
4
|
-
* @param version The version to test
|
|
5
|
-
* @param range The range to check
|
|
6
|
-
* @returns true if the version is in the range
|
|
7
|
-
*/
|
|
8
|
-
export declare function testRange(version: SemVer, range: SemVerRange): boolean;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.testRange = void 0;
|
|
4
|
-
const gte_js_1 = require("./gte.js");
|
|
5
|
-
const lte_js_1 = require("./lte.js");
|
|
6
|
-
/**
|
|
7
|
-
* Test to see if the version satisfies the range.
|
|
8
|
-
* @param version The version to test
|
|
9
|
-
* @param range The range to check
|
|
10
|
-
* @returns true if the version is in the range
|
|
11
|
-
*/
|
|
12
|
-
function testRange(version, range) {
|
|
13
|
-
for (const r of range.ranges) {
|
|
14
|
-
if (r.every((c) => (0, gte_js_1.gte)(version, c.min) && (0, lte_js_1.lte)(version, c.max))) {
|
|
15
|
-
return true;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
return false;
|
|
19
|
-
}
|
|
20
|
-
exports.testRange = testRange;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The possible release types are used as an operator for the
|
|
3
|
-
* increment function and as a result of the difference function.
|
|
4
|
-
*/
|
|
5
|
-
export type ReleaseType = "pre" | "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease";
|
|
6
|
-
/**
|
|
7
|
-
* SemVer comparison operators.
|
|
8
|
-
*/
|
|
9
|
-
export type Operator = "" | "=" | "==" | "===" | "!==" | "!=" | ">" | ">=" | "<" | "<=";
|
|
10
|
-
/**
|
|
11
|
-
* The style to use when formatting a SemVer object into a string
|
|
12
|
-
*/
|
|
13
|
-
export type FormatStyle = "full" | "release" | "primary" | "build" | "pre" | "patch" | "minor" | "major";
|
|
14
|
-
/**
|
|
15
|
-
* The shape of a valid semantic version comparator
|
|
16
|
-
* @example >=0.0.0
|
|
17
|
-
*/
|
|
18
|
-
export interface SemVerComparator {
|
|
19
|
-
operator: Operator;
|
|
20
|
-
semver: SemVer;
|
|
21
|
-
min: SemVer;
|
|
22
|
-
max: SemVer;
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* A SemVer object parsed into its constituent parts.
|
|
26
|
-
*/
|
|
27
|
-
export interface SemVer {
|
|
28
|
-
major: number;
|
|
29
|
-
minor: number;
|
|
30
|
-
patch: number;
|
|
31
|
-
prerelease: (string | number)[];
|
|
32
|
-
build: string[];
|
|
33
|
-
}
|
|
34
|
-
type SemVerRangeAnd = SemVerComparator[];
|
|
35
|
-
type SemVerRangeOr = SemVerRangeAnd[];
|
|
36
|
-
/**
|
|
37
|
-
* A type representing a semantic version range. The ranges consist of
|
|
38
|
-
* a nested array, which represents a set of OR comparisons while the
|
|
39
|
-
* inner array represents AND comparisons.
|
|
40
|
-
*/
|
|
41
|
-
export interface SemVerRange {
|
|
42
|
-
ranges: SemVerRangeOr;
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/** EndOfLine character enum */
|
|
2
|
-
export declare enum EOL {
|
|
3
|
-
LF = "\n",
|
|
4
|
-
CRLF = "\r\n"
|
|
5
|
-
}
|
|
6
|
-
/**
|
|
7
|
-
* Detect the EOL character for string input.
|
|
8
|
-
* returns null if no newline
|
|
9
|
-
*/
|
|
10
|
-
export declare function detect(content: string): EOL | null;
|
|
11
|
-
/** Format the file to the targeted EOL */
|
|
12
|
-
export declare function format(content: string, eol: EOL): string;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2020 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.format = exports.detect = exports.EOL = void 0;
|
|
5
|
-
/** EndOfLine character enum */
|
|
6
|
-
var EOL;
|
|
7
|
-
(function (EOL) {
|
|
8
|
-
EOL["LF"] = "\n";
|
|
9
|
-
EOL["CRLF"] = "\r\n";
|
|
10
|
-
})(EOL = exports.EOL || (exports.EOL = {}));
|
|
11
|
-
const regDetect = /(?:\r?\n)/g;
|
|
12
|
-
/**
|
|
13
|
-
* Detect the EOL character for string input.
|
|
14
|
-
* returns null if no newline
|
|
15
|
-
*/
|
|
16
|
-
function detect(content) {
|
|
17
|
-
const d = content.match(regDetect);
|
|
18
|
-
if (!d || d.length === 0) {
|
|
19
|
-
return null;
|
|
20
|
-
}
|
|
21
|
-
const crlf = d.filter((x) => x === EOL.CRLF);
|
|
22
|
-
if (crlf.length > 0) {
|
|
23
|
-
return EOL.CRLF;
|
|
24
|
-
}
|
|
25
|
-
else {
|
|
26
|
-
return EOL.LF;
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
exports.detect = detect;
|
|
30
|
-
/** Format the file to the targeted EOL */
|
|
31
|
-
function format(content, eol) {
|
|
32
|
-
return content.replace(regDetect, eol);
|
|
33
|
-
}
|
|
34
|
-
exports.format = format;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export declare const parse: typeof decode;
|
|
2
|
-
export declare const stringify: typeof encode;
|
|
3
|
-
export interface EncodeOptions {
|
|
4
|
-
section?: string;
|
|
5
|
-
whitespace?: boolean;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Encode the object `object` into an ini-style formatted string. If the
|
|
9
|
-
* optional parameter `section` is given, then all top-level properties
|
|
10
|
-
* of the object are put into this section and the `section`-string is
|
|
11
|
-
* prepended to all sub-sections, see the usage example above.
|
|
12
|
-
*
|
|
13
|
-
* The `options` object may contain the following:
|
|
14
|
-
* - `section` A string which will be the first `section` in the encoded
|
|
15
|
-
* ini data. Defaults to none.
|
|
16
|
-
* - `whitespace` Boolean to specify whether to put whitespace around the
|
|
17
|
-
* `=` character. By default, whitespace is omitted, to be friendly to
|
|
18
|
-
* some persnickety old parsers that don't tolerate it well. But some
|
|
19
|
-
* find that it's more human-readable and pretty with the whitespace.
|
|
20
|
-
*
|
|
21
|
-
* For backwards compatibility reasons, if a `string` options is passed,
|
|
22
|
-
* then it is assumed to be the `section` value.
|
|
23
|
-
*
|
|
24
|
-
* @param obj Object to encode
|
|
25
|
-
* @param opt Encoding options
|
|
26
|
-
*/
|
|
27
|
-
export declare function encode(obj: any, opt?: string | EncodeOptions): string;
|
|
28
|
-
/**
|
|
29
|
-
* Decode the given ini-style formatted document into a nested object.
|
|
30
|
-
* @param str ini-style document
|
|
31
|
-
*/
|
|
32
|
-
export declare function decode(str: string): any;
|
|
33
|
-
/**
|
|
34
|
-
* Escapes the string `val` such that it is safe to be used as a key or
|
|
35
|
-
* value in an ini-file. Basically escapes quotes. For example:
|
|
36
|
-
*
|
|
37
|
-
* ```javascript
|
|
38
|
-
* ini.safe('"unsafe string"')
|
|
39
|
-
* ```
|
|
40
|
-
*
|
|
41
|
-
* would result in
|
|
42
|
-
*
|
|
43
|
-
* ```javascript
|
|
44
|
-
* "\"unsafe string\""
|
|
45
|
-
* ```
|
|
46
|
-
* @param val String to escape
|
|
47
|
-
*/
|
|
48
|
-
export declare function safe(val: string | any): string;
|
|
49
|
-
/**
|
|
50
|
-
* Unescapes the given string value.
|
|
51
|
-
* @param val String to unescape
|
|
52
|
-
*/
|
|
53
|
-
export declare function unsafe(val?: string): string;
|
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
|
-
exports.unsafe = exports.safe = exports.decode = exports.encode = exports.stringify = exports.parse = void 0;
|
|
27
|
-
const dntShim = __importStar(require("../../../../_dnt.shims.js"));
|
|
28
|
-
const eol = __importStar(require("../../std@0.51.0/fs/eol.js"));
|
|
29
|
-
const isWindows = dntShim.Deno.build.os == "windows";
|
|
30
|
-
const EOL = isWindows ? eol.EOL.CRLF : eol.EOL.LF;
|
|
31
|
-
exports.parse = decode;
|
|
32
|
-
exports.stringify = encode;
|
|
33
|
-
/**
|
|
34
|
-
* Encode the object `object` into an ini-style formatted string. If the
|
|
35
|
-
* optional parameter `section` is given, then all top-level properties
|
|
36
|
-
* of the object are put into this section and the `section`-string is
|
|
37
|
-
* prepended to all sub-sections, see the usage example above.
|
|
38
|
-
*
|
|
39
|
-
* The `options` object may contain the following:
|
|
40
|
-
* - `section` A string which will be the first `section` in the encoded
|
|
41
|
-
* ini data. Defaults to none.
|
|
42
|
-
* - `whitespace` Boolean to specify whether to put whitespace around the
|
|
43
|
-
* `=` character. By default, whitespace is omitted, to be friendly to
|
|
44
|
-
* some persnickety old parsers that don't tolerate it well. But some
|
|
45
|
-
* find that it's more human-readable and pretty with the whitespace.
|
|
46
|
-
*
|
|
47
|
-
* For backwards compatibility reasons, if a `string` options is passed,
|
|
48
|
-
* then it is assumed to be the `section` value.
|
|
49
|
-
*
|
|
50
|
-
* @param obj Object to encode
|
|
51
|
-
* @param opt Encoding options
|
|
52
|
-
*/
|
|
53
|
-
function encode(obj, opt = { whitespace: false }) {
|
|
54
|
-
const children = [];
|
|
55
|
-
let out = '';
|
|
56
|
-
let options = typeof opt === 'string' ? { section: opt, whitespace: false } : opt;
|
|
57
|
-
const separator = options.whitespace ? ' = ' : '=';
|
|
58
|
-
Object.keys(obj).forEach(function (k, _, __) {
|
|
59
|
-
const val = obj[k];
|
|
60
|
-
if (val && Array.isArray(val)) {
|
|
61
|
-
val.forEach(function (item) {
|
|
62
|
-
out += safe(k + '[]') + separator + safe(item) + EOL;
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
else if (val && typeof val === 'object') {
|
|
66
|
-
children.push(k);
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
out += safe(k) + separator + safe(val) + EOL;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
if (options.section && out.length) {
|
|
73
|
-
out = '[' + safe(options.section) + ']' + EOL + out;
|
|
74
|
-
}
|
|
75
|
-
children.forEach(function (k, _, __) {
|
|
76
|
-
const nk = dotSplit(k).join('\\.');
|
|
77
|
-
const section = (options.section ? options.section + '.' : '') + nk;
|
|
78
|
-
const child = encode(obj[k], {
|
|
79
|
-
section: section,
|
|
80
|
-
whitespace: options.whitespace
|
|
81
|
-
});
|
|
82
|
-
if (out.length && child.length) {
|
|
83
|
-
out += EOL;
|
|
84
|
-
}
|
|
85
|
-
out += child;
|
|
86
|
-
});
|
|
87
|
-
return out;
|
|
88
|
-
}
|
|
89
|
-
exports.encode = encode;
|
|
90
|
-
function dotSplit(str) {
|
|
91
|
-
return str.replace(/\1/g, '\u0002LITERAL\\1LITERAL\u0002')
|
|
92
|
-
.replace(/\\\./g, '\u0001')
|
|
93
|
-
.split(/\./).map(function (part) {
|
|
94
|
-
return part.replace(/\1/g, '\\.')
|
|
95
|
-
.replace(/\2LITERAL\\1LITERAL\2/g, '\u0001');
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Decode the given ini-style formatted document into a nested object.
|
|
100
|
-
* @param str ini-style document
|
|
101
|
-
*/
|
|
102
|
-
function decode(str) {
|
|
103
|
-
const out = {};
|
|
104
|
-
let p = out;
|
|
105
|
-
// section |key = value
|
|
106
|
-
const re = /^\[([^\]]*)\]$|^([^=]+)(=(.*))?$/i;
|
|
107
|
-
const lines = str.split(/[\r\n]+/g);
|
|
108
|
-
lines.forEach(function (line, _, __) {
|
|
109
|
-
if (!line || line.match(/^\s*[;#]/))
|
|
110
|
-
return;
|
|
111
|
-
const match = line.match(re);
|
|
112
|
-
if (!match)
|
|
113
|
-
return;
|
|
114
|
-
if (match[1] !== undefined) {
|
|
115
|
-
let section = unsafe(match[1]);
|
|
116
|
-
p = out[section] = out[section] || {};
|
|
117
|
-
return;
|
|
118
|
-
}
|
|
119
|
-
let key = unsafe(match[2]);
|
|
120
|
-
let value = match[3] ? unsafe(match[4]) : true;
|
|
121
|
-
switch (value) {
|
|
122
|
-
case 'true':
|
|
123
|
-
case 'false':
|
|
124
|
-
case 'null': value = JSON.parse(value);
|
|
125
|
-
}
|
|
126
|
-
const valueAsFloat = parseFloat(`${value}`);
|
|
127
|
-
if (!Number.isNaN(valueAsFloat)) {
|
|
128
|
-
value = valueAsFloat;
|
|
129
|
-
}
|
|
130
|
-
// Convert keys with '[]' suffix to an array
|
|
131
|
-
if (key.length > 2 && key.slice(-2) === '[]') {
|
|
132
|
-
key = key.substring(0, key.length - 2);
|
|
133
|
-
if (!p[key]) {
|
|
134
|
-
p[key] = [];
|
|
135
|
-
}
|
|
136
|
-
else if (!Array.isArray(p[key])) {
|
|
137
|
-
p[key] = [p[key]];
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
// safeguard against resetting a previously defined
|
|
141
|
-
// array by accidentally forgetting the brackets
|
|
142
|
-
if (Array.isArray(p[key])) {
|
|
143
|
-
p[key].push(value);
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
p[key] = value;
|
|
147
|
-
}
|
|
148
|
-
});
|
|
149
|
-
// {a:{y:1},"a.b":{x:2}} --> {a:{y:1,b:{x:2}}}
|
|
150
|
-
// use a filter to return the keys that have to be deleted.
|
|
151
|
-
Object.keys(out).filter(function (k, _, __) {
|
|
152
|
-
if (!out[k] ||
|
|
153
|
-
typeof out[k] !== 'object' ||
|
|
154
|
-
Array.isArray(out[k])) {
|
|
155
|
-
return false;
|
|
156
|
-
}
|
|
157
|
-
// see if the parent section is also an object.
|
|
158
|
-
// if so, add it to that, and mark this one for deletion
|
|
159
|
-
const parts = dotSplit(k);
|
|
160
|
-
let parentSection = out;
|
|
161
|
-
const lastPart = parts.pop() ?? '';
|
|
162
|
-
const nl = lastPart.replace(/\\\./g, '.');
|
|
163
|
-
parts.forEach(function (part, _, __) {
|
|
164
|
-
if (!parentSection[part] || typeof parentSection[part] !== 'object')
|
|
165
|
-
parentSection[part] = {};
|
|
166
|
-
parentSection = parentSection[part];
|
|
167
|
-
});
|
|
168
|
-
if (parentSection === out && nl === lastPart) {
|
|
169
|
-
return false;
|
|
170
|
-
}
|
|
171
|
-
parentSection[nl] = out[k];
|
|
172
|
-
return true;
|
|
173
|
-
}).forEach(function (del, _, __) {
|
|
174
|
-
delete out[del];
|
|
175
|
-
});
|
|
176
|
-
return out;
|
|
177
|
-
}
|
|
178
|
-
exports.decode = decode;
|
|
179
|
-
function isQuoted(val) {
|
|
180
|
-
return (val.charAt(0) === '"' && val.slice(-1) === '"') ||
|
|
181
|
-
(val.charAt(0) === "'" && val.slice(-1) === "'");
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Escapes the string `val` such that it is safe to be used as a key or
|
|
185
|
-
* value in an ini-file. Basically escapes quotes. For example:
|
|
186
|
-
*
|
|
187
|
-
* ```javascript
|
|
188
|
-
* ini.safe('"unsafe string"')
|
|
189
|
-
* ```
|
|
190
|
-
*
|
|
191
|
-
* would result in
|
|
192
|
-
*
|
|
193
|
-
* ```javascript
|
|
194
|
-
* "\"unsafe string\""
|
|
195
|
-
* ```
|
|
196
|
-
* @param val String to escape
|
|
197
|
-
*/
|
|
198
|
-
function safe(val) {
|
|
199
|
-
return (typeof val !== 'string' ||
|
|
200
|
-
val.match(/[=\r\n]/) ||
|
|
201
|
-
val.match(/^\[/) ||
|
|
202
|
-
(val.length > 1 && isQuoted(val)) ||
|
|
203
|
-
val !== val.trim())
|
|
204
|
-
? JSON.stringify(val)
|
|
205
|
-
: val.replace(/;/g, '\\;').replace(/#/g, '\\#');
|
|
206
|
-
}
|
|
207
|
-
exports.safe = safe;
|
|
208
|
-
/**
|
|
209
|
-
* Unescapes the given string value.
|
|
210
|
-
* @param val String to unescape
|
|
211
|
-
*/
|
|
212
|
-
function unsafe(val = '') {
|
|
213
|
-
val = val.trim();
|
|
214
|
-
if (isQuoted(val)) {
|
|
215
|
-
// remove the single quotes before calling JSON.parse
|
|
216
|
-
if (val.charAt(0) === "'") {
|
|
217
|
-
val = val.substr(1, val.length - 2);
|
|
218
|
-
}
|
|
219
|
-
try {
|
|
220
|
-
val = JSON.parse(val);
|
|
221
|
-
}
|
|
222
|
-
catch (_) { }
|
|
223
|
-
}
|
|
224
|
-
else {
|
|
225
|
-
// walk the val to find the first unescaped ; character
|
|
226
|
-
let esc = false;
|
|
227
|
-
let unesc = '';
|
|
228
|
-
for (let i = 0, l = val.length; i < l; i++) {
|
|
229
|
-
const c = val.charAt(i);
|
|
230
|
-
if (esc) {
|
|
231
|
-
if ('\\;#'.indexOf(c) !== -1) {
|
|
232
|
-
unesc += c;
|
|
233
|
-
}
|
|
234
|
-
else {
|
|
235
|
-
unesc += '\\' + c;
|
|
236
|
-
}
|
|
237
|
-
esc = false;
|
|
238
|
-
}
|
|
239
|
-
else if (';#'.indexOf(c) !== -1) {
|
|
240
|
-
break;
|
|
241
|
-
}
|
|
242
|
-
else if (c === '\\') {
|
|
243
|
-
esc = true;
|
|
244
|
-
}
|
|
245
|
-
else {
|
|
246
|
-
unesc += c;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
if (esc) {
|
|
250
|
-
unesc += '\\';
|
|
251
|
-
}
|
|
252
|
-
return unesc.trim();
|
|
253
|
-
}
|
|
254
|
-
return val;
|
|
255
|
-
}
|
|
256
|
-
exports.unsafe = unsafe;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './ini.js';
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
-
};
|
|
16
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./ini.js"), exports);
|
package/script/src/Change.d.ts
DELETED
package/script/src/Change.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
class Change {
|
|
4
|
-
static extractIssues(text, issues) {
|
|
5
|
-
return text
|
|
6
|
-
.replace(/(^|[^\\])\[#(\d+)\](?=[^\(]|$)/g, (_, start, index) => {
|
|
7
|
-
if (!issues.includes(index)) {
|
|
8
|
-
issues.push(index);
|
|
9
|
-
}
|
|
10
|
-
return `${start}[#${index}]`;
|
|
11
|
-
})
|
|
12
|
-
.replace(/(^|[\s,])#(\d+)(?=[\s,\.]|$)/g, (_, start, index) => {
|
|
13
|
-
if (!issues.includes(index)) {
|
|
14
|
-
issues.push(index);
|
|
15
|
-
}
|
|
16
|
-
return `${start}[#${index}]`;
|
|
17
|
-
});
|
|
18
|
-
}
|
|
19
|
-
constructor(title, description = "") {
|
|
20
|
-
Object.defineProperty(this, "title", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true,
|
|
23
|
-
writable: true,
|
|
24
|
-
value: void 0
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(this, "description", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true,
|
|
30
|
-
value: void 0
|
|
31
|
-
});
|
|
32
|
-
Object.defineProperty(this, "issues", {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
configurable: true,
|
|
35
|
-
writable: true,
|
|
36
|
-
value: []
|
|
37
|
-
});
|
|
38
|
-
this.title = Change.extractIssues(title, this.issues);
|
|
39
|
-
this.description = Change.extractIssues(description, this.issues);
|
|
40
|
-
}
|
|
41
|
-
toString() {
|
|
42
|
-
let t = this.title.split("\n").map((line) => ` ${line}`.trimEnd());
|
|
43
|
-
t[0] = "-" + t[0].substr(1);
|
|
44
|
-
if (this.description) {
|
|
45
|
-
t.push("");
|
|
46
|
-
t = t.concat(this.description.split("\n").map((line) => ` ${line}`.trimEnd()));
|
|
47
|
-
}
|
|
48
|
-
return t.join("\n").trim();
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
exports.default = Change;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import Release from "./Release.js";
|
|
2
|
-
import type { SemVer } from "./deps.js";
|
|
3
|
-
export default class Changelog {
|
|
4
|
-
flag?: string;
|
|
5
|
-
title: string;
|
|
6
|
-
description: string;
|
|
7
|
-
head: string;
|
|
8
|
-
footer?: string;
|
|
9
|
-
url?: string;
|
|
10
|
-
releases: Release[];
|
|
11
|
-
tagNameBuilder?: (release: Release) => string;
|
|
12
|
-
/** @deprecated: Use tagLinkBuilder() instead */
|
|
13
|
-
compareLinkBuilder?: (previous: Release, release: Release) => string;
|
|
14
|
-
tagLinkBuilder?: (url: string, tag: string, previous?: string) => string;
|
|
15
|
-
format: "compact" | "markdownlint";
|
|
16
|
-
constructor(title: string, description?: string);
|
|
17
|
-
addRelease(release: Release): this;
|
|
18
|
-
findRelease(version?: SemVer | string): Release | undefined;
|
|
19
|
-
sortReleases(): void;
|
|
20
|
-
compareLink(previous: Release, release: Release): string;
|
|
21
|
-
tagName(release: Release): string;
|
|
22
|
-
toString(): string;
|
|
23
|
-
}
|