Skip to content

Commit 392e757

Browse files
Merge pull request #259 from oneblink/AP-6676
AP-6676 # Changed runtime API hosting version to node 22
2 parents 9d2d427 + b3ff002 commit 392e757

50 files changed

Lines changed: 7025 additions & 10039 deletions

Some content is hidden

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

.editorconfig

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

.github/workflows/release.beta.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ jobs:
88
name: NPM Publish (beta)
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
12-
- uses: actions/setup-node@v4
11+
- uses: actions/checkout@v6
12+
- uses: actions/setup-node@v6
1313
with:
14-
node-version: '18'
15-
- run: npm install --global npm@8
14+
node-version: '22'
15+
- run: npm install --global npm@10
1616
- run: npm ci
17-
- uses: JS-DevTools/npm-publish@v3
17+
- uses: JS-DevTools/npm-publish@v4
1818
with:
1919
token: ${{ secrets.NPM_TOKEN }}
2020
access: 'public'

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
name: Github Release
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v6
1212
- uses: docker://antonyurchenko/git-release:v6
1313
env:
1414
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -20,13 +20,13 @@ jobs:
2020
name: NPM Publish
2121
runs-on: ubuntu-latest
2222
steps:
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-node@v4
23+
- uses: actions/checkout@v6
24+
- uses: actions/setup-node@v6
2525
with:
26-
node-version: '18'
27-
- run: npm install --global npm@8
26+
node-version: '22'
27+
- run: npm install --global npm@10
2828
- run: npm ci
29-
- uses: JS-DevTools/npm-publish@v3
29+
- uses: JS-DevTools/npm-publish@v4
3030
with:
3131
token: ${{ secrets.NPM_TOKEN }}
3232
access: 'public'

.github/workflows/test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,15 @@ jobs:
1515

1616
strategy:
1717
matrix:
18-
node: ['18', '20']
18+
node: ['22', '24']
1919
os: [macos-latest, ubuntu-latest, windows-latest]
2020

2121
steps:
22-
- uses: actions/checkout@v4
23-
- uses: actions/setup-node@v4
22+
- uses: actions/checkout@v6
23+
- uses: actions/setup-node@v6
2424
with:
2525
node-version: ${{ matrix.node }}
26+
- run: npm install -g npm@10
2627
- run: npm ci
2728
- run: npm install -g .
2829
- run: npm test

.vscode/settings.json

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

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1111

1212
- OneBlink US tenant
1313

14+
### Changed
15+
16+
- **[BREAKING]** API Hosting runtime version from Node.js 18 to [Node.js 22](https://nodejs.org/en/blog/announcements/v22-release-announce)
17+
- Require minimum [Node.js 22](https://nodejs.org/en/blog/announcements/v22-release-announce)
18+
19+
### Removed
20+
21+
- **[BREAKING]** support for Node.js 18.
22+
1423
## [3.5.9] - 2025-08-11
1524

1625
## [3.5.8] - 2025-07-10

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22

33
## Requirements
44

5-
- [Node.js](https://nodejs.org/) 18.0 or newer
6-
- NPM 8.0 or newer
5+
- [Node.js](https://nodejs.org/) 22.0 or newer
6+
- NPM 10.0 or newer
77

88
## Installation
99

docs/api/environment.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,12 @@
22

33
## Execution Environment
44

5-
- Code executes within a Linux environment with [Node.js 18](https://nodejs.org/dist/latest-v18.x/docs/api/)
5+
- Code executes within a Linux environment with [Node.js 22](https://nodejs.org/dist/latest-v22.x/docs/api/)
66

77
- If you use features not available in this version of Node.js, transpile before deployment. NPM packages using native binaries can be installed using docker:
88

99
```
10-
docker run -it --rm -v ${PWD}:/app -w /app node:18 npm install
10+
docker run -it --rm -v ${PWD}:/app -w /app node:22 npm install
1111
```
1212

1313
* The environment your code executes in is arbitrarily destroyed between requests

eslint.config.mjs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ import js from '@eslint/js'
77
import { FlatCompat } from '@eslint/eslintrc'
88
import pluginMicrosoftSdl from '@microsoft/eslint-plugin-sdl'
99

10-
const __filename = fileURLToPath(import.meta.url)
11-
const __dirname = path.dirname(__filename)
10+
const _filename = fileURLToPath(import.meta.url)
11+
const _dirname = path.dirname(_filename)
1212
const compat = new FlatCompat({
13-
baseDirectory: __dirname,
13+
baseDirectory: _dirname,
1414
recommendedConfig: js.configs.recommended,
1515
allConfig: js.configs.all,
1616
})
@@ -45,11 +45,10 @@ export default [
4545
ecmaVersion: 2020,
4646
sourceType: 'commonjs',
4747

48-
parserOptions: { project: './tsconfig.json' },
48+
parserOptions: { project: './tsconfig.eslint.json' },
4949
},
5050

5151
rules: {
52-
'no-console': 'off',
5352
'@typescript-eslint/no-explicit-any': 'warn',
5453
},
5554
},

jest.config.js

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

0 commit comments

Comments
 (0)