Diego Rodrigues de Sa e Souza
d5b0ee9394
refactor(resilience): split settings.ts into types + normalize leaves ( #5745 )
...
Decompose the (fully pure) resilience settings module into two sibling leaves:
- src/lib/resilience/settings/types.ts: the settings shape (11 public
interfaces + JsonRecord/AuthCategory), zero imports.
- src/lib/resilience/settings/normalize.ts: the coercers (asRecord/toInteger/
toBoolean/feature-flag resolvers) + the 11 per-section normalize* functions.
settings.ts keeps DEFAULT_RESILIENCE_SETTINGS, DEFAULT_REQUEST_QUEUE_MAX_WAIT_MS,
buildLegacyFallback, and the public orchestrators (resolveResilienceSettings,
mergeResilienceSettings, buildLegacyResilienceCompat); it imports the
coercers/normalizers for internal use and re-exports the 11 settings interfaces,
so the public API is unchanged. Host 840->363 LOC; leaves 182 + 359 LOC
(< 800 cap); host was frozen-satisfied (841), so this is debt reduction.
472 moved lines are byte-identical; no cycles (leaves never import the host).
New split-guard test characterizes the coercers/normalizers and the host
resolve/merge/compat orchestration.
2026-06-30 23:36:55 -03:00
..
2026-06-30 06:54:29 -03:00
2026-06-19 06:49:01 -03:00
2026-06-29 08:40:06 -03:00
2026-06-30 06:54:29 -03:00
2026-06-30 11:00:09 -03:00
2026-06-30 06:54:29 -03:00
2026-06-30 10:50:36 -03:00
2026-06-30 06:54:29 -03:00
2026-06-29 16:51:03 -03:00
2026-06-06 00:26:40 -03:00
2026-06-23 03:08:29 -03:00
2026-05-27 21:43:44 -03:00
2026-06-30 06:54:29 -03:00
2026-06-30 06:54:29 -03:00
2026-06-20 07:09:43 -03:00
2026-06-27 09:07:12 -03:00
2026-06-29 16:51:03 -03:00
2026-06-30 06:54:29 -03:00
2026-05-24 18:05:58 -03:00
2026-06-30 19:36:17 -03:00
2026-05-29 19:54:00 -03:00
2026-06-25 13:17:40 -03:00
2026-06-26 02:51:06 -03:00
2026-04-28 02:41:19 -03:00
2026-06-30 23:36:49 -03:00
2026-06-29 16:51:03 -03:00
2026-06-30 13:46:46 -03:00
2026-06-30 06:54:29 -03:00
2026-06-20 07:09:43 -03:00
2026-06-30 06:54:29 -03:00
2026-06-10 13:49:08 -03:00
2026-06-19 06:49:01 -03:00
2026-04-26 20:15:47 -03:00
2026-06-30 20:33:38 -03:00
2026-05-31 01:15:27 -03:00
2026-06-30 23:36:52 -03:00
2026-06-17 19:26:32 -03:00
2026-06-30 06:54:29 -03:00
2026-06-30 06:54:29 -03:00
2026-06-03 06:45:04 -03:00
2026-05-28 17:19:48 -03:00
2026-06-20 14:55:24 -03:00
2026-06-30 06:54:29 -03:00
2026-06-20 07:09:43 -03:00
2026-06-30 12:55:12 -03:00
2026-06-25 13:17:40 -03:00
2026-06-29 16:51:03 -03:00
2026-06-30 23:36:55 -03:00
2026-02-26 15:11:40 +00:00
2026-04-17 11:56:52 -03:00
2026-06-20 14:55:24 -03:00
2026-06-30 06:54:29 -03:00
2026-06-30 06:54:29 -03:00
2026-04-17 09:00:32 -03:00
2026-05-26 23:51:47 -03:00
2026-06-30 10:50:36 -03:00
2026-04-23 16:57:43 -03:00
2026-06-30 20:33:35 -03:00
2026-06-30 13:19:59 -03:00
2026-06-30 10:50:36 -03:00
2026-06-29 16:51:03 -03:00
2026-04-16 05:26:17 -03:00
2026-05-29 12:44:29 -03:00
2026-05-09 12:42:59 +00:00
2026-06-17 02:43:21 -03:00
2026-06-30 06:54:29 -03:00
2026-04-01 08:42:03 -03:00
2026-03-29 14:37:55 +02:00
2026-03-17 04:24:46 -03:00
2026-06-29 08:40:06 -03:00
2026-05-29 12:44:29 -03:00
2026-05-29 12:44:29 -03:00
2026-05-26 23:51:47 -03:00
2026-03-04 19:35:38 -03:00
2026-06-30 14:56:09 -03:00
2026-06-26 02:51:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 08:40:06 -03:00
2026-06-13 18:50:54 -03:00
2026-04-22 12:25:53 -03:00
2026-04-01 08:45:39 +07:00
2026-04-17 16:45:27 -03:00
2026-06-26 02:51:06 -03:00
2026-06-27 09:07:12 -03:00
2026-04-17 16:45:27 -03:00
2026-06-20 07:09:43 -03:00
2026-04-18 11:44:20 -03:00
2026-04-24 13:20:59 -03:00
2026-05-26 23:51:47 -03:00
2026-06-29 16:51:03 -03:00
2026-06-30 14:56:09 -03:00
2026-06-22 03:17:02 -03:00
2026-06-30 23:36:52 -03:00
2026-04-30 01:27:03 -03:00
2026-06-03 06:45:04 -03:00
2026-05-01 08:36:07 -03:00
2026-05-01 08:36:07 -03:00
2026-06-01 23:13:19 -03:00
2026-06-29 08:40:06 -03:00
2026-06-12 23:49:22 -03:00
2026-06-29 08:40:06 -03:00
2026-06-29 16:51:03 -03:00
2026-06-29 16:51:03 -03:00
2026-02-18 00:02:15 -03:00
2026-05-24 18:05:58 -03:00
2026-06-13 17:27:40 -03:00
2026-06-13 17:27:40 -03:00
2026-06-20 14:55:24 -03:00
2026-06-29 16:51:03 -03:00
2026-02-18 14:43:57 -03:00
2026-02-18 00:02:15 -03:00
2026-06-30 15:09:21 -03:00
2026-06-09 15:56:24 -03:00
2026-06-17 19:26:32 -03:00