Releases: constantant/angular-openapi-gen
Releases · constantant/angular-openapi-gen
Release list
@constantant/openapi-resource-mocks@1.11.0
🚀 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
@constantant/openapi-resource-gen@1.12.0
🚀 Features
- Upload / download progress (
--reportProgress). New opt-in option (default off).httpClientendpoints that upload a binary ormultipart/*body, or download a blob, now yieldObservable<HttpEvent<T>>—Sent,UploadProgress/DownloadProgress, then theResponse— instead ofObservable<T>.--validateResponsesvalidates only the finalResponseevent.httpResourceendpoints getreportProgress: trueon blob downloads only, because Angular'shttpResource().progress()carries download progress and ignores uploads. JSON bodies, text responses and plain GETs are unchanged. (#72)- Upload progress needs the XHR backend:
provideHttpClient(withXhr()). The defaultfetchbackend can't report upload progress, so you'd only ever seeSentandResponse. Don't usewithXhr()with SSR. - With
--includeMocks, these endpoints getprovideMockHttpEvents(), which needs@constantant/openapi-resource-mocks1.11.0 or newer — older versions don't export it, so regenerated mock files for them would fail to compile. - A working example is the Pets page in
apps/api-explorer: a determinate progress bar with percent and bytes, "Upload failed at N%", and a Cancel button.
- Upload progress needs the XHR backend:
🤖 CI / Packaging
- Releases are now published with npm provenance attestations (this is the first version that has one) through npm trusted publishing (OIDC), so there is no long-lived npm token. The published
package.jsonnow declaresrepository. (#71, #73)
❤️ Thank You
- Konstantin
@constantant/openapi-resource-mocks@1.10.0
@constantant/openapi-resource-gen@1.11.0
🚀 Features
- api-explorer: convert more demo libs to HttpClient; replay panel edits in Observable mocks (#68)
- openapi-resource-gen: add HttpClient token generation (#64)
🩹 Fixes
- openapi-resource-gen: order required args before optional; add mockObservable (#65)
🏡 Chore
- bump @apidevtools/swagger-parser from 12.1.0 to 13.1.0 (#60)
- bump the minor-and-patch group across 1 directory with 35 updates (#63)
- bump minor/patch dev dependencies (#54)
- bump the minor-and-patch group across 1 directory with 41 updates (#52)
✅ Tests
- openapi-resource-gen: cover includeMocks through the generator (#67)
❤️ Thank You
- Konstantin
@constantant/openapi-resource-gen@1.10.0
@constantant/openapi-resource-gen@1.9.1
🩹 Fixes
- openapi-resource-gen: emit httpResource.text/blob for non-JSON responses (a335333)
- openapi-resource-gen: guard schema undefined and cast ArraySchemaObject for TS strict checks (a475240)
📖 Documentation
- openapi-resource-gen: document non-JSON response handling (text/blob) (2166744)
- update READMEs for v1.9.0 (f74473f)
❤️ Thank You
- Claude Sonnet 4.6
- kk
@constantant/openapi-resource-mocks@1.9.0
🚀 Features
- openapi-resource-mocks/testing: add response sequence mocking (abef482)
- openapi-resource-mocks: add /testing entry point with mockResource helper (afedfa6)
- devtools-panel: create unregistered (local) mocks from the panel (f79d39f)
🩹 Fixes
- openapi-resource-mocks: catch mode no longer disrupts existing mock value on enable (5b869c1)
- openapi-resource-mocks: emit reloading event and fix reload control routing (78000c8)
📖 Documentation
- update READMEs for v1.8.0/v0.5.0/v0.7.0 features (c09f0a8)
- openapi-resource-mocks: document reload, requestCount, clearHistory, keyDiscriminator (7d61ea9)
❤️ Thank You
- Claude Sonnet 4.6
- kk
@constantant/openapi-resource-gen@1.9.0
🚀 Features
- openapi-resource-gen: emit MSW 2.x handler files with includeMswHandlers option (035141a)
- openapi-resource-gen: handle OAS 3.1 constructs in parsing layer (87314bb)
- openapi-resource-gen: emit enum label/description maps from x-enum-varnames / x-enum-descriptions (bc5dec6)
- openapi-resource-gen: add readonlyResponses option to wrap XxxResponse/XxxError in Readonly<> (72d69f9)
- openapi-resource-gen: emit XxxRevived type and reviveXxxDates() for date/datetime fields (3d268a7)
- openapi-resource-gen: generate webhook token files for OAS 3.1 webhooks (463f52c)
- openapi-resource-gen: emit discriminated union types for oneOf/anyOf with discriminator (bc1b2f4)
- openapi-resource-gen: emit _serializeParams for non-default query param styles (dc9bc1e)
- openapi-resource-gen: emit typed XxxError type aliases for 4xx/5xx JSON responses (db820c3)
🩹 Fixes
- deduplicate toCamelCase and guard importJson item shape (083f0f7)
📖 Documentation
- update READMEs for v1.8.0/v0.5.0/v0.7.0 features (c09f0a8)
- openapi-resource-gen: update generated mock file example for options? param (959c2fc)
🏡 Chore
- openapi-resource-gen: sync executor schema with generator (verbose, dateType) (4376b6b)
🧱 Updated Dependencies
- Updated openapi-resource-mocks to 1.9.0
❤️ Thank You
- Claude Sonnet 4.6
- kk
OpenAPI Resource Mocks DevTools 1.9.0
🚀 Features
- devtools-panel: request body inspector in History tab (5894270)
- devtools-panel: scenario save/load, export/import mock state (5371ab1)
- devtools-panel: create unregistered (local) mocks from the panel (f79d39f)
🩹 Bug Fixes
- openapi-resource-devtools: build extension panel in production mode (543cd5f)
- deduplicate toCamelCase and guard importJson item shape (083f0f7)
- openapi-resource-mocks: emit reloading event and fix reload control routing (78000c8)
📖 Documentation
- update READMEs for v1.8.0/v0.5.0/v0.7.0 features (c09f0a8)
@constantant/openapi-resource-mocks@0.5.0
🚀 Features
- openapi-resource-mocks: reload status, event fixes, clearHistory, requestCount, keyDiscriminator (6adfd13)
❤️ Thank You
- Claude Sonnet 4.6
- kk