Skip to content

Tags: denik1981/msw

Tags

v0.39.2

Toggle v0.39.2's commit message
chore(release): 0.39.2 [skip ci]

## [0.39.2](mswjs/msw@v0.39.1...v0.39.2) (2022-03-15)

### Bug Fixes

* **parseIsomorphicRequest:** bypassing cookies properly ([mswjs#1155](mswjs#1155)) ([755bc9d](mswjs@755bc9d))
* remove console.log from "setRequestCookies" ([6f7ed98](mswjs@6f7ed98))
* set "credentials" to "same-origin" for "ClientRequest" ([mswjs#1159](mswjs#1159)) ([c3cd80a](mswjs@c3cd80a))
* set minimal supported Node.js version to 14 ([mswjs#1160](mswjs#1160)) ([d7ab139](mswjs@d7ab139))

v0.39.1

Toggle v0.39.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: add fallback for "_defaultAgent" in ClientRequest (mswjs#1152)

v0.39.0

Toggle v0.39.0's commit message
chore: remove "prepublishOnly", move build to "prepack"

v0.38.2

Toggle v0.38.2's commit message
chore: pin node version to 14

v0.38.1

Toggle v0.38.1's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix(handleRequest): bypass request only if "x-msw-bypass" header equa…

…ls "true" (mswjs#1110)

v0.38.0

Toggle v0.38.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
feat: update to @mswjs/interceptors 0.13.3 (mswjs#1095)

* feat: update to @mswjs/interceptors 0.13.3

* chore: use the "headers-polyfill" package (mswjs#1102)

v0.37.0

Toggle v0.37.0's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
chore: update dependencies for 0.37.0 (mswjs#1098)

* chore: update dependencies

* chore: remove "@types/inquirer" dependency

* deps: update "graphql" to 16.3.0

v0.36.8

Toggle v0.36.8's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: allow variables inference in GraphQLRequest (mswjs#1081)

* fix: allow variables inference in GraphQLRequest

I noticed that the return type of a `graphql.query<T, N>...` call is
`GraphQLHandler<GraphQLRequest<any>>` - it's not propagating the
variables generic parameter into the return type.  I assume this wasn't
intentional.

This change annotates the constructor of the `GraphQLHandler` class with
the correct generic parameters, so the return type should now be
`GraphQLHandler<GraphqlRequest<N>>`.

* test(graphql): add variables inference typing test

Co-authored-by: Artem Zakharchenko <kettanaito@gmail.com>

v0.36.7

Toggle v0.36.7's commit message
fix: update "@mswjs/cookies" for safe `localStorage` access (mswjs#1071)

v0.36.6

Toggle v0.36.6's commit message

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
fix: support root-level boolean and null as a json request body (mswj…

…s#1035)

Root-level `boolean` and `null` are valid JSON values. The library now supports specifying them both as the mocked response body.