mirror of
https://github.com/HeyPuter/puter.git
synced 2025-12-31 10:10:17 -06:00
chore: update our required node version (#2204)
* feat: fix broken queue bench * chore: update our required node version
This commit is contained in:
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
@@ -12,7 +12,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [20.x, 22.x]
|
||||
node-version: [24.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -39,7 +39,7 @@ jobs:
|
||||
retention-days: 5
|
||||
|
||||
- name: Publish backend coverage summary
|
||||
if: ${{ always() && matrix.node-version == '22.x' }}
|
||||
if: ${{ always() && matrix.node-version == '24.x' }}
|
||||
uses: actions/github-script@v7
|
||||
with:
|
||||
script: |
|
||||
@@ -86,7 +86,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [22.x]
|
||||
node-version: [24.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
@@ -115,7 +115,7 @@ jobs:
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [22.x]
|
||||
node-version: [24.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
@@ -114,7 +114,7 @@ Puter is available as a hosted service at [**puter.com**](https://puter.com).
|
||||
- **Operating Systems:** Linux, macOS, Windows
|
||||
- **RAM:** 2GB minimum (4GB recommended)
|
||||
- **Disk Space:** 1GB free space
|
||||
- **Node.js:** Version 20.19.5+ (Version 23+ recommended)
|
||||
- **Node.js:** Version 24+
|
||||
- **npm:** Latest stable version
|
||||
|
||||
<br/>
|
||||
|
||||
@@ -112,7 +112,7 @@ Puter [**puter.com**](https://puter.com) 'ਤੇ ਇੱਕ ਹੋਸਟ ਕੀ
|
||||
- **Operating Systems:** Linux, macOS, Windows
|
||||
- **RAM:** ਘੱਟੋ-ਘੱਟ 2GB (4GB ਸਿਫ਼ਾਰਸ਼ੀ)
|
||||
- **Disk Space:** 1GB ਖਾਲੀ ਜਗ੍ਹਾ
|
||||
- **Node.js:** Version 20.19.5+ (23+ ਸਿਫ਼ਾਰਸ਼ੀ)
|
||||
- **Node.js:** Version 24+
|
||||
- **npm:** ਨਵੀਨਤਮ ਸਥਿਰ ਵਰਜਨ
|
||||
|
||||
<br/>
|
||||
|
||||
@@ -97,6 +97,6 @@
|
||||
"sharp-ico": "^0.1.5"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=20.19.5"
|
||||
"node": ">=24.0.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@
|
||||
"yargs": "^17.7.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/node": "^20.5.3",
|
||||
"@types/node": "^24.0.0",
|
||||
"chai": "^4.3.7",
|
||||
"jsdom": "^27.2.0",
|
||||
"mocha": "^10.2.0",
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
*/
|
||||
|
||||
import { bench, describe } from 'vitest';
|
||||
const { CircularQueue } = require('./CircularQueue');
|
||||
import { CircularQueue } from './CircularQueue';
|
||||
|
||||
/**
|
||||
* Naive array-based implementation for comparison (no Map optimization).
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
* Items expire when they are evicted from the queue (when the queue is full
|
||||
* and a new item is pushed).
|
||||
*/
|
||||
class CircularQueue {
|
||||
export class CircularQueue {
|
||||
/**
|
||||
* Creates a new CircularQueue instance with the specified size.
|
||||
*
|
||||
@@ -87,7 +87,3 @@ class CircularQueue {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = {
|
||||
CircularQueue,
|
||||
};
|
||||
|
||||
@@ -30,7 +30,7 @@ def get_admin_password() -> str:
|
||||
"""
|
||||
Get the admin password from the backend server, throw an error if not found.
|
||||
"""
|
||||
for attempt in range(60): # wait up to 60 seconds (1 minute)
|
||||
for attempt in range(90): # wait up to 60 seconds (1 minute)
|
||||
time.sleep(1)
|
||||
|
||||
# read the log file
|
||||
|
||||
Reference in New Issue
Block a user