keep-a-changelog 2.1.0 → 2.2.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 (75) hide show
  1. package/CHANGELOG.md +18 -1
  2. package/README.md +16 -4
  3. package/esm/bin.js +6 -2
  4. package/esm/deps/deno.land/std@0.173.0/_util/asserts.js +21 -0
  5. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/_util/os.js +3 -2
  6. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/flags/mod.js +145 -36
  7. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_constants.js +1 -0
  8. package/esm/deps/deno.land/std@0.173.0/path/_interface.js +3 -0
  9. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_util.js +1 -0
  10. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/common.js +1 -1
  11. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/glob.js +1 -1
  12. package/esm/deps/deno.land/std@0.173.0/path/mod.js +32 -0
  13. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/posix.js +20 -16
  14. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/separator.js +1 -1
  15. package/esm/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/win32.js +17 -15
  16. package/esm/deps/deno.land/{x/semver@v1.4.0 → std@0.173.0/semver}/mod.js +227 -334
  17. package/esm/src/Change.js +15 -15
  18. package/esm/src/Changelog.js +9 -1
  19. package/esm/src/Release.js +10 -0
  20. package/esm/src/deps.js +1 -1
  21. package/esm/src/parser.js +19 -3
  22. package/esm/test/changelog.custom.type.md +0 -1
  23. package/esm/test/changelog.expected.linted.md +208 -0
  24. package/esm/test/changelog.expected.md +3 -1
  25. package/esm/test/changelog.md +4 -0
  26. package/esm/test/empty.expected.md +0 -1
  27. package/package.json +13 -8
  28. package/script/bin.js +6 -2
  29. package/script/deps/deno.land/std@0.173.0/_util/asserts.js +27 -0
  30. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/_util/os.js +4 -3
  31. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/flags/mod.js +149 -40
  32. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_constants.js +1 -0
  33. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_interface.js +1 -1
  34. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_util.js +1 -0
  35. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/common.js +1 -1
  36. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/glob.js +1 -1
  37. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/mod.js +19 -1
  38. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/posix.js +20 -16
  39. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/separator.js +1 -1
  40. package/script/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/win32.js +18 -16
  41. package/script/deps/deno.land/{x/semver@v1.4.0 → std@0.173.0/semver}/mod.js +232 -342
  42. package/script/src/Change.js +15 -15
  43. package/script/src/Changelog.js +9 -1
  44. package/script/src/Release.js +10 -0
  45. package/script/src/deps.js +1 -1
  46. package/script/src/parser.js +19 -3
  47. package/script/test/changelog.custom.type.md +0 -1
  48. package/script/test/changelog.expected.linted.md +208 -0
  49. package/script/test/changelog.expected.md +3 -1
  50. package/script/test/changelog.md +4 -0
  51. package/script/test/empty.expected.md +0 -1
  52. package/types/deps/deno.land/std@0.173.0/_util/asserts.d.ts +10 -0
  53. package/types/deps/deno.land/std@0.173.0/_util/os.d.ts +4 -0
  54. package/types/deps/deno.land/std@0.173.0/flags/mod.d.ts +166 -0
  55. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_constants.d.ts +0 -0
  56. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_interface.d.ts +1 -1
  57. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/_util.d.ts +0 -0
  58. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/common.d.ts +0 -0
  59. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/glob.d.ts +10 -5
  60. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/mod.d.ts +0 -0
  61. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/posix.d.ts +9 -5
  62. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/separator.d.ts +0 -0
  63. package/types/deps/deno.land/{std@0.120.0 → std@0.173.0}/path/win32.d.ts +7 -5
  64. package/types/deps/deno.land/std@0.173.0/semver/mod.d.ts +398 -0
  65. package/types/src/Changelog.d.ts +1 -0
  66. package/types/src/Release.d.ts +1 -0
  67. package/types/src/deps.d.ts +1 -1
  68. package/esm/deps/deno.land/std@0.120.0/_util/assert.js +0 -13
  69. package/esm/deps/deno.land/std@0.120.0/path/_interface.js +0 -3
  70. package/esm/deps/deno.land/std@0.120.0/path/mod.js +0 -14
  71. package/script/deps/deno.land/std@0.120.0/_util/assert.js +0 -18
  72. package/types/deps/deno.land/std@0.120.0/_util/assert.d.ts +0 -5
  73. package/types/deps/deno.land/std@0.120.0/_util/os.d.ts +0 -3
  74. package/types/deps/deno.land/std@0.120.0/flags/mod.d.ts +0 -50
  75. package/types/deps/deno.land/x/semver@v1.4.0/mod.d.ts +0 -116
@@ -1,116 +0,0 @@
1
- export declare type ReleaseType = "pre" | "major" | "premajor" | "minor" | "preminor" | "patch" | "prepatch" | "prerelease";
2
- export declare type Operator = "===" | "!==" | "" | "=" | "==" | "!=" | ">" | ">=" | "<" | "<=";
3
- export interface Options {
4
- loose?: boolean;
5
- includePrerelease?: boolean;
6
- }
7
- export declare const SEMVER_SPEC_VERSION = "2.0.0";
8
- export declare function parse(version: string | SemVer | null, optionsOrLoose?: boolean | Options): SemVer | null;
9
- export declare function valid(version: string | SemVer | null, optionsOrLoose?: boolean | Options): string | null;
10
- export declare function clean(version: string, optionsOrLoose?: boolean | Options): string | null;
11
- export declare class SemVer {
12
- raw: string;
13
- loose: boolean;
14
- options: Options;
15
- major: number;
16
- minor: number;
17
- patch: number;
18
- version: string;
19
- build: ReadonlyArray<string>;
20
- prerelease: Array<string | number>;
21
- constructor(version: string | SemVer, optionsOrLoose?: boolean | Options);
22
- format(): string;
23
- compare(other: string | SemVer): 1 | 0 | -1;
24
- compareMain(other: string | SemVer): 1 | 0 | -1;
25
- comparePre(other: string | SemVer): 1 | 0 | -1;
26
- compareBuild(other: string | SemVer): 1 | 0 | -1;
27
- inc(release: ReleaseType, identifier?: string): SemVer;
28
- toString(): string;
29
- }
30
- /**
31
- * Return the version incremented by the release type (major, minor, patch, or prerelease), or null if it's not valid.
32
- */
33
- export declare function inc(version: string | SemVer, release: ReleaseType, optionsOrLoose?: boolean | Options, identifier?: string): string | null;
34
- export declare function diff(version1: string | SemVer, version2: string | SemVer, optionsOrLoose?: boolean | Options): ReleaseType | null;
35
- export declare function compareIdentifiers(a: string | number | null, b: string | number | null): 1 | 0 | -1;
36
- export declare function rcompareIdentifiers(a: string | null, b: string | null): 1 | 0 | -1;
37
- /**
38
- * Return the major version number.
39
- */
40
- export declare function major(v: string | SemVer, optionsOrLoose?: boolean | Options): number;
41
- /**
42
- * Return the minor version number.
43
- */
44
- export declare function minor(v: string | SemVer, optionsOrLoose?: boolean | Options): number;
45
- /**
46
- * Return the patch version number.
47
- */
48
- export declare function patch(v: string | SemVer, optionsOrLoose?: boolean | Options): number;
49
- export declare function compare(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): 1 | 0 | -1;
50
- export declare function compareLoose(a: string | SemVer, b: string | SemVer): 1 | 0 | -1;
51
- export declare function compareBuild(a: string | SemVer, b: string | SemVer, loose?: boolean | Options): 1 | 0 | -1;
52
- export declare function rcompare(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): 1 | 0 | -1;
53
- export declare function sort<T extends string | SemVer>(list: T[], optionsOrLoose?: boolean | Options): T[];
54
- export declare function rsort<T extends string | SemVer>(list: T[], optionsOrLoose?: boolean | Options): T[];
55
- export declare function gt(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean;
56
- export declare function lt(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean;
57
- export declare function eq(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean;
58
- export declare function neq(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean;
59
- export declare function gte(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean;
60
- export declare function lte(v1: string | SemVer, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean;
61
- export declare function cmp(v1: string | SemVer, operator: Operator, v2: string | SemVer, optionsOrLoose?: boolean | Options): boolean;
62
- export declare class Comparator {
63
- semver: SemVer;
64
- operator: "" | "=" | "<" | ">" | "<=" | ">=";
65
- value: string;
66
- loose: boolean;
67
- options: Options;
68
- constructor(comp: string | Comparator, optionsOrLoose?: boolean | Options);
69
- parse(comp: string): void;
70
- test(version: string | SemVer): boolean;
71
- intersects(comp: Comparator, optionsOrLoose?: boolean | Options): boolean;
72
- toString(): string;
73
- }
74
- export declare class Range {
75
- range: string;
76
- raw: string;
77
- loose: boolean;
78
- options: Options;
79
- includePrerelease: boolean;
80
- set: ReadonlyArray<ReadonlyArray<Comparator>>;
81
- constructor(range: string | Range | Comparator, optionsOrLoose?: boolean | Options);
82
- format(): string;
83
- parseRange(range: string): ReadonlyArray<Comparator>;
84
- test(version: string | SemVer): boolean;
85
- intersects(range?: Range, optionsOrLoose?: boolean | Options): boolean;
86
- toString(): string;
87
- }
88
- export declare function toComparators(range: string | Range, optionsOrLoose?: boolean | Options): string[][];
89
- export declare function satisfies(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | Options): boolean;
90
- export declare function maxSatisfying<T extends string | SemVer>(versions: ReadonlyArray<T>, range: string | Range, optionsOrLoose?: boolean | Options): T | null;
91
- export declare function minSatisfying<T extends string | SemVer>(versions: ReadonlyArray<T>, range: string | Range, optionsOrLoose?: boolean | Options): T | null;
92
- export declare function minVersion(range: string | Range, optionsOrLoose?: boolean | Options): SemVer | null;
93
- export declare function validRange(range: string | Range | null, optionsOrLoose?: boolean | Options): string | null;
94
- /**
95
- * Return true if version is less than all the versions possible in the range.
96
- */
97
- export declare function ltr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | Options): boolean;
98
- /**
99
- * Return true if version is greater than all the versions possible in the range.
100
- */
101
- export declare function gtr(version: string | SemVer, range: string | Range, optionsOrLoose?: boolean | Options): boolean;
102
- /**
103
- * Return true if the version is outside the bounds of the range in either the high or low direction.
104
- * The hilo argument must be either the string '>' or '<'. (This is the function called by gtr and ltr.)
105
- */
106
- export declare function outside(version: string | SemVer, range: string | Range, hilo: ">" | "<", optionsOrLoose?: boolean | Options): boolean;
107
- export declare function prerelease(version: string | SemVer, optionsOrLoose?: boolean | Options): ReadonlyArray<string | number> | null;
108
- /**
109
- * Return true if any of the ranges comparators intersect
110
- */
111
- export declare function intersects(range1: string | Range | Comparator, range2: string | Range | Comparator, optionsOrLoose?: boolean | Options): boolean;
112
- /**
113
- * Coerces a string to semver if possible
114
- */
115
- export declare function coerce(version: string | SemVer, optionsOrLoose?: boolean | Options): SemVer | null;
116
- export default SemVer;