keep-a-changelog 2.1.0 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +28 -2
- package/README.md +23 -6
- package/esm/_dnt.test_shims.d.ts +5 -0
- package/esm/bin.js +11 -2
- package/esm/deps/deno.land/std@0.133.0/fmt/colors.d.ts +270 -0
- package/esm/deps/deno.land/std@0.133.0/testing/_diff.d.ts +23 -0
- package/esm/deps/deno.land/std@0.133.0/testing/asserts.d.ts +167 -0
- package/esm/deps/deno.land/std@0.173.0/semver/mod.d.ts +398 -0
- package/esm/deps/deno.land/{x/semver@v1.4.0 → std@0.173.0/semver}/mod.js +227 -334
- package/esm/deps/deno.land/std@0.189.0/_util/asserts.d.ts +10 -0
- package/esm/deps/deno.land/std@0.189.0/_util/asserts.js +21 -0
- package/esm/deps/deno.land/std@0.189.0/_util/os.d.ts +4 -0
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/_util/os.js +3 -2
- package/esm/deps/deno.land/std@0.189.0/flags/mod.d.ts +166 -0
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/flags/mod.js +146 -36
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/_constants.js +1 -0
- package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/_interface.d.ts +1 -1
- package/esm/deps/deno.land/std@0.189.0/path/_interface.js +3 -0
- package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/_util.d.ts +3 -0
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/_util.js +47 -0
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/common.js +1 -1
- package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/glob.d.ts +10 -5
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/glob.js +1 -1
- package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/mod.d.ts +3 -1
- package/esm/deps/deno.land/std@0.189.0/path/mod.js +35 -0
- package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/posix.d.ts +15 -9
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/posix.js +58 -112
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/separator.js +1 -1
- package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/win32.d.ts +13 -9
- package/esm/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/win32.js +30 -87
- package/esm/src/Change.js +15 -15
- package/{types → esm}/src/Changelog.d.ts +1 -0
- package/esm/src/Changelog.js +9 -1
- package/{types → esm}/src/Release.d.ts +1 -0
- package/esm/src/Release.js +10 -0
- package/esm/src/deps.d.ts +1 -0
- package/esm/src/deps.js +1 -1
- package/esm/src/parser.js +19 -3
- package/esm/test/Change.test.d.ts +1 -0
- package/esm/test/changelog.custom.type.md +0 -1
- package/esm/test/changelog.expected.linted.md +208 -0
- package/esm/test/changelog.expected.md +3 -1
- package/esm/test/changelog.md +4 -0
- package/esm/test/deps.d.ts +1 -0
- package/esm/test/empty.expected.md +0 -1
- package/esm/test/fixture/CustomRelease.d.ts +8 -0
- package/esm/test/parser.test.d.ts +1 -0
- package/esm/test/test.d.ts +1 -0
- package/package.json +6 -8
- package/script/_dnt.polyfills.d.ts +11 -0
- package/script/_dnt.shims.d.ts +5 -0
- package/script/_dnt.test_shims.d.ts +5 -0
- package/script/bin.d.ts +2 -0
- package/script/bin.js +11 -2
- package/script/deps/deno.land/std@0.133.0/fmt/colors.d.ts +270 -0
- package/script/deps/deno.land/std@0.133.0/testing/_diff.d.ts +23 -0
- package/script/deps/deno.land/std@0.133.0/testing/asserts.d.ts +167 -0
- package/script/deps/deno.land/std@0.173.0/semver/mod.d.ts +398 -0
- package/script/deps/deno.land/{x/semver@v1.4.0 → std@0.173.0/semver}/mod.js +232 -342
- package/script/deps/deno.land/std@0.189.0/_util/asserts.d.ts +10 -0
- package/script/deps/deno.land/std@0.189.0/_util/asserts.js +27 -0
- package/script/deps/deno.land/std@0.189.0/_util/os.d.ts +4 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/_util/os.js +4 -3
- package/script/deps/deno.land/std@0.189.0/flags/mod.d.ts +166 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/flags/mod.js +150 -40
- package/script/deps/deno.land/std@0.189.0/path/_constants.d.ts +39 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/_constants.js +1 -0
- package/script/deps/deno.land/std@0.189.0/path/_interface.d.ts +26 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/_interface.js +1 -1
- package/script/deps/deno.land/std@0.189.0/path/_util.d.ts +11 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/_util.js +51 -1
- package/script/deps/deno.land/std@0.189.0/path/common.d.ts +13 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/common.js +1 -1
- package/script/deps/deno.land/std@0.189.0/path/glob.d.ts +83 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/glob.js +1 -1
- package/script/deps/deno.land/std@0.189.0/path/mod.d.ts +11 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/mod.js +23 -2
- package/script/deps/deno.land/std@0.189.0/path/posix.d.ts +86 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/posix.js +56 -110
- package/script/deps/deno.land/std@0.189.0/path/separator.d.ts +2 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/separator.js +1 -1
- package/script/deps/deno.land/std@0.189.0/path/win32.d.ts +91 -0
- package/script/deps/deno.land/{std@0.120.0 → std@0.189.0}/path/win32.js +30 -87
- package/script/deps/deno.land/std@0.51.0/fs/eol.d.ts +12 -0
- package/script/deps/deno.land/x/ini@v2.1.0/ini.d.ts +53 -0
- package/script/deps/deno.land/x/ini@v2.1.0/mod.d.ts +1 -0
- package/script/mod.d.ts +6 -0
- package/script/src/Change.d.ts +8 -0
- package/script/src/Change.js +15 -15
- package/script/src/Changelog.d.ts +19 -0
- package/script/src/Changelog.js +9 -1
- package/script/src/Release.d.ts +27 -0
- package/script/src/Release.js +10 -0
- package/script/src/deps.d.ts +1 -0
- package/script/src/deps.js +1 -1
- package/script/src/parser.d.ts +11 -0
- package/script/src/parser.js +19 -3
- package/script/test/Change.test.d.ts +1 -0
- package/script/test/changelog.custom.type.md +0 -1
- package/script/test/changelog.expected.linted.md +208 -0
- package/script/test/changelog.expected.md +3 -1
- package/script/test/changelog.md +4 -0
- package/script/test/deps.d.ts +1 -0
- package/script/test/empty.expected.md +0 -1
- package/script/test/fixture/CustomRelease.d.ts +8 -0
- package/script/test/parser.test.d.ts +1 -0
- package/script/test/test.d.ts +1 -0
- package/esm/deps/deno.land/std@0.120.0/_util/assert.js +0 -13
- package/esm/deps/deno.land/std@0.120.0/path/_interface.js +0 -3
- package/esm/deps/deno.land/std@0.120.0/path/mod.js +0 -14
- package/script/deps/deno.land/std@0.120.0/_util/assert.js +0 -18
- package/types/deps/deno.land/std@0.120.0/_util/assert.d.ts +0 -5
- package/types/deps/deno.land/std@0.120.0/_util/os.d.ts +0 -3
- package/types/deps/deno.land/std@0.120.0/flags/mod.d.ts +0 -50
- package/types/deps/deno.land/x/semver@v1.4.0/mod.d.ts +0 -116
- package/types/src/deps.d.ts +0 -1
- /package/{types → esm}/_dnt.polyfills.d.ts +0 -0
- /package/{types → esm}/_dnt.shims.d.ts +0 -0
- /package/{types → esm}/bin.d.ts +0 -0
- /package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/_constants.d.ts +0 -0
- /package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/common.d.ts +0 -0
- /package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/separator.d.ts +0 -0
- /package/{types → esm}/deps/deno.land/std@0.51.0/fs/eol.d.ts +0 -0
- /package/{types → esm}/deps/deno.land/x/ini@v2.1.0/ini.d.ts +0 -0
- /package/{types → esm}/deps/deno.land/x/ini@v2.1.0/mod.d.ts +0 -0
- /package/{types → esm}/mod.d.ts +0 -0
- /package/{types → esm}/src/Change.d.ts +0 -0
- /package/{types → esm}/src/parser.d.ts +0 -0
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
# Changelog - demo
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
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).
|
|
8
|
+
|
|
9
|
+
## [Unreleased] [YANKED]
|
|
10
|
+
|
|
11
|
+
This is a brand new releases with:
|
|
12
|
+
- Configuration is now done within the Web client, for authorized users.
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- Test
|
|
17
|
+
|
|
18
|
+
## [2.0.0] - Unreleased [YANKED]
|
|
19
|
+
|
|
20
|
+
### Added
|
|
21
|
+
|
|
22
|
+
- None
|
|
23
|
+
- Test with issue link [#1]
|
|
24
|
+
- Test with issue link [#4] in the middle of the text
|
|
25
|
+
- [#3] Test with issue link in the beginning of the text
|
|
26
|
+
- Test with issue dot [#2], [#10].
|
|
27
|
+
- Test with no issue link #123b
|
|
28
|
+
- Test with `package#2.0`
|
|
29
|
+
|
|
30
|
+
## [1.0.0] - 2017-06-20
|
|
31
|
+
|
|
32
|
+
### Added
|
|
33
|
+
|
|
34
|
+
- New visual identity by @tylerfortune8.
|
|
35
|
+
- Version navigation.
|
|
36
|
+
- Links to latest released version in previous versions.
|
|
37
|
+
- "Why keep a changelog?" section.
|
|
38
|
+
- "Who needs a changelog?" section.
|
|
39
|
+
- "How do I make a changelog?" section.
|
|
40
|
+
- "Frequently Asked Questions" section.
|
|
41
|
+
- New "Guiding Principles" sub-section to "How do I make a changelog?".
|
|
42
|
+
- Simplified and Traditional Chinese translations from @tianshuo.
|
|
43
|
+
- German translation from @mpbzh & @Art4.
|
|
44
|
+
- Italian translation from @azkidenz.
|
|
45
|
+
- Swedish translation from @magol.
|
|
46
|
+
- Turkish translation from @karalamalar.
|
|
47
|
+
- French translation from @zapashcanon.
|
|
48
|
+
- Brazilian Portugese translation from @aisamu.
|
|
49
|
+
- Polish translation from @amielucha.
|
|
50
|
+
- Russian translation from @aishek.
|
|
51
|
+
- Czech translation from @h4vry.
|
|
52
|
+
- Slovak translation from @jkostolansky.
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- Start using "changelog" over "change log" since it's the common usage.
|
|
57
|
+
- Start versioning based on the current English version at 0.3.0 to help
|
|
58
|
+
translation authors keep things up-to-date.
|
|
59
|
+
- Rewrite "What makes unicorns cry?" section.
|
|
60
|
+
- Rewrite "Ignoring Deprecations" sub-section to clarify the ideal scenario.
|
|
61
|
+
- Improve "Commit log diffs" sub-section to further argument against them.
|
|
62
|
+
- Merge "Why can’t people just use a git log diff?" with "Commit log diffs"
|
|
63
|
+
- Fix typos in Simplified Chinese and Traditional Chinese translations.
|
|
64
|
+
- Fix typos in Brazilian Portugese translation.
|
|
65
|
+
- Fix typos in Turkish translation.
|
|
66
|
+
- Fix typos in Czech translation.
|
|
67
|
+
- Fix typos in Swedish translation.
|
|
68
|
+
- Improve phrasing in French translation.
|
|
69
|
+
- Fix phrasing and spelling in German translation.
|
|
70
|
+
|
|
71
|
+
### Removed
|
|
72
|
+
|
|
73
|
+
- Section about "changelog" vs "CHANGELOG".
|
|
74
|
+
|
|
75
|
+
## [0.3.0] - 2015-12-03
|
|
76
|
+
|
|
77
|
+
### Added
|
|
78
|
+
|
|
79
|
+
- RU translation from @aishek.
|
|
80
|
+
- pt-BR translation from @tallesl.
|
|
81
|
+
- es-ES translation from @ZeliosAriex.
|
|
82
|
+
|
|
83
|
+
## [0.2.0] - 2015-10-06
|
|
84
|
+
|
|
85
|
+
### Changed
|
|
86
|
+
|
|
87
|
+
- Remove exclusionary mentions of "open source" since this project can benefit
|
|
88
|
+
both "open" and "closed" source projects equally.
|
|
89
|
+
|
|
90
|
+
## [0.1.0] - 2015-10-06
|
|
91
|
+
|
|
92
|
+
### Added
|
|
93
|
+
|
|
94
|
+
- Answer "Should you ever rewrite a change log?".
|
|
95
|
+
|
|
96
|
+
### Changed
|
|
97
|
+
|
|
98
|
+
- Improve argument against commit logs.
|
|
99
|
+
- Start following [SemVer](http://semver.org) properly.
|
|
100
|
+
|
|
101
|
+
## [0.0.8] - 2015-02-17
|
|
102
|
+
|
|
103
|
+
### Changed
|
|
104
|
+
|
|
105
|
+
- Update year to match in every README example.
|
|
106
|
+
- Reluctantly stop making fun of Brits only, since most of the world writes
|
|
107
|
+
dates in a strange way.
|
|
108
|
+
|
|
109
|
+
### Fixed
|
|
110
|
+
|
|
111
|
+
- Fix typos in recent README changes.
|
|
112
|
+
- Update outdated unreleased diff link.
|
|
113
|
+
|
|
114
|
+
## [0.0.7] - 2015-02-16
|
|
115
|
+
|
|
116
|
+
### Added
|
|
117
|
+
|
|
118
|
+
- Link, and make it obvious that date format is ISO 8601.
|
|
119
|
+
|
|
120
|
+
### Changed
|
|
121
|
+
|
|
122
|
+
- Clarified the section on "Is there a standard change log format?".
|
|
123
|
+
|
|
124
|
+
### Fixed
|
|
125
|
+
|
|
126
|
+
- Fix Markdown links to tag comparison URL with footnote-style links.
|
|
127
|
+
|
|
128
|
+
## [0.0.6] - 2014-12-12 [YANKED]
|
|
129
|
+
|
|
130
|
+
### Added
|
|
131
|
+
|
|
132
|
+
- README section on "yanked" releases.
|
|
133
|
+
|
|
134
|
+
## [0.0.5] - 2014-08-09
|
|
135
|
+
|
|
136
|
+
### Added
|
|
137
|
+
|
|
138
|
+
- Markdown links to version tags on release headings.
|
|
139
|
+
- Unreleased section to gather unreleased changes and encourage note keeping
|
|
140
|
+
prior to releases.
|
|
141
|
+
|
|
142
|
+
## [0.0.4] - 2014-08-09
|
|
143
|
+
|
|
144
|
+
### Added
|
|
145
|
+
|
|
146
|
+
- Better explanation of the difference between the file ("CHANGELOG") and its
|
|
147
|
+
function "the change log".
|
|
148
|
+
|
|
149
|
+
### Changed
|
|
150
|
+
|
|
151
|
+
- Refer to a "change log" instead of a "CHANGELOG" throughout the site to
|
|
152
|
+
differentiate between the file and the purpose of the file — the logging of
|
|
153
|
+
changes.
|
|
154
|
+
|
|
155
|
+
### Removed
|
|
156
|
+
|
|
157
|
+
- Remove empty sections from CHANGELOG, they occupy too much space and create
|
|
158
|
+
too much noise in the file. People will have to assume that the missing
|
|
159
|
+
sections were intentionally left out because they contained no notable
|
|
160
|
+
changes.
|
|
161
|
+
|
|
162
|
+
## [0.0.3] - 2014-08-09
|
|
163
|
+
|
|
164
|
+
### Added
|
|
165
|
+
|
|
166
|
+
- "Why should I care?" section mentioning The Changelog podcast.
|
|
167
|
+
|
|
168
|
+
## [0.0.2] - 2014-07-10
|
|
169
|
+
|
|
170
|
+
### Added
|
|
171
|
+
|
|
172
|
+
- Explanation of the recommended reverse chronological release ordering.
|
|
173
|
+
|
|
174
|
+
## [0.0.1] - 2014-05-31
|
|
175
|
+
|
|
176
|
+
### Added
|
|
177
|
+
|
|
178
|
+
- This CHANGELOG file to hopefully serve as an evolving example of a
|
|
179
|
+
standardized open source project CHANGELOG.
|
|
180
|
+
- CNAME file to enable GitHub Pages custom domain
|
|
181
|
+
- README now contains answers to common questions about CHANGELOGs
|
|
182
|
+
- Good examples and basic guidelines, including proper date formatting.
|
|
183
|
+
- Counter-examples: "What makes unicorns cry?"
|
|
184
|
+
|
|
185
|
+
[#1]: https://github.com/olivierlacan/keep-a-changelog/issues/1
|
|
186
|
+
[#2]: https://github.com/olivierlacan/keep-a-changelog/issues/2
|
|
187
|
+
[#3]: https://github.com/olivierlacan/keep-a-changelog/issues/3
|
|
188
|
+
[#4]: https://github.com/olivierlacan/keep-a-changelog/issues/4
|
|
189
|
+
[#10]: https://github.com/olivierlacan/keep-a-changelog/issues/10
|
|
190
|
+
|
|
191
|
+
[Unreleased]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...HEAD
|
|
192
|
+
[2.0.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v1.0.0...HEAD
|
|
193
|
+
[1.0.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.3.0...v1.0.0
|
|
194
|
+
[0.3.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.2.0...v0.3.0
|
|
195
|
+
[0.2.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.1.0...v0.2.0
|
|
196
|
+
[0.1.0]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.8...v0.1.0
|
|
197
|
+
[0.0.8]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.7...v0.0.8
|
|
198
|
+
[0.0.7]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.6...v0.0.7
|
|
199
|
+
[0.0.6]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.5...v0.0.6
|
|
200
|
+
[0.0.5]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.4...v0.0.5
|
|
201
|
+
[0.0.4]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.3...v0.0.4
|
|
202
|
+
[0.0.3]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.2...v0.0.3
|
|
203
|
+
[0.0.2]: https://github.com/olivierlacan/keep-a-changelog/compare/v0.0.1...v0.0.2
|
|
204
|
+
[0.0.1]: https://github.com/olivierlacan/keep-a-changelog/releases/tag/v0.0.1
|
|
205
|
+
|
|
206
|
+
---
|
|
207
|
+
|
|
208
|
+
This is a footer
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
# Changelog - demo
|
|
2
|
-
|
|
3
2
|
All notable changes to this project will be documented in this file.
|
|
4
3
|
|
|
5
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
@@ -7,6 +6,9 @@ and this project adheres to
|
|
|
7
6
|
[Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
8
7
|
|
|
9
8
|
## [Unreleased] [YANKED]
|
|
9
|
+
This is a brand new releases with:
|
|
10
|
+
- Configuration is now done within the Web client, for authorized users.
|
|
11
|
+
|
|
10
12
|
### Added
|
|
11
13
|
- Test
|
|
12
14
|
|
package/script/test/changelog.md
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "../deps/deno.land/std@0.133.0/testing/asserts.js";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Change, Release } from "../../mod.js";
|
|
2
|
+
import { Semver } from "../../src/deps.js";
|
|
3
|
+
declare class CustomRelease extends Release {
|
|
4
|
+
constructor(version?: Semver | string, date?: Date | string, description?: string);
|
|
5
|
+
maintenance(change: string | Change): this;
|
|
6
|
+
}
|
|
7
|
+
export default function (version?: Semver | string, date?: Date | string, description?: string): CustomRelease;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
2
|
-
export class DenoStdInternalError extends Error {
|
|
3
|
-
constructor(message) {
|
|
4
|
-
super(message);
|
|
5
|
-
this.name = "DenoStdInternalError";
|
|
6
|
-
}
|
|
7
|
-
}
|
|
8
|
-
/** Make an assertion, if not `true`, then throw. */
|
|
9
|
-
export function assert(expr, msg = "") {
|
|
10
|
-
if (!expr) {
|
|
11
|
-
throw new DenoStdInternalError(msg);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
// Copyright the Browserify authors. MIT License.
|
|
2
|
-
// Ported mostly from https://github.com/browserify/path-browserify/
|
|
3
|
-
// This module is browser compatible.
|
|
4
|
-
import { isWindows } from "../_util/os.js";
|
|
5
|
-
import * as _win32 from "./win32.js";
|
|
6
|
-
import * as _posix from "./posix.js";
|
|
7
|
-
const path = isWindows ? _win32 : _posix;
|
|
8
|
-
export const win32 = _win32;
|
|
9
|
-
export const posix = _posix;
|
|
10
|
-
export const { basename, delimiter, dirname, extname, format, fromFileUrl, isAbsolute, join, normalize, parse, relative, resolve, sep, toFileUrl, toNamespacedPath, } = path;
|
|
11
|
-
export * from "./common.js";
|
|
12
|
-
export { SEP, SEP_PATTERN } from "./separator.js";
|
|
13
|
-
export * from "./_interface.js";
|
|
14
|
-
export * from "./glob.js";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
// Copyright 2018-2021 the Deno authors. All rights reserved. MIT license.
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.assert = exports.DenoStdInternalError = void 0;
|
|
5
|
-
class DenoStdInternalError extends Error {
|
|
6
|
-
constructor(message) {
|
|
7
|
-
super(message);
|
|
8
|
-
this.name = "DenoStdInternalError";
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
exports.DenoStdInternalError = DenoStdInternalError;
|
|
12
|
-
/** Make an assertion, if not `true`, then throw. */
|
|
13
|
-
function assert(expr, msg = "") {
|
|
14
|
-
if (!expr) {
|
|
15
|
-
throw new DenoStdInternalError(msg);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.assert = assert;
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
export interface Args {
|
|
2
|
-
/** Contains all the arguments that didn't have an option associated with
|
|
3
|
-
* them. */
|
|
4
|
-
_: Array<string | number>;
|
|
5
|
-
[key: string]: any;
|
|
6
|
-
}
|
|
7
|
-
export interface ArgParsingOptions {
|
|
8
|
-
/** When `true`, populate the result `_` with everything before the `--` and
|
|
9
|
-
* the result `['--']` with everything after the `--`. Here's an example:
|
|
10
|
-
*
|
|
11
|
-
* ```ts
|
|
12
|
-
* // $ deno run example.ts -- a arg1
|
|
13
|
-
* import { parse } from "./mod.ts";
|
|
14
|
-
* console.dir(parse(Deno.args, { "--": false }));
|
|
15
|
-
* // output: { _: [ "a", "arg1" ] }
|
|
16
|
-
* console.dir(parse(Deno.args, { "--": true }));
|
|
17
|
-
* // output: { _: [], --: [ "a", "arg1" ] }
|
|
18
|
-
* ```
|
|
19
|
-
*
|
|
20
|
-
* Defaults to `false`.
|
|
21
|
-
*/
|
|
22
|
-
"--"?: boolean;
|
|
23
|
-
/** An object mapping string names to strings or arrays of string argument
|
|
24
|
-
* names to use as aliases */
|
|
25
|
-
alias?: Record<string, string | string[]>;
|
|
26
|
-
/** A boolean, string or array of strings to always treat as booleans. If
|
|
27
|
-
* `true` will treat all double hyphenated arguments without equal signs as
|
|
28
|
-
* `boolean` (e.g. affects `--foo`, not `-f` or `--foo=bar`) */
|
|
29
|
-
boolean?: boolean | string | string[];
|
|
30
|
-
/** An object mapping string argument names to default values. */
|
|
31
|
-
default?: Record<string, unknown>;
|
|
32
|
-
/** When `true`, populate the result `_` with everything after the first
|
|
33
|
-
* non-option. */
|
|
34
|
-
stopEarly?: boolean;
|
|
35
|
-
/** A string or array of strings argument names to always treat as strings. */
|
|
36
|
-
string?: string | string[];
|
|
37
|
-
/** A function which is invoked with a command line parameter not defined in
|
|
38
|
-
* the `options` configuration object. If the function returns `false`, the
|
|
39
|
-
* unknown option is not added to `parsedArgs`. */
|
|
40
|
-
unknown?: (arg: string, key?: string, value?: unknown) => unknown;
|
|
41
|
-
}
|
|
42
|
-
/** Take a set of command line arguments, with an optional set of options, and
|
|
43
|
-
* return an object representation of those argument.
|
|
44
|
-
*
|
|
45
|
-
* ```ts
|
|
46
|
-
* import { parse } from "./mod.ts";
|
|
47
|
-
* const parsedArgs = parse(Deno.args);
|
|
48
|
-
* ```
|
|
49
|
-
*/
|
|
50
|
-
export declare function parse(args: string[], { "--": doubleDash, alias, boolean, default: defaults, stopEarly, string, unknown, }?: ArgParsingOptions): Args;
|
|
@@ -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;
|
package/types/src/deps.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as Semver, eq, } from "../deps/deno.land/x/semver@v1.4.0/mod.js";
|
|
File without changes
|
|
File without changes
|
/package/{types → esm}/bin.d.ts
RENAMED
|
File without changes
|
/package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/_constants.d.ts
RENAMED
|
File without changes
|
/package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/common.d.ts
RENAMED
|
File without changes
|
/package/{types/deps/deno.land/std@0.120.0 → esm/deps/deno.land/std@0.189.0}/path/separator.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{types → esm}/mod.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|