Skip to content

@constantant/openapi-resource-mocks@1.11.0

Choose a tag to compare

@github-actions github-actions released this 01 Oct 22:48
· 19 commits to master since this release

πŸš€ Features

  • provideMockHttpEvents() β€” a mock provider for tokens that yield Observable<HttpEvent<T>>, i.e. file uploads and blob downloads generated with openapi-resource-gen --clientType=httpClient --reportProgress. It emits what a real HttpClient call with reportProgress: true emits: a Sent event on subscribe, UploadProgress / DownloadProgress for every setProgress() / simulateProgress() step (from DevTools, e2e or unit tests), then a Response event (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, initialBehavior and the replay of panel edits behave as for provideMockObservable. Generated mock files select it automatically; they need @constantant/openapi-resource-gen 1.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.json now declares repository. (#71, #73)

❀️ Thank You

  • Konstantin