bitmovin-player-ui 3.53.0 → 3.55.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/.github/ISSUE_TEMPLATE/config.yml +11 -0
- package/.github/PULL_REQUEST_TEMPLATE.md +6 -0
- package/.github/scripts/notifySlackTeam.js +79 -0
- package/.github/scripts/updateChangelog.js +16 -9
- package/.github/workflows/release.yml +19 -1
- package/.github/workflows/tag-release-version.yml +6 -2
- package/CHANGELOG.md +18 -1
- package/artifact/artifact.tar.gz +0 -0
- package/dist/js/bitmovinplayer-ui.js +3 -3
- package/dist/js/bitmovinplayer-ui.min.js +1 -1
- package/dist/js/bitmovinplayer-ui.min.js.map +1 -1
- package/dist/js/framework/components/subtitlesettings/fontfamilyselectbox.js +1 -1
- package/dist/js/framework/main.js +1 -1
- package/package.json +1 -1
- package/src/ts/components/subtitlesettings/fontfamilyselectbox.ts +1 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
blank_issues_enabled: false
|
|
2
|
+
contact_links:
|
|
3
|
+
- name: Report a Bug
|
|
4
|
+
url: https://dashboard.bitmovin.com/support/tickets
|
|
5
|
+
about: Report a Bug you encountered in our Bitmovin Player UI in your Bitmovin Customer Dashboard.
|
|
6
|
+
- name: Feature Requests
|
|
7
|
+
url: https://community.bitmovin.com/t/how-to-submit-a-feature-request-to-us/1463
|
|
8
|
+
about: Learn how to suggest new features for our Player SDKs.
|
|
9
|
+
- name: Report a security vulnerability
|
|
10
|
+
url: https://bitmovin.atlassian.net/wiki/external/1502085332/YTYwODMwZjQyNjkwNGQ0ODg5MTgwM2NhMDliNjRmODE
|
|
11
|
+
about: Report a security vulnerability.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
const fs = require('fs');
|
|
2
|
+
const https = require('https');
|
|
3
|
+
|
|
4
|
+
const jobStatus = process.argv[2];
|
|
5
|
+
const changelogPath = process.argv[3];
|
|
6
|
+
const slackWebhookUrl = process.argv[4];
|
|
7
|
+
const runId = process.argv[5];
|
|
8
|
+
|
|
9
|
+
const failureSlackChannelId = 'CGRK9DV7H';
|
|
10
|
+
const successSlackChannelId = 'C0LJ16JBS';
|
|
11
|
+
|
|
12
|
+
fs.readFile(changelogPath, 'utf8', (err, fileContent) => {
|
|
13
|
+
if (err) {
|
|
14
|
+
throw err;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
const changelogContent = parseChangelogEntry(fileContent);
|
|
18
|
+
const releaseVersion = parseReleaseVersion(fileContent);
|
|
19
|
+
sendSlackMessage(releaseVersion, changelogContent);
|
|
20
|
+
});
|
|
21
|
+
|
|
22
|
+
function parseReleaseVersion(fileContent) {
|
|
23
|
+
const regex = /##\s\[(\d+\.\d+.\d+)\]/;
|
|
24
|
+
const releaseVersion = fileContent.match(regex);
|
|
25
|
+
|
|
26
|
+
return releaseVersion[1];
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
function parseChangelogEntry(fileContent) {
|
|
30
|
+
// The regex looks for the first paragraph starting with "###" until it finds
|
|
31
|
+
// a paragraph starting with "##".
|
|
32
|
+
// For some reason it also matches 2 chars at the end. With the .slice
|
|
33
|
+
// those 2 chars get removed from the string.
|
|
34
|
+
const regex = /###(.)*[\s\S]*?(?=\s##\s\[v*?)/;
|
|
35
|
+
|
|
36
|
+
let changelogContent = fileContent.match(regex);
|
|
37
|
+
changelogContent = changelogContent.slice(0, -1);
|
|
38
|
+
return changelogContent.toString();
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function sendSlackMessage(releaseVersion, changelogContent) {
|
|
42
|
+
let message;
|
|
43
|
+
let slackChannelId;
|
|
44
|
+
if (jobStatus === 'success') {
|
|
45
|
+
slackChannelId = successSlackChannelId
|
|
46
|
+
message = `Changelog v${releaseVersion}\n${changelogContent}`
|
|
47
|
+
} else {
|
|
48
|
+
slackChannelId = failureSlackChannelId
|
|
49
|
+
message = `Release v${releaseVersion} failed.\nPlease check https://github.com/bitmovin/bitmovin-player-ui/actions/runs/${runId}`
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const sampleData = JSON.stringify({
|
|
53
|
+
"channel": slackChannelId,
|
|
54
|
+
"message": message
|
|
55
|
+
});
|
|
56
|
+
const options = {
|
|
57
|
+
method: 'POST',
|
|
58
|
+
headers: {
|
|
59
|
+
'Content-Type': 'application/json',
|
|
60
|
+
'Accept': "application/json",
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
var req = https.request(slackWebhookUrl, options, (res) => {
|
|
65
|
+
console.log('statusCode:', res.statusCode);
|
|
66
|
+
console.log('headers:', res.headers);
|
|
67
|
+
|
|
68
|
+
res.on('data', (d) => {
|
|
69
|
+
process.stdout.write(d);
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
|
|
73
|
+
req.on('error', (e) => {
|
|
74
|
+
console.error(e);
|
|
75
|
+
});
|
|
76
|
+
|
|
77
|
+
req.write(sampleData);
|
|
78
|
+
req.end();
|
|
79
|
+
}
|
|
@@ -6,12 +6,19 @@
|
|
|
6
6
|
* @param {string} releaseDate the release date to be written to the changelog
|
|
7
7
|
*/
|
|
8
8
|
function updateChangeLog(changelogString, version, releaseDate) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
|
|
9
|
+
const optionalBetaOrRc = '(-rc.d+)?(-(b|beta).d+)?';
|
|
10
|
+
const changelogVersionRegExp = new RegExp(
|
|
11
|
+
`\\[(development|develop|unreleased|${version})${optionalBetaOrRc}.*`,
|
|
12
|
+
'gi',
|
|
13
|
+
);
|
|
14
|
+
|
|
15
|
+
const lastReleaseVersion = changelogString.match(/## \[(\d+.\d+.\d+)\] - \d{4}-\d{2}-\d{2}/)[1];
|
|
16
|
+
const changelogWithReleaseVersionAndDate = changelogString.replace(changelogVersionRegExp, `[${version}] - ${releaseDate}`);
|
|
17
|
+
|
|
18
|
+
return changelogWithReleaseVersionAndDate.replace(
|
|
19
|
+
'## 1.0.0 (2017-02-03)\n- First release\n\n',
|
|
20
|
+
`## 1.0.0 (2017-02-03)\n- First release\n\n[${version}]: https://github.com/bitmovin/bitmovin-player-ui/compare/v${lastReleaseVersion}...v${version}\n`
|
|
21
|
+
);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
module.exports.updateChangeLog = updateChangeLog;
|
|
@@ -16,7 +16,9 @@ jobs:
|
|
|
16
16
|
|
|
17
17
|
steps:
|
|
18
18
|
- name: Checkout
|
|
19
|
-
uses: actions/checkout@
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
with:
|
|
21
|
+
ref: develop
|
|
20
22
|
|
|
21
23
|
- uses: actions/download-artifact@v3
|
|
22
24
|
with:
|
|
@@ -32,3 +34,19 @@ jobs:
|
|
|
32
34
|
env:
|
|
33
35
|
NPM_DRY_RUN: false
|
|
34
36
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
|
|
37
|
+
|
|
38
|
+
- name: Notify team
|
|
39
|
+
run: node .github/scripts/notifySlackTeam.js 'success' 'CHANGELOG.md' ${{ secrets.RELEASE_SUCCESS_SLACK_WEBHOOK }}
|
|
40
|
+
|
|
41
|
+
handle_failure:
|
|
42
|
+
runs-on: ubuntu-latest
|
|
43
|
+
needs: [test_and_build, download_and_publish]
|
|
44
|
+
if: ${{ always() && (needs.download_and_publish.result == 'failure' || needs.test_and_build.result == 'failure') }}
|
|
45
|
+
steps:
|
|
46
|
+
- name: Checkout
|
|
47
|
+
uses: actions/checkout@v4
|
|
48
|
+
with:
|
|
49
|
+
ref: develop
|
|
50
|
+
|
|
51
|
+
- name: Notify team
|
|
52
|
+
run: node .github/scripts/notifySlackTeam.js 'failure' 'CHANGELOG.md' ${{ secrets.RELEASE_FAILURE_SLACK_WEBHOOK }} ${{ github.run_id }}
|
|
@@ -13,9 +13,9 @@ jobs:
|
|
|
13
13
|
runs-on: ubuntu-latest
|
|
14
14
|
steps:
|
|
15
15
|
- name: Checkout
|
|
16
|
-
uses: actions/checkout@
|
|
16
|
+
uses: actions/checkout@v4
|
|
17
17
|
with:
|
|
18
|
-
|
|
18
|
+
ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }}
|
|
19
19
|
ref: develop
|
|
20
20
|
|
|
21
21
|
- name: Install dependencies
|
|
@@ -68,3 +68,7 @@ jobs:
|
|
|
68
68
|
git commit -m "Add release date to changelog"
|
|
69
69
|
git push origin develop
|
|
70
70
|
git push origin --tags
|
|
71
|
+
|
|
72
|
+
- name: Notify failure
|
|
73
|
+
if: ${{ failure() }}
|
|
74
|
+
run: node .github/scripts/notifySlackTeam.js 'failure' 'CHANGELOG.md' ${{ secrets.RELEASE_FAILURE_SLACK_WEBHOOK }} ${{ github.run_id }}
|
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,21 @@ All notable changes to this project will be documented in this file.
|
|
|
4
4
|
The format is based on [Keep a Changelog](http://keepachangelog.com/)
|
|
5
5
|
and this project adheres to [Semantic Versioning](http://semver.org/).
|
|
6
6
|
|
|
7
|
-
## [
|
|
7
|
+
## [3.55.0] - 2024-03-21
|
|
8
|
+
|
|
9
|
+
### Added
|
|
10
|
+
- Automatically add compare link in changelog file in relase workflow
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Missing compare link in the changelog file
|
|
14
|
+
|
|
15
|
+
## [3.54.0] - 2024-02-01
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
- FCC subtitle settings menu showing two options with the same value
|
|
19
|
+
- Invalid release workflow file
|
|
20
|
+
|
|
21
|
+
## [3.53.0] - 2024-01-03
|
|
8
22
|
|
|
9
23
|
### Added
|
|
10
24
|
- Automate release on every PR merge to develop
|
|
@@ -892,6 +906,9 @@ Version 2.0 of the UI framework is built for player 7.1. If absolutely necessary
|
|
|
892
906
|
## 1.0.0 (2017-02-03)
|
|
893
907
|
- First release
|
|
894
908
|
|
|
909
|
+
[3.55.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.54.0...v3.55.0
|
|
910
|
+
[3.54.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.53.0...v3.54.0
|
|
911
|
+
[3.53.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.52.2...v3.53.0
|
|
895
912
|
[3.52.2]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.52.1...v3.52.2
|
|
896
913
|
[3.52.1]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.52.0...v3.52.1
|
|
897
914
|
[3.52.0]: https://github.com/bitmovin/bitmovin-player-ui/compare/v3.51.0...v3.52.0
|
package/artifact/artifact.tar.gz
CHANGED
|
Binary file
|