Repository navigation
@agent-native/core@0.114.3
·
5991 commits
to main
since this release
Patch Changes
-
c47eb50: fix(core): keep feature-flag definitions out of the browser server graph
App-shared config that imported feature-flag definitions from
@agent-native/core/feature-flagspulled the barrel's server re-exports
(store→settings/store→db/client→ request telemetry) into the client
dev graph. Vite's dev server does not tree-shake, so the browser evaluated that
server chain andrequest-telemetry's top-levelnew AsyncLocalStorage()threw
against the externalizednode:async_hooksstub, breaking app load in dev
(production tree-shakes it away and was unaffected).- Add a client-safe
@agent-native/core/feature-flags/registryentry for
defineFeatureFlag/defineFeatureFlags/registerFeatureFlagsso shared
config no longer imports the server barrel. - Make
db/request-telemetryandsettings/storeresolveAsyncLocalStorage/
EventEmitterlazily viaprocess.getBuiltinModule(matching
server/request-context) instead of a top-level value import, so the modules
can be evaluated in any runtime without tripping the browser stub. - Add a regression guard asserting the client-safe registry entry never reaches
the server layer and that those modules never statically value-import the
builtins.
- Add a client-safe