mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 23:33:12 +09:00
Test only the oldest and latest supported Node.js in CI
The middle version adds two jobs without catching anything the top and bottom of the range would miss. The host whitelist watcher now uses Set.difference, which every supported Node.js has. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
5cf14eb15b
commit
bb6ce06e5a
5 files changed
+30
-13
No files matched your search
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user