Skip to content

Commit 290ea7f

Browse files
constantantclaude
andcommitted
docs: fix badge coverage and stale version numbers
Add openapi-resource-mocks npm badge to root README and its own README; differentiate the two npm badge labels; use Angular brand colour and logo on the Angular version badge; remove hardcoded version prose that had drifted (gen 1.5.0->1.6.0, mocks 0.2.0->0.3.0) in favour of the dynamic badge; fix extension version from 0.3.2 to 0.6.0. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 7609660 commit 290ea7f

2 files changed

Lines changed: 8 additions & 7 deletions

File tree

README.md

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
# angular-openapi-gen
22

33
[![CI](https://github.com/constantant/angular-openapi-gen/actions/workflows/ci.yml/badge.svg)](https://github.com/constantant/angular-openapi-gen/actions/workflows/ci.yml)
4-
[![npm](https://img.shields.io/npm/v/@constantant/openapi-resource-gen)](https://www.npmjs.com/package/@constantant/openapi-resource-gen)
4+
[![npm: openapi-resource-gen](https://img.shields.io/npm/v/@constantant/openapi-resource-gen?label=openapi-resource-gen)](https://www.npmjs.com/package/@constantant/openapi-resource-gen)
5+
[![npm: openapi-resource-mocks](https://img.shields.io/npm/v/@constantant/openapi-resource-mocks?label=openapi-resource-mocks)](https://www.npmjs.com/package/@constantant/openapi-resource-mocks)
56
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](LICENSE)
6-
[![Angular 22+](https://img.shields.io/badge/Angular-22%2B-red)](https://angular.dev)
7+
[![Angular 22+](https://img.shields.io/badge/Angular-22%2B-dd0031?logo=angular&logoColor=white)](https://angular.dev)
78

89
> **Requires Angular 22+ and Nx 22+.**
910
> The generated code uses [`httpResource()`](https://angular.dev/guide/http/http-resource),
@@ -34,8 +35,7 @@ Because esbuild tree-shakes at file boundaries, any token you never `inject()` c
3435

3536
## The generator — `@constantant/openapi-resource-gen`
3637

37-
Published on npm: **[`@constantant/openapi-resource-gen`](https://www.npmjs.com/package/@constantant/openapi-resource-gen)**
38-
Current version: **1.5.0**
38+
Published on npm: **[`@constantant/openapi-resource-gen`](https://www.npmjs.com/package/@constantant/openapi-resource-gen)**
3939

4040
### Quick start
4141

@@ -245,8 +245,7 @@ npx nx run petstore-data-access:generate
245245

246246
## Mock bus — `@constantant/openapi-resource-mocks`
247247

248-
Published on npm: **[`@constantant/openapi-resource-mocks`](https://www.npmjs.com/package/@constantant/openapi-resource-mocks)**
249-
Current version: **0.2.0**
248+
Published on npm: **[`@constantant/openapi-resource-mocks`](https://www.npmjs.com/package/@constantant/openapi-resource-mocks)**
250249

251250
A companion package that provides zero-HTTP, pure-DI mocks for generated tokens. Key features:
252251

@@ -261,7 +260,7 @@ See [`tools/openapi-resource-mocks/README.md`](tools/openapi-resource-mocks/READ
261260

262261
## Chrome DevTools Extension — OpenAPI Resource Mocks DevTools
263262

264-
Current version: **0.3.2** | Status: pending Chrome Web Store review
263+
Current version: **0.6.0** | Status: pending Chrome Web Store review
265264

266265
A Chrome DevTools panel that connects to any Angular app running `@constantant/openapi-resource-mocks`. It lists every registered mock token, shows live state, and lets you resolve, fail, catch, or reset mocks without touching code. The **Specs** tab lets you import a `mocks.manifest.json` or full OpenAPI spec to enable schema-aware features in the Respond tab: auto-generated example payloads (⚡ Example) and JSON schema validation (✓ Validate).
267266

tools/openapi-resource-mocks/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# @constantant/openapi-resource-mocks
22

3+
[![npm](https://img.shields.io/npm/v/@constantant/openapi-resource-mocks)](https://www.npmjs.com/package/@constantant/openapi-resource-mocks)
4+
35
Mock bus for [`@constantant/openapi-resource-gen`](https://www.npmjs.com/package/@constantant/openapi-resource-gen) tokens.
46

57
Provides zero-HTTP, pure-DI mocks for Angular `InjectionToken`-based data-access libs — with a cross-boundary API so **Playwright E2E tests** and a future **Chrome Extension devtools panel** can observe and control every token's state from outside the Angular context.

0 commit comments

Comments
 (0)