msw

Seamless REST/GraphQL API mocking library for browser and Node.js.

MIT License

Downloads
15.7M
Stars
14.9K
Committers
153

Bot releases are hidden (Show)

msw - v2.2.7

Published by kettanaito 7 months ago

v2.2.7 (2024-03-18)

Bug Fixes

  • resolve "~/core" import for .d.mts modules (#2095) (7cdbd1a2c4e02c11ba22e50b50ee042228d00f92) @kettanaito
msw - v2.2.6

Published by kettanaito 7 months ago

v2.2.6 (2024-03-17)

Bug Fixes

  • setupWorker: emit the correct life-cycle events for bypassed requests (#2094) (c485989df15962fb02a36fd85654228719f8fed7) @kettanaito
  • bypass: support modifying the bypassed request (#2093) (2c8570b7130e2d98f4461ef144e171ac4aa2b8f3) @kettanaito
msw - v2.2.5

Published by kettanaito 7 months ago

v2.2.5 (2024-03-17)

Bug Fixes

  • improve the worker integrity warning (#2091) (e7493557e1c4d9ecece11cd45d29472c90c28426) @kettanaito
  • make worker integrity mismatch a warning (#2090) (a0f8021ccf16565e772b81b1c70bebdba6d1df58) @kettanaito
msw - v2.2.4

Published by kettanaito 7 months ago

v2.2.4 (2024-03-16)

Bug Fixes

  • resolve "@inquirer/confim" default export (#2088) (93d9f86a0c7cab6afd19a35ff1960c4d983844f8) @kettanaito
  • parse "Set-Cookie" response header with commas correctly (#2075) (23c16e69e2c293c563e9665930182296fd0e5bad) @ushiboy
msw - v1.3.3

Published by kettanaito 7 months ago

v1.3.3 (2024-03-15)

Bug Fixes

  • remove upper version range for "typescript" (#2086) (8f456bb3dec7c9a136483a9ce9021a90a62cb0f9) @kettanaito
msw - v2.2.3

Published by kettanaito 8 months ago

v2.2.3 (2024-03-08)

Bug Fixes

  • remove the upper range for typescript peer dependency (#2077) (07cc073f0ddd46333de4ba42d3dc0dd2d01925b6) @kettanaito
msw - v2.2.2

Published by kettanaito 8 months ago

v2.2.2 (2024-02-28)

Bug Fixes

  • set correct "Content-Length" response header for special characters (#2045) (#2046) (eb3e284a3e27956987854d23878aa4ea11c56dde) @ZeroCho
msw - v2.2.1

Published by kettanaito 8 months ago

v2.2.1 (2024-02-17)

Bug Fixes

  • remove unused types (#2043) (a78d57d3e917d9b5ee4ac98e6851a3ab504ccd1a) @kettanaito
msw - v2.2.0

Published by kettanaito 8 months ago

v2.2.0 (2024-02-12)

Features

  • support concurrent test runs via "server.boundary" (announcement, #2000) (450e7bc72e7a9315053b50c450621ab037ddc5f6) @kettanaito
  • automatically set "Content-Length" on text/json responses (#1996) (a95723520939d2ec7a588b59197e7823d0c89c94) @kettanaito
  • add msw/core/http and msw/core/graphql export paths (#2004) (31442cfc9571cbc36a5b9d8b8ce8d54d61bfaeee) @thepassle @kettanaito
  • drop webpack 4 support (remove "chokidar") (#2021) (a0761424c6b59b54e70840e5d74f789f8a8fa6e6) @sairus2k @kettanaito
  • use a lightweight "@inquirer/confirm" in the CLI (#2020) (f25af8a1e5379a723fe7bf0655bb8d8dc7ca1961) @sairus2k @kettanaito

Bug Fixes

  • setupWorker: set "response.url" in "response:*" events (#2031) (0e9d65ffbfb1f83a47c7dc2fcb2c885cbbf5d2ac) @kettanaito
msw - v2.1.7

Published by kettanaito 9 months ago

v2.1.7 (2024-02-06)

Bug Fixes

  • support intercepting fetch requests in React Native (#2017) (e4307954722980a6d3320c79ab5398ad8084f37b) @sairus2k @kettanaito
  • improve fetch compatibility with React Native (#2016) (aeafcd20b6a97a2bb613df7a7c374d0c796d49e5) @kettanaito

Special thanks to @willdawsonme for investigating these issues.

msw - v2.1.6

Published by kettanaito 9 months ago

v2.1.6 (2024-02-05)

Bug Fixes

  • return type of "passthrough" (#2002) (b030db5b70664c835f6ac01171a790af35181202) @kettanaito
msw - v2.1.5

Published by kettanaito 9 months ago

v2.1.5 (2024-01-25)

Bug Fixes

  • add "request" to response events (#1993) (bad537f1fce7511f0a7258c0216a9ad49fbc27b8) @kettanaito
  • does not warn on unhandled "file://" requests (#1997) (5afedb1af6d20f8be4e079f6a22ca617890b3507) @kettanaito
  • resolve relative fetch urls in jsdom (#1999) (82ab765c44e866310ba9c4cc24fed3d6cfaf7735) @kettanaito
msw - v2.1.4

Published by kettanaito 9 months ago

v2.1.4 (2024-01-23)

Bug Fixes

  • bundle browser build (#1988) (1cbf61553991d72452fa0bb5172f4efb967cd01b) @thepassle @kettanaito
  • removes request parsing from "onUnhandledRequest" (#1990) (bc0bea6325f61d677d21422ab7e503310f999b00) @kettanaito
msw - v2.1.3

Published by kettanaito 9 months ago

v2.1.3 (2024-01-22)

Bug Fixes

  • export "getResponse" for batched GraphQL queries (#1982) (42f147367709d85c09ec44eb300848d0bbbf1b6d) @kettanaito
  • reduce library footprint by avoiding barrel imports (#1987) (b803e26a65fff537332ccfcb0a1a53dc4462659c) @thepassle
msw - v2.1.2

Published by kettanaito 9 months ago

v2.1.2 (2024-01-17)

Bug Fixes

  • export "HttpRequestHandler" and "GraphQLRequestHandler" types (#1973) (ca423d9ffcf940ed9118e65126b5008e355fc2b3) @kettanaito
msw - v2.1.1

Published by kettanaito 9 months ago

v2.1.1 (2024-01-17)

Bug Fixes

  • annotate the "requestId" response resolver argument (#1969) (f22294eb81bb53495265fba777e049a7102c2e1f) @skvale
msw - v2.1.0

Published by kettanaito 9 months ago

v2.1.0 (2024-01-15)

Features

  • up tsconfig target for more modern syntax (#1780) (29182cebaaa5e7acfebcc513e5f84e8723236d27) @thepassle @kettanaito
  • add "requestId" as response resolver argument (#1942) (51ab8cc0e31848e82eebc2f3e0cdf280f4a2ef8e) @skvale @kettanaito
  • support multiple directories in "msw.workerDirectory" (#1832) (4dbf99ac542b2f2dbca70874d638fb7261d9ffdd) @kettanaito
  • deprecate "waitUntilReady" (deferNetworkUntil) worker option (#1964) (86a22ac92f77a11c0fd165f1313de1cc8f936f16) @kettanaito
  • support throwing responses in response resolvers (#1963) (39dc0e64497df448de74fe827fe6f1b4ecdbf5c4) @kettanaito

Shoutout to @mattcosta7 for his continuous on the library's performance and stability 🎉

msw - v2.0.14

Published by kettanaito 9 months ago

v2.0.14 (2024-01-12)

Bug Fixes

  • GraphQLHandler: move cookie parsing to parse phase (#1957) (ba87f99db4ad6fd99567cf5a87c1af90044ef906) @mattcosta7 @kettanaito
  • improve custom request handler and resolver annotations (#1961) (8624f31c464f61c35d6e53584b678994d9576fa8) @kettanaito
msw - v2.0.13

Published by kettanaito 10 months ago

v2.0.13 (2024-01-09)

Bug Fixes

  • publish source and include sourcemaps (#1958) (68a57bd042c6c938f1a5bd84b21e068ad9517a78) @kettanaito
msw - v2.0.12

Published by kettanaito 10 months ago

v2.0.12 (2024-01-05)

Bug Fixes

  • cache request cloning and request parsing (#1914) (a79a9d739e88f5501c0253c4c4701b76c2203ff2) @mattcosta7 @kettanaito
  • support [email protected] (#1874) (1da80bb157010c3586dd2dd33f463f70ab0bbd28) @falsepopsky @mattcosta7 @kettanaito