v0.3.0
v0.3.0 is here! 🎉
Features
- Added support to tracker restrictions, supporting headers, search params, and bodies. With restrictions, you can now target mock responses to specific requests.
- It is now possible to clear tracker responses, restrictions and intercepted requests using
clear()
.bypass()
now only clears the declared response, keeping any restrictions and intercepted requests. - Added strict JSON validation to interceptor schemas.
Refactoring
- Moved generic HTTP type exports from
zimic/interceptor
tozimic
.
Check out the Migration guide to learn more about using the strict JSON validation and the new HTTP type exports!
Credits
Huge thanks to @diego-aquino for helping!
Full Changelog: v0.2.1...v0.3.0
- feat: request match by search params (#13) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/99
- feat: http request tracker clear (#100) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/101
- feat: request match by headers (#16) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/102
- chore: sync
canary
withv0.2.x
by @diego-aquino in https://github.com/diego-aquino/zimic/pull/107 - feat: request match by body (#12) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/108
- feat: strict JSON validation (#106) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/109
- refactor(#zimic)!: simplify type exports (#113) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/114
- build: dependency upgrades by @diego-aquino in https://github.com/diego-aquino/zimic/pull/115
- feat: support to typescript 5.4 by @diego-aquino in https://github.com/diego-aquino/zimic/pull/116
- docs: v0.3.0 (#24) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/117
- chore: typescript CI matrix (#68) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/118
- chore: check typescript 5.0 on CI (#68) by @diego-aquino in https://github.com/diego-aquino/zimic/pull/119
- chore(release): v0.3.0 by @diego-aquino in https://github.com/diego-aquino/zimic/pull/120