Merge pull request #1225 from bbassie/chore/drop-maintenance-node

Test only the oldest and latest supported Node.js in CI
This commit is contained in:
Cooldude2606 authored and GitHub committed 2026-11-18 11:11:16 +00:00
commit 35f9609865
5 files changed
+30 -13

No files matched your search

+2 -3
View File
@@ -1155,9 +1155,8 @@ export class FactorioServer extends events.EventEmitter<FactorioServerEvents> {
}
const newWhitelist = new Set(newWhitelistJson);
// Set.difference added in node v22 and so we can not use this due to v20 support
const added = newWhitelistJson.filter(e => !this._whitelist.has(e));
const removed = [...this._whitelist.values()].filter(e => !newWhitelist.has(e));
const added = [...newWhitelist.difference(this._whitelist)];
const removed = [...this._whitelist.difference(newWhitelist)];
this._whitelist = newWhitelist;
this.emit("whitelist-change", added, removed);
+2
View File
@@ -4,5 +4,7 @@
"exclude": ["src/**/*.browser.ts"],
"compilerOptions": {
"allowJs": true,
// SubscriptionFilters.union clashes with the native Set.union
"lib": ["es2024"],
},
}