Skip to content

feat(cli): enhance watch mode and dynamic routing - #11

Merged
xircons merged 1 commit into
mainfrom
release/cli-improvements
Jun 25, 2026
Merged

feat(cli): enhance watch mode and dynamic routing#11
xircons merged 1 commit into
mainfrom
release/cli-improvements

Conversation

@xircons

@xircons xircons commented Jun 25, 2026

Copy link
Copy Markdown
Owner

Port watch mode reload enhancements and dynamic express parameter-based routing into main. This release does not include any monorepo/web app changes.

- Resolve watched DB file path to absolute path to prevent watcher
  resolution issues.
- Update Chokidar configuration to use `awaitWriteFinish` and listen to
  both `change` and `add` events (for atomic save compatibility).
- Refactor routes to use dynamic Express parameters (`/:resource` and
  `/:resource/:id`), allowing the mock server to adapt immediately to
  schema changes (added/removed keys) without restart.
- Introduce `JsonStore.isSelfWrite()` to prevent reloading the database
  file on self-induced saves.
- Add test coverage for watch reloading and self-write filters.
@xircons
xircons merged commit 7fe5530 into main Jun 25, 2026
1 check passed
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.3.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant