Skip to content

Commit d672b4e

Browse files
fix #43 Update 2025 (#44)
* Update depedencies and CI * update packages * modernize code * modernize tests * manage ip v6 too * factorize code * docs: node version recommended * docs: update changelog
1 parent fcf36d7 commit d672b4e

File tree

12 files changed

+2450
-2623
lines changed

12 files changed

+2450
-2623
lines changed
Lines changed: 23 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,38 @@
1-
# For most projects, this workflow file will not need changing; you simply need
2-
# to commit it to your repository.
3-
#
4-
# You may wish to alter this file to override the set of languages analyzed,
5-
# or to provide custom queries or build logic.
6-
#
7-
# ******** NOTE ********
8-
# We have attempted to detect the languages in your repository. Please check
9-
# the `language` matrix defined below to confirm you have the correct set of
10-
# supported CodeQL languages.
11-
#
12-
name: "CodeQL"
1+
name: "CodeQL analysis (JavaScript+Python)"
132

143
on:
154
push:
16-
branches: [ master ]
5+
branches: [master]
176
pull_request:
187
# The branches below must be a subset of the branches above
19-
branches: [ master ]
20-
schedule:
21-
- cron: '44 3 * * 6'
8+
branches: [master]
9+
workflow_dispatch:
2210

2311
jobs:
2412
analyze:
2513
name: Analyze
26-
runs-on: ubuntu-latest
14+
runs-on: ubuntu-22.04
15+
permissions:
16+
actions: read
17+
contents: read
18+
security-events: write
2719

2820
strategy:
2921
fail-fast: false
3022
matrix:
31-
language: [ 'javascript' ]
32-
# CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ]
33-
# Learn more:
34-
# https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed
23+
language: ["javascript", "python"]
3524

3625
steps:
37-
- name: Checkout repository
38-
uses: actions/checkout@v2
39-
40-
# Initializes the CodeQL tools for scanning.
41-
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v1
43-
with:
44-
languages: ${{ matrix.language }}
45-
# If you wish to specify custom queries, you can do so here or in a config file.
46-
# By default, queries listed here will override any specified in a config file.
47-
# Prefix the list here with "+" to use these queries and those in the config file.
48-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
49-
50-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51-
# If this step fails, then you should remove it and run the build manually (see below)
52-
- name: Autobuild
53-
uses: github/codeql-action/autobuild@v1
54-
55-
# ℹ️ Command-line programs to run using the OS shell.
56-
# 📚 https://git.io/JvXDl
57-
58-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59-
# and modify them (or add more) to build your code if your project
60-
# uses a compiled language
61-
62-
#- run: |
63-
# make bootstrap
64-
# make release
65-
66-
- name: Perform CodeQL Analysis
67-
uses: github/codeql-action/analyze@v1
26+
- name: Checkout repository
27+
uses: actions/checkout@v5
28+
29+
# Initializes the CodeQL tools for scanning.
30+
- name: Initialize CodeQL
31+
uses: github/codeql-action/init@v3
32+
with:
33+
languages: ${{ matrix.language }}
34+
queries: security-extended,security-and-quality
35+
36+
- name: Perform CodeQL Analysis
37+
uses: github/codeql-action/analyze@v3
38+

.github/workflows/node.js.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
node-version: [22.12.0]
8+
node-version: [22.14.0]
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
- name: Use Node.js ${{ matrix.node-version }}
12-
uses: actions/setup-node@v4
12+
uses: actions/setup-node@v6
1313
with:
1414
node-version: ${{ matrix.node-version }}
1515
- run: npm run dockerInstall
@@ -19,7 +19,7 @@ jobs:
1919
- run: npm pack
2020
- run: mkdir /home/runner/work/nelson-cloud/nelson-cloud/artifacts
2121
- run: cp /home/runner/work/nelson-cloud/nelson-cloud/nelson-cloud-*.tgz /home/runner/work/nelson-cloud/nelson-cloud/artifacts
22-
- uses: actions/upload-artifact@v4
22+
- uses: actions/upload-artifact@v5
2323
with:
2424
name: nelson-cloud-github-action-artifacts
2525
path: artifacts/

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22.12.0
1+
22.14.0

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
## 1.4.5 (2025-11-22)
2+
3+
- Refreshed development and production dependencies.
4+
- Modernized the codebase with const usage, arrow functions, and centralized message routing.
5+
- Added strengthened error handling.
6+
- Upgraded GitHub Actions workflows.
7+
- Reworked unit tests.
8+
- Tested with Nelson 1.15.0.
9+
- Requires Node.js 22.14.0.
10+
111
## 1.4.4 (2024-12-14)
212

313
- Update packages dependencies

CONTRIBUTING.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ $ git commit
5454
The commit message should describe what changed and why.
5555

5656
1. The first line should:
57-
5857
- contain a short description of the change
5958
- be 50 characters or less
6059
- be entirely in lowercase with the exception of proper nouns, acronyms, and

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Nelson Cloud brings the power of Nelson numerical computation software to your w
2727

2828
Before installation, ensure you have:
2929

30-
- Node.js 22.12.0 or higher
30+
- Node.js 22.14.0 or higher
3131
- Docker installed and running
3232
- A modern web browser
3333

0 commit comments

Comments
 (0)