chore: update our required node version (#2204)

* feat: fix broken queue bench

* chore: update our required node version
This commit is contained in:
Daniel Salazar
2025-12-19 19:24:05 -08:00
committed by GitHub
parent 2c60faf516
commit f360cf17e6
8 changed files with 11 additions and 15 deletions
+1 -1
View File
@@ -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",
+1 -1
View File
@@ -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).
+1 -5
View File
@@ -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,
};