Skip to content

v0.4.0

Latest
Compare
Choose a tag to compare
@sd2k sd2k released this 19 Sep 16:58
· 29 commits to main since this release
v0.4.0
6ccc40b

Changed

  • The DataService trait has a new associated type, Query, which corresponds to the type of the query sent from the frontend component of the plugin (the TQuery type parameter of the frontend DatasourceApi implementation). The backend SDK will attempt to deserialize the JSON into this struct, and it will be accessible on the query property of each query in QueryDataRequest.queries. Note that QueryDataRequest is also now generic over this type. Within the DataService trait, it is simplest to use Self::Query to refer to the new type.
    To retain the old behaviour, set Query = serde_json::Value in DataService.
  • Add headers field containing the allow-listed fields sent along with the request to CheckHealthRequest (see the Go SDK PR for more details)
  • Add type_ field containing the plugin type to DataSourceInstanceSettings. This is equal to the plugin_id field on PluginContext. See the Go SDK PR for justification.
  • Add impl of backend::IntoHttpResponse for http::Response<Vec<u8>>.
  • Remove unused lifetime on IntoOptField blanket impl.
  • Derive Eq (as well as just PartialEq) for various structs across the crate.
  • Bump arrow2 dependency to 0.14.0
  • Bump prost to 0.11.0 and remove prost-build dependency, preferring checked-in generated code. This should speed up build times and remove the dependency on protoc since we no longer need to compile proto definitions.
  • Bump tonic to 0.8.0 and remove tonic-build dependency.
  • Bump serde_with dependency to 2.0.0
  • Use cargo-release to automate release process