mockrec 0.0.2 copy "mockrec: ^0.0.2" to clipboard
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 dio dependency lower bound to ^5.4.0 to ensure compatibility with DioException and pass static analysis constraints.
  • Renamed package and references to mockrec for 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_PATH cache key strategy.
5
likes
160
points
134
downloads

Documentation

Documentation
API reference

Publisher

verified publisherridltech.my.id

Weekly Downloads

Record API responses once, replay without backend. Dio interceptor for offline development, testing, and demos — zero config.

Repository (GitHub)
View/report issues

Topics

#mock #api #dio #testing #interceptor

Funding

Consider supporting this project:

sociabuzz.com

License

MIT (license)

Dependencies

dio, flutter

More

Packages that depend on mockrec