mirror of
https://github.com/Unleash/unleash.git
synced 2025-10-04 11:17:02 +02:00
## About the changes Initially at Unleash we started using `process.nextTick` inside constructors to delay initialization of services. Later we stared using a pattern where we instantiate services multiple times. The problem is the first pattern implies we have singleton services, while the second pattern breaks the singleton. There are reasons for both patterns, but we've decided that `process.nextTick` inside constructors is not something we want to keep as it creates side effects from creating objects. Instead this PR proposes a more explicit approach. Fixes #9775 |
||
---|---|---|
.. | ||
__snapshots__ | ||
addons | ||
db | ||
domain/project-health | ||
error | ||
features | ||
middleware | ||
openapi | ||
routes | ||
schema | ||
services | ||
types | ||
users | ||
util | ||
app.test.ts | ||
app.ts | ||
create-config.test.ts | ||
create-config.ts | ||
default-custom-auth-deny-all.ts | ||
internals.ts | ||
logger.test.ts | ||
logger.ts | ||
metric-events.ts | ||
metrics-gauge.test.ts | ||
metrics-gauge.ts | ||
metrics.test.ts | ||
metrics.ts | ||
server-impl.test.ts | ||
server-impl.ts |