Skip to content

Commit 95eea28

Browse files
committed
chore: use git-cliff to generate changelog
1 parent 563e110 commit 95eea28

File tree

4 files changed

+197
-115
lines changed

4 files changed

+197
-115
lines changed

CHANGELOG.md

Lines changed: 83 additions & 114 deletions
Original file line numberDiff line numberDiff line change
@@ -1,180 +1,149 @@
1-
## [1.0.4](https://github.com/vidstack/media-captions/compare/v0.0.18...v1.0.4) (2024-07-29)
2-
3-
4-
### Bug Fixes
5-
6-
* add `jsdelivr` key to package ([adc57e0](https://github.com/vidstack/media-captions/commit/adc57e088f965335c701b6590e244de46b6f2219))
7-
* add main field to package.json ([452fa16](https://github.com/vidstack/media-captions/commit/452fa1639b51a779a95b9d3b0219d7192131a826))
8-
* ensure default bundles are ssr-friendly ([d92cbfe](https://github.com/vidstack/media-captions/commit/d92cbfefdd42aeafec6fe0cf0da7228bd1e4ba8a))
9-
* rename `part` attribute to `data-part` ([e608998](https://github.com/vidstack/media-captions/commit/e608998b1e9eb22d26876ddcc0d547c9c9302caf))
10-
* webpack parse error in regions anchor calc ([77d7c41](https://github.com/vidstack/media-captions/commit/77d7c41c053d2375c9e72adeec5865a9ff4c71dd))
11-
12-
13-
14-
## [1.0.3](https://github.com/vidstack/media-captions/compare/v0.0.18...v1.0.3) (2024-03-16)
15-
16-
17-
### Bug Fixes
18-
19-
* add `jsdelivr` key to package ([adc57e0](https://github.com/vidstack/media-captions/commit/adc57e088f965335c701b6590e244de46b6f2219))
20-
* ensure default bundles are ssr-friendly ([d92cbfe](https://github.com/vidstack/media-captions/commit/d92cbfefdd42aeafec6fe0cf0da7228bd1e4ba8a))
21-
* rename `part` attribute to `data-part` ([e608998](https://github.com/vidstack/media-captions/commit/e608998b1e9eb22d26876ddcc0d547c9c9302caf))
22-
* webpack parse error in regions anchor calc ([77d7c41](https://github.com/vidstack/media-captions/commit/77d7c41c053d2375c9e72adeec5865a9ff4c71dd))
23-
24-
25-
26-
## [1.0.2](https://github.com/vidstack/media-captions/compare/v0.0.18...v1.0.2) (2024-03-16)
27-
28-
29-
### Bug Fixes
30-
31-
* add `jsdelivr` key to package ([adc57e0](https://github.com/vidstack/media-captions/commit/adc57e088f965335c701b6590e244de46b6f2219))
32-
* ensure default bundles are ssr-friendly ([d92cbfe](https://github.com/vidstack/media-captions/commit/d92cbfefdd42aeafec6fe0cf0da7228bd1e4ba8a))
33-
* rename `part` attribute to `data-part` ([e608998](https://github.com/vidstack/media-captions/commit/e608998b1e9eb22d26876ddcc0d547c9c9302caf))
34-
* webpack parse error in regions anchor calc ([77d7c41](https://github.com/vidstack/media-captions/commit/77d7c41c053d2375c9e72adeec5865a9ff4c71dd))
1+
# Changelog
352

3+
All notable changes to this project will be documented in this file.
364

5+
## [1.0.4@next](https://github.com/vidstack/captions/releases/tag/v1.0.4@next) (2024-07-29)
376

38-
## [1.0.2](https://github.com/vidstack/media-captions/compare/v0.0.18...v1.0.2) (2023-11-19)
7+
### 🐛 Bug Fixes
398

40-
### Bug Fixes
9+
- Add main field to package.json
4110

42-
- webpack parse error in regions anchor calc ([77d7c41](https://github.com/vidstack/media-captions/commit/77d7c41c053d2375c9e72adeec5865a9ff4c71dd))
11+
## [1.0.3@next](https://github.com/vidstack/captions/releases/tag/v1.0.3@next) (2024-03-16)
4312

44-
## [1.0.1](https://github.com/vidstack/media-captions/compare/v0.0.18...v1.0.1) (2023-10-30)
13+
### 🐛 Bug Fixes
4514

46-
### Bug Fixes
15+
- Webpack parse error in regions anchor calc
16+
- Add `jsdelivr` key to package
4717

48-
- ensure default bundles are ssr-friendly ([d92cbfe](https://github.com/vidstack/media-captions/commit/d92cbfefdd42aeafec6fe0cf0da7228bd1e4ba8a))
49-
- rename `part` attribute to `data-part` ([e608998](https://github.com/vidstack/media-captions/commit/e608998b1e9eb22d26876ddcc0d547c9c9302caf))
18+
## [1.0.1@next](https://github.com/vidstack/captions/releases/tag/v1.0.1@next) (2023-11-19)
5019

51-
### Bug Fixes
20+
### 🐛 Bug Fixes
5221

53-
# Changelog
22+
- Ensure default bundles are ssr-friendly
5423

55-
# [1.0.0](https://github.com/vidstack/media-captions/compare/v0.0.18...v1.0.0) (2023-09-28)
24+
## [1.0@next](https://github.com/vidstack/captions/releases/tag/v1.0@next) (2023-09-28)
5625

57-
### Bug Fixes
26+
### 🐛 Bug Fixes
5827

59-
- rename `part` attribute to `data-part` ([e608998](https://github.com/vidstack/media-captions/commit/e608998b1e9eb22d26876ddcc0d547c9c9302caf))
28+
- Rename `part` attribute to `data-part`
6029

61-
### [0.0.18](https://github.com/vidstack/media-captions/compare/v0.0.17...v0.0.18) (2023-06-15)
30+
## [0.0.18](https://github.com/vidstack/captions/releases/tag/v0.0.18) (2023-06-15)
6231

63-
### Bug Fixes
32+
### 🐛 Bug Fixes
6433

65-
- avoid mangle collisions ([e5fff42](https://github.com/vidstack/media-captions/commit/e5fff4267ae509005ef9571008d77ce5f37e4ce3))
34+
- Avoid mangle collisions
6635

67-
### [0.0.17](https://github.com/vidstack/media-captions/compare/v0.0.16...v0.0.17) (2023-06-14)
36+
## [0.0.17](https://github.com/vidstack/captions/releases/tag/v0.0.17) (2023-06-14)
6837

69-
### Bug Fixes
38+
### 🐛 Bug Fixes
7039

71-
- use mangle cache ([fe00c85](https://github.com/vidstack/media-captions/commit/fe00c8546d079def129662098b708d6bdd4f88d5))
40+
- Use mangle cache
7241

73-
### [0.0.16](https://github.com/vidstack/media-captions/compare/v0.0.15...v0.0.16) (2023-06-12)
42+
## [0.0.16](https://github.com/vidstack/captions/releases/tag/v0.0.16) (2023-06-12)
7443

75-
### Bug Fixes
44+
### 🐛 Bug Fixes
7645

77-
- use rollup for cleaner build output ([72b02be](https://github.com/vidstack/media-captions/commit/72b02be6ed89d4a6e59c9ed4fcc2e3baae9899ef))
46+
- Use rollup for cleaner build output
7847

79-
### [0.0.15](https://github.com/vidstack/media-captions/compare/v0.0.14...v0.0.15) (2023-06-09)
48+
## [0.0.15](https://github.com/vidstack/captions/releases/tag/v0.0.15) (2023-06-09)
8049

81-
### Bug Fixes
50+
### 🐛 Bug Fixes
8251

83-
- clear starting boxes on resize update ([9a3cb80](https://github.com/vidstack/media-captions/commit/9a3cb805b59cb87791546c74b10356a0d75fadf6))
52+
- Clear starting boxes on resize update
8453

85-
### [0.0.14](https://github.com/vidstack/media-captions/compare/v0.0.13...v0.0.14) (2023-06-09)
54+
## [0.0.14](https://github.com/vidstack/captions/releases/tag/v0.0.14) (2023-06-09)
8655

87-
### Bug Fixes
56+
### 🐛 Bug Fixes
8857

89-
- debounce resize updates ([5428cec](https://github.com/vidstack/media-captions/commit/5428cec9f051f97e0a5acc0ceb37cedb58aee83f))
90-
- reduce resize debounce delay ([3a91714](https://github.com/vidstack/media-captions/commit/3a917144afb3cb32e8d7822e68bcd9ba62b4b4b5))
91-
- sync updates ([f57aa66](https://github.com/vidstack/media-captions/commit/f57aa6673212a93434428534bbd073c69483f9e2))
58+
- Debounce resize updates
59+
- Sync updates
60+
- Reduce resize debounce delay
9261

93-
### [0.0.13](https://github.com/vidstack/media-captions/compare/v0.0.12...v0.0.13) (2023-05-13)
62+
## [0.0.13](https://github.com/vidstack/captions/releases/tag/v0.0.13) (2023-05-13)
9463

95-
### Bug Fixes
64+
### 🐛 Bug Fixes
9665

97-
- only parse known properties on settings line ([58025f0](https://github.com/vidstack/media-captions/commit/58025f08df008cb23789f34a1d56b4abba754b71))
66+
- Only parse known properties on settings line
9867

99-
### [0.0.12](https://github.com/vidstack/media-captions/compare/v0.0.11...v0.0.12) (2023-05-08)
68+
## [0.0.12](https://github.com/vidstack/captions/releases/tag/v0.0.12) (2023-05-08)
10069

101-
### Bug Fixes
70+
### 🐛 Bug Fixes
10271

103-
- add required aria attrs on overlay element ([568677e](https://github.com/vidstack/media-captions/commit/568677e4e271ac599debb9a2dda2a9411a0ddea4))
72+
- Add required aria attrs on overlay element
10473

105-
### [0.0.11](https://github.com/vidstack/media-captions/compare/v0.0.10...v0.0.11) (2023-04-23)
74+
## [0.0.11](https://github.com/vidstack/captions/releases/tag/v0.0.11) (2023-04-23)
10675

107-
### Bug Fixes
76+
### 🐛 Bug Fixes
10877

109-
- parse ms with less than 3 digits correctly ([484123e](https://github.com/vidstack/media-captions/commit/484123e347f0aee263e0251e37af6871c54c13b4)), closes [#1](https://github.com/vidstack/media-captions/issues/1)
78+
- Parse ms with less than 3 digits correctly
11079

111-
### [0.0.10](https://github.com/vidstack/media-captions/compare/v0.0.9...v0.0.10) (2023-04-16)
80+
## [0.0.10](https://github.com/vidstack/captions/releases/tag/v0.0.10) (2023-04-16)
11281

113-
### Bug Fixes
82+
### 🐛 Bug Fixes
11483

115-
- safely detect vtt settings line ([c6f088d](https://github.com/vidstack/media-captions/commit/c6f088d82df4c68e1c309155400ab07bd7662a55))
84+
- Safely detect vtt settings line
11685

117-
### [0.0.9](https://github.com/vidstack/media-captions/compare/v0.0.8...v0.0.9) (2023-04-14)
86+
## [0.0.9](https://github.com/vidstack/captions/releases/tag/v0.0.9) (2023-04-14)
11887

119-
### Bug Fixes
88+
### 🐛 Bug Fixes
12089

121-
- ssa/ass margin setting should be px not % ([9329761](https://github.com/vidstack/media-captions/commit/93297617a23533336bf5acd0df3cd01b0e836dc6))
90+
- Ssa/ass margin setting should be px not %
12291

123-
### [0.0.8](https://github.com/vidstack/media-captions/compare/v0.0.7...v0.0.8) (2023-04-12)
92+
## [0.0.8](https://github.com/vidstack/captions/releases/tag/v0.0.8) (2023-04-12)
12493

125-
### Bug Fixes
94+
### 🐛 Bug Fixes
12695

127-
- position everything relative to container to avoid scroll issues ([91ded03](https://github.com/vidstack/media-captions/commit/91ded032fd00722d8f33e9e64d262796cfc80f5f))
96+
- Position everything relative to container to avoid scroll issues
12897

129-
### [0.0.7](https://github.com/vidstack/media-captions/compare/v0.0.6...v0.0.7) (2023-04-05)
98+
## [0.0.7](https://github.com/vidstack/captions/releases/tag/v0.0.7) (2023-04-05)
13099

131-
### Bug Fixes
100+
### 🐛 Bug Fixes
132101

133-
- correctly apply ass position and outline styling ([71c58ee](https://github.com/vidstack/media-captions/commit/71c58ee994e798e4f1e273b70ab8a8feaf339e03))
134-
- extend native `VTTCue` otherwise browser will reject ([dc256a8](https://github.com/vidstack/media-captions/commit/dc256a8b5cf90919091a794288c18ed9c5b22c72))
135-
- replace `\N` with line break in ass captions text ([a6f0517](https://github.com/vidstack/media-captions/commit/a6f051743426f7466b0e8abe14d10d896dfc2a71))
102+
- Extend native `VTTCue` otherwise browser will reject
103+
- Replace `\N` with line break in ass captions text
104+
- Correctly apply ass position and outline styling
136105

137-
### [0.0.6](https://github.com/vidstack/media-captions/compare/v0.0.5...v0.0.6) (2023-03-30)
106+
## [0.0.6](https://github.com/vidstack/captions/releases/tag/v0.0.6) (2023-03-30)
138107

139-
### Bug Fixes
108+
### 🐛 Bug Fixes
140109

141-
- do not hold more than 100 cue dom nodes in memory ([1d57f58](https://github.com/vidstack/media-captions/commit/1d57f58d55495a0a18224440967cea5c5a103f68))
142-
- position boxes using percentages to be responsive ([9e099fa](https://github.com/vidstack/media-captions/commit/9e099fa52b724d833e2126722bac7bb0bd908f50))
110+
- Do not hold more than 100 cue dom nodes in memory
111+
- Position boxes using percentages to be responsive
143112

144-
### [0.0.5](https://github.com/vidstack/media-captions/compare/v0.0.4...v0.0.5) (2023-03-29)
113+
## [0.0.5](https://github.com/vidstack/captions/releases/tag/v0.0.5) (2023-03-29)
145114

146-
### Bug Fixes
115+
### 🐛 Bug Fixes
147116

148-
- incorrect node export index paths -\_- ([fa00f56](https://github.com/vidstack/media-captions/commit/fa00f560fa14b3941f3c37925bdfe0431901c1c2))
117+
- Incorrect node export index paths -\_-
149118

150-
### [0.0.4](https://github.com/vidstack/media-captions/compare/v0.0.3...v0.0.4) (2023-03-29)
119+
## [0.0.4](https://github.com/vidstack/captions/releases/tag/v0.0.4) (2023-03-29)
151120

152-
### Bug Fixes
121+
### 🐛 Bug Fixes
153122

154-
- add styles dir to package exports ([8aa056f](https://github.com/vidstack/media-captions/commit/8aa056ffe83ee085be3c013100da252dfbdae805))
123+
- Add styles dir to package exports
155124

156-
### [0.0.3](https://github.com/vidstack/media-captions/compare/v0.0.2...v0.0.3) (2023-03-29)
125+
## [0.0.3](https://github.com/vidstack/captions/releases/tag/v0.0.3) (2023-03-29)
157126

158-
### Bug Fixes
127+
### 🐛 Bug Fixes
159128

160-
- include styles in package files ([ea8d600](https://github.com/vidstack/media-captions/commit/ea8d600742bf4bd5e13e960d0a597ee03d8b054b))
129+
- Include styles in package files
161130

162-
### 0.0.2 (2023-03-29)
131+
## [0.0.2](https://github.com/vidstack/captions/releases/tag/v0.0.2) (2023-03-29)
163132

164-
### Features
133+
### Features
165134

166-
- add `strict` and `errors` parsing options ([0df50ed](https://github.com/vidstack/media-captions/commit/0df50ed2fb2fe8ea160856fc6e537b6df6add854))
167-
- add srt parser ([8df0cae](https://github.com/vidstack/media-captions/commit/8df0cae3301227b005cdea49ea10fb7e7ff5cf24))
168-
- add ssa parser ([cd8c6c8](https://github.com/vidstack/media-captions/commit/cd8c6c8f685d37a69489e1362b687c91f934539b))
169-
- add vtt cue renderer ([52d9c3e](https://github.com/vidstack/media-captions/commit/52d9c3ee3cfb27637b6d1d79908b2156e07a906f))
170-
- add vtt cue tokenizer ([392e7d7](https://github.com/vidstack/media-captions/commit/392e7d7110b78dd4747029b7c4e7be0be7c3d35a))
171-
- export `parseVTTTimestamp` function ([fcd0abf](https://github.com/vidstack/media-captions/commit/fcd0abfb99113af673143fb40cc4a504b63c7191))
172-
- new `updateTimedVTTCueNodes` export ([9485c8d](https://github.com/vidstack/media-captions/commit/9485c8df13f6a36e0a8fd6ca501f1244909a62e6))
173-
- overlay renderer ([cb17f7f](https://github.com/vidstack/media-captions/commit/cb17f7f9a4f31bccf4c923ab7070b6b99ff02906))
174-
- vtt parser ([939bf2a](https://github.com/vidstack/media-captions/commit/939bf2a8085f003b6ccf4e81f2dd9dd254d45393))
135+
- Vtt parser
136+
- Add vtt cue tokenizer
137+
- Add vtt cue renderer
138+
- Export `parseVTTTimestamp` function
139+
- New `updateTimedVTTCueNodes` export
140+
- Overlay renderer
141+
- Add `strict` and `errors` parsing options
142+
- Add srt parser
143+
- Add ssa parser
175144

176-
### Bug Fixes
145+
### 🐛 Bug Fixes
177146

178-
- `CaptionsOverlayRenderer` -> `CaptionsRenderer` ([e013da7](https://github.com/vidstack/media-captions/commit/e013da780498d81c1318f774bf0dabb67d914261))
179-
- ignore cues that exceed region lines limit ([0e815ef](https://github.com/vidstack/media-captions/commit/0e815ef3e088e0ee583580b29f8064a63d86361a))
180-
- rename captions renderer `setup` to `changeTrack` ([9a43831](https://github.com/vidstack/media-captions/commit/9a438318db1f7dd685475c1d066646ebbf72f21f))
147+
- Ignore cues that exceed region lines limit
148+
- Rename captions renderer `setup` to `changeTrack`
149+
- `CaptionsOverlayRenderer` -> `CaptionsRenderer`

cliff.toml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
[changelog]
2+
header = """
3+
# Changelog\n
4+
All notable changes to this project will be documented in this file.\n
5+
"""
6+
body = """
7+
{% if version %}\
8+
## [{{ version | trim_start_matches(pat="v") }}](https://github.com/vidstack/captions/releases/tag/{{ version }}) ({{ timestamp | date(format="%Y-%m-%d") }})
9+
{% else %}\
10+
## [unreleased]
11+
{% endif %}\
12+
{% for group, commits in commits | group_by(attribute="group") %}
13+
### {{ group | striptags | trim | upper_first }}
14+
{% for commit in commits %}
15+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
16+
{% if commit.breaking %}[**breaking**] {% endif %}\
17+
{{ commit.message | upper_first }}\
18+
{% endfor %}
19+
{% endfor %}\n
20+
"""
21+
trim = true
22+
footer = ""
23+
postprocessors = []
24+
25+
[git]
26+
conventional_commits = true
27+
filter_unconventional = true
28+
split_commits = false
29+
commit_preprocessors = []
30+
commit_parsers = [
31+
{ message = "^feat", group = "✨ Features" },
32+
{ message = "^fix", group = "🐛 Bug Fixes" },
33+
{ message = "^perf", group = "🏎️ Performance" },
34+
{ message = "^refactor", group = "Refactor", skip=true },
35+
{ message = "^style", group = "Styling", skip=true },
36+
{ message = "^test", group = "Testing", skip=true },
37+
{ message = "^chore", skip = true },
38+
{ message = "^docs", skip = true },
39+
{ body = ".*security", group = "🔒 Security" },
40+
{ message = "^revert", group = "⏪ Revert" },
41+
]
42+
protect_breaking_commits = false
43+
filter_commits = false
44+
tag_pattern = "v[0-9].*"
45+
46+
skip_tags = ""
47+
ignore_tags = ""
48+
topo_order = false
49+
sort_commits = "oldest"

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"types": "tsc -p tsconfig.build.json",
2323
"clean": "rimraf dist",
2424
"format": "prettier src --write --loglevel warn",
25-
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
25+
"changelog": "pnpm exec git cliff --output CHANGELOG.md",
2626
"test": "vitest --run",
2727
"test:watch": "vitest --watch --single-thread",
2828
"sandbox": "node ./.sandbox/launch.js",
@@ -35,6 +35,7 @@
3535
"acorn-walk": "^8.2.0",
3636
"conventional-changelog-cli": "^4.1.0",
3737
"esbuild": "^0.18.1",
38+
"git-cliff": "^1.4.0",
3839
"magic-string": "^0.30.0",
3940
"prettier": "^2.8.4",
4041
"rimraf": "^4.4.1",

0 commit comments

Comments
 (0)