tom_basics 1.0.2
tom_basics: ^1.0.2 copied to clipboard
Basic utilities for the TOM framework including exception handling with UUID tracking.
1.0.2 #
- Added
TomRuntime.reset()to clear the process-global environment/platform registries (RCL1). The environment and platform registries are static process-global state. A real application registers each environment once at startup, but independent units of work that each build their own runtime — most visibly tests and runnable samples executed in one process — would otherwise inherit registrations from a previously executed unit. A secondaddEnvironment('dev', ...)then leaves twodeventries andsetCurrentEnvironment('dev')resolves the earlier one, running the wrong initializer.reset()clears the environment and platform lists, drops the active environment/platform selections, and restores the root environment todefaultTomEnvironment. It mirrorsTomBean.resetBeanContextfor the bean registry; call it between independent units to isolate them.
1.0.1 #
- Fixed
TomLoggerpush/pop log-level stack to proper LIFO semantics (RCE6).popLogLevel()previously removed the front of the level stack (removeAt(0)) rather than the most recently pushed level, so it could not restore the pre-push level; and the current level was tracked in a separate_logLevelfield that could diverge from the stack. The stack top is now the single source of truth:logLevelis a getter returning_levelStack.last,setLogLevelreplaces the top in place,pushLogLevelappends, andpopLogLevelusesremoveLast()(guarded so the base level is never popped).setLogLevelByName('info'); pushLogLevel(trace); popLogLevel()now correctly restoresinfo, and nested push/pop unwinds in LIFO order. No back-compat shim — the buggy front-removal behaviour is gone.
1.0.0 #
- Initial version.