Skip to content

Commit b353dc1

Browse files
committed
Update deps
1 parent 410faae commit b353dc1

12 files changed

+307
-509
lines changed

.eslintrc.json

-81
This file was deleted.

.github/workflows/build.yml

+6-6
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Install Node.js
2626
uses: actions/setup-node@v4
2727
with:
28-
node-version: 18.16.0
28+
node-version: 20.14.0
2929
cache: 'npm'
3030

3131
- name: Get Package Version
@@ -34,7 +34,7 @@ jobs:
3434

3535
- name: Create Draft Release
3636
id: create_release
37-
uses: softprops/action-gh-release@v1
37+
uses: softprops/action-gh-release@v2
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
with:
@@ -47,7 +47,7 @@ jobs:
4747
name: Build
4848
strategy:
4949
matrix:
50-
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
50+
os: [ubuntu-22.04, windows-2022, macos-12, macos-14, [self-hosted, linux, ARM64]]
5151

5252
runs-on: ${{ matrix.os }}
5353

@@ -61,14 +61,14 @@ jobs:
6161
- name: Install Node.js
6262
uses: actions/setup-node@v4
6363
with:
64-
node-version: 18.16.0
64+
node-version: 20.14.0
6565
cache: 'npm'
6666

6767
- name: Install Modules
6868
run: npm ci
6969

7070
- name: Fix Python
71-
if: matrix.os == 'macos-11'
71+
if: matrix.os == 'macos-12' || matrix.os == 'macos-14'
7272
run: pip install setuptools
7373

7474
- name: Build Current Binary
@@ -83,7 +83,7 @@ jobs:
8383
run: node -e "require('addon-tools-raub').actionPack()" >> $GITHUB_OUTPUT
8484

8585
- name: Store Binaries
86-
uses: softprops/action-gh-release@v1
86+
uses: softprops/action-gh-release@v2
8787
env:
8888
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8989
with:

.github/workflows/cpplint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
eslint:
1616
name: Cpplint
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
1818

1919
steps:
2020

@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Node.js
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: 18.16.0
29+
node-version: 20.14.0
3030
cache: 'npm'
3131

3232
- name: Install Modules

.github/workflows/eslint.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ on:
1414
jobs:
1515
eslint:
1616
name: ESLint
17-
runs-on: ubuntu-20.04
17+
runs-on: ubuntu-22.04
1818

1919
steps:
2020

@@ -26,7 +26,7 @@ jobs:
2626
- name: Install Node.js
2727
uses: actions/setup-node@v4
2828
with:
29-
node-version: 18.16.0
29+
node-version: 20.14.0
3030
cache: 'npm'
3131

3232
- name: Install Modules

.github/workflows/publish.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- name: Install Node.js
2222
uses: actions/setup-node@v4
2323
with:
24-
node-version: 18.16.0
24+
node-version: 20.14.0
2525
cache: 'npm'
2626

2727
- name: Get Package Version
@@ -37,7 +37,7 @@ jobs:
3737

3838
- name: Create Release
3939
id: create_release
40-
uses: softprops/action-gh-release@v1
40+
uses: softprops/action-gh-release@v2
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
with:

.github/workflows/test.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
name: Unit Tests
1717
strategy:
1818
matrix:
19-
os: [ubuntu-20.04, windows-2022, macos-11, [self-hosted, linux, ARM64]]
19+
os: [ubuntu-22.04, windows-2022, macos-12, macos-14, [self-hosted, linux, ARM64]]
2020

2121
runs-on: ${{ matrix.os }}
2222

@@ -30,23 +30,23 @@ jobs:
3030
- name: Install Node.js
3131
uses: actions/setup-node@v4
3232
with:
33-
node-version: 18.16.0
33+
node-version: 20.14.0
3434
cache: 'npm'
3535

3636
- name: Install Modules
3737
run: npm ci
3838

3939
- name: Fix Python
40-
if: matrix.os == 'macos-11'
40+
if: matrix.os == 'macos-12' || matrix.os == 'macos-14'
4141
run: pip install setuptools
4242

4343
- name: Build Current Binary
4444
run: npm run build
4545

4646
- name: Run Unit Tests - Linux
47-
if: matrix.os == 'ubuntu-20.04'
47+
if: matrix.os == 'ubuntu-22.04'
4848
run: xvfb-run --auto-servernum npm run test-ci
4949

5050
- name: Run Unit Tests
51-
if: matrix.os != 'windows-2022' && matrix.os != 'ubuntu-20.04'
51+
if: matrix.os != 'windows-2022' && matrix.os != 'ubuntu-22.04'
5252
run: npm run test-ci

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2023 Luis Blanco
3+
Copyright (c) 2024 Luis Blanco
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ step during the `npm i` command.
1919

2020
![Example](examples/screenshot.jpg)
2121

22-
* **GLFW** version **3.3.8** backend.
22+
* **GLFW** version **3.4.0** backend.
2323
* Exposes low-level **GLFW** interface.
2424
* Multiple windows for a single **Node.js** process.
2525
* Able to switch to fullscreen and back.

eslint.config.js

+97
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
'use strict';
2+
3+
const js = require('@eslint/js');
4+
5+
6+
module.exports = [
7+
js.configs.recommended,
8+
{
9+
languageOptions: {
10+
'parserOptions': {
11+
'ecmaVersion': 2022,
12+
sourceType: 'commonjs'
13+
},
14+
globals: {
15+
global: 'readonly',
16+
require: 'readonly',
17+
Buffer: 'readonly',
18+
module: 'readonly',
19+
console: 'readonly',
20+
__dirname: 'readonly',
21+
process: 'readonly',
22+
setTimeout: 'readonly',
23+
setImmediate: 'readonly',
24+
clearImmediate: 'readonly',
25+
},
26+
},
27+
'rules': {
28+
'arrow-parens': ['error', 'always'],
29+
'no-trailing-spaces': [
30+
'error',
31+
{
32+
'skipBlankLines': true
33+
}
34+
],
35+
'indent': [
36+
'error',
37+
'tab',
38+
{
39+
'SwitchCase': 1
40+
}
41+
],
42+
'operator-linebreak': [
43+
'error',
44+
'after',
45+
{
46+
'overrides': {
47+
'?': 'before',
48+
':': 'before'
49+
}
50+
}
51+
],
52+
'max-len': ['error', 110],
53+
'quotes': [
54+
'error',
55+
'single'
56+
],
57+
'semi': [
58+
'error',
59+
'always'
60+
],
61+
'no-multiple-empty-lines': ['error', { 'max': 3, 'maxEOF': 1, 'maxBOF': 1 }],
62+
'keyword-spacing': ['error', { 'before': true, 'after': true }],
63+
'space-before-blocks': ['error'],
64+
'space-before-function-paren': [
65+
'error', {'anonymous': 'always', 'named': 'never', 'asyncArrow': 'always'}
66+
],
67+
'camelcase': ['error'],
68+
'no-tabs': [0],
69+
'no-unused-vars': [
70+
'error',
71+
{
72+
'argsIgnorePattern': '^_',
73+
'varsIgnorePattern': '^_',
74+
'caughtErrorsIgnorePattern': '^_'
75+
}
76+
],
77+
'global-require': [0],
78+
'no-underscore-dangle': [0],
79+
'no-plusplus': [0],
80+
'no-shadow': [0],
81+
'node/no-unpublished-require': [0],
82+
'no-process-exit': [0],
83+
'linebreak-style': [0],
84+
'node/no-missing-require': [0],
85+
'no-console': [0],
86+
'node/no-unsupported-features/es-builtins': 0,
87+
'node/no-unsupported-features/node-builtins': 0,
88+
'func-names': [
89+
'error',
90+
'never',
91+
{
92+
'generators': 'never'
93+
}
94+
]
95+
}
96+
},
97+
];

install.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ const { install } = require('addon-tools-raub');
44

55

66
const prefix = 'https://github.com/node-3d/glfw-raub/releases/download';
7-
const tag = '5.4.0';
7+
const tag = '5.5.0';
88

99
install(`${prefix}/${tag}`);

0 commit comments

Comments
 (0)