Luciole
f2736bae40
tsconfig update; fix function signature; test: add .default
2023-08-14 14:34:56 +02:00
Luciole
8256f06a6a
update QueryLogFilter: make maxLevel optional
2023-08-14 11:29:24 +02:00
Luciole
3036507baa
clarify null / undefined / 0
...
remove useless type import and signature
export directly
cleanup
2023-08-14 10:54:30 +02:00
Luciole
6104843858
transition of controller package to typescript
2023-08-13 18:12:12 +02:00
Luciole
e011625a2d
expose and/or modify signatures from lib package
2023-08-13 16:53:03 +02:00
Hornwitser
5ec7c9f99c
Fix bad typings in lib
...
These were missed or broken in the in the inital porting of lib to
TypeScript.
2023-08-12 19:59:44 +02:00
Hornwitser
a66e930997
Use strict type checking
2023-08-12 02:31:17 +02:00
Hornwitser
679c00527f
Port remaining lib/data modules to TypeScript
2023-08-11 01:13:38 +02:00
Hornwitser
2a52a82fb7
Port message types to TypeScript
2023-08-11 00:24:00 +02:00
Hornwitser
15ea9a91dc
Port basic lib sub-modules to TypeScript
2023-08-06 18:38:20 +02:00
Hornwitser
e0c197b9bc
Port basic lib modules to TypeScript
2023-08-06 01:03:13 +02:00
Hornwitser
2988cd962c
Port stream.ts to TypeScript
2023-08-03 15:51:58 +02:00
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