mockrec 0.0.2
mockrec: ^0.0.2 copied to clipboard
Record API responses once, replay without backend. Dio interceptor for offline development, testing, and demos — zero config.
Changelog #
0.0.2 #
- Updated
diodependency lower bound to^5.4.0to ensure compatibility withDioExceptionand pass static analysis constraints. - Renamed package and references to
mockrecfor cleaner API usage (Mockrec.enable()). - Revamped documentation and README for better clarity and features highlight.
0.0.1 #
- Initial release.
Mockrec.enable()— attach the recording interceptor to any Dio instance.Mockrec.setMockMode()— toggle between recording and replay mode.Mockrec.clear()— clear all recorded mock data.MockInterceptor— Dio interceptor that records responses and replays them in mock mode.- In-memory storage with simple
METHOD_PATHcache key strategy.