@yabbadabbadev/pepito 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +7 -0
- package/README.md +4 -1
- package/package.json +7 -17
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.1](https://github.com/yabbadabbadev/pepito/compare/v0.3.0...v0.3.1) (2026-11-14)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* support msw 3 alongside msw 2 ([#57](https://github.com/yabbadabbadev/pepito/issues/57)) ([e2953b2](https://github.com/yabbadabbadev/pepito/commit/e2953b257b1345b458afe821cd302697e058529a))
|
|
9
|
+
|
|
3
10
|
## [0.3.0](https://github.com/yabbadabbadev/pepito/compare/v0.2.0...v0.3.0) (2026-09-05)
|
|
4
11
|
|
|
5
12
|
|
package/README.md
CHANGED
|
@@ -115,9 +115,12 @@ console:
|
|
|
115
115
|
import { setupNetwork } from '@yabbadabbadev/pepito'
|
|
116
116
|
import { handlers } from './handlers'
|
|
117
117
|
|
|
118
|
-
setupNetwork(handlers, {
|
|
118
|
+
setupNetwork(handlers, { onUnhandledFrame: 'error' })
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
+
`onUnhandledFrame` is the msw 3 name; on msw 2 the same option is
|
|
122
|
+
`onUnhandledRequest`.
|
|
123
|
+
|
|
121
124
|
Importing anything from `pepito` — even just `setupNetwork` — already
|
|
122
125
|
brings the network matchers along as `expect` types: there's no separate
|
|
123
126
|
type registration. If your test `tsconfig` doesn't include the setup
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yabbadabbadev/pepito",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.1",
|
|
4
4
|
"description": "Network test utilities for Vitest browser mode: application mounting and matchers over the traffic observed by MSW",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -56,42 +56,32 @@
|
|
|
56
56
|
"build": "tsc -p tsconfig.build.json",
|
|
57
57
|
"pack:local": "npm run build && npm pack --pack-destination dist-pack",
|
|
58
58
|
"setup": "playwright install chromium",
|
|
59
|
-
"lint": "
|
|
60
|
-
"lint-fix": "
|
|
59
|
+
"lint": "oxlint --report-unused-disable-directives .",
|
|
60
|
+
"lint-fix": "oxlint --fix .",
|
|
61
61
|
"format": "prettier --write .",
|
|
62
62
|
"format:check": "prettier --check ."
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"msw": "^2.15.0",
|
|
65
|
+
"msw": "^2.15.0 || ^3.0.0",
|
|
66
66
|
"vitest": "^4.0.0 || ^5.0.0"
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@eslint/js": "^9.39.5",
|
|
70
69
|
"@sveltejs/vite-plugin-svelte": "^7.3.0",
|
|
71
70
|
"@types/react": "^19.2.18",
|
|
72
71
|
"@types/react-dom": "^19.2.4",
|
|
73
|
-
"@typescript-eslint/eslint-plugin": "^8.67.0",
|
|
74
|
-
"@typescript-eslint/parser": "^8.67.0",
|
|
75
72
|
"@vitejs/plugin-react": "^6.0.5",
|
|
76
73
|
"@vitest/browser": "^5.0.0",
|
|
77
74
|
"@vitest/browser-playwright": "^5.0.0",
|
|
78
75
|
"@vitest/coverage-v8": "^5.0.0",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"eslint-plugin-prettier": "^5.5.6",
|
|
82
|
-
"eslint-plugin-react": "^7.37.5",
|
|
83
|
-
"eslint-plugin-react-hooks": "^5.2.0",
|
|
84
|
-
"eslint-plugin-react-refresh": "^0.4.26",
|
|
85
|
-
"eslint-plugin-vitest-globals": "^1.6.1",
|
|
86
|
-
"globals": "^17.9.0",
|
|
87
|
-
"msw": "^2.15.0",
|
|
76
|
+
"msw": "^3.0.4",
|
|
77
|
+
"oxlint": "^1.81.0",
|
|
88
78
|
"playwright": "^1.62.1",
|
|
89
79
|
"prettier": "^3.9.6",
|
|
90
80
|
"react": "^19.2.8",
|
|
91
81
|
"react-dom": "^19.2.8",
|
|
92
82
|
"react-router": "^8.3.0",
|
|
93
83
|
"svelte": "^5.57.0",
|
|
94
|
-
"typescript": "^
|
|
84
|
+
"typescript": "^7.0.2",
|
|
95
85
|
"vitest": "^5.0.0",
|
|
96
86
|
"vitest-browser-react": "^2.3.0",
|
|
97
87
|
"vitest-browser-svelte": "^3.1.0",
|