Releases: zimicjs/zimic
v0.12.0-canary.3
Chore
- chore(#zimic): include
src
in npm releases (#478) by @diego-aquino in #515
Full Changelog: v0.12.0-canary.2...v0.12.0-canary.3
v0.12.0-canary.2
Features
- feat(#zimic)!: remove
handler.bypass()
(#500) by @diego-aquino in #514
Full Changelog: v0.12.0-canary.1...v0.12.0-canary.2
v0.12.0-canary.1
Features
- feat(#zimic): add
times()
andcheckTimes()
(#398) by @diego-aquino in #512
Full Changelog: v0.12.0-canary.0...v0.12.0-canary.1
v0.12.0-canary.0
Chore
- chore(root): bump the npm group with 14 updates by @dependabot in #509
- chore(root): bump the npm group with 9 updates by @dependabot in #513
Full Changelog: v0.11.1...v0.12.0-canary.0
v0.11.1
v0.11.1 is here! π
Dependencies
- βοΈ General dependency upgrades (in f959efb)
Credits
Huge thanks to @diego-aquino for helping!
Full Changelog: v0.11.0...v0.11.1
- chore(root): bump the npm group with 14 updates by @dependabot in #509
- chore(release): [email protected] by @diego-aquino in #510
v0.11.1-canary.0
Chore
- chore(root): bump the npm group with 14 updates by @dependabot in #509
Full Changelog: v0.11.0...v0.11.1-canary.0
v0.11.0
v0.11.0 is here! π
Features
-
π‘ Improved local unhandled request warnings (#491 in cb123d3):
Starting in v0.11, Zimic will only warn about local unhandled requests if they have some running interceptor. As of v0.10, any local unhandled requests would be warned by default after starting a local interceptor. This was a common source of confusion because the warnings were not limited to the base URLs of the interceptors and frequently required default unhanded strategies to ignore unrelated or unmocked requests. The confusion was aggravated by this behavior being different from remote interceptors. v0.11 improves the consistency between local and remote interceptors regarding unhandled requests, which are now only warned if they match the base URL of some running interceptor. Learn more at Unhandled requests.
If you used default unhanded strategies to ignore unrelated or unmocked requests up to v0.10, they are likely no longer necessary!
-
π‘οΈ Default local unhandled request rejection (#492 in 671703f)
To further improve consistency between local and remove interceptors, local unhandled requests are now rejected by default, instead of bypassed. To preserve the behavior up to v0.10, you can use
action: 'bypass'
for your local interceptors. However, we recommend considering and migrating toreject
, which prevents unhandled requests from reaching real services and causing false test positives. Learn more at Unhandled requests. -
βοΈ
interceptor.clear()
now fully clears handlers (#506 in 5fa6969)Calling
interceptor.clear()
now also clears response declarations, restrictions, and intercepted requests from its handlers. Up to v0.10, the handlers had only their response declarations cleared, which was not what the documentation indicated. v0.11 improves the clearing behavior to be more intuitive and work as described in the docs.
Performance
-
β‘ Improve the typing performance of HTTP interceptors (#502 in 4d910a7)
v0.11 includes many performance improvements to the HTTP interceptor and HTTP request handler types. They are now more optimized for type checking by the TypeScript compiler.
Fixes
Deprecations
-
β οΈ Deprecatedhandler.bypass()
(#498 in 5fa6969)handler.bypass()
is now deprecated and will be removed in v0.12. Learn more at #498.
Credits
Huge thanks to @diego-aquino for helping!
Full Changelog: v0.10.0...v0.11.0
- feat(#zimic)!: no global unhandled local request logging (#491) by @diego-aquino in #493
- feat(#zimic)!: reject local unhandled requests by default (#492) by @diego-aquino in #494
- chore(ci): include typescript 5.7 in ci matrix (#495) by @diego-aquino in #496
- chore(root): bump the npm group with 13 updates by @dependabot in #497
- fix: array search params log (#499) by @diego-aquino in #501
- chore(root): bump the npm group with 21 updates by @dependabot in #503
- perf(#zimic): improve interceptor typing performance (#502) by @diego-aquino in #504
- feat(#zimic)!: deprecate
handler.bypass()
(#498) by @diego-aquino in #505 - chore(release): [email protected] by @diego-aquino in #507
v0.11.0-canary.7
Features
- feat(#zimic)!: deprecate
handler.bypass()
(#498) by @diego-aquino in #505
Full Changelog: v0.11.0-canary.6...v0.11.0-canary.7
v0.11.0-canary.6
Performance
- perf(#zimic): improve interceptor typing performance (#502) by @diego-aquino in #504
Full Changelog: v0.11.0-canary.5...v0.11.0-canary.6
v0.11.0-canary.5
Chore
- chore(root): bump the npm group with 21 updates by @dependabot in #503
Full Changelog: v0.11.0-canary.4...v0.11.0-canary.5