pokemon-showdown/server
Guangcong Luo e0f97dcf6b Replace Chat.uncache* with Utils.clearRequireCache
This replaces the old approach with a new "clear everything except a
whitelist" approach, which should overall involve much less code and
lead to fewer bugs of the "the path changed for a module and I forgot
to update the uncache paths" variety.

I considered a lot of other approaches, but they seem to have more
flaws without any advantages in exchange for them. (We moved away
from `uncacheTree` because it only tracks the first require: there's
no way to get a full list of dependents for a module, only its first
dependent.)
2020-06-12 22:02:32 -07:00
..
chat-commands Replace Chat.uncache* with Utils.clearRequireCache 2020-06-12 22:02:32 -07:00
chat-plugins Datasearch: Fix maxgen and learnset interaction (#6825) 2020-06-10 21:53:21 -07:00
static
tournaments Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
chat-formatter.ts Improve linkRegex 2020-03-08 20:16:53 -07:00
chat.ts Replace Chat.uncache* with Utils.clearRequireCache 2020-06-12 22:02:32 -07:00
config-loader.ts Setting a room rank can no longer demote globals 2020-04-17 03:32:11 -07:00
global-types.ts Refactor Sockets to ProcessManager+TypeScript (#6584) 2020-04-17 04:05:45 -07:00
global-variables.d.ts Refactor Sockets to ProcessManager+TypeScript (#6584) 2020-04-17 04:05:45 -07:00
index.ts Separate Config.ofemain and Config.ofesockets 2020-06-12 22:02:32 -07:00
ip-tools.ts Update datacenters 2020-06-08 11:59:42 -04:00
ladders-local.ts Update Streams API with pushEnd/writeEnd 2020-06-10 16:07:24 -07:00
ladders-remote.ts Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
ladders.ts Support Unown formes 2020-04-30 14:16:56 -07:00
loginserver.ts Fix memory leak in ladders-remote 2020-06-09 18:31:29 -07:00
monitor.ts Use optional chaining and linter improvements (#6422) 2020-03-06 11:44:32 -08:00
punishments.ts Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
room-battle.ts Add a library for utility functions (#6817) 2020-06-09 22:06:43 -07:00
room-game.ts Refactor auth and room.settings (#6777) 2020-06-09 08:22:25 -07:00
roomlogs.ts Update Streams API with pushEnd/writeEnd 2020-06-10 16:07:24 -07:00
rooms.ts Fix lobby autojoin on side servers 2020-06-11 17:06:16 -07:00
sockets.ts Separate Config.ofemain and Config.ofesockets 2020-06-12 22:02:32 -07:00
team-validator-async.ts Improve validator crash phrasing 2020-05-01 13:22:16 -07:00
user-groups.ts Support /forceroompromote 2020-06-10 11:23:20 -04:00
users.ts Fix bugs in Settings refactor 2020-06-09 15:40:54 -04:00
verifier.ts Improve eslintrc 2020-03-06 22:35:55 -08:00