keep-a-changelog 2.5.1 → 2.5.2
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 +6 -0
- package/esm/src/parser.js +1 -1
- package/esm/test/changelog.gitlab.md +24 -0
- package/package.json +1 -1
- package/script/src/parser.js +1 -1
- package/script/test/changelog.gitlab.md +24 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
6
|
|
|
7
|
+
## [2.5.2] - 2023-11-09
|
|
8
|
+
### Fixed
|
|
9
|
+
- Url regex for gitlab links [#41]
|
|
10
|
+
|
|
7
11
|
## [2.5.1] - 2023-11-08
|
|
8
12
|
### Fixed
|
|
9
13
|
- Url parser for gitlab links [#40]
|
|
@@ -83,7 +87,9 @@ New version merging Deno and Node code using Deno's `dnt` package.
|
|
|
83
87
|
[#36]: https://github.com/oscarotero/keep-a-changelog/issues/36
|
|
84
88
|
[#37]: https://github.com/oscarotero/keep-a-changelog/issues/37
|
|
85
89
|
[#40]: https://github.com/oscarotero/keep-a-changelog/issues/40
|
|
90
|
+
[#41]: https://github.com/oscarotero/keep-a-changelog/issues/41
|
|
86
91
|
|
|
92
|
+
[2.5.2]: https://github.com/oscarotero/keep-a-changelog/compare/v2.5.1...v2.5.2
|
|
87
93
|
[2.5.1]: https://github.com/oscarotero/keep-a-changelog/compare/v2.5.0...v2.5.1
|
|
88
94
|
[2.5.0]: https://github.com/oscarotero/keep-a-changelog/compare/v2.4.1...v2.5.0
|
|
89
95
|
[2.4.1]: https://github.com/oscarotero/keep-a-changelog/compare/v2.4.0...v2.4.1
|
package/esm/src/parser.js
CHANGED
|
@@ -53,7 +53,7 @@ function processTokens(tokens, opts) {
|
|
|
53
53
|
let link = getContent(tokens, "link");
|
|
54
54
|
while (link) {
|
|
55
55
|
if (!changelog.url) {
|
|
56
|
-
const matches = link.match(/^\[.*\]\:\s*(http
|
|
56
|
+
const matches = link.match(/^\[.*\]\:\s*(http.*?)\/(?:-\/)?compare\/.*$/);
|
|
57
57
|
if (matches) {
|
|
58
58
|
changelog.url = matches[1];
|
|
59
59
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Changelog - gitlab demo
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
- This is a brand new releases with:
|
|
9
|
+
|
|
10
|
+
## [0.0.2] - 2023-11-09
|
|
11
|
+
### Added
|
|
12
|
+
- I want to have a compare link
|
|
13
|
+
|
|
14
|
+
## [0.0.1] - 2023-11-09
|
|
15
|
+
### Added
|
|
16
|
+
- This is just a test changelog
|
|
17
|
+
|
|
18
|
+
[Unreleased]: https://gitlab.example.com/my/repo/-/compare/v0.0.2...master
|
|
19
|
+
[0.0.2]: https://gitlab.example.com/my/repo/-/compare/v0.0.1...v0.0.2
|
|
20
|
+
[0.0.1]: https://gitlab.example.com/my/repo/-/tags/v0.0.1
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
This is a footer
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"changelog": "./esm/bin.js"
|
|
6
6
|
},
|
|
7
7
|
"name": "keep-a-changelog",
|
|
8
|
-
"version": "2.5.
|
|
8
|
+
"version": "2.5.2",
|
|
9
9
|
"description": "Node package to parse and generate changelogs following the [keepachangelog](https://keepachangelog.com/) format.",
|
|
10
10
|
"homepage": "https://github.com/oscarotero/keep-a-changelog#readme",
|
|
11
11
|
"license": "MIT",
|
package/script/src/parser.js
CHANGED
|
@@ -59,7 +59,7 @@ function processTokens(tokens, opts) {
|
|
|
59
59
|
let link = getContent(tokens, "link");
|
|
60
60
|
while (link) {
|
|
61
61
|
if (!changelog.url) {
|
|
62
|
-
const matches = link.match(/^\[.*\]\:\s*(http
|
|
62
|
+
const matches = link.match(/^\[.*\]\:\s*(http.*?)\/(?:-\/)?compare\/.*$/);
|
|
63
63
|
if (matches) {
|
|
64
64
|
changelog.url = matches[1];
|
|
65
65
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Changelog - gitlab demo
|
|
2
|
+
All notable changes to this project will be documented in this file.
|
|
3
|
+
|
|
4
|
+
The format is based on [Keep a Changelog](https://keepachangelog.com/)
|
|
5
|
+
and this project adheres to [Semantic Versioning](https://semver.org/).
|
|
6
|
+
|
|
7
|
+
## [Unreleased]
|
|
8
|
+
- This is a brand new releases with:
|
|
9
|
+
|
|
10
|
+
## [0.0.2] - 2023-11-09
|
|
11
|
+
### Added
|
|
12
|
+
- I want to have a compare link
|
|
13
|
+
|
|
14
|
+
## [0.0.1] - 2023-11-09
|
|
15
|
+
### Added
|
|
16
|
+
- This is just a test changelog
|
|
17
|
+
|
|
18
|
+
[Unreleased]: https://gitlab.example.com/my/repo/-/compare/v0.0.2...master
|
|
19
|
+
[0.0.2]: https://gitlab.example.com/my/repo/-/compare/v0.0.1...v0.0.2
|
|
20
|
+
[0.0.1]: https://gitlab.example.com/my/repo/-/tags/v0.0.1
|
|
21
|
+
|
|
22
|
+
---
|
|
23
|
+
|
|
24
|
+
This is a footer
|