Skip to content

Commit dd6dc5f

Browse files
AnHeuermannclaude
andauthored
Add OM 1.26.4–1.26.8, update toolchain to Node 24 / npm 11.13.0
Versions: - Add Linux releases 1.26.4–1.26.8 to versions.json - Add Windows entries 1.26.4–1.26.8; Windows stable/release stays at 1.26.3 Node / npm: - Bump Node.js to 24.x in all workflows and action.yml (node24) - Pin npm to 11.13.0 (matches GitHub Actions ubuntu-latest Node 24.16.0) to keep package-lock.json in sync with CI resolution Dependencies: - Run npm-check-updates; upgrade all packages except eslint/eslint-js (held at ^9.x — eslint-plugin-github not yet compatible with ESLint 10) - package-lock.json regenerated with npm 11.13.0 (fixes @emnapi/core@1.11.0 resolution mismatch that caused npm ci to fail on CI) Build: - Remove redundant `npm run build` (tsc) script and all uses in workflows; rollup handles TypeScript via @rollup/plugin-typescript - Suppress node_modules rollup warnings (THIS_IS_UNDEFINED, CIRCULAR_DEPENDENCY) via onwarn handler in rollup.config.ts - Upgrade tsconfig lib/target to ES2024; add explicit rootDir and types:["node"] TypeScript / ESLint: - Add tsconfig.test.json and __tests__/tsconfig.json for test type-checking - Configure ESLint parserOptions.project to include tsconfig.test.json - Disable no-console in __tests__/; fix process.stdout.write mock typing Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 6b82cbe commit dd6dc5f

15 files changed

Lines changed: 9067 additions & 3088 deletions

.github/workflows/check-dist.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,16 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v6
2727

28-
- name: Set Node.js 20.x
28+
- name: Set Node.js 24.x
2929
uses: actions/setup-node@v6
3030
with:
31-
node-version: 20.x
31+
node-version: 24.x
3232

3333
- name: Install dependencies
3434
run: npm ci
3535

3636
- name: Rebuild the dist/ directory
37-
run: |
38-
npm run build
39-
npm run package
37+
run: npm run package
4038

4139
- name: Compare the expected and actual dist/ directories
4240
run: |

.github/workflows/patch-dependabot.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,15 +24,13 @@ jobs:
2424
- name: Set up Node
2525
uses: actions/setup-node@v6
2626
with:
27-
node-version: 20.x
27+
node-version: 24.x
2828

2929
- name: Install dependencies
3030
run: npm ci
3131

3232
- name: Build package
33-
run: |
34-
npm run build
35-
npm run package
33+
run: npm run package
3634

3735
- name: Commit dist changes
3836
run: |

.github/workflows/test.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,14 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@v6
2020

21-
- name: Set Node.js 20.x
21+
- name: Set Node.js 24.x
2222
uses: actions/setup-node@v6
2323
with:
24-
node-version: 20.x
24+
node-version: 24.x
2525

2626
- name: Install
2727
run: npm install
2828

29-
- name: Build
30-
run: npm run build
31-
3229
- name: Package
3330
run: npm run package
3431

@@ -52,7 +49,7 @@ jobs:
5249
'omc'
5350
'omsimulator'
5451
libraries: |
55-
'Modelica 4.0.0'
52+
'Modelica 4.1.0'
5653
'Modelica 3.2.3+maint.om'
5754
omc-diff: true
5855
- run: echo $OPENMODELICAHOME

__tests__/installer.test.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ async function purgeOMC(): Promise<void> {
2828
if (matches != null && matches.length > 0) {
2929
const toRemove = matches[matches.length - 1]
3030
.replace('Install: ', '')
31-
.replace(/:[^\)]*\),*/g, '')
31+
.replace(/:[^)]*\),*/g, '')
3232
console.log(`Files to remove: ${toRemove}`)
3333
await exec.exec(
3434
`/bin/bash -c "sudo apt-get purge ${toRemove} -qy ${'||'} sudo apt-get autoremove -qy"`
@@ -41,14 +41,14 @@ async function purgeOMC(): Promise<void> {
4141
*/
4242
function linuxTests(): void {
4343
test('Get Linux versions', async () => {
44-
const releaseVersions = installer.getOMVersions()
44+
installer.getOMVersions()
4545
})
4646

4747
test('Get some versions', async () => {
4848
let outVer: installer.VersionType
4949

5050
outVer = installer.getOMVersion('1')
51-
expect(outVer.version).toEqual('1.26.3')
51+
expect(outVer.version).toEqual('1.26.8')
5252

5353
outVer = installer.getOMVersion('1.18')
5454
expect(outVer.version).toEqual('1.18.1')
@@ -101,7 +101,7 @@ function linuxTests(): void {
101101
const version = installer.getOMVersion('nightly')
102102
await installer.installOM(['omc'], version, '64')
103103
const resVer = await installer.showVersion('omc')
104-
expect(resVer).toContain('1.27.0~dev-')
104+
expect(resVer).toContain('1.28.0~dev-')
105105
},
106106
10 * 60000
107107
)
@@ -113,7 +113,7 @@ function linuxTests(): void {
113113
const version = installer.getOMVersion('stable')
114114
await installer.installOM(['omc'], version, '64')
115115
const resVer = await installer.showVersion('omc')
116-
expect(resVer).toContain('1.26.')
116+
expect(resVer).toContain('1.27.')
117117
},
118118
10 * 60000
119119
)
@@ -191,13 +191,13 @@ function commonTests(): void {
191191
'Install Modelica libraries',
192192
async () => {
193193
let output = ''
194-
const originalWrite = process.stdout.write
194+
const originalWrite = process.stdout.write.bind(process.stdout)
195195

196196
// Redirect stdout
197-
process.stdout.write = ((chunk: any) => {
198-
output += chunk
197+
process.stdout.write = (chunk: Uint8Array | string): boolean => {
198+
output += chunk.toString()
199199
return true
200-
}) as any
200+
}
201201

202202
try {
203203
const libraries = ['Modelica 4.0.0', 'NeuralNetwork 2.1.0']

__tests__/tsconfig.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../tsconfig.test.json"
3+
}

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ inputs:
3030
default: false
3131

3232
runs:
33-
using: 'node20'
33+
using: 'node24'
3434
main: 'dist/index.js'
3535

3636
branding:

0 commit comments

Comments
 (0)