Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed config to be yaml instead of json Changed config format for simpler configuration Changed config format for multi-plugin services running concurrently with different names for monilith deployments Multi-log handler functionality added Logs can filter between different log plugins - allowing for log/plugin direction logging/stats - eg: logs to graylog but stats to grafana Added multi-events ability as well - you can route specific plugins/events over specific event plugins Starting migration away from sec.config.ts definitions for config of plugins More type-safety built into all elements callable methods are now a type safe object on the service - and a function to call them that is type linked events are now in the events object on the BSB service class for a cleaner plugin. init and run can be sync/async initial setup of a BSB plugin invoked abstract classes for more type-safety Split logging/events/plugins/services from SB into extendable classes for unique cases where the standard classes do not work the way you need them too - so you can extend and change what is needed without hacking around the problem Initial setup speed from from +1s to ~40ms Included cleanups during the setup to optimize memory usage config plugins are simplified even more for less data transfer from the config plugin to other services/ or the BSB itself Plugin search algorithim now uses defined info in config instead of trying to search for plugins - initial setup will require PDK for easier configuration prepped for zod - config validation prepped for future expansion with interoperability between languages with zod for input and output data from events. client setup is minified as well for simpler use clients get their own logging defition so you can identify what is creating logs PI data in logs are removed since it is more complex to handle in client code - so rather just control the data coming into logs better logging is now sync - but pushed to an events bus which then pushes to the logging plugins config plugin is disposed after use for memory and safety Plugin constructors now just have a single object passed in just to make it easier to setup/create a plugin Added more comments/ts info to functions to make use easier Simplified the setup of plugins for logging/events/config/services and moved them to their own classes Overall big cleanup and optimize as well as additional features for more flexibility in deployments
- Loading branch information