1
0
mirror of https://github.com/Unleash/unleash.git synced 2025-10-04 11:17:02 +02:00
unleash.unleash/src/lib
Gastón Fournier 331de07e39
fix: double token initialization (#9783)
## 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
2025-04-17 09:22:35 +02:00
..
__snapshots__ feat: use Unleash React SDK in Admin UI (#9723) 2025-04-10 08:26:30 +02:00
addons chore: make it build with strict null checks set to true (#9554) 2025-03-19 10:01:49 +01:00
db chore: aggregate daily metrics query time instrumentation (#9764) 2025-04-15 14:52:03 +02:00
domain/project-health chore: make it build with strict null checks set to true (#9554) 2025-03-19 10:01:49 +01:00
error
features chore: aggregate daily metrics query time instrumentation (#9764) 2025-04-15 14:52:03 +02:00
middleware add hosted edge to allowed connect-src 2025-04-10 09:25:23 +02:00
openapi feat: add milestones to search results (#9739) 2025-04-10 10:25:39 +02:00
routes feat: use Unleash React SDK in Admin UI (#9723) 2025-04-10 08:26:30 +02:00
schema
services fix: double token initialization (#9783) 2025-04-17 09:22:35 +02:00
types chore: cleanup reminder flag (#9769) 2025-04-16 11:25:50 +02:00
users chore: make it build with strict null checks set to true (#9554) 2025-03-19 10:01:49 +01:00
util Revert "fix: use unleash to enable frontend SDK with token via varian… (#9759) 2025-04-15 09:01:51 +00:00
app.test.ts chore: make it build with strict null checks set to true (#9554) 2025-03-19 10:01:49 +01:00
app.ts chore: make it build with strict null checks set to true (#9554) 2025-03-19 10:01:49 +01:00
create-config.test.ts fix: double token initialization (#9783) 2025-04-17 09:22:35 +02:00
create-config.ts fix: double token initialization (#9783) 2025-04-17 09:22:35 +02:00
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 chore: expose custom strategy metrics in prometheus (#9657) 2025-03-31 16:02:50 +02:00
server-impl.test.ts fix: double token initialization (#9783) 2025-04-17 09:22:35 +02:00
server-impl.ts fix: double token initialization (#9783) 2025-04-17 09:22:35 +02:00