seneca
seneca copied to clipboard
A microservices toolkit for Node.js.
```https://moleculer.services/zh/docs/0.14/benchmark.html``` Is it true? Can Seneca continue to improve? I use Seneca all the time.
Using the basic example of "seneca-mongo-store" Here is the error: `{"kind":"fatal","level":600,"plugin":"seneca","tag":"3.26.2","id":"h5l8f8q9hasu/1652071578642/2300/3.26.2/-","code":"not_found","notice":"seneca: use-plugin: Could not load plugin mongo-store; searched the following folder and file paths: [ /Users/rohitmahto/Development/sceneca/node_modules/seneca: undefined, undefined, undefined, ]...
When calling `seneca.close(() => console.log('hi!'))`, the application doesn't crash (functions executes?!), but the callback function doesn't get executed. Seneca version 3.26.0
Solves the case where the timeout is not sufficient to catch the issue (for example in tests). User code may have a missing reply etc, this will also alert to...
Ave! I believe I have discovered a bug. When I create a plugin, use it and pass another Seneca instance as an option to the plugin, the code mysteriously crashes...
The page on http://senecajs.org/api/ says the old doc is still available but the link is broken.
allow list for inbound directives https://github.com/senecajs/seneca/blob/0c8128dc3beefa4021b9e0feb8ebb29a02bfa08f/lib/transport.js#L87 ```javascript} // TODO: allow list for inbound directives function internalize_msg(seneca, msg) { if (!msg) return msg = handle_entity(seneca, msg) const meta = msg.meta$ ||...
handle arrays gracefully - e.g {arr$:[]} as msg https://github.com/senecajs/seneca/blob/0c8128dc3beefa4021b9e0feb8ebb29a02bfa08f/lib/transport.js#L68 ```javascript} // TODO: handle arrays gracefully - e.g {arr$:[]} as msg function externalize_reply(seneca, err, out, meta) { let rep = err...
useful to avoid log noise in tests
avoids needs to use '..' in tests