Release highlight - New Partial query middleware ✂️
Partial query middleware enables basic querying and filtering capabilities on any API endpoint that returns JSON as a response.
This middleware is built on the json-mask package which provides a basic syntax to specify the fields that the response should include. The query string needs to be passed to diode-filter
query parameter in the proxy URL.
diode-partial-query-demo.mp4
Other changes:
- Added Mock deployment mode 🧪
- Mock deployment mode is only intended for testing and demonstration purposes. It can be enabled by setting
NEXT_PUBLIC_MOCK_DEPLOYMENT
environment variable to"true"
. - As of now, Diode switches to using an in-memory mock Redis client in this mode whose data is lost after Diode exits and also shows a banner at the top of the UI to indicate it is in mock deployment mode.
- Mock deployment mode is only intended for testing and demonstration purposes. It can be enabled by setting
- Added an option in the UI to toggle request data forwarding.
- Added syntax highlighting for Secret variables referenced in supported input fields.
- Added confirmation dialog before performing dangerous delete actions that are irreversible.
- Added toggle to show/hide Secret variables values during creation.
⚠️ BREAKING: Updated restriction middleware config schema for consistency with other middlewares.- Updated most of the forms on the UI to use
react-hook-form
library which has improved performance and ergonomics. - Updated request flow diagram to separate request/response middlewares.
- Updated API Method tags to have different color schemes based on methods.
- Updated footer style of the dashboard.
- Updated response middlewares communication flow in code.
- Replaced all icons in the UI to use icons from Heroicons package.
- Fixed long proxy URLs overflowing to multiple lines.
- Fixed CORS not being allowed when restriction middleware is disabled.
- Switched to using Next.js 11
To understand the reason for this change, please read the commit message.
Full Changelog: v1.0.0...v1.1.0