Skip to content

v0.177.0

Compare
Choose a tag to compare
@wbrowne wbrowne released this 20 Sep 13:48
· 282 commits to main since this release
e5fc54a

What's Changed

  • Add support for grafana config to PluginContext by @wbrowne in #726
  • Add plugin version and user agent fields to PluginContext by @wbrowne in #736

Full Changelog: v0.176.0...v0.177.0

Breaking changes

Both data source and app instance factory functions now require context.Context as an argument.

datasource.InstanceFactoryFunc(
-       func(s backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {
+	func(ctx context.Context, s backend.DataSourceInstanceSettings) (instancemgmt.Instance, error) {	
        },
)

app.InstanceFactoryFunc(
-       func(s backend.AppInstanceSettings) (instancemgmt.Instance, error) {
+	func(ctx context.Context, s backend.AppInstanceSettings) (instancemgmt.Instance, error) {	
        },
)

Compatibility

# github.com/grafana/grafana-plugin-sdk-go/backend
## compatible changes
ConvertFromProtobuf.GrafanaConfig: added
ConvertFromProtobuf.UserAgent: added
ConvertToProtobuf.GrafanaConfig: added
ConvertToProtobuf.UserAgent: added
FeatureToggles: added
GrafanaCfg: added
GrafanaConfigFromContext: added
NewGrafanaCfg: added
PluginContext.GrafanaConfig: added
PluginContext.PluginVersion: added
PluginContext.UserAgent: added
Proxy: added

# github.com/grafana/grafana-plugin-sdk-go/backend/app
## incompatible changes
InstanceFactoryFunc: changed from func(github.com/grafana/grafana-plugin-sdk-go/backend.AppInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error) to func(context.Context, github.com/grafana/grafana-plugin-sdk-go/backend.AppInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error)

# github.com/grafana/grafana-plugin-sdk-go/backend/datasource
## incompatible changes
InstanceFactoryFunc: changed from func(github.com/grafana/grafana-plugin-sdk-go/backend.DataSourceInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error) to func(context.Context, github.com/grafana/grafana-plugin-sdk-go/backend.DataSourceInstanceSettings) (github.com/grafana/grafana-plugin-sdk-go/backend/instancemgmt.Instance, error)

# github.com/grafana/grafana-plugin-sdk-go/backend/useragent
## compatible changes
package added

# github.com/grafana/grafana-plugin-sdk-go/experimental/featuretoggles
## compatible changes
EnabledFeatures: added

# github.com/grafana/grafana-plugin-sdk-go/experimental/oauthtokenretriever
## compatible changes
AppClientID: added
AppClientSecret: added
AppPrivateKey: added
AppURL: added

# github.com/grafana/grafana-plugin-sdk-go/genproto/pluginv2
## compatible changes
(*PluginContext).GetGrafanaConfig: added
(*PluginContext).GetPluginVersion: added
(*PluginContext).GetUserAgent: added
PluginContext.GrafanaConfig: added
PluginContext.PluginVersion: added
PluginContext.UserAgent: added

# summary
v0.177.0 is a valid semantic version for this release.