Skip to content

release: v1.6.0#140

Merged
jaredwray merged 1 commit into
mainfrom
claude/release-management-docs-T0ppF
May 16, 2026
Merged

release: v1.6.0#140
jaredwray merged 1 commit into
mainfrom
claude/release-management-docs-T0ppF

Conversation

@jaredwray
Copy link
Copy Markdown
Owner

@jaredwray jaredwray commented May 16, 2026

Release summary

Flexible URL matching: trailing path segments fall back to the parsable route prefix (fixes #137).

Release notes (copy-pasteable for the GitHub Release)

## @jaredwray/mockhttp@1.6.0 — 2026-05-16

Flexible URL matching: trailing path segments fall back to the parsable route prefix (fixes #137).

### Features
- ignore trailing path segments after the parsable portion (`6f82897`, #139)

  A Fastify `rewriteUrl` hook progressively strips trailing segments when only the static catch-all wildcard or nothing matches. Query strings are preserved and the first path segment is never stripped, so genuinely unknown URLs still 404.

  ```http
  # Before — only an exact match worked:
  GET /status/429        → 429
  GET /status/429/foo    → 404

  # After — trailing segments fall back to the parsable prefix:
  GET /status/429        → 429
  GET /status/429/foo    → 429   (served by /status/:code)
  GET /status/429/foo/bar/ → 429
  GET /status/429?x=1    → 429   (query preserved)
  GET /totally/unknown   → 404   (first segment never stripped)
  ```

### Documentation
- document flexible URL matching behavior in the README (`148ed17`, #139)

### Internal
- extract query string before initial route check; add trailing-slash path coverage (`5f298ea`, #139)
- fix typos in README and `src/swagger.ts` (`be2b014`, #138)

### Contributors
- @jaredwray#139
- @mrazauskas#138 (first contribution 🎉)

**Full diff:** https://github.com/jaredwray/mockhttp/compare/v1.5.1...v1.6.0

Verification

  • pnpm install --frozen-lockfile succeeds
  • pnpm build succeeds (dist/index.mjs 103.49 kB)
  • pnpm test:ci passes (413 / 413 tests; 100% line coverage)
  • No uncommitted changes outside the package.json version bump

Post-merge

Merge then create a GitHub Release at tag v1.6.0 — the release.yaml workflow (triggered on release: released) publishes to npm. Paste the markdown block above straight into the Release body.

Cut with

First end-to-end run of release-cut.md (now updated with the code-examples rule in jaredwray/agentic#4 and the four-backtick wrapper fix in jaredwray/agentic#5).

https://claude.ai/code/session_01AnFVx45a2t4rYVSP6WgNEj

Minor release driven by #139 (flexible URL matching: trailing path
segments now fall back to the parsable route prefix, fixing #137).
Also rolls up the typo cleanup from #138.

See PR body for full release notes.

https://claude.ai/code/session_01AnFVx45a2t4rYVSP6WgNEj
@codecov
Copy link
Copy Markdown

codecov Bot commented May 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (98cfa0a) to head (7f59d16).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #140   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           37        37           
  Lines         1089      1089           
  Branches       222       222           
=========================================
  Hits          1089      1089           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the version of the @jaredwray/mockhttp package from 1.5.1 to 1.6.0 in the package.json file. I have no feedback to provide.

@jaredwray jaredwray merged commit 6b4c4fa into main May 16, 2026
9 checks passed
@jaredwray jaredwray deleted the claude/release-management-docs-T0ppF branch May 16, 2026 03:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ignore everything after the parsable portion of the URL

2 participants