Skip to content

Commit 26a223e

Browse files
committed
feat(cicd) target node 22 lts
1 parent b77e161 commit 26a223e

File tree

7 files changed

+12
-6
lines changed

7 files changed

+12
-6
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2020
with:
21-
node-version: "22.8"
21+
node-version: "22.19"
2222
cache: "npm"
2323

2424
- name: Install Bun

.github/workflows/copilot-setup-steps.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
- name: Set up Node.js
2323
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2424
with:
25-
node-version: "22.8"
25+
node-version: "22.19"
2626
cache: "npm"
2727

2828
- name: Install Bun

.github/workflows/deploy-pages.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- name: Setup Node.js
2525
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2626
with:
27-
node-version: "22.8"
27+
node-version: "22.19"
2828
cache: 'npm'
2929

3030
- name: Install Bun

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
- name: Setup Node.js
1919
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
2020
with:
21-
node-version: "22.8"
21+
node-version: "22.19"
2222
cache: "npm"
2323

2424
- name: Install Bun

package-lock.json

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@
2525
},
2626
"type": "module",
2727
"main": "server.js",
28+
"engines": {
29+
"node": ">=22.19.0 <23"
30+
},
2831
"scripts": {
2932
"bake": "cat banner; vite build --emptyOutDir && cp -r public/fonts dist/ui",
3033
"bake:net": "cat banner; vite build --emptyOutDir && cp -r public/fonts dist/ui && cp public/js/worker.js dist/ui",

public/js/freehand_tools.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ const createShadingPanel = () => {
660660
halfBlockMode = true;
661661
};
662662

663-
const waitForFontChange = async(timeout = 5000) => {
663+
const waitForFontChange = async(timeout = 10000) => {
664664
return new Promise((resolve, reject) => {
665665
const handler = () => {
666666
document.removeEventListener('onFontChange', handler);
@@ -679,7 +679,7 @@ const createShadingPanel = () => {
679679
const fontChange = async() => {
680680
if (State.textArtCanvas.getCurrentFontName() === currentFont) {
681681
try {
682-
await waitForFontChange(5000); // Adding a 5-second timeout
682+
await waitForFontChange(10000); // Adding a 10-second timeout
683683
await new Promise(resolve => setTimeout(resolve, 10));
684684
} catch(error) {
685685
console.error('Font loading error: ', error);

0 commit comments

Comments
 (0)