Repository navigation
Waitkit 1.0.0
Highlights
One engine for every adapter. Rule matching, config validation, defaults, and the decision of what happens to a request now live only in @waitkit/core (resolveOutcome, applyOutcome). The fetch interceptor, MSW handlers, React hooks, and CLI all run that same engine, so a rule behaves the same wherever you use it. This is a major release: see the migration guide.
Clearer rules.
urlstrings are path patterns matched against the whole pathname:/api/users/:id,/api/*, or*. Substring matching is gone.- Effects are grouped:
delay,timeout: { rate, ms },error: { rate, status, statusText, headers, body }. - An invalid config throws
WaitKitConfigErrorlisting every issue with its path, and names the replacement for options removed in 1.0.
A controller you can follow. controller.on(type, listener) reports request, match, delayStart, delayEnd, error, settle, and change. Events for one request share an id, and settle says whether it was passed through, failed, timed out, or aborted. Aborting a request cancels its simulated wait. dispose() restores the original fetch.
Redesigned DevTools. Waiting requests show the time left and a progress bar; finished ones show how they ended. The panel collapses to a small launcher with the current scenario, remembers whether it was open, toggles with Alt+Shift+W, and has dark, light, and system themes. It renders in a shadow root, so your app's CSS cannot change it.
MSW 2 and 3. withWaitKit(effects, resolver) uses the same effect shape as core rules and works with both major versions of MSW.
CLI. waitkit init writes a starter config with four scenarios; waitkit validate and waitkit list use the same validator as core and exit with 1 on an invalid config.
Packaging. The libraries ship ESM and CommonJS with type declarations for both, checked with publint and Are the Types Wrong; the CLI ships ESM. Published with npm provenance. Requires Node.js 22.18 or later. Licensed under Apache-2.0 (previously MIT).
All Waitkit packages share one version. They are published to npm when this release is published, with provenance from this repository's publish.yml workflow.
| Package | npm | Changelog |
|---|---|---|
@waitkit/core |
1.0.0 |
CHANGELOG |
@waitkit/react |
1.0.0 |
CHANGELOG |
@waitkit/msw |
1.0.0 |
CHANGELOG |
@waitkit/cli |
1.0.0 |
CHANGELOG |
pnpm add -D @waitkit/core@1.0.0 @waitkit/react@1.0.0What's Changed
Features
- Waitkit 1.0: core 엔진 통합, DevTools 재설계, 릴리스 자동화 by @junjuny0227 in #8
Documentation
- Claude 하네스 및 로드맵 정리 by @junjuny0227 in #1
CI and maintenance
- Waitkit 1.0.0 버전 PR by @junjuny0227 in #9
Other changes
- core 시뮬레이션 동작과 이벤트 API 보강 by @junjuny0227 in #2
- react 패키지 기반 추가 by @junjuny0227 in #3
- feat: WaitKitDevTools 개발용 컨트롤 패널 추가 by @junjuny0227 in #4
- feat: MSW handler에 Waitkit 시뮬레이션을 적용하는 @waitkit/msw 추가 by @junjuny0227 in #5
- feat(core/react/msw): API 일관성·DX·유지보수 개선 (pre-CLI polish) by @junjuny0227 in #6
- feat: @waitkit/cli 패키지 추가 및 core validate 함수 공개 export by @junjuny0227 in #7
New Contributors
- @junjuny0227 made their first contribution in #1
Full Changelog: https://github.com/junjuny0227/waitkit/commits/v1.0.0