@constantant/openapi-resource-mocks@1.11.0
·
19 commits
to master
since this release
π Features
provideMockHttpEvents()β a mock provider for tokens that yieldObservable<HttpEvent<T>>, i.e. file uploads and blob downloads generated withopenapi-resource-gen --clientType=httpClient --reportProgress. It emits what a realHttpClientcall withreportProgress: trueemits: aSentevent on subscribe,UploadProgress/DownloadProgressfor everysetProgress()/simulateProgress()step (from DevTools, e2e or unit tests), then aResponseevent (status 200) carrying the resolved value, then completion.fail()errors the stream (the progress seen so far is kept), unsubscribing β a cancelled upload β stops delivery, and catch mode, delays,initialBehaviorand the replay of panel edits behave as forprovideMockObservable. Generated mock files select it automatically; they need@constantant/openapi-resource-gen1.12.0 or newer to be generated. (#72)
π€ CI / Packaging
- Releases are now published with npm provenance attestations (this is the first version that has one) through npm trusted publishing (OIDC). The published
package.jsonnow declaresrepository. (#71, #73)
β€οΈ Thank You
- Konstantin