Hornwitser
dedb42447c
Port helpers.js to TypeScript
2023-08-03 15:03:52 +02:00
Hornwitser
74e9ed8257
Replace jsdoc with typedoc
...
Use TypeDoc instead of JSDoc because it has better support for
documenting TypeScript APIs.
2023-08-03 15:02:31 +02:00
Hornwitser
3a321b39e1
Remove incorrect validation of forwared messages
...
Messages are forwareded when received from another link, this means it's
too late to throw an error that bubbles up to the code trying to send
the incorrect message thus defeating the purpose of the validation.
2023-08-03 15:01:34 +02:00
Hornwitser
90798205e0
Set up TypeScript for lib
...
Add a TypeScript build suitable for incremental migration to TypeScript
to the lib package.
2023-08-03 15:01:34 +02:00
Hornwitser
5eb91be6fb
Pre-compile Message validator
...
Use a script to pre-compile the validator for the Message class to
reduce the loading time for ctl by about 40ms.
2023-07-30 01:54:59 +02:00
Hornwitser
ae542e9501
Lazy compile schema validators for ctl
...
Speed up the startup time for ctl by delaying schemas compilation until
the validator is used. Saves approximately 120ms on startup time.
2023-07-28 21:36:43 +02:00
Hornwitser
a5c7eb3a27
Move user token signing to UserManager
...
Only the controller has access to the secret needed to sign user tokens
so it makes sense for the user signing code to live in the controller.
This saves about 20ms on the time ctl takes to start up due to lib no
longer needing to import jsonwebtoken.
2023-07-28 16:03:29 +02:00
Hornwitser
6af25e085c
Move Factorio server implementation to host
...
Move Factorio related code in lib that's only used by the host into the
host package.
2023-07-28 16:03:29 +02:00
Hornwitser
bc574ee1cb
Reorganise packages/lib
...
Move the majority of the script files into a src directory to be
consistent with the organisation of the other packages.
2023-07-28 16:03:29 +02:00