@ogygia/flags
0.14.0 minor
@ogygia/flags
Minor Changes
- #715
9604456Thanks @PuruVJ! -@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. - #1363
c7ed8cfThanks @PuruVJ! - 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
- #442
95ed95cThanks @PuruVJ! -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. - #533
49ff074Thanks @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/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). - #428
1c7580fThanks @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
8cb03fdThanks @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
4a038b4Thanks @PuruVJ! - 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.
Updated dependencies: @ogygia/[email protected], @ogygia/[email protected], @ogygia/[email protected]
0.13.0 minor
@ogygia/flags
Patch Changes
- #256
25ab8c7Thanks @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'swaitUntilwhen it has one, so serverless instances no longer cut exposures off. The response never waits for the send (#243). - #323
7a53a56Thanks @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
24c6592Thanks @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
24c6592Thanks @PuruVJ! - A secondprime_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). - #321
17e009aThanks @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 printsflags_source_failedonce per failing streak, instead of falling back to the native rule without a word. - #175
a99a49aThanks @PuruVJ! - Every ogygia error and warning has a code and a page atogygiajs.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
1767110Thanks @PuruVJ! - Packages declaresideEffects(only their.cssfiles 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
e229a9aThanks @PuruVJ! - A flag source receives the visitor by the same rule a flag read uses, soopenfeature()andofrep()send atargetingKeyby default.
Updated dependencies: @ogygia/[email protected]