Changelog

@ogygia/flags

Every release of @ogygia/flags, newest first.

Latest
0.16.0
Versions
6
  1. 0.16.0 minor

    Dependency updates only @ogygia/flags

  2. 0.15.0 minor

    Dependency updates only @ogygia/flags

  3. 0.14.0 minor

    Minor Changes

    • @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.
    • 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

    • 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.
    • - @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).
    • 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.
    • 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.
    • 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.

    Dependencies: @ogygia/core@0.14.0, @ogygia/compiler@0.14.0, @ogygia/machine@0.14.0

  4. 0.13.0 minor

    Patch Changes

    • 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).
    • 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).
    • 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).
    • 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).
    • 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.
    • 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.
    • Packages declare sideEffects (only their .css files run on import), so bundlers drop the modules an app never uses.

    Dependencies: @ogygia/core@0.13.0, @ogygia/machine@0.13.0

  5. 0.12.0 minor

    Dependency updates only @ogygia/flags

  6. 0.11.0 minor

    Patch Changes

    • A flag source receives the visitor by the same rule a flag read uses, so openfeature() and ofrep() send a targetingKey by default.

    Dependencies: @ogygia/core@0.11.0