Skip to content

Latest commit

 

History

History
71 lines (51 loc) · 3.08 KB

File metadata and controls

71 lines (51 loc) · 3.08 KB

Changelog

All notable changes to @codeforamerica/safety-net-blueprint-mock-server will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

[Unreleased]

[1.2.0] - 2026-03-17

Added

  • Cross-resource search handler querying across persons, cases, applications, tasks, and appointments databases
  • Support for types parameter to filter search results by resource type
  • Facet counts per resource type in search results with merged pagination
  • Rule evaluation engine with rules loader, action handlers, and condition matching
  • Queue resource seeding and route registration
  • onCreate effects in create handler (audit events + rule evaluation)
  • evaluate-rules effects in transition handler (re-evaluation on release)

Changed

  • Route generator now routes operationId=search to custom search handler
  • Search result attributes include field key for machine-readable access; label optional; simplified type enum

Fixed

  • Integration test now skips POST validation test for GET-only APIs (e.g., search API)
  • Postman generator matches examples to endpoints by resource type instead of applying all examples to every endpoint

[1.1.0] - 2026-03-03

Added

  • State machine engine integration: transition handler, state machine loader, RPC overlay generator
  • State machine route registration in mock server setup and route generator
  • Create effects and audit events: resolveValue() with $now and $object.*, applyCreateEffect(), pending creates
  • deriveCollectionName() in route generator for multi-resource APIs
  • Case Management and Scheduling API route support
  • X-Caller-Id to CORS allowed headers
  • Unit tests for state machine engine, loader, overlay generator, rules engine, and action handlers
  • Integration tests for audit events and rule evaluation across task lifecycle

Changed

  • All CRUD handlers now use endpoint.collectionName
  • Seeder clears all collections for an API on startup, not just the primary
  • Collection names derived from path segments instead of API name

Fixed

  • Seeder now clears-then-reseeds instead of skip-if-exists, so deleted examples restore on restart
  • Path param extraction uses endpoint.path instead of deriving from apiMetadata.name
  • Postman generator sort order: GET (order 0) no longer treated as falsy
  • Windows fileURLToPath check in server.js
  • Removed /workflow/ prefix from workflow spec paths for consistency

[1.0.0] - 2026-01-15

Added

  • Express 5.x mock server with auto-discovery of *-openapi.yaml specs
  • SQLite database per spec with automatic seeding from example files
  • CRUD operation handlers (list, create, get, update, delete)
  • Dynamic route registration from OpenAPI specs
  • Search support via q parameter with patterns from api-patterns.yaml
  • Swagger UI server (separate port)
  • Database reset command (mock:reset)
  • Preflight integration test infrastructure with newman/Postman collections
  • npm workspace packaging and publishing infrastructure