Cooldude2606
77fea7e295
Fix unrelibable datastore tests ( #662 )
...
* Use incrementDateMs
* Change wait time to 15ms
* Fix loop condition
2024-09-14 17:20:52 +01:00
Cooldude2606
dfc406d025
Host shutdown on duplicate connection ( #647 )
...
* Update no-shadow lint rule for enums
https://typescript-eslint.io/rules/no-shadow/
* Add websocket close codes enum
* Pass close code and reason to event handlers
* Shutdown host on duplicate connection
* Add connection refusal
* Fix lib/link tests
* Response to comments
* Additional Tests
* Removed missed codes in close event
2024-09-14 16:39:59 +01:00
Cooldude2606
8054bd66d2
Fix instance subscriptions ( #655 )
...
Remove some assumptions that prevent subscription listeners from working on an
instance. This means allowing the host to forward the event from the instance
to the controller; correctly storing subscription listeners by address rather
than by connection; and a bunch of network and event stuff to correctly clean up
a listener.
Remove the assumption that all subscriptions events contains the updates
property. This meant fixing inconsistent types; always checking if the property
existed; fixing lots of the tests that made incorrect assumptions.
Minior fixes:
- Fix double firing of listener callbacks on first connection.
- Fix synced being set to true too early on first connection.
- Fix edge case interaction between last response and last snapshot for values
with updated set as 0.
Also change the the output made during the start of tests to indicate something
is happening when start up is slow and allow for silent testing to reduce the
amount of text output to the console.
2024-09-03 12:31:32 +02:00
Cooldude2606
7db5821967
Update change log and publish steps ( #646 )
2024-09-02 23:06:40 +02:00
Cooldude2606
5215ee8eef
Include mono repo plugins in build
2024-09-02 22:01:59 +01:00
Cooldude2606
660af756e6
Minor Corrections
2024-08-16 07:00:08 +02:00
Cooldude2606
08c522429b
Implemented configDir for outDir
2024-08-16 07:00:08 +02:00
Cooldude2606
02df956f6c
Fix breaking change introduced in v5.5
...
https://devblogs.microsoft.com/typescript/announcing-typescript-5-5/#simplified-reference-directive-declaration-emit
2024-08-16 07:00:08 +02:00
Cooldude2606
263bb16619
Fix missing codecov upload token
2024-08-16 06:58:14 +02:00
Cooldude2606
1f47f6dfc9
Update all pages to use PageHeader
2024-06-14 19:20:07 +02:00
Cooldude2606
498638c0c9
Improve config, message, and module templates ( #641 )
...
* Improve config, message, and module templates
* Update global handler in template module
* Add comments to empty instance template
2024-06-08 13:53:23 +01:00
Cooldude2606
51c450727d
Add clean script to remove dist and other artifacts ( #640 )
...
* Add clean script
* Switch to using yargs
2024-06-08 13:53:00 +01:00
Cooldude2606
dbc79779ea
Fix sending log messages across invalid link ( #639 )
2024-06-08 13:52:29 +01:00
Cooldude2606
2c2521a688
Add error tests for sendEvent and sendRequest ( #638 )
2024-06-07 15:46:49 +01:00
Cooldude2606
70e95a56b9
Fix test starting alt host under windows
2024-06-07 07:28:04 -06:00
Cooldude2606
fa0b0a6c21
Bump ci action versions ( #637 )
2024-05-26 19:28:27 +01:00
Cooldude2606
8b823a571d
Coverage 100%
2024-05-25 18:17:50 +01:00
Cooldude2606
e90451ead8
Fix broken test
2024-05-25 01:20:58 +01:00
Cooldude2606
222a8abdb8
Update change log
2024-05-25 00:32:14 +01:00
Cooldude2606
eb658f86c0
Add unit tests
2024-05-24 22:10:04 +01:00
Cooldude2606
d696b8b52c
Change abstract class name
2024-05-24 18:29:08 +01:00
Cooldude2606
94a07b5af4
Give restore abilty to memory provider
2024-05-22 17:42:25 +01:00
Cooldude2606
af50cfd47a
Consistency changes
2024-05-22 17:19:05 +01:00
Cooldude2606
609db31027
Add hosts, instances, systems
2024-05-22 16:39:22 +01:00
Cooldude2606
509fab358a
Add saves datastore
2024-05-19 02:28:36 +01:00
Cooldude2606
6b11fb810a
Change mod packs to datastore
2024-05-19 01:41:28 +01:00
Cooldude2606
80b4a96e85
Add datastore to lib
2024-05-19 01:24:30 +01:00
Cooldude2606
f4679ef6d1
Merge pull request #625 from Cooldude2606/fix/loopback-routing
...
Fix loopback routing message and add tests
2024-05-18 23:04:18 +01:00
Cooldude2606
ebc0298115
Update changelog
2024-05-18 18:48:08 +01:00
Cooldude2606
d1fa5e67d4
Improve error throwing for sending events
2024-05-18 18:42:53 +01:00
Cooldude2606
201209efb3
Fix undefined stack on some IPC errors ( #624 )
2024-05-18 14:56:37 +01:00
Cooldude2606
0c9e91b953
Fix error message on instance loopback attempt
2024-05-18 03:40:18 +01:00
Cooldude2606
fb4a5e40f3
Add tests for loopbacks
2024-05-18 03:33:55 +01:00
Cooldude2606
b9e9a754b8
Change all workspace versions to workspace:* ( #621 )
2024-05-08 20:38:05 +01:00
Cooldude2606
54f56d0ecd
Merge pull request #619 from Danielv123/prompt-for-http-port
...
Installer promt for http port
2024-05-05 20:39:25 +01:00
Cooldude2606
c37fe0f438
Merge pull request #613 from Danielv123/Fix-patch-with-missing-file
...
Correctly handle module files missing from a previously patched save
2024-04-27 22:12:35 +01:00
Cooldude2606
a8ce8e7cc0
Merge pull request #570 from Cooldude2606/feature/plugin-template
...
Add command to create a new plugin from a template
2024-03-08 23:05:40 +00:00
Cooldude2606
50687515fa
Merge branch 'feature/plugin-template' of https://github.com/Cooldude2606/clusterio into feature/plugin-template
2024-03-08 22:00:55 +00:00
Cooldude2606
6f81216e7c
Addressed remaining review comments
2024-03-08 22:00:38 +00:00
Cooldude2606 and Hornwitser
3423e0a30c
Apply suggestions from code review
...
- Copy paste errors.
- Incorrect capitalisation.
- Incorrect exports.
- Missed find and replace.
Co-authored-by: Hornwitser <github@hornwitser.no >
2024-03-08 20:08:16 +00:00
Cooldude2606
8fbdb5dfab
Merge branch 'master' into feature/plugin-template
2024-03-06 20:12:08 +00:00
Cooldude2606
5dcc66034b
Fix possible undefined title error ( #605 )
2024-03-06 18:11:45 +01:00
Cooldude2606
a66b1af454
Extra touch ups
2024-03-05 00:56:01 +00:00
Cooldude2606
3adfcf0a29
Updated web content permission
2024-02-28 16:36:35 +00:00
Cooldude2606 and Hornwitser
9a4241e4cd
Update flags for output file
...
Co-authored-by: Hornwitser <github@hornwitser.no >
2024-02-28 16:26:53 +00:00
Cooldude2606
8dcb2197d6
Use try catch for output file existing
2024-02-28 15:25:08 +00:00
Cooldude2606
a168f7db5e
Add call to action for config desc
2024-02-27 23:57:13 +00:00
Cooldude2606
283aba70df
Update descriptions
2024-02-27 23:53:20 +00:00
Cooldude2606
62abfa903b
Change to new preprocessor style
2024-02-27 23:07:38 +00:00
Cooldude2606
ec19d5456e
Merge branch 'master' into feature/plugin-template
2024-02-27 13:07:08 +00:00
Cooldude2606
a70490648f
Fix total db size calculation for inv sync ( #598 )
2024-02-23 16:53:15 +00:00
Cooldude2606
46309ce5b8
Lint Fixes
2024-02-18 17:58:16 +00:00
Cooldude2606
f392b258f7
Add subscriptions and luacheck
2024-02-17 03:11:54 +00:00
Cooldude2606
1afee2ede5
Merge branch 'master' into feature/http-logging
2024-02-14 22:46:19 +00:00
Cooldude2606
0b2fcdcec4
Merged redundant middleware
2024-02-14 22:37:48 +00:00
Cooldude2606
e5a4d51c86
Merge pull request #590 from Hornwitser/bugfixes-3
...
Bugfixes 3
2024-02-11 23:01:43 +00:00
Cooldude2606
2020024b68
Merge pull request #577 from Hornwitser/small-things-15
...
Small things 15
2024-01-24 03:18:07 +00:00
Cooldude2606
a1109b9354
Merge pull request #576 from Hornwitser/fix-plugin-broadcast
...
Fix plugin broadcasts not being filtered
2024-01-24 02:42:30 +00:00
Cooldude2606
58231cc02c
Add IPC to templates and handle helper function server
2024-01-24 00:40:22 +00:00
Cooldude2606
ab88955111
Merge pull request #574 from Hornwitser/fix-auto-start
...
Fix instance auto start
Fix host hang on stopping during create save
2024-01-23 18:41:44 +00:00
Cooldude2606
2916dcc58c
Fix hang from rl.close on windows
2024-01-23 02:47:10 +00:00
Cooldude2606
b9a2d6b7bd
Add current folder as default for plugin name
2024-01-23 01:00:04 +00:00
Cooldude2606
224a451bbd
Fix lint for jsx template
2024-01-23 00:34:46 +00:00
Cooldude2606
b222f6dcb1
Update plugin creation docs
2024-01-23 00:24:54 +00:00
Cooldude2606
9b0293501f
Add js templates and config templates
2024-01-23 00:14:08 +00:00
Cooldude2606
2733f2e3c5
Merge pull request #571 from Hornwitser/link-bugfixes
...
Link bugfixes
2024-01-22 21:57:50 +00:00
Cooldude2606
de00a043c3
Update lint rules for templates
2024-01-22 19:09:48 +00:00
Cooldude2606
396e2c59c7
Revert accidental edit to vscode settings
2024-01-22 18:55:34 +00:00
Cooldude2606
c3b2c846b7
Add package.json template
2024-01-22 18:42:37 +00:00
Cooldude2606
be8bba8ff8
Complete template files
2024-01-22 05:01:09 +00:00
Cooldude2606
c81d2b61a6
Add template copying
2024-01-22 02:47:34 +00:00
Cooldude2606
534dc14221
Add create command mode/args for plugin templates
2024-01-21 23:36:27 +00:00
Cooldude2606
fcf174376d
Clean up the request correctly
2024-01-18 18:50:31 +00:00
Cooldude2606
0e68596fbd
Remove insecure and bloated module
2024-01-18 18:50:30 +00:00
Cooldude2606
9bcbc1e7f3
Add http logging for express
2024-01-18 18:50:29 +00:00
Cooldude2606 and Hornwitser
54cb483a31
Convert overloads to generic function
...
Co-authored-by: Hornwitser <github@hornwitser.no >
2023-10-13 11:21:55 +01:00
Cooldude2606
23ba5d612a
Fixed failing tests for unsubscribe
2023-10-06 18:56:27 +01:00
Cooldude2606
b15b1a6007
Fixed bugs found during pre-review
2023-10-06 18:30:15 +01:00
Cooldude2606
11d820b085
Increase patch coverage
2023-09-07 22:31:09 +01:00
Cooldude2606
4986a06cdf
Fixed web_ui websocket type error
2023-09-07 21:58:10 +01:00
Cooldude2606
621f850804
Some cleanup
2023-09-07 21:36:27 +01:00
Cooldude2606
2afddafe4d
All tests passing
2023-09-07 20:54:21 +01:00
Cooldude2606
2c9050824e
Test suite mostly ready
2023-09-07 03:36:38 +01:00
Cooldude2606
cccb27c733
Add test skeleton
2023-09-06 21:16:31 +01:00
Cooldude2606
71166af75b
Fixed TestControl subscription requests
2023-09-06 01:09:02 +01:00
Cooldude2606
da25196830
Refactor to use subsribers
2023-09-05 01:46:45 +01:00
Cooldude2606
17943c48c3
A few renames and comments
2023-09-04 22:26:18 +01:00
Cooldude2606
62e69e3dbf
Add SubscriptionController and EventSubscriber
2023-09-04 21:46:28 +01:00
Cooldude2606
a4893751e9
Add module export detection ( #505 )
...
Allow modules to include a module_exports.lua file in their root which
will cause the file save/modules/module_name.lua to be generated
pointing to the exports file.
2023-08-27 17:47:37 +02:00