@ogygia/flags

AllMajorMinorPatch Hide pre-releases
0.14.0 minor

@ogygia/flags

Minor Changes

  • #715 9604456 Thanks @PuruVJ! - @ogygia/router, @ogygia/flags: Breaking: anonymousVisitor() returns { vid, anonymous: true } and never fills sub, which stays a signed-in user's id (so mount() never signs a cookie value onward as one). Flags hash on sub, else vid (an anonymous visitor keeps its bucket), the og-vid cookie reaches a source as { vid, anonymous: true }, and the default openfeature() / ofrep() context sends vid as targetingKey when there is no sub. Code that read c.visitor.sub for anonymous visitors reads c.visitor.vid; exposure events from them arrive without a sub.
  • #1363 c7ed8cf Thanks @PuruVJ! - The flag inventory (node_modules/.ogygia/flags-manifest.json) is now written by flags(): a build writes it only when flags() is listed beside ogygia(), and an app that imports @ogygia/flags without listing it gets a one-time plugin_not_listed build warning.

Patch Changes

  • #442 95ed95c Thanks @PuruVJ! - say() in @ogygia/machine says a thing once per key until it recovers, remembering at most 1024 keys; a machine's warn-once and a plugin's warn use it, so a long-lived server no longer keeps every distinct warning text.
  • #533 49ff074 Thanks @PuruVJ! - - @ogygia/compiler: new package, ogygia's compiler and its Vite plugin: @ogygia/compiler (the compiler), @ogygia/compiler/vite (ogygia(), definePlugin) and @ogygia/compiler/ids. It uses core only through @ogygia/core/contract; core never depends on it. - @ogygia/core: breaking: the @ogygia/core/vite, @ogygia/core/internal/compiler and @ogygia/core/internal/compiler-ids import paths are gone. Import from ogygia/vite (or @ogygia/compiler/vite), @ogygia/compiler and @ogygia/compiler/ids instead; the names are the same. - @ogygia/core: the types of the ogygia:* virtual modules and the build's switches are named in core (@ogygia/core/contract), so core's own types no longer reach into the compiler. - ogygia: ogygia/vite, ogygia/internal/compiler and ogygia/internal/compiler-ids re-export @ogygia/compiler; apps change nothing. - @ogygia/barrels, @ogygia/cli, @ogygia/content, @ogygia/devtools, @ogygia/federation, @ogygia/flags, @ogygia/postrender, @ogygia/router: they take definePlugin and the compiler from @ogygia/compiler, a new peer dependency (ogygia brings it).
  • #428 1c7580f Thanks @PuruVJ! - In dev, a flag deleted from a module is gone once that module reloads: a flag source is no longer asked about it, and its layer no longer counts it.
  • #1220 8cb03fd Thanks @PuruVJ! - A flag source that does not answer within 1 second no longer holds the request: its flags fall to their native rule for that request and the failure is said (flags_source_failed). openfeature() and a custom source had no deadline, so one stalled provider stalled every page.
  • #440 4a038b4 Thanks @PuruVJ! - A cached hole (maxAge) that reads a flag, or a cookie, header or locals value, for an anonymous visitor is no longer kept and served to other visitors.

Updated dependencies: @ogygia/[email protected], @ogygia/[email protected], @ogygia/[email protected]

0.13.0 minor

@ogygia/flags

Patch Changes

  • #256 25ab8c7 Thanks @PuruVJ! - An exposure sink that rejects no longer crashes the server: the failure is logged with a message code, and the sink's send is handed to the platform's waitUntil when it has one, so serverless instances no longer cut exposures off. The response never waits for the send (#243).
  • #323 7a53a56 Thanks @PuruVJ! - Exposure batches go through an outbox: a batch the sink failed is tried again before the batch read after it, instead of being dropped, batches still reach the sink one at a time in order, and a send started by the size or age cap is kept alive past the response too (#308).
  • #340 24c6592 Thanks @PuruVJ! - A flag source that throws before it awaits anything leaves the request resolved (every flag on its native rule), instead of priming for good (#374).
  • #340 24c6592 Thanks @PuruVJ! - A second prime_flags of a request while the first still waits on the source now waits for that answer, instead of returning at once and leaving reads on the native rule (#296).
  • #321 17e009a Thanks @PuruVJ! - A flag source that fails (a throwing source, an OFREP endpoint that errors or cannot be reached, an OpenFeature flag whose evaluation throws) now prints flags_source_failed once per failing streak, instead of falling back to the native rule without a word.
  • #175 a99a49a Thanks @PuruVJ! - Every ogygia error and warning has a code and a page at ogygiajs.dev/e/<code>: dev prints the wording and the link, a production build prints the link alone ([ogygia] https://ogygiajs.dev/e/<code>?<args>), so the wording stays out of the client and server bundles.
  • #184 1767110 Thanks @PuruVJ! - Packages declare sideEffects (only their .css files run on import), so bundlers drop the modules an app never uses.

Updated dependencies: @ogygia/[email protected], @ogygia/[email protected]

0.12.0 minor

@ogygia/flags

Updated dependencies: @ogygia/[email protected]

0.11.0 minor

@ogygia/flags

Patch Changes

  • #83 e229a9a Thanks @PuruVJ! - A flag source receives the visitor by the same rule a flag read uses, so openfeature() and ofrep() send a targetingKey by default.

Updated dependencies: @ogygia/[email protected]

0.0.0 minor

@ogygia/flags