Skip to content

Releases: constantant/angular-openapi-gen

@constantant/openapi-resource-mocks@1.11.0

Choose a tag to compare

🚀 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

@constantant/openapi-resource-gen@1.12.0

Choose a tag to compare

🚀 Features

  • Upload / download progress (--reportProgress). New opt-in option (default off). httpClient endpoints that upload a binary or multipart/* body, or download a blob, now yield Observable<HttpEvent<T>> — Sent, UploadProgress / DownloadProgress, then the Response — instead of Observable<T>. --validateResponses validates only the final Response event. httpResource endpoints get reportProgress: true on blob downloads only, because Angular's httpResource().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 default fetch backend can't report upload progress, so you'd only ever see Sent and Response. Don't use withXhr() with SSR.
    • With --includeMocks, these endpoints get provideMockHttpEvents(), which needs @constantant/openapi-resource-mocks 1.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.

🤖 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.json now declares repository. (#71, #73)

❤️ Thank You

  • Konstantin

@constantant/openapi-resource-mocks@1.10.0

Choose a tag to compare

🚀 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)

❤️ Thank You

  • Konstantin

@constantant/openapi-resource-gen@1.11.0

Choose a tag to compare

🚀 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

Choose a tag to compare

🚀 Features

  • openapi-resource-gen: add validateResponses option for runtime response validation (24037a7)

🏡 Chore

  • bump the minor-and-patch group across 1 directory with 37 updates (#43)
  • bump js-yaml from 4.2.0 to 5.2.0 (#33)

❤️ Thank You

  • Claude Sonnet 5
  • kk
  • Konstantin

@constantant/openapi-resource-gen@1.9.1

Choose a tag to compare

🩹 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

Choose a tag to compare

🚀 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

Choose a tag to compare

🚀 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

Choose a tag to compare

🚀 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

Choose a tag to compare

🚀 Features

  • openapi-resource-mocks: reload status, event fixes, clearHistory, requestCount, keyDiscriminator (6adfd13)

❤️ Thank You

  • Claude Sonnet 4.6
  • kk