keep-a-changelog 2.3.0 → 2.4.1
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 +17 -2
- package/README.md +20 -6
- package/esm/_dnt.shims.js +0 -1
- package/esm/deps/deno.land/std@0.203.0/semver/_shared.d.ts +42 -0
- package/esm/deps/deno.land/std@0.203.0/semver/_shared.js +230 -0
- package/esm/deps/deno.land/std@0.203.0/semver/cmp.d.ts +9 -0
- package/esm/deps/deno.land/std@0.203.0/semver/cmp.js +35 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_format.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_format.js +11 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_intersects.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_intersects.js +45 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_max.d.ts +9 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_max.js +45 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_min.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/comparator_min.js +32 -0
- package/esm/deps/deno.land/std@0.203.0/semver/compare.d.ts +10 -0
- package/esm/deps/deno.land/std@0.203.0/semver/compare.js +18 -0
- package/esm/deps/deno.land/std@0.203.0/semver/compare_build.d.ts +13 -0
- package/esm/deps/deno.land/std@0.203.0/semver/compare_build.js +23 -0
- package/esm/deps/deno.land/std@0.203.0/semver/constants.d.ts +42 -0
- package/esm/deps/deno.land/std@0.203.0/semver/constants.js +75 -0
- package/esm/deps/deno.land/std@0.203.0/semver/difference.d.ts +4 -0
- package/esm/deps/deno.land/std@0.203.0/semver/difference.js +26 -0
- package/esm/deps/deno.land/std@0.203.0/semver/eq.d.ts +4 -0
- package/esm/deps/deno.land/std@0.203.0/semver/eq.js +7 -0
- package/esm/deps/deno.land/std@0.203.0/semver/format.d.ts +12 -0
- package/esm/deps/deno.land/std@0.203.0/semver/format.js +54 -0
- package/esm/deps/deno.land/std@0.203.0/semver/gt.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/gt.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/gte.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/gte.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/gtr.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/gtr.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/increment.d.ts +28 -0
- package/esm/deps/deno.land/std@0.203.0/semver/increment.js +207 -0
- package/esm/deps/deno.land/std@0.203.0/semver/is_semver.d.ts +17 -0
- package/esm/deps/deno.land/std@0.203.0/semver/is_semver.js +41 -0
- package/esm/deps/deno.land/std@0.203.0/semver/is_semver_comparator.d.ts +12 -0
- package/esm/deps/deno.land/std@0.203.0/semver/is_semver_comparator.js +31 -0
- package/esm/deps/deno.land/std@0.203.0/semver/is_semver_range.d.ts +12 -0
- package/esm/deps/deno.land/std@0.203.0/semver/is_semver_range.js +22 -0
- package/esm/deps/deno.land/std@0.203.0/semver/lt.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/lt.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/lte.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/lte.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/ltr.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/ltr.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/max_satisfying.d.ts +9 -0
- package/esm/deps/deno.land/std@0.203.0/semver/max_satisfying.js +14 -0
- package/esm/deps/deno.land/std@0.203.0/semver/min_satisfying.d.ts +9 -0
- package/esm/deps/deno.land/std@0.203.0/semver/min_satisfying.js +14 -0
- package/esm/deps/deno.land/{std@0.173.0 → std@0.203.0}/semver/mod.d.ts +88 -176
- package/esm/deps/deno.land/std@0.203.0/semver/mod.js +313 -0
- package/esm/deps/deno.land/std@0.203.0/semver/neq.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/neq.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/outside.d.ts +11 -0
- package/esm/deps/deno.land/std@0.203.0/semver/outside.js +67 -0
- package/esm/deps/deno.land/std@0.203.0/semver/parse.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/parse.js +66 -0
- package/esm/deps/deno.land/std@0.203.0/semver/parse_comparator.d.ts +7 -0
- package/esm/deps/deno.land/std@0.203.0/semver/parse_comparator.js +28 -0
- package/esm/deps/deno.land/std@0.203.0/semver/parse_range.d.ts +7 -0
- package/esm/deps/deno.land/std@0.203.0/semver/parse_range.js +292 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_format.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_format.js +11 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_intersects.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_intersects.js +35 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_max.d.ts +7 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_max.js +15 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_min.d.ts +7 -0
- package/esm/deps/deno.land/std@0.203.0/semver/range_min.js +14 -0
- package/esm/deps/deno.land/std@0.203.0/semver/rcompare.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/rcompare.js +10 -0
- package/esm/deps/deno.land/std@0.203.0/semver/rsort.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/rsort.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/sort.d.ts +3 -0
- package/esm/deps/deno.land/std@0.203.0/semver/sort.js +5 -0
- package/esm/deps/deno.land/std@0.203.0/semver/test_comparator.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/test_comparator.js +10 -0
- package/esm/deps/deno.land/std@0.203.0/semver/test_range.d.ts +8 -0
- package/esm/deps/deno.land/std@0.203.0/semver/test_range.js +16 -0
- package/esm/deps/deno.land/std@0.203.0/semver/types.d.ts +44 -0
- package/esm/deps/deno.land/std@0.203.0/semver/types.js +2 -0
- package/esm/src/Changelog.d.ts +4 -2
- package/esm/src/Changelog.js +25 -4
- package/esm/src/Release.d.ts +5 -4
- package/esm/src/Release.js +21 -22
- package/esm/src/deps.d.ts +2 -1
- package/esm/src/deps.js +1 -1
- package/esm/test/changelog.custom.type.md +2 -3
- package/esm/test/changelog.expected.linted.md +3 -4
- package/esm/test/changelog.expected.md +3 -4
- package/esm/test/changelog.md +3 -4
- package/esm/test/empty.expected.md +2 -2
- package/package.json +2 -2
- package/script/_dnt.shims.js +0 -1
- package/script/deps/deno.land/std@0.203.0/semver/_shared.d.ts +42 -0
- package/script/deps/deno.land/std@0.203.0/semver/_shared.js +248 -0
- package/script/deps/deno.land/std@0.203.0/semver/cmp.d.ts +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/cmp.js +39 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_format.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_format.js +15 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_intersects.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_intersects.js +49 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_max.d.ts +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_max.js +49 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_min.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/comparator_min.js +36 -0
- package/script/deps/deno.land/std@0.203.0/semver/compare.d.ts +10 -0
- package/script/deps/deno.land/std@0.203.0/semver/compare.js +22 -0
- package/script/deps/deno.land/std@0.203.0/semver/compare_build.d.ts +13 -0
- package/script/deps/deno.land/std@0.203.0/semver/compare_build.js +27 -0
- package/script/deps/deno.land/std@0.203.0/semver/constants.d.ts +42 -0
- package/script/deps/deno.land/std@0.203.0/semver/constants.js +78 -0
- package/script/deps/deno.land/std@0.203.0/semver/difference.d.ts +4 -0
- package/script/deps/deno.land/std@0.203.0/semver/difference.js +30 -0
- package/script/deps/deno.land/std@0.203.0/semver/eq.d.ts +4 -0
- package/script/deps/deno.land/std@0.203.0/semver/eq.js +11 -0
- package/script/deps/deno.land/std@0.203.0/semver/format.d.ts +12 -0
- package/script/deps/deno.land/std@0.203.0/semver/format.js +58 -0
- package/script/deps/deno.land/std@0.203.0/semver/gt.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/gt.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/gte.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/gte.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/gtr.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/gtr.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/increment.d.ts +28 -0
- package/script/deps/deno.land/std@0.203.0/semver/increment.js +211 -0
- package/script/deps/deno.land/std@0.203.0/semver/is_semver.d.ts +17 -0
- package/script/deps/deno.land/std@0.203.0/semver/is_semver.js +45 -0
- package/script/deps/deno.land/std@0.203.0/semver/is_semver_comparator.d.ts +12 -0
- package/script/deps/deno.land/std@0.203.0/semver/is_semver_comparator.js +35 -0
- package/script/deps/deno.land/std@0.203.0/semver/is_semver_range.d.ts +12 -0
- package/script/deps/deno.land/std@0.203.0/semver/is_semver_range.js +26 -0
- package/script/deps/deno.land/std@0.203.0/semver/lt.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/lt.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/lte.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/lte.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/ltr.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/ltr.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/max_satisfying.d.ts +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/max_satisfying.js +18 -0
- package/script/deps/deno.land/std@0.203.0/semver/min_satisfying.d.ts +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/min_satisfying.js +18 -0
- package/script/deps/deno.land/{std@0.173.0 → std@0.203.0}/semver/mod.d.ts +88 -176
- package/script/deps/deno.land/std@0.203.0/semver/mod.js +330 -0
- package/script/deps/deno.land/std@0.203.0/semver/neq.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/neq.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/outside.d.ts +11 -0
- package/script/deps/deno.land/std@0.203.0/semver/outside.js +71 -0
- package/script/deps/deno.land/std@0.203.0/semver/parse.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/parse.js +70 -0
- package/script/deps/deno.land/std@0.203.0/semver/parse_comparator.d.ts +7 -0
- package/script/deps/deno.land/std@0.203.0/semver/parse_comparator.js +32 -0
- package/script/deps/deno.land/std@0.203.0/semver/parse_range.d.ts +7 -0
- package/script/deps/deno.land/std@0.203.0/semver/parse_range.js +296 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_format.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_format.js +15 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_intersects.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_intersects.js +39 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_max.d.ts +7 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_max.js +19 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_min.d.ts +7 -0
- package/script/deps/deno.land/std@0.203.0/semver/range_min.js +18 -0
- package/script/deps/deno.land/std@0.203.0/semver/rcompare.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/rcompare.js +14 -0
- package/script/deps/deno.land/std@0.203.0/semver/rsort.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/rsort.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/sort.d.ts +3 -0
- package/script/deps/deno.land/std@0.203.0/semver/sort.js +9 -0
- package/script/deps/deno.land/std@0.203.0/semver/test_comparator.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/test_comparator.js +14 -0
- package/script/deps/deno.land/std@0.203.0/semver/test_range.d.ts +8 -0
- package/script/deps/deno.land/std@0.203.0/semver/test_range.js +20 -0
- package/script/deps/deno.land/std@0.203.0/semver/types.d.ts +44 -0
- package/script/deps/deno.land/std@0.203.0/semver/types.js +3 -0
- package/script/src/Changelog.d.ts +4 -2
- package/script/src/Changelog.js +24 -3
- package/script/src/Release.d.ts +5 -4
- package/script/src/Release.js +20 -21
- package/script/src/deps.d.ts +2 -1
- package/script/src/deps.js +5 -6
- package/script/test/changelog.custom.type.md +2 -3
- package/script/test/changelog.expected.linted.md +3 -4
- package/script/test/changelog.expected.md +3 -4
- package/script/test/changelog.md +3 -4
- package/script/test/empty.expected.md +2 -2
- package/esm/_dnt.test_shims.d.ts +0 -5
- package/esm/deps/deno.land/std@0.133.0/fmt/colors.d.ts +0 -270
- package/esm/deps/deno.land/std@0.133.0/testing/_diff.d.ts +0 -23
- package/esm/deps/deno.land/std@0.133.0/testing/asserts.d.ts +0 -167
- package/esm/deps/deno.land/std@0.173.0/semver/mod.js +0 -1420
- package/esm/test/Change.test.d.ts +0 -1
- package/esm/test/deps.d.ts +0 -1
- package/esm/test/fixture/CustomRelease.d.ts +0 -8
- package/esm/test/parser.test.d.ts +0 -1
- package/esm/test/test.d.ts +0 -1
- package/script/_dnt.test_shims.d.ts +0 -5
- package/script/deps/deno.land/std@0.133.0/fmt/colors.d.ts +0 -270
- package/script/deps/deno.land/std@0.133.0/testing/_diff.d.ts +0 -23
- package/script/deps/deno.land/std@0.133.0/testing/asserts.d.ts +0 -167
- package/script/deps/deno.land/std@0.173.0/semver/mod.js +0 -1458
- package/script/test/Change.test.d.ts +0 -1
- package/script/test/deps.d.ts +0 -1
- package/script/test/fixture/CustomRelease.d.ts +0 -8
- package/script/test/parser.test.d.ts +0 -1
- package/script/test/test.d.ts +0 -1
package/script/src/Release.d.ts
CHANGED
|
@@ -1,17 +1,18 @@
|
|
|
1
|
-
import { Semver } from "./deps.js";
|
|
2
1
|
import Change from "./Change.js";
|
|
3
2
|
import Changelog from "./Changelog.js";
|
|
3
|
+
import type { SemVer } from "./deps.js";
|
|
4
4
|
export default class Release {
|
|
5
5
|
changelog?: Changelog;
|
|
6
|
-
|
|
6
|
+
parsedVersion?: SemVer;
|
|
7
7
|
date?: Date;
|
|
8
8
|
yanked: boolean;
|
|
9
9
|
description: string;
|
|
10
10
|
changes: Map<string, Change[]>;
|
|
11
|
-
constructor(version?: string |
|
|
11
|
+
constructor(version?: string | SemVer, date?: string | Date, description?: string);
|
|
12
|
+
get version(): string | undefined;
|
|
12
13
|
compare(release: Release): number;
|
|
13
14
|
isEmpty(): boolean;
|
|
14
|
-
setVersion(version?: string |
|
|
15
|
+
setVersion(version?: string | SemVer): void;
|
|
15
16
|
setDate(date?: Date | string): void;
|
|
16
17
|
setYanked(yanked?: boolean): this;
|
|
17
18
|
addChange(type: string, change: Change | string): this;
|
package/script/src/Release.js
CHANGED
|
@@ -13,7 +13,7 @@ class Release {
|
|
|
13
13
|
writable: true,
|
|
14
14
|
value: void 0
|
|
15
15
|
});
|
|
16
|
-
Object.defineProperty(this, "
|
|
16
|
+
Object.defineProperty(this, "parsedVersion", {
|
|
17
17
|
enumerable: true,
|
|
18
18
|
configurable: true,
|
|
19
19
|
writable: true,
|
|
@@ -55,11 +55,14 @@ class Release {
|
|
|
55
55
|
["security", []],
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
|
+
get version() {
|
|
59
|
+
return this.parsedVersion ? (0, deps_js_1.format)(this.parsedVersion) : undefined;
|
|
60
|
+
}
|
|
58
61
|
compare(release) {
|
|
59
|
-
if (!this.
|
|
62
|
+
if (!this.parsedVersion && release.parsedVersion) {
|
|
60
63
|
return -1;
|
|
61
64
|
}
|
|
62
|
-
if (!release.
|
|
65
|
+
if (!release.parsedVersion) {
|
|
63
66
|
return 1;
|
|
64
67
|
}
|
|
65
68
|
if (!this.date && release.date) {
|
|
@@ -68,8 +71,8 @@ class Release {
|
|
|
68
71
|
if (!release.date) {
|
|
69
72
|
return 1;
|
|
70
73
|
}
|
|
71
|
-
if (this.
|
|
72
|
-
return -
|
|
74
|
+
if (this.parsedVersion && release.parsedVersion) {
|
|
75
|
+
return -(0, deps_js_1.compare)(this.parsedVersion, release.parsedVersion);
|
|
73
76
|
}
|
|
74
77
|
return 0;
|
|
75
78
|
}
|
|
@@ -81,9 +84,9 @@ class Release {
|
|
|
81
84
|
}
|
|
82
85
|
setVersion(version) {
|
|
83
86
|
if (typeof version === "string") {
|
|
84
|
-
version =
|
|
87
|
+
version = (0, deps_js_1.parse)(version);
|
|
85
88
|
}
|
|
86
|
-
this.
|
|
89
|
+
this.parsedVersion = version;
|
|
87
90
|
//Re-sort the releases of the parent changelog
|
|
88
91
|
if (this.changelog) {
|
|
89
92
|
this.changelog.sortReleases();
|
|
@@ -131,12 +134,13 @@ class Release {
|
|
|
131
134
|
let t = [];
|
|
132
135
|
const hasCompareLink = this.getCompareLink(changelog) !== undefined;
|
|
133
136
|
const yanked = this.yanked ? " [YANKED]" : "";
|
|
134
|
-
|
|
137
|
+
const { version } = this;
|
|
138
|
+
if (version) {
|
|
135
139
|
if (hasCompareLink) {
|
|
136
|
-
t.push(`## [${
|
|
140
|
+
t.push(`## [${version}] - ${formatDate(this.date)}${yanked}`);
|
|
137
141
|
}
|
|
138
142
|
else {
|
|
139
|
-
t.push(`## ${
|
|
143
|
+
t.push(`## ${version} - ${formatDate(this.date)}${yanked}`);
|
|
140
144
|
}
|
|
141
145
|
}
|
|
142
146
|
else {
|
|
@@ -180,19 +184,14 @@ class Release {
|
|
|
180
184
|
++offset;
|
|
181
185
|
previous = changelog.releases[index + offset];
|
|
182
186
|
}
|
|
183
|
-
if (!previous) {
|
|
184
|
-
|
|
185
|
-
return;
|
|
186
|
-
}
|
|
187
|
-
return `[${this.version}]: ${changelog.url}/releases/tag/${changelog.tagName(this)}`;
|
|
188
|
-
}
|
|
189
|
-
if (!this.version) {
|
|
190
|
-
return `[Unreleased]: ${changelog.url}/compare/${changelog.tagName(previous)}...${changelog.head}`;
|
|
187
|
+
if (!previous && (!this.version || !this.date)) {
|
|
188
|
+
return;
|
|
191
189
|
}
|
|
192
|
-
|
|
193
|
-
|
|
190
|
+
const compareLink = changelog.compareLink(previous, this);
|
|
191
|
+
if (!compareLink) {
|
|
192
|
+
return;
|
|
194
193
|
}
|
|
195
|
-
return `[${this.version}]: ${
|
|
194
|
+
return `[${this.version || "Unreleased"}]: ${compareLink}`;
|
|
196
195
|
}
|
|
197
196
|
getLinks(changelog) {
|
|
198
197
|
const links = [];
|
package/script/src/deps.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { compare, eq, format, parse, } from "../deps/deno.land/std@0.203.0/semver/mod.js";
|
|
2
|
+
export type { SemVer } from "../deps/deno.land/std@0.203.0/semver/mod.js";
|
package/script/src/deps.js
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.eq = exports.
|
|
7
|
-
var mod_js_1 = require("../deps/deno.land/std@0.
|
|
8
|
-
Object.defineProperty(exports, "
|
|
3
|
+
exports.parse = exports.format = exports.eq = exports.compare = void 0;
|
|
4
|
+
var mod_js_1 = require("../deps/deno.land/std@0.203.0/semver/mod.js");
|
|
5
|
+
Object.defineProperty(exports, "compare", { enumerable: true, get: function () { return mod_js_1.compare; } });
|
|
9
6
|
Object.defineProperty(exports, "eq", { enumerable: true, get: function () { return mod_js_1.eq; } });
|
|
7
|
+
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return mod_js_1.format; } });
|
|
8
|
+
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return mod_js_1.parse; } });
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# Changelog - demo
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
The format is based on [Keep a Changelog](
|
|
5
|
-
and this project adheres to
|
|
6
|
-
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
6
|
|
|
8
7
|
## [Unreleased]
|
|
9
8
|
### Maintenance
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
The format is based on [Keep a Changelog](
|
|
6
|
-
and this project adheres to
|
|
7
|
-
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
8
7
|
|
|
9
8
|
## [Unreleased] [YANKED]
|
|
10
9
|
|
|
@@ -96,7 +95,7 @@ This is a brand new releases with:
|
|
|
96
95
|
### Changed
|
|
97
96
|
|
|
98
97
|
- Improve argument against commit logs.
|
|
99
|
-
- Start following [SemVer](
|
|
98
|
+
- Start following [SemVer](https://semver.org) properly.
|
|
100
99
|
|
|
101
100
|
## [0.0.8] - 2015-02-17
|
|
102
101
|
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
# Changelog - demo
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
The format is based on [Keep a Changelog](
|
|
5
|
-
and this project adheres to
|
|
6
|
-
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
7
6
|
|
|
8
7
|
## [Unreleased] [YANKED]
|
|
9
8
|
This is a brand new releases with:
|
|
@@ -80,7 +79,7 @@ This is a brand new releases with:
|
|
|
80
79
|
|
|
81
80
|
### Changed
|
|
82
81
|
- Improve argument against commit logs.
|
|
83
|
-
- Start following [SemVer](
|
|
82
|
+
- Start following [SemVer](https://semver.org) properly.
|
|
84
83
|
|
|
85
84
|
## [0.0.8] - 2015-02-17
|
|
86
85
|
### Changed
|
package/script/test/changelog.md
CHANGED
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
-
The format is based on [Keep a Changelog](
|
|
6
|
-
and this project adheres to
|
|
7
|
-
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
5
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
6
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
8
7
|
|
|
9
8
|
## [Unreleased] [Yanked]
|
|
10
9
|
This is a brand new releases with:
|
|
@@ -97,7 +96,7 @@ This is a brand new releases with:
|
|
|
97
96
|
### Changed
|
|
98
97
|
|
|
99
98
|
- Improve argument against commit logs.
|
|
100
|
-
- Start following [SemVer](
|
|
99
|
+
- Start following [SemVer](https://semver.org) properly.
|
|
101
100
|
|
|
102
101
|
## [0.0.8] - 2015-02-17
|
|
103
102
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
All notable changes to this project will be documented in this file.
|
|
3
3
|
|
|
4
|
-
The format is based on [Keep a Changelog](
|
|
5
|
-
and this project adheres to [Semantic Versioning](
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
package/esm/_dnt.test_shims.d.ts
DELETED
|
@@ -1,270 +0,0 @@
|
|
|
1
|
-
/** RGB 8-bits per channel. Each in range `0->255` or `0x00->0xff` */
|
|
2
|
-
interface Rgb {
|
|
3
|
-
r: number;
|
|
4
|
-
g: number;
|
|
5
|
-
b: number;
|
|
6
|
-
}
|
|
7
|
-
/**
|
|
8
|
-
* Set changing text color to enabled or disabled
|
|
9
|
-
* @param value
|
|
10
|
-
*/
|
|
11
|
-
export declare function setColorEnabled(value: boolean): void;
|
|
12
|
-
/** Get whether text color change is enabled or disabled. */
|
|
13
|
-
export declare function getColorEnabled(): boolean;
|
|
14
|
-
/**
|
|
15
|
-
* Reset the text modified
|
|
16
|
-
* @param str text to reset
|
|
17
|
-
*/
|
|
18
|
-
export declare function reset(str: string): string;
|
|
19
|
-
/**
|
|
20
|
-
* Make the text bold.
|
|
21
|
-
* @param str text to make bold
|
|
22
|
-
*/
|
|
23
|
-
export declare function bold(str: string): string;
|
|
24
|
-
/**
|
|
25
|
-
* The text emits only a small amount of light.
|
|
26
|
-
* @param str text to dim
|
|
27
|
-
*/
|
|
28
|
-
export declare function dim(str: string): string;
|
|
29
|
-
/**
|
|
30
|
-
* Make the text italic.
|
|
31
|
-
* @param str text to make italic
|
|
32
|
-
*/
|
|
33
|
-
export declare function italic(str: string): string;
|
|
34
|
-
/**
|
|
35
|
-
* Make the text underline.
|
|
36
|
-
* @param str text to underline
|
|
37
|
-
*/
|
|
38
|
-
export declare function underline(str: string): string;
|
|
39
|
-
/**
|
|
40
|
-
* Invert background color and text color.
|
|
41
|
-
* @param str text to invert its color
|
|
42
|
-
*/
|
|
43
|
-
export declare function inverse(str: string): string;
|
|
44
|
-
/**
|
|
45
|
-
* Make the text hidden.
|
|
46
|
-
* @param str text to hide
|
|
47
|
-
*/
|
|
48
|
-
export declare function hidden(str: string): string;
|
|
49
|
-
/**
|
|
50
|
-
* Put horizontal line through the center of the text.
|
|
51
|
-
* @param str text to strike through
|
|
52
|
-
*/
|
|
53
|
-
export declare function strikethrough(str: string): string;
|
|
54
|
-
/**
|
|
55
|
-
* Set text color to black.
|
|
56
|
-
* @param str text to make black
|
|
57
|
-
*/
|
|
58
|
-
export declare function black(str: string): string;
|
|
59
|
-
/**
|
|
60
|
-
* Set text color to red.
|
|
61
|
-
* @param str text to make red
|
|
62
|
-
*/
|
|
63
|
-
export declare function red(str: string): string;
|
|
64
|
-
/**
|
|
65
|
-
* Set text color to green.
|
|
66
|
-
* @param str text to make green
|
|
67
|
-
*/
|
|
68
|
-
export declare function green(str: string): string;
|
|
69
|
-
/**
|
|
70
|
-
* Set text color to yellow.
|
|
71
|
-
* @param str text to make yellow
|
|
72
|
-
*/
|
|
73
|
-
export declare function yellow(str: string): string;
|
|
74
|
-
/**
|
|
75
|
-
* Set text color to blue.
|
|
76
|
-
* @param str text to make blue
|
|
77
|
-
*/
|
|
78
|
-
export declare function blue(str: string): string;
|
|
79
|
-
/**
|
|
80
|
-
* Set text color to magenta.
|
|
81
|
-
* @param str text to make magenta
|
|
82
|
-
*/
|
|
83
|
-
export declare function magenta(str: string): string;
|
|
84
|
-
/**
|
|
85
|
-
* Set text color to cyan.
|
|
86
|
-
* @param str text to make cyan
|
|
87
|
-
*/
|
|
88
|
-
export declare function cyan(str: string): string;
|
|
89
|
-
/**
|
|
90
|
-
* Set text color to white.
|
|
91
|
-
* @param str text to make white
|
|
92
|
-
*/
|
|
93
|
-
export declare function white(str: string): string;
|
|
94
|
-
/**
|
|
95
|
-
* Set text color to gray.
|
|
96
|
-
* @param str text to make gray
|
|
97
|
-
*/
|
|
98
|
-
export declare function gray(str: string): string;
|
|
99
|
-
/**
|
|
100
|
-
* Set text color to bright black.
|
|
101
|
-
* @param str text to make bright-black
|
|
102
|
-
*/
|
|
103
|
-
export declare function brightBlack(str: string): string;
|
|
104
|
-
/**
|
|
105
|
-
* Set text color to bright red.
|
|
106
|
-
* @param str text to make bright-red
|
|
107
|
-
*/
|
|
108
|
-
export declare function brightRed(str: string): string;
|
|
109
|
-
/**
|
|
110
|
-
* Set text color to bright green.
|
|
111
|
-
* @param str text to make bright-green
|
|
112
|
-
*/
|
|
113
|
-
export declare function brightGreen(str: string): string;
|
|
114
|
-
/**
|
|
115
|
-
* Set text color to bright yellow.
|
|
116
|
-
* @param str text to make bright-yellow
|
|
117
|
-
*/
|
|
118
|
-
export declare function brightYellow(str: string): string;
|
|
119
|
-
/**
|
|
120
|
-
* Set text color to bright blue.
|
|
121
|
-
* @param str text to make bright-blue
|
|
122
|
-
*/
|
|
123
|
-
export declare function brightBlue(str: string): string;
|
|
124
|
-
/**
|
|
125
|
-
* Set text color to bright magenta.
|
|
126
|
-
* @param str text to make bright-magenta
|
|
127
|
-
*/
|
|
128
|
-
export declare function brightMagenta(str: string): string;
|
|
129
|
-
/**
|
|
130
|
-
* Set text color to bright cyan.
|
|
131
|
-
* @param str text to make bright-cyan
|
|
132
|
-
*/
|
|
133
|
-
export declare function brightCyan(str: string): string;
|
|
134
|
-
/**
|
|
135
|
-
* Set text color to bright white.
|
|
136
|
-
* @param str text to make bright-white
|
|
137
|
-
*/
|
|
138
|
-
export declare function brightWhite(str: string): string;
|
|
139
|
-
/**
|
|
140
|
-
* Set background color to black.
|
|
141
|
-
* @param str text to make its background black
|
|
142
|
-
*/
|
|
143
|
-
export declare function bgBlack(str: string): string;
|
|
144
|
-
/**
|
|
145
|
-
* Set background color to red.
|
|
146
|
-
* @param str text to make its background red
|
|
147
|
-
*/
|
|
148
|
-
export declare function bgRed(str: string): string;
|
|
149
|
-
/**
|
|
150
|
-
* Set background color to green.
|
|
151
|
-
* @param str text to make its background green
|
|
152
|
-
*/
|
|
153
|
-
export declare function bgGreen(str: string): string;
|
|
154
|
-
/**
|
|
155
|
-
* Set background color to yellow.
|
|
156
|
-
* @param str text to make its background yellow
|
|
157
|
-
*/
|
|
158
|
-
export declare function bgYellow(str: string): string;
|
|
159
|
-
/**
|
|
160
|
-
* Set background color to blue.
|
|
161
|
-
* @param str text to make its background blue
|
|
162
|
-
*/
|
|
163
|
-
export declare function bgBlue(str: string): string;
|
|
164
|
-
/**
|
|
165
|
-
* Set background color to magenta.
|
|
166
|
-
* @param str text to make its background magenta
|
|
167
|
-
*/
|
|
168
|
-
export declare function bgMagenta(str: string): string;
|
|
169
|
-
/**
|
|
170
|
-
* Set background color to cyan.
|
|
171
|
-
* @param str text to make its background cyan
|
|
172
|
-
*/
|
|
173
|
-
export declare function bgCyan(str: string): string;
|
|
174
|
-
/**
|
|
175
|
-
* Set background color to white.
|
|
176
|
-
* @param str text to make its background white
|
|
177
|
-
*/
|
|
178
|
-
export declare function bgWhite(str: string): string;
|
|
179
|
-
/**
|
|
180
|
-
* Set background color to bright black.
|
|
181
|
-
* @param str text to make its background bright-black
|
|
182
|
-
*/
|
|
183
|
-
export declare function bgBrightBlack(str: string): string;
|
|
184
|
-
/**
|
|
185
|
-
* Set background color to bright red.
|
|
186
|
-
* @param str text to make its background bright-red
|
|
187
|
-
*/
|
|
188
|
-
export declare function bgBrightRed(str: string): string;
|
|
189
|
-
/**
|
|
190
|
-
* Set background color to bright green.
|
|
191
|
-
* @param str text to make its background bright-green
|
|
192
|
-
*/
|
|
193
|
-
export declare function bgBrightGreen(str: string): string;
|
|
194
|
-
/**
|
|
195
|
-
* Set background color to bright yellow.
|
|
196
|
-
* @param str text to make its background bright-yellow
|
|
197
|
-
*/
|
|
198
|
-
export declare function bgBrightYellow(str: string): string;
|
|
199
|
-
/**
|
|
200
|
-
* Set background color to bright blue.
|
|
201
|
-
* @param str text to make its background bright-blue
|
|
202
|
-
*/
|
|
203
|
-
export declare function bgBrightBlue(str: string): string;
|
|
204
|
-
/**
|
|
205
|
-
* Set background color to bright magenta.
|
|
206
|
-
* @param str text to make its background bright-magenta
|
|
207
|
-
*/
|
|
208
|
-
export declare function bgBrightMagenta(str: string): string;
|
|
209
|
-
/**
|
|
210
|
-
* Set background color to bright cyan.
|
|
211
|
-
* @param str text to make its background bright-cyan
|
|
212
|
-
*/
|
|
213
|
-
export declare function bgBrightCyan(str: string): string;
|
|
214
|
-
/**
|
|
215
|
-
* Set background color to bright white.
|
|
216
|
-
* @param str text to make its background bright-white
|
|
217
|
-
*/
|
|
218
|
-
export declare function bgBrightWhite(str: string): string;
|
|
219
|
-
/**
|
|
220
|
-
* Set text color using paletted 8bit colors.
|
|
221
|
-
* https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
|
|
222
|
-
* @param str text color to apply paletted 8bit colors to
|
|
223
|
-
* @param color code
|
|
224
|
-
*/
|
|
225
|
-
export declare function rgb8(str: string, color: number): string;
|
|
226
|
-
/**
|
|
227
|
-
* Set background color using paletted 8bit colors.
|
|
228
|
-
* https://en.wikipedia.org/wiki/ANSI_escape_code#8-bit
|
|
229
|
-
* @param str text color to apply paletted 8bit background colors to
|
|
230
|
-
* @param color code
|
|
231
|
-
*/
|
|
232
|
-
export declare function bgRgb8(str: string, color: number): string;
|
|
233
|
-
/**
|
|
234
|
-
* Set text color using 24bit rgb.
|
|
235
|
-
* `color` can be a number in range `0x000000` to `0xffffff` or
|
|
236
|
-
* an `Rgb`.
|
|
237
|
-
*
|
|
238
|
-
* To produce the color magenta:
|
|
239
|
-
*
|
|
240
|
-
* ```ts
|
|
241
|
-
* import { rgb24 } from "./colors.ts";
|
|
242
|
-
* rgb24("foo", 0xff00ff);
|
|
243
|
-
* rgb24("foo", {r: 255, g: 0, b: 255});
|
|
244
|
-
* ```
|
|
245
|
-
* @param str text color to apply 24bit rgb to
|
|
246
|
-
* @param color code
|
|
247
|
-
*/
|
|
248
|
-
export declare function rgb24(str: string, color: number | Rgb): string;
|
|
249
|
-
/**
|
|
250
|
-
* Set background color using 24bit rgb.
|
|
251
|
-
* `color` can be a number in range `0x000000` to `0xffffff` or
|
|
252
|
-
* an `Rgb`.
|
|
253
|
-
*
|
|
254
|
-
* To produce the color magenta:
|
|
255
|
-
*
|
|
256
|
-
* ```ts
|
|
257
|
-
* import { bgRgb24 } from "./colors.ts";
|
|
258
|
-
* bgRgb24("foo", 0xff00ff);
|
|
259
|
-
* bgRgb24("foo", {r: 255, g: 0, b: 255});
|
|
260
|
-
* ```
|
|
261
|
-
* @param str text color to apply 24bit rgb to
|
|
262
|
-
* @param color code
|
|
263
|
-
*/
|
|
264
|
-
export declare function bgRgb24(str: string, color: number | Rgb): string;
|
|
265
|
-
/**
|
|
266
|
-
* Remove ANSI escape codes from the string.
|
|
267
|
-
* @param string to remove ANSI escape codes from
|
|
268
|
-
*/
|
|
269
|
-
export declare function stripColor(string: string): string;
|
|
270
|
-
export {};
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
export declare enum DiffType {
|
|
2
|
-
removed = "removed",
|
|
3
|
-
common = "common",
|
|
4
|
-
added = "added"
|
|
5
|
-
}
|
|
6
|
-
export interface DiffResult<T> {
|
|
7
|
-
type: DiffType;
|
|
8
|
-
value: T;
|
|
9
|
-
details?: Array<DiffResult<T>>;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* Renders the differences between the actual and expected values
|
|
13
|
-
* @param A Actual value
|
|
14
|
-
* @param B Expected value
|
|
15
|
-
*/
|
|
16
|
-
export declare function diff<T>(A: T[], B: T[]): Array<DiffResult<T>>;
|
|
17
|
-
/**
|
|
18
|
-
* Renders the differences between the actual and expected strings
|
|
19
|
-
* Partially inspired from https://github.com/kpdecker/jsdiff
|
|
20
|
-
* @param A Actual string
|
|
21
|
-
* @param B Expected string
|
|
22
|
-
*/
|
|
23
|
-
export declare function diffstr(A: string, B: string): DiffResult<string>[];
|