Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 19 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,29 @@
name: Test

on:
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review
pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review

jobs:
build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}
build:
runs-on: ubuntu-latest
if: github.event.pull_request.draft == false
steps:
- uses: actions/checkout@v2
with:
ref: ${{ github.event.pull_request.head.sha }}

- uses: actions/setup-node@v2
with:
node-version: '18'
- uses: actions/setup-node@v2
with:
node-version: '18'

- run: npm install
- run: npm install

- run: npm run lint
- run: npm run lint

- run: npm test
- run: npm test

11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@

## Version History

### v10.27.0

- :rocket: Only wrap `res.json` when a route has a response schema that requires validation — routes without one no longer pay any response-path overhead
- :rocket: Replace the `JSON.parse(JSON.stringify())` response clone with a single-pass JSON-semantics clone (~1.3-1.6x faster, no intermediate string allocation)
- :rocket: Skip the response clone entirely for non-200 responses (validation was already skipped)
- :bug: `Type.Any`/`Type.Unknown` response schemas were still compiled and validated on every request due to a broken `instanceof` check; now detected via the TypeBox `Kind` symbol and skipped
- :rocket: Precompute the body content-type matcher and supported-types error string at route registration instead of rebuilding them per request
- :rocket: Consolidate the five per-method route registration paths into a single shared implementation
- :rocket: Truncate response-validation error logging to 4KB
- :white_check_mark: Add response validation test suite

### v10.26.0

- :rocket: Allow non-json content-type
Expand Down
Loading
Loading