Releases: zimicjs/zimic
Releases Β· zimicjs/zimic
v0.5.0-canary.5
Documentation
- docs:
zimicjs
organization links (#168) by @diego-aquino in #169
Full Changelog: v0.5.0-canary.4...v0.5.0-canary.5
v0.5.0-canary.4
Documentation
- docs(examples): next.js app and pages router (#163) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/167
Full Changelog: diego-aquino/zimic@v0.5.0-canary.3...v0.5.0-canary.4
v0.5.0-canary.3
Fixes
- fix: improve unhandled request logs (#164) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/166
Documentation
- docs:
v0.5
by @diego-aquino in https://github.com/diego-aquino/zimic/pull/165
Full Changelog: diego-aquino/zimic@v0.5.0-canary.2...v0.5.0-canary.3
v0.5.0-canary.2
Full Changelog: diego-aquino/zimic@v0.5.0-canary.1...v0.5.0-canary.2
v0.5.0-canary.1
Features
- feat: http interceptor path params (#87) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/140
Full Changelog: diego-aquino/zimic@v0.5.0-canary.0...v0.5.0-canary.1
v0.5.0-canary.0
Features
- feat: custom unhandled request strategies (#9) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/149
Full Changelog: diego-aquino/zimic@v0.4.0...v0.5.0-canary.0
v0.4.0
v0.4.0 is here! π
Features
- Remote interceptors: an alternative mocking strategy using a dedicated interceptor server for more advanced use cases.
- Simplified interceptor APIs: workers are now managed internally and interceptors can be created with
http.createInterceptor
. - Dynamic path inference: interpolated dynamic paths are now type safe by default, requiring no manual type annotation.
- Extra body validation:
GET
,HEAD
, andOPTIONS
requests should not have a request body.HEAD
and 204 responses should not have a response body.
import { http } from 'zimic/interceptor';
const authInterceptor = createHttpInterceptor<AuthServiceSchema>({
type: 'local',
baseURL: 'http://localhost:3000',
});
const notificationInterceptor = createHttpInterceptor<NotificationServiceSchema>({
type: 'remote',
baseURL: 'http://localhost:4000/notifications',
});
Fixes
- Strict CLI: providing unknown commands or options will show an error message, instead of silently failing.
Refactoring
- Improved terminology: HTTP request trackers are now called HTTP request handlers.
Documentation
- New examples: Next.js and Playwright.
Check out the Migration guide: v0.4
to learn more about upgrading to v0.4!
Credits
Huge thanks to @diego-aquino for helping!
Full Changelog: v0.3.0...v0.4.0
- feat: inferred dynamic paths (#123) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/125
- feat!: http mock server (#83) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/128
- build: support to node 22 (#126) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/129
- feat(#zimic)!: internal worker management (#127) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/133
- refactor(#zimic)!: rename request tracker to request handler (#132) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/135
- feat: no body request validation (#134) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/136
- fix: multiple dynamic parameters (#137) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/138
- refactor: split fetch and url utilities by @diego-aquino in https://github.com/diego-aquino/zimic/pull/139
- feat: invalid URL error (#141) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/143
- fix: force client to disconnect on server stop (#142) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/144
- docs: playwright and next.js examples (#76) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/146
- refactor!: http namespace (#147) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/148
- perf: increase test concurrency by @diego-aquino in https://github.com/diego-aquino/zimic/pull/151
- refactor: rename
Server
toInterceptorServer
(#150) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/152 - chore: decrease static checks concurrency by @diego-aquino in https://github.com/diego-aquino/zimic/pull/153
- refactor: latest husky commands by @diego-aquino in https://github.com/diego-aquino/zimic/pull/154
- fix: clear exit listeners on server cli exit by @diego-aquino in https://github.com/diego-aquino/zimic/pull/155
- fix: strict CLI (#156) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/157
- docs:
v0.4.0
by @diego-aquino in https://github.com/diego-aquino/zimic/pull/159 - docs: fix relative paths in published
README.md
by @diego-aquino in https://github.com/diego-aquino/zimic/pull/160 - chore(release): v0.4.0 by @diego-aquino in https://github.com/diego-aquino/zimic/pull/161
v0.4.0-canary.11
Documentation
- docs: fix relative paths in published
README.md
by @diego-aquino in https://github.com/diego-aquino/zimic/pull/160
Full Changelog: diego-aquino/zimic@v0.4.0-canary.10...v0.4.0-canary.11
v0.4.0-canary.10
Documentation
- docs:
v0.4.0
by @diego-aquino in https://github.com/diego-aquino/zimic/pull/159
Full Changelog: diego-aquino/zimic@v0.4.0-canary.9...v0.4.0-canary.10
v0.4.0-canary.9
Fixes
- fix: strict CLI (#156) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/157
Full Changelog: diego-aquino/zimic@v0.4.0-canary.8...v0.4.0-canary.9