Fixes an issue that resulted in port numbers being treated as path parameters (#1036, #1028).
v0.36.3
Bug fixes
Fixes an issue that resulted in the CORS policy violation due to the library appending the x-msw-request-id request header (#713, #1022, #1024).
Internal
No longer sets the x-msw-request-id header on the request (#1024). Relies on the request.id set by the interceptors (Node.js) or the requestId generated by the worker (browser).
v0.36.2
Bug fixes
Fixes an issue that resulted in the "TypeError: expected.toLowerCase() is not a function" exception when using the rest.all() request handler (#1020, #1021).
v0.36.1
Bug fixes
Fixes an issue that resulted in the "SyntaxError: Invalid group specified name" exception in Safari (#1018, #1019 ).
v0.36.0
Breaking changes
Uses path-to-regexp for URL matching (#691, #888). This makes the path matching experience identical to such in ExpressJS, and enabled various new features:
Optional path segments (/foo/bar?);
Repeating groups (/foo/bar+).
Request path parameters are now annotated as ambiguous string | string[] (#999).
The RequestParams generic now follows the RequestBodyType generic, changing its order (#999):
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps msw from 0.21.3 to 0.36.4.
Release notes
Sourced from msw's releases.
... (truncated)
Commits
6b19df4
v0.36.4527add2
chore: add the "sponsors" section to README (#1037)b3c34e1
chore: use mswjs for GitHub sponsors (#1044)c342b48
chore: replace default branch for images in READMEbe87053
chore: add tech radar to mentions (#1038)2e7ecd8
Fixes escaping port number in absolute urls (#1028)d8bd81a
fix(getAbsoluteUrl): fix full url check (#982)d5b7312
fix: make PathParams type readonly (#1026)707e1d7
v0.36.3f5cee9b
fix: replace "x-msw-request-id" header (#1024)Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)