Changelog
@ogygia/flags
Every release of @ogygia/flags, newest first.
- Latest
- 0.16.0
- Versions
- 6
0.16.0 minor
Dependency updates only @ogygia/flags
0.15.0 minor
Dependency updates only @ogygia/flags
0.14.0 minor
Minor Changes
@ogygia/router,@ogygia/flags: Breaking:anonymousVisitor()returns{ vid, anonymous: true }and never fillssub, which stays a signed-in user's id (somount()never signs a cookie value onward as one). Flags hash onsub, elsevid(an anonymous visitor keeps its bucket), theog-vidcookie reaches a source as{ vid, anonymous: true }, and the defaultopenfeature()/ofrep()context sendsvidastargetingKeywhen there is nosub. Code that readc.visitor.subfor anonymous visitors readsc.visitor.vid; exposure events from them arrive without asub.- The flag inventory (
node_modules/.ogygia/flags-manifest.json) is now written byflags(): a build writes it only whenflags()is listed besideogygia(), and an app that imports@ogygia/flagswithout listing it gets a one-timeplugin_not_listedbuild warning.
Patch Changes
say()in@ogygia/machinesays a thing once per key until it recovers, remembering at most 1024 keys; a machine's warn-once and a plugin'swarnuse 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/compilerand@ogygia/core/internal/compiler-idsimport paths are gone. Import fromogygia/vite(or@ogygia/compiler/vite),@ogygia/compilerand@ogygia/compiler/idsinstead; the names are the same. -@ogygia/core: the types of theogygia:*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/compilerandogygia/internal/compiler-idsre-export@ogygia/compiler; apps change nothing. -@ogygia/barrels,@ogygia/cli,@ogygia/content,@ogygia/devtools,@ogygia/federation,@ogygia/flags,@ogygia/postrender,@ogygia/router: they takedefinePluginand the compiler from@ogygia/compiler, a new peer dependency (ogygiabrings 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 orlocalsvalue, 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
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
waitUntilwhen 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_flagsof 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_failedonce 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.cssfiles run on import), so bundlers drop the modules an app never uses.
Dependencies: @ogygia/core@0.13.0, @ogygia/machine@0.13.0
0.12.0 minor
Dependency updates only @ogygia/flags