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.
Files changed (207) hide show
  1. package/CHANGELOG.md +17 -2
  2. package/README.md +20 -6
  3. package/esm/_dnt.shims.js +0 -1
  4. package/esm/deps/deno.land/std@0.203.0/semver/_shared.d.ts +42 -0
  5. package/esm/deps/deno.land/std@0.203.0/semver/_shared.js +230 -0
  6. package/esm/deps/deno.land/std@0.203.0/semver/cmp.d.ts +9 -0
  7. package/esm/deps/deno.land/std@0.203.0/semver/cmp.js +35 -0
  8. package/esm/deps/deno.land/std@0.203.0/semver/comparator_format.d.ts +8 -0
  9. package/esm/deps/deno.land/std@0.203.0/semver/comparator_format.js +11 -0
  10. package/esm/deps/deno.land/std@0.203.0/semver/comparator_intersects.d.ts +8 -0
  11. package/esm/deps/deno.land/std@0.203.0/semver/comparator_intersects.js +45 -0
  12. package/esm/deps/deno.land/std@0.203.0/semver/comparator_max.d.ts +9 -0
  13. package/esm/deps/deno.land/std@0.203.0/semver/comparator_max.js +45 -0
  14. package/esm/deps/deno.land/std@0.203.0/semver/comparator_min.d.ts +8 -0
  15. package/esm/deps/deno.land/std@0.203.0/semver/comparator_min.js +32 -0
  16. package/esm/deps/deno.land/std@0.203.0/semver/compare.d.ts +10 -0
  17. package/esm/deps/deno.land/std@0.203.0/semver/compare.js +18 -0
  18. package/esm/deps/deno.land/std@0.203.0/semver/compare_build.d.ts +13 -0
  19. package/esm/deps/deno.land/std@0.203.0/semver/compare_build.js +23 -0
  20. package/esm/deps/deno.land/std@0.203.0/semver/constants.d.ts +42 -0
  21. package/esm/deps/deno.land/std@0.203.0/semver/constants.js +75 -0
  22. package/esm/deps/deno.land/std@0.203.0/semver/difference.d.ts +4 -0
  23. package/esm/deps/deno.land/std@0.203.0/semver/difference.js +26 -0
  24. package/esm/deps/deno.land/std@0.203.0/semver/eq.d.ts +4 -0
  25. package/esm/deps/deno.land/std@0.203.0/semver/eq.js +7 -0
  26. package/esm/deps/deno.land/std@0.203.0/semver/format.d.ts +12 -0
  27. package/esm/deps/deno.land/std@0.203.0/semver/format.js +54 -0
  28. package/esm/deps/deno.land/std@0.203.0/semver/gt.d.ts +3 -0
  29. package/esm/deps/deno.land/std@0.203.0/semver/gt.js +5 -0
  30. package/esm/deps/deno.land/std@0.203.0/semver/gte.d.ts +3 -0
  31. package/esm/deps/deno.land/std@0.203.0/semver/gte.js +5 -0
  32. package/esm/deps/deno.land/std@0.203.0/semver/gtr.d.ts +3 -0
  33. package/esm/deps/deno.land/std@0.203.0/semver/gtr.js +5 -0
  34. package/esm/deps/deno.land/std@0.203.0/semver/increment.d.ts +28 -0
  35. package/esm/deps/deno.land/std@0.203.0/semver/increment.js +207 -0
  36. package/esm/deps/deno.land/std@0.203.0/semver/is_semver.d.ts +17 -0
  37. package/esm/deps/deno.land/std@0.203.0/semver/is_semver.js +41 -0
  38. package/esm/deps/deno.land/std@0.203.0/semver/is_semver_comparator.d.ts +12 -0
  39. package/esm/deps/deno.land/std@0.203.0/semver/is_semver_comparator.js +31 -0
  40. package/esm/deps/deno.land/std@0.203.0/semver/is_semver_range.d.ts +12 -0
  41. package/esm/deps/deno.land/std@0.203.0/semver/is_semver_range.js +22 -0
  42. package/esm/deps/deno.land/std@0.203.0/semver/lt.d.ts +3 -0
  43. package/esm/deps/deno.land/std@0.203.0/semver/lt.js +5 -0
  44. package/esm/deps/deno.land/std@0.203.0/semver/lte.d.ts +3 -0
  45. package/esm/deps/deno.land/std@0.203.0/semver/lte.js +5 -0
  46. package/esm/deps/deno.land/std@0.203.0/semver/ltr.d.ts +3 -0
  47. package/esm/deps/deno.land/std@0.203.0/semver/ltr.js +5 -0
  48. package/esm/deps/deno.land/std@0.203.0/semver/max_satisfying.d.ts +9 -0
  49. package/esm/deps/deno.land/std@0.203.0/semver/max_satisfying.js +14 -0
  50. package/esm/deps/deno.land/std@0.203.0/semver/min_satisfying.d.ts +9 -0
  51. package/esm/deps/deno.land/std@0.203.0/semver/min_satisfying.js +14 -0
  52. package/esm/deps/deno.land/{std@0.173.0 → std@0.203.0}/semver/mod.d.ts +88 -176
  53. package/esm/deps/deno.land/std@0.203.0/semver/mod.js +313 -0
  54. package/esm/deps/deno.land/std@0.203.0/semver/neq.d.ts +3 -0
  55. package/esm/deps/deno.land/std@0.203.0/semver/neq.js +5 -0
  56. package/esm/deps/deno.land/std@0.203.0/semver/outside.d.ts +11 -0
  57. package/esm/deps/deno.land/std@0.203.0/semver/outside.js +67 -0
  58. package/esm/deps/deno.land/std@0.203.0/semver/parse.d.ts +8 -0
  59. package/esm/deps/deno.land/std@0.203.0/semver/parse.js +66 -0
  60. package/esm/deps/deno.land/std@0.203.0/semver/parse_comparator.d.ts +7 -0
  61. package/esm/deps/deno.land/std@0.203.0/semver/parse_comparator.js +28 -0
  62. package/esm/deps/deno.land/std@0.203.0/semver/parse_range.d.ts +7 -0
  63. package/esm/deps/deno.land/std@0.203.0/semver/parse_range.js +292 -0
  64. package/esm/deps/deno.land/std@0.203.0/semver/range_format.d.ts +8 -0
  65. package/esm/deps/deno.land/std@0.203.0/semver/range_format.js +11 -0
  66. package/esm/deps/deno.land/std@0.203.0/semver/range_intersects.d.ts +8 -0
  67. package/esm/deps/deno.land/std@0.203.0/semver/range_intersects.js +35 -0
  68. package/esm/deps/deno.land/std@0.203.0/semver/range_max.d.ts +7 -0
  69. package/esm/deps/deno.land/std@0.203.0/semver/range_max.js +15 -0
  70. package/esm/deps/deno.land/std@0.203.0/semver/range_min.d.ts +7 -0
  71. package/esm/deps/deno.land/std@0.203.0/semver/range_min.js +14 -0
  72. package/esm/deps/deno.land/std@0.203.0/semver/rcompare.d.ts +8 -0
  73. package/esm/deps/deno.land/std@0.203.0/semver/rcompare.js +10 -0
  74. package/esm/deps/deno.land/std@0.203.0/semver/rsort.d.ts +3 -0
  75. package/esm/deps/deno.land/std@0.203.0/semver/rsort.js +5 -0
  76. package/esm/deps/deno.land/std@0.203.0/semver/sort.d.ts +3 -0
  77. package/esm/deps/deno.land/std@0.203.0/semver/sort.js +5 -0
  78. package/esm/deps/deno.land/std@0.203.0/semver/test_comparator.d.ts +8 -0
  79. package/esm/deps/deno.land/std@0.203.0/semver/test_comparator.js +10 -0
  80. package/esm/deps/deno.land/std@0.203.0/semver/test_range.d.ts +8 -0
  81. package/esm/deps/deno.land/std@0.203.0/semver/test_range.js +16 -0
  82. package/esm/deps/deno.land/std@0.203.0/semver/types.d.ts +44 -0
  83. package/esm/deps/deno.land/std@0.203.0/semver/types.js +2 -0
  84. package/esm/src/Changelog.d.ts +4 -2
  85. package/esm/src/Changelog.js +25 -4
  86. package/esm/src/Release.d.ts +5 -4
  87. package/esm/src/Release.js +21 -22
  88. package/esm/src/deps.d.ts +2 -1
  89. package/esm/src/deps.js +1 -1
  90. package/esm/test/changelog.custom.type.md +2 -3
  91. package/esm/test/changelog.expected.linted.md +3 -4
  92. package/esm/test/changelog.expected.md +3 -4
  93. package/esm/test/changelog.md +3 -4
  94. package/esm/test/empty.expected.md +2 -2
  95. package/package.json +2 -2
  96. package/script/_dnt.shims.js +0 -1
  97. package/script/deps/deno.land/std@0.203.0/semver/_shared.d.ts +42 -0
  98. package/script/deps/deno.land/std@0.203.0/semver/_shared.js +248 -0
  99. package/script/deps/deno.land/std@0.203.0/semver/cmp.d.ts +9 -0
  100. package/script/deps/deno.land/std@0.203.0/semver/cmp.js +39 -0
  101. package/script/deps/deno.land/std@0.203.0/semver/comparator_format.d.ts +8 -0
  102. package/script/deps/deno.land/std@0.203.0/semver/comparator_format.js +15 -0
  103. package/script/deps/deno.land/std@0.203.0/semver/comparator_intersects.d.ts +8 -0
  104. package/script/deps/deno.land/std@0.203.0/semver/comparator_intersects.js +49 -0
  105. package/script/deps/deno.land/std@0.203.0/semver/comparator_max.d.ts +9 -0
  106. package/script/deps/deno.land/std@0.203.0/semver/comparator_max.js +49 -0
  107. package/script/deps/deno.land/std@0.203.0/semver/comparator_min.d.ts +8 -0
  108. package/script/deps/deno.land/std@0.203.0/semver/comparator_min.js +36 -0
  109. package/script/deps/deno.land/std@0.203.0/semver/compare.d.ts +10 -0
  110. package/script/deps/deno.land/std@0.203.0/semver/compare.js +22 -0
  111. package/script/deps/deno.land/std@0.203.0/semver/compare_build.d.ts +13 -0
  112. package/script/deps/deno.land/std@0.203.0/semver/compare_build.js +27 -0
  113. package/script/deps/deno.land/std@0.203.0/semver/constants.d.ts +42 -0
  114. package/script/deps/deno.land/std@0.203.0/semver/constants.js +78 -0
  115. package/script/deps/deno.land/std@0.203.0/semver/difference.d.ts +4 -0
  116. package/script/deps/deno.land/std@0.203.0/semver/difference.js +30 -0
  117. package/script/deps/deno.land/std@0.203.0/semver/eq.d.ts +4 -0
  118. package/script/deps/deno.land/std@0.203.0/semver/eq.js +11 -0
  119. package/script/deps/deno.land/std@0.203.0/semver/format.d.ts +12 -0
  120. package/script/deps/deno.land/std@0.203.0/semver/format.js +58 -0
  121. package/script/deps/deno.land/std@0.203.0/semver/gt.d.ts +3 -0
  122. package/script/deps/deno.land/std@0.203.0/semver/gt.js +9 -0
  123. package/script/deps/deno.land/std@0.203.0/semver/gte.d.ts +3 -0
  124. package/script/deps/deno.land/std@0.203.0/semver/gte.js +9 -0
  125. package/script/deps/deno.land/std@0.203.0/semver/gtr.d.ts +3 -0
  126. package/script/deps/deno.land/std@0.203.0/semver/gtr.js +9 -0
  127. package/script/deps/deno.land/std@0.203.0/semver/increment.d.ts +28 -0
  128. package/script/deps/deno.land/std@0.203.0/semver/increment.js +211 -0
  129. package/script/deps/deno.land/std@0.203.0/semver/is_semver.d.ts +17 -0
  130. package/script/deps/deno.land/std@0.203.0/semver/is_semver.js +45 -0
  131. package/script/deps/deno.land/std@0.203.0/semver/is_semver_comparator.d.ts +12 -0
  132. package/script/deps/deno.land/std@0.203.0/semver/is_semver_comparator.js +35 -0
  133. package/script/deps/deno.land/std@0.203.0/semver/is_semver_range.d.ts +12 -0
  134. package/script/deps/deno.land/std@0.203.0/semver/is_semver_range.js +26 -0
  135. package/script/deps/deno.land/std@0.203.0/semver/lt.d.ts +3 -0
  136. package/script/deps/deno.land/std@0.203.0/semver/lt.js +9 -0
  137. package/script/deps/deno.land/std@0.203.0/semver/lte.d.ts +3 -0
  138. package/script/deps/deno.land/std@0.203.0/semver/lte.js +9 -0
  139. package/script/deps/deno.land/std@0.203.0/semver/ltr.d.ts +3 -0
  140. package/script/deps/deno.land/std@0.203.0/semver/ltr.js +9 -0
  141. package/script/deps/deno.land/std@0.203.0/semver/max_satisfying.d.ts +9 -0
  142. package/script/deps/deno.land/std@0.203.0/semver/max_satisfying.js +18 -0
  143. package/script/deps/deno.land/std@0.203.0/semver/min_satisfying.d.ts +9 -0
  144. package/script/deps/deno.land/std@0.203.0/semver/min_satisfying.js +18 -0
  145. package/script/deps/deno.land/{std@0.173.0 → std@0.203.0}/semver/mod.d.ts +88 -176
  146. package/script/deps/deno.land/std@0.203.0/semver/mod.js +330 -0
  147. package/script/deps/deno.land/std@0.203.0/semver/neq.d.ts +3 -0
  148. package/script/deps/deno.land/std@0.203.0/semver/neq.js +9 -0
  149. package/script/deps/deno.land/std@0.203.0/semver/outside.d.ts +11 -0
  150. package/script/deps/deno.land/std@0.203.0/semver/outside.js +71 -0
  151. package/script/deps/deno.land/std@0.203.0/semver/parse.d.ts +8 -0
  152. package/script/deps/deno.land/std@0.203.0/semver/parse.js +70 -0
  153. package/script/deps/deno.land/std@0.203.0/semver/parse_comparator.d.ts +7 -0
  154. package/script/deps/deno.land/std@0.203.0/semver/parse_comparator.js +32 -0
  155. package/script/deps/deno.land/std@0.203.0/semver/parse_range.d.ts +7 -0
  156. package/script/deps/deno.land/std@0.203.0/semver/parse_range.js +296 -0
  157. package/script/deps/deno.land/std@0.203.0/semver/range_format.d.ts +8 -0
  158. package/script/deps/deno.land/std@0.203.0/semver/range_format.js +15 -0
  159. package/script/deps/deno.land/std@0.203.0/semver/range_intersects.d.ts +8 -0
  160. package/script/deps/deno.land/std@0.203.0/semver/range_intersects.js +39 -0
  161. package/script/deps/deno.land/std@0.203.0/semver/range_max.d.ts +7 -0
  162. package/script/deps/deno.land/std@0.203.0/semver/range_max.js +19 -0
  163. package/script/deps/deno.land/std@0.203.0/semver/range_min.d.ts +7 -0
  164. package/script/deps/deno.land/std@0.203.0/semver/range_min.js +18 -0
  165. package/script/deps/deno.land/std@0.203.0/semver/rcompare.d.ts +8 -0
  166. package/script/deps/deno.land/std@0.203.0/semver/rcompare.js +14 -0
  167. package/script/deps/deno.land/std@0.203.0/semver/rsort.d.ts +3 -0
  168. package/script/deps/deno.land/std@0.203.0/semver/rsort.js +9 -0
  169. package/script/deps/deno.land/std@0.203.0/semver/sort.d.ts +3 -0
  170. package/script/deps/deno.land/std@0.203.0/semver/sort.js +9 -0
  171. package/script/deps/deno.land/std@0.203.0/semver/test_comparator.d.ts +8 -0
  172. package/script/deps/deno.land/std@0.203.0/semver/test_comparator.js +14 -0
  173. package/script/deps/deno.land/std@0.203.0/semver/test_range.d.ts +8 -0
  174. package/script/deps/deno.land/std@0.203.0/semver/test_range.js +20 -0
  175. package/script/deps/deno.land/std@0.203.0/semver/types.d.ts +44 -0
  176. package/script/deps/deno.land/std@0.203.0/semver/types.js +3 -0
  177. package/script/src/Changelog.d.ts +4 -2
  178. package/script/src/Changelog.js +24 -3
  179. package/script/src/Release.d.ts +5 -4
  180. package/script/src/Release.js +20 -21
  181. package/script/src/deps.d.ts +2 -1
  182. package/script/src/deps.js +5 -6
  183. package/script/test/changelog.custom.type.md +2 -3
  184. package/script/test/changelog.expected.linted.md +3 -4
  185. package/script/test/changelog.expected.md +3 -4
  186. package/script/test/changelog.md +3 -4
  187. package/script/test/empty.expected.md +2 -2
  188. package/esm/_dnt.test_shims.d.ts +0 -5
  189. package/esm/deps/deno.land/std@0.133.0/fmt/colors.d.ts +0 -270
  190. package/esm/deps/deno.land/std@0.133.0/testing/_diff.d.ts +0 -23
  191. package/esm/deps/deno.land/std@0.133.0/testing/asserts.d.ts +0 -167
  192. package/esm/deps/deno.land/std@0.173.0/semver/mod.js +0 -1420
  193. package/esm/test/Change.test.d.ts +0 -1
  194. package/esm/test/deps.d.ts +0 -1
  195. package/esm/test/fixture/CustomRelease.d.ts +0 -8
  196. package/esm/test/parser.test.d.ts +0 -1
  197. package/esm/test/test.d.ts +0 -1
  198. package/script/_dnt.test_shims.d.ts +0 -5
  199. package/script/deps/deno.land/std@0.133.0/fmt/colors.d.ts +0 -270
  200. package/script/deps/deno.land/std@0.133.0/testing/_diff.d.ts +0 -23
  201. package/script/deps/deno.land/std@0.133.0/testing/asserts.d.ts +0 -167
  202. package/script/deps/deno.land/std@0.173.0/semver/mod.js +0 -1458
  203. package/script/test/Change.test.d.ts +0 -1
  204. package/script/test/deps.d.ts +0 -1
  205. package/script/test/fixture/CustomRelease.d.ts +0 -8
  206. package/script/test/parser.test.d.ts +0 -1
  207. package/script/test/test.d.ts +0 -1
@@ -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
- version?: Semver;
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 | Semver, date?: string | Date, description?: 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 | Semver): void;
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;
@@ -13,7 +13,7 @@ class Release {
13
13
  writable: true,
14
14
  value: void 0
15
15
  });
16
- Object.defineProperty(this, "version", {
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.version && release.version) {
62
+ if (!this.parsedVersion && release.parsedVersion) {
60
63
  return -1;
61
64
  }
62
- if (!release.version) {
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.version && release.version) {
72
- return -this.version.compare(release.version);
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 = new deps_js_1.Semver(version);
87
+ version = (0, deps_js_1.parse)(version);
85
88
  }
86
- this.version = version;
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
- if (this.version) {
137
+ const { version } = this;
138
+ if (version) {
135
139
  if (hasCompareLink) {
136
- t.push(`## [${this.version}] - ${formatDate(this.date)}${yanked}`);
140
+ t.push(`## [${version}] - ${formatDate(this.date)}${yanked}`);
137
141
  }
138
142
  else {
139
- t.push(`## ${this.version} - ${formatDate(this.date)}${yanked}`);
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
- if (!this.version || !this.date) {
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
- if (!this.date) {
193
- return `[${this.version}]: ${changelog.url}/compare/${changelog.tagName(previous)}...${changelog.head}`;
190
+ const compareLink = changelog.compareLink(previous, this);
191
+ if (!compareLink) {
192
+ return;
194
193
  }
195
- return `[${this.version}]: ${changelog.url}/compare/${changelog.tagName(previous)}...${changelog.tagName(this)}`;
194
+ return `[${this.version || "Unreleased"}]: ${compareLink}`;
196
195
  }
197
196
  getLinks(changelog) {
198
197
  const links = [];
@@ -1 +1,2 @@
1
- export { default as Semver, eq, } from "../deps/deno.land/std@0.173.0/semver/mod.js";
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";
@@ -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.Semver = void 0;
7
- var mod_js_1 = require("../deps/deno.land/std@0.173.0/semver/mod.js");
8
- Object.defineProperty(exports, "Semver", { enumerable: true, get: function () { return __importDefault(mod_js_1).default; } });
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](http://keepachangelog.com/en/1.0.0/)
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](http://keepachangelog.com/en/1.0.0/)
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](http://semver.org) properly.
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](http://keepachangelog.com/en/1.0.0/)
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](http://semver.org) properly.
82
+ - Start following [SemVer](https://semver.org) properly.
84
83
 
85
84
  ## [0.0.8] - 2015-02-17
86
85
  ### 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](http://keepachangelog.com/en/1.0.0/)
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](http://semver.org) properly.
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](http://keepachangelog.com/)
5
- and this project adheres to [Semantic Versioning](http://semver.org/).
4
+ The format is based on [Keep a Changelog](https://keepachangelog.com/)
5
+ and this project adheres to [Semantic Versioning](https://semver.org/).
@@ -1,5 +0,0 @@
1
- import { Deno } from "@deno/shim-deno";
2
- export { Deno } from "@deno/shim-deno";
3
- export declare const dntGlobalThis: Omit<typeof globalThis, "Deno"> & {
4
- Deno: typeof Deno;
5
- };
@@ -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>[];