Skip to content

Commit a7cda51

Browse files
authored
Release 1.5.0 (#2061)
2 parents 6ec49d2 + 7e38022 commit a7cda51

File tree

1,236 files changed

+54241
-23760
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,236 files changed

+54241
-23760
lines changed

.eclintrc.cjs

Lines changed: 0 additions & 7 deletions
This file was deleted.

.env

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
FORCE_COLOR=1

.github/ISSUE_TEMPLATE/bug_report_form.yml

Lines changed: 21 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -43,16 +43,27 @@ body:
4343
description: Providing a minimal reproducible example can help a lot.
4444
validations:
4545
required: false
46-
- type: dropdown
47-
id: version
46+
- type: textarea
47+
id: environment
4848
attributes:
49-
label: Found in Version
50-
description: Which version of alphaTab are you using?
51-
options:
52-
- 1.4 (alpha)
53-
- 1.3
54-
- 1.2
55-
- Other
49+
label: Version and Environment
50+
description: |
51+
Please provide detailed information about your environment, like alphaTab version used, browser, device, .net runtime, Android version,..
52+
Since 1.5.0: You can call `alphaTab.Environment.printEnvironmentInfo()` and copy the printed info. Or enable [debug logs](https://www.alphatab.net/docs/reference/settings/core/loglevel) and they are always printed.
53+
Just grab them from the console/debugger/output/logcat output.
54+
placeholder: |
55+
[AlphaTab][VersionInfo] alphaTab 1.5.0
56+
[AlphaTab][VersionInfo] commit: 43c51b693438c54c0023ba729d7a7aa351e0f1fd
57+
[AlphaTab][VersionInfo] build date: 2025-04-13T12:44:25.644Z
58+
[AlphaTab][VersionInfo] High DPI: 1
59+
[AlphaTab][VersionInfo] Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36
60+
[AlphaTab][VersionInfo] Platform: BrowserModule
61+
[AlphaTab][VersionInfo] WebPack: false
62+
[AlphaTab][VersionInfo] Vite: false
63+
[AlphaTab][VersionInfo] Window Size: 1529x1152
64+
[AlphaTab][VersionInfo] Screen Size: 3840x1200
65+
66+
render: bash
5667
validations:
5768
required: true
5869
- type: dropdown
@@ -72,21 +83,7 @@ body:
7283
- Other
7384
validations:
7485
required: true
75-
- type: textarea
76-
id: environment
77-
attributes:
78-
label: Environment
79-
description: |
80-
examples:
81-
- **OS**: Windows 10 Pro
82-
- **Browser**: Chrome 92.0.4515.159
83-
value: |
84-
- **OS**:
85-
- **Browser**:
86-
- **.net Version**:
87-
render: markdown
88-
validations:
89-
required: true
86+
9087
- type: textarea
9188
id: further
9289
attributes:

.github/workflows/build.yml

Lines changed: 51 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,24 @@ on:
88
workflow_dispatch:
99

1010
jobs:
11+
lint:
12+
name: Linting and TypeCheck
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v4
16+
with:
17+
lfs: true
18+
- uses: actions/setup-node@v4
19+
with:
20+
node-version: 'lts/*'
21+
cache: 'npm'
22+
- run: npm install
23+
- run: npm run generate-typescript
24+
- run: npm run lint-ci
25+
if: ${{ always() }}
26+
- run: npm run typecheck
27+
if: ${{ always() }}
28+
1129
build_web:
1230
name: Build and Test Web
1331
runs-on: ubuntu-latest
@@ -18,9 +36,18 @@ jobs:
1836
- uses: actions/setup-node@v4
1937
with:
2038
node-version: 'lts/*'
21-
- run: npm install
39+
cache: 'npm'
40+
- run: npm ci
2241
- run: npm run build
2342
- run: npm run test
43+
id: test
44+
- uses: actions/upload-artifact@v4
45+
if: ${{ failure() && steps.test.conclusion == 'failure' }}
46+
with:
47+
name: test-results-web
48+
path: |
49+
test-data/**/*.new.png
50+
test-data/**/*.diff.png
2451
2552
build_csharp:
2653
name: Build and Test C#
@@ -32,12 +59,21 @@ jobs:
3259
- uses: actions/setup-node@v4
3360
with:
3461
node-version: 'lts/*'
62+
cache: 'npm'
3563
- uses: actions/setup-dotnet@v4
3664
with:
3765
dotnet-version: '8'
38-
- run: npm install
66+
- run: npm ci
3967
- run: npm run build-csharp
4068
- run: npm run test-csharp
69+
id: test
70+
- uses: actions/upload-artifact@v4
71+
if: ${{ failure() && steps.test.conclusion == 'failure' }}
72+
with:
73+
name: test-results-csharp
74+
path: |
75+
test-data/**/*.new.png
76+
test-data/**/*.diff.png
4177
4278
build_kotlin:
4379
name: Build and Test Kotlin
@@ -58,19 +94,23 @@ jobs:
5894
- uses: actions/setup-node@v4
5995
with:
6096
node-version: 'lts/*'
97+
cache: 'npm'
6198
- uses: actions/setup-java@v4
6299
with:
63100
java-version: '19'
64101
distribution: 'temurin'
65-
- uses: actions/cache@v4
102+
- uses: gradle/actions/setup-gradle@v4
66103
with:
67-
path: |
68-
~/.gradle/caches
69-
~/.gradle/wrapper
70-
key: ${{ runner.os }}-gradle-cache-v5-${{ github.job }}-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
71-
restore-keys: |
72-
${{ runner.os }}-gradle-cache-v5-${{ github.job }}-
73-
- run: npm install
104+
cache-read-only: false
105+
- run: npm ci
74106
- run: npm run build-kotlin
75107
- run: npm run test-kotlin
76-
- run: ./src.kotlin/alphaTab/gradlew --stop
108+
id: test
109+
- uses: actions/upload-artifact@v4
110+
if: ${{ failure() && steps.test.conclusion == 'failure' }}
111+
with:
112+
name: test-results-kotlin
113+
path: |
114+
test-data/**/*.new.png
115+
test-data/**/*.diff.png
116+
- run: ./src.kotlin/alphaTab/gradlew --stop

.github/workflows/publish.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jobs:
3535
cache: 'npm'
3636

3737
- run: node ./scripts/update-version.js alpha ${{github.run_number}}
38-
- run: npm install
38+
- run: npm ci
3939
- run: npm run build
4040
- run: npm pack
4141

@@ -66,7 +66,7 @@ jobs:
6666
with:
6767
dotnet-version: "8"
6868

69-
- run: npm install
69+
- run: npm ci
7070
- run: node ./scripts/update-csharp-version.js alpha ${{github.run_number}}
7171
- run: npm run build-csharp
7272

@@ -98,7 +98,7 @@ jobs:
9898
java-version: "19"
9999
distribution: "temurin"
100100

101-
- run: npm install
101+
- run: npm ci
102102
- run: node ./scripts/update-kotlin-version.js SNAPSHOT
103103
- run: npm run build-kotlin
104104

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 'lts/*'
18-
- run: npm install
18+
- run: npm ci
1919
- run: node ./scripts/update-version.js ${{github.run_number}}
2020
- run: npm run build
2121
- run: npm pack
@@ -43,7 +43,7 @@ jobs:
4343
dotnet-version: '8'
4444
env:
4545
NUGET_AUTH_TOKEN: ${{secrets.NUGET_API_KEY}}
46-
- run: npm install
46+
- run: npm ci
4747
- run: node ./scripts/update-csharp-version.js ${{github.run_number}}
4848
- run: npm run build-csharp
4949
- run: dotnet nuget push src.csharp/AlphaTab/bin/Release/*.nupkg -k ${{secrets.NUGET_API_KEY}} -s https://api.nuget.org/v3/index.json --skip-duplicate
@@ -71,7 +71,7 @@ jobs:
7171
java-version: "19"
7272
distribution: "temurin"
7373

74-
- run: npm install
74+
- run: npm ci
7575
- run: node ./scripts/update-kotlin-version.js
7676
- run: npm run build-kotlin
7777
- run: ./gradlew publishToMavenCentral

.mocharc.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,14 @@
33
"ts"
44
],
55
"node-option": [
6+
"env-file=.env",
67
"experimental-specifier-resolution=node",
78
"import=tsx/esm",
89
"no-warnings"
910
],
1011
"spec": "test/**/*.test.ts",
11-
"timeout": "10000"
12+
"timeout": "10000",
13+
"require": [
14+
"test/global-hooks.ts"
15+
]
1216
}

.prettierrc

Lines changed: 0 additions & 10 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,19 @@
11
{
2-
"mochaExplorer.files": "test/**/*.test.ts",
3-
"mochaExplorer.nodeArgv": [
4-
"--experimental-specifier-resolution=node",
5-
"--import=tsx"
6-
],
7-
"mochaExplorer.logpanel": true
2+
"debug.javascript.terminalOptions": {
3+
"resolveSourceMapLocations": [
4+
"${workspaceFolder}/**",
5+
"!**/node_modules/**",
6+
"**/node_modules/.vite-temp/**"
7+
]
8+
},
9+
"typescript.preferences.importModuleSpecifier": "non-relative",
10+
"[typescript]": {
11+
"editor.defaultFormatter": "biomejs.biome"
12+
},
13+
"[json]": {
14+
"editor.defaultFormatter": "biomejs.biome"
15+
},
16+
"[javascript]": {
17+
"editor.defaultFormatter": "biomejs.biome"
18+
}
819
}

LICENSE.header

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,7 @@ Integrated Libraries:
4242
License: BSD-3-Clause
4343
Copyright: Copyright (c) 2002-2020 Xiph.org Foundation
4444
URL: https://github.com/xiph/vorbis
45-
Purpose: NVorbis adopted some code from libvorbis.
45+
Purpose: NVorbis adopted some code from libvorbis.
46+
47+
@preserve
48+
@license

0 commit comments

Comments
 (0)