From 2530ca5ccec3075fc6a247dfa824b1b3c198b56d Mon Sep 17 00:00:00 2001 From: Sriram <153843+yesoreyeram@users.noreply.github.com> Date: Fri, 28 Jun 2024 14:10:31 +0100 Subject: [PATCH] Initial release (#4) * csvframer update * jsonframer update --- go.work.sum | 2 +- lib/go/csvframer/CHANGELOG.md | 4 ++++ lib/go/csvframer/framer.go | 2 +- lib/go/csvframer/framer_test.go | 2 +- lib/go/csvframer/go.mod | 4 ++-- lib/go/csvframer/go.sum | 8 ++++---- lib/go/csvframer/package.json | 2 +- lib/go/jsonframer/CHANGELOG.md | 4 ++++ lib/go/jsonframer/go.mod | 4 ++-- lib/go/jsonframer/go.sum | 8 ++++---- lib/go/jsonframer/jsonframer.go | 2 +- lib/go/jsonframer/package.json | 2 +- 12 files changed, 26 insertions(+), 18 deletions(-) diff --git a/go.work.sum b/go.work.sum index 87c1a81..1fe49c3 100644 --- a/go.work.sum +++ b/go.work.sum @@ -340,7 +340,7 @@ github.com/googleapis/gax-go/v2 v2.0.5/go.mod h1:DWXyrwAJ9X0FpwwEdw+IPEYBICEFu5m github.com/googleapis/gax-go/v2 v2.12.0/go.mod h1:y+aIqrI5eb1YGMVJfuV3185Ts/D7qKpsEkdD5+I6QGU= github.com/grafana/grafana-plugin-sdk-go v0.167.0/go.mod h1:dPhljkVno3Bg/ZYafMrR/BfYjtCRJD2hU2719Nl3QzM= github.com/grafana/grafana-plugin-sdk-go v0.199.0/go.mod h1:XDTbWaz2ajuAubya8kaogWt6nfeWk2mLDOKUNZH/wJA= -github.com/grafana/infinity-libs/lib/go/utils v1.0.0/go.mod h1:86US+G1Ujk61fibdPSEHWl+atBjXGGeibuEOMfMU2v4= +github.com/grafana/infinity-libs/lib/go/gframer v1.0.0/go.mod h1:tCjLSNFQnuYiNeBIAyb51jNV8ad0eI/M69P1rxm77Fc= github.com/grpc-ecosystem/go-grpc-middleware v1.4.0/go.mod h1:g5qyo/la0ALbONm6Vbp88Yd8NsDy6rZz+RcrMPxvld8= github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0/go.mod h1:8NvIoxWQoOIhqOTXgfV/d3M/q6VIi02HzZEHgUlZvzk= github.com/grpc-ecosystem/grpc-gateway v1.16.0 h1:gmcG1KaJ57LophUzW0Hy8NmPhnMZb4M0+kPpLofRdBo= diff --git a/lib/go/csvframer/CHANGELOG.md b/lib/go/csvframer/CHANGELOG.md index 80ca74d..7d3c154 100644 --- a/lib/go/csvframer/CHANGELOG.md +++ b/lib/go/csvframer/CHANGELOG.md @@ -1,5 +1,9 @@ # @grafana/infinity-csvframer +## 1.0.0 + +- chore release + ## 0.0.5 - 873e734: cleanup diff --git a/lib/go/csvframer/framer.go b/lib/go/csvframer/framer.go index 209385f..1ffd31f 100644 --- a/lib/go/csvframer/framer.go +++ b/lib/go/csvframer/framer.go @@ -8,7 +8,7 @@ import ( "strings" "github.com/grafana/grafana-plugin-sdk-go/data" - "github.com/yesoreyeram/grafana-plugins/lib/go/gframer" + "github.com/grafana/infinity-libs/lib/go/gframer" ) type FramerOptions struct { diff --git a/lib/go/csvframer/framer_test.go b/lib/go/csvframer/framer_test.go index 438bab3..7682dab 100644 --- a/lib/go/csvframer/framer_test.go +++ b/lib/go/csvframer/framer_test.go @@ -7,9 +7,9 @@ import ( "github.com/grafana/grafana-plugin-sdk-go/experimental" "github.com/grafana/infinity-libs/lib/go/csvframer" + "github.com/grafana/infinity-libs/lib/go/gframer" "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" - "github.com/yesoreyeram/grafana-plugins/lib/go/gframer" ) func TestCsvStringToFrame(t *testing.T) { diff --git a/lib/go/csvframer/go.mod b/lib/go/csvframer/go.mod index d4d9667..bb69cf3 100644 --- a/lib/go/csvframer/go.mod +++ b/lib/go/csvframer/go.mod @@ -4,8 +4,8 @@ go 1.22.1 require ( github.com/grafana/grafana-plugin-sdk-go v0.231.0 + github.com/grafana/infinity-libs/lib/go/gframer v1.0.0 github.com/stretchr/testify v1.9.0 - github.com/yesoreyeram/grafana-plugins/lib/go/gframer v0.2.0 ) require ( @@ -32,6 +32,7 @@ require ( github.com/google/go-cmp v0.6.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gorilla/mux v1.8.1 // indirect + github.com/grafana/infinity-libs/lib/go/utils v1.0.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect @@ -68,7 +69,6 @@ require ( github.com/unknwon/com v1.0.1 // indirect github.com/unknwon/log v0.0.0-20200308114134-929b1006e34a // indirect github.com/urfave/cli v1.22.15 // indirect - github.com/yesoreyeram/grafana-plugins/lib/go/utils v0.0.1 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.51.0 // indirect diff --git a/lib/go/csvframer/go.sum b/lib/go/csvframer/go.sum index 561c74c..dd3dace 100644 --- a/lib/go/csvframer/go.sum +++ b/lib/go/csvframer/go.sum @@ -66,6 +66,10 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/grafana/grafana-plugin-sdk-go v0.231.0 h1:Qt4PBDR8b4MTUxL48EaZw1fHI1rXUNNhvTU/Nf0Ex2g= github.com/grafana/grafana-plugin-sdk-go v0.231.0/go.mod h1:8fJk+5J1hMkpqY/7vrXHKgAsqELWNkQvLQ5A5xCVZHk= +github.com/grafana/infinity-libs/lib/go/gframer v1.0.0 h1:TYKumCoWlf9KlXa6M9pi3s6H9bjl0V5XF8f73aitNWE= +github.com/grafana/infinity-libs/lib/go/gframer v1.0.0/go.mod h1:tCjLSNFQnuYiNeBIAyb51jNV8ad0eI/M69P1rxm77Fc= +github.com/grafana/infinity-libs/lib/go/utils v1.0.0 h1:jXlKDSay/S2tdaWghc0E7DzKugMQhEUcKtlVPmb69oc= +github.com/grafana/infinity-libs/lib/go/utils v1.0.0/go.mod h1:86US+G1Ujk61fibdPSEHWl+atBjXGGeibuEOMfMU2v4= github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 h1:qnpSQwGEnkcRpTqNOIR6bJbR0gAorgP9CSALpRcKoAA= github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1/go.mod h1:lXGCsh6c22WGtjr+qGHj1otzZpV/1kwTMAqkwZsnWRU= github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 h1:pRhl55Yx1eC7BZ1N+BBWwnKaMyD8uC+34TLdndZMAKk= @@ -182,10 +186,6 @@ github.com/unknwon/log v0.0.0-20200308114134-929b1006e34a/go.mod h1:1xEUf2abjfP9 github.com/urfave/cli v1.22.1/go.mod h1:Gos4lmkARVdJ6EkW0WaNv/tZAAMe9V7XWyB60NtXRu0= github.com/urfave/cli v1.22.15 h1:nuqt+pdC/KqswQKhETJjo7pvn/k4xMUxgW6liI7XpnM= github.com/urfave/cli v1.22.15/go.mod h1:wSan1hmo5zeyLGBjRJbzRTNk8gwoYa2B9n4q9dmRIc0= -github.com/yesoreyeram/grafana-plugins/lib/go/gframer v0.2.0 h1:FU1ABOCoJdT5e4F7Av7mciVz7ArWvf/xBkoopztVrG0= -github.com/yesoreyeram/grafana-plugins/lib/go/gframer v0.2.0/go.mod h1:gSSkuGl3yyRoEgrrttRrw1log8XLW5n4HfKwQm8rqqs= -github.com/yesoreyeram/grafana-plugins/lib/go/utils v0.0.1 h1:A4C+oGjvMq8sINwXqKh19OfdKmB8BD2+Yhc2SND70L8= -github.com/yesoreyeram/grafana-plugins/lib/go/utils v0.0.1/go.mod h1:4uhug7R1Gu7qDisf6y6p2lI+wdNbLyM0Og1wJJDDLr0= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= diff --git a/lib/go/csvframer/package.json b/lib/go/csvframer/package.json index 671e856..93e7361 100644 --- a/lib/go/csvframer/package.json +++ b/lib/go/csvframer/package.json @@ -1,7 +1,7 @@ { "name": "@grafana/infinity-csvframer", "private": true, - "version": "0.0.5", + "version": "1.0.0", "scripts": { "tidy": "go mod tidy", "test:backend": "go test -v ./..." diff --git a/lib/go/jsonframer/CHANGELOG.md b/lib/go/jsonframer/CHANGELOG.md index 29b9efb..2e9b9df 100644 --- a/lib/go/jsonframer/CHANGELOG.md +++ b/lib/go/jsonframer/CHANGELOG.md @@ -1,5 +1,9 @@ # @grafana/infinity-jsonframer +## 1.0.0 + +- chore release + ## 0.2.3 - Fixed a bug in multi framer where long frame conversion diff --git a/lib/go/jsonframer/go.mod b/lib/go/jsonframer/go.mod index 3690748..70752ae 100644 --- a/lib/go/jsonframer/go.mod +++ b/lib/go/jsonframer/go.mod @@ -4,11 +4,11 @@ go 1.22.1 require ( github.com/grafana/grafana-plugin-sdk-go v0.231.0 + github.com/grafana/infinity-libs/lib/go/gframer v1.0.0 github.com/noborus/trdsql v0.13.0 github.com/stretchr/testify v1.9.0 github.com/tidwall/gjson v1.17.0 github.com/xiatechs/jsonata-go v1.7.1 - github.com/yesoreyeram/grafana-plugins/lib/go/gframer v0.2.0 ) require ( @@ -39,6 +39,7 @@ require ( github.com/google/go-cmp v0.6.0 // indirect github.com/google/uuid v1.6.0 // indirect github.com/gorilla/mux v1.8.1 // indirect + github.com/grafana/infinity-libs/lib/go/utils v1.0.0 // indirect github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 // indirect github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 // indirect github.com/grpc-ecosystem/grpc-gateway/v2 v2.19.1 // indirect @@ -92,7 +93,6 @@ require ( github.com/unknwon/com v1.0.1 // indirect github.com/unknwon/log v0.0.0-20200308114134-929b1006e34a // indirect github.com/urfave/cli v1.22.15 // indirect - github.com/yesoreyeram/grafana-plugins/lib/go/utils v0.0.1 // indirect github.com/zeebo/xxh3 v1.0.2 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.51.0 // indirect go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.51.0 // indirect diff --git a/lib/go/jsonframer/go.sum b/lib/go/jsonframer/go.sum index c929da6..3559817 100644 --- a/lib/go/jsonframer/go.sum +++ b/lib/go/jsonframer/go.sum @@ -84,6 +84,10 @@ github.com/gorilla/mux v1.8.1 h1:TuBL49tXwgrFYWhqrNgrUNEY92u81SPhu7sTdzQEiWY= github.com/gorilla/mux v1.8.1/go.mod h1:AKf9I4AEqPTmMytcMc0KkNouC66V3BtZ4qD5fmWSiMQ= github.com/grafana/grafana-plugin-sdk-go v0.231.0 h1:Qt4PBDR8b4MTUxL48EaZw1fHI1rXUNNhvTU/Nf0Ex2g= github.com/grafana/grafana-plugin-sdk-go v0.231.0/go.mod h1:8fJk+5J1hMkpqY/7vrXHKgAsqELWNkQvLQ5A5xCVZHk= +github.com/grafana/infinity-libs/lib/go/gframer v1.0.0 h1:TYKumCoWlf9KlXa6M9pi3s6H9bjl0V5XF8f73aitNWE= +github.com/grafana/infinity-libs/lib/go/gframer v1.0.0/go.mod h1:tCjLSNFQnuYiNeBIAyb51jNV8ad0eI/M69P1rxm77Fc= +github.com/grafana/infinity-libs/lib/go/utils v1.0.0 h1:jXlKDSay/S2tdaWghc0E7DzKugMQhEUcKtlVPmb69oc= +github.com/grafana/infinity-libs/lib/go/utils v1.0.0/go.mod h1:86US+G1Ujk61fibdPSEHWl+atBjXGGeibuEOMfMU2v4= github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1 h1:qnpSQwGEnkcRpTqNOIR6bJbR0gAorgP9CSALpRcKoAA= github.com/grpc-ecosystem/go-grpc-middleware/providers/prometheus v1.0.1/go.mod h1:lXGCsh6c22WGtjr+qGHj1otzZpV/1kwTMAqkwZsnWRU= github.com/grpc-ecosystem/go-grpc-middleware/v2 v2.1.0 h1:pRhl55Yx1eC7BZ1N+BBWwnKaMyD8uC+34TLdndZMAKk= @@ -248,10 +252,6 @@ github.com/urfave/cli v1.22.15 h1:nuqt+pdC/KqswQKhETJjo7pvn/k4xMUxgW6liI7XpnM= github.com/urfave/cli v1.22.15/go.mod h1:wSan1hmo5zeyLGBjRJbzRTNk8gwoYa2B9n4q9dmRIc0= github.com/xiatechs/jsonata-go v1.7.1 h1:QuH8UYylziVnXHZZshs/1JY1/NGYxIyvpk1kmGTkpgo= github.com/xiatechs/jsonata-go v1.7.1/go.mod h1:qc/5uRtTKE5mil6PncK/ogxFQyhqlI6YnxvdyAz57Xw= -github.com/yesoreyeram/grafana-plugins/lib/go/gframer v0.2.0 h1:FU1ABOCoJdT5e4F7Av7mciVz7ArWvf/xBkoopztVrG0= -github.com/yesoreyeram/grafana-plugins/lib/go/gframer v0.2.0/go.mod h1:gSSkuGl3yyRoEgrrttRrw1log8XLW5n4HfKwQm8rqqs= -github.com/yesoreyeram/grafana-plugins/lib/go/utils v0.0.1 h1:A4C+oGjvMq8sINwXqKh19OfdKmB8BD2+Yhc2SND70L8= -github.com/yesoreyeram/grafana-plugins/lib/go/utils v0.0.1/go.mod h1:4uhug7R1Gu7qDisf6y6p2lI+wdNbLyM0Og1wJJDDLr0= github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74= github.com/zeebo/assert v1.3.0 h1:g7C04CbJuIDKNPFHmsk4hwZDO5O+kntRxzaUoNXj+IQ= diff --git a/lib/go/jsonframer/jsonframer.go b/lib/go/jsonframer/jsonframer.go index 8ca96cd..7e545f3 100644 --- a/lib/go/jsonframer/jsonframer.go +++ b/lib/go/jsonframer/jsonframer.go @@ -7,9 +7,9 @@ import ( "strings" "github.com/grafana/grafana-plugin-sdk-go/data" + "github.com/grafana/infinity-libs/lib/go/gframer" "github.com/tidwall/gjson" jsonata "github.com/xiatechs/jsonata-go" - "github.com/yesoreyeram/grafana-plugins/lib/go/gframer" ) type FramerType string diff --git a/lib/go/jsonframer/package.json b/lib/go/jsonframer/package.json index fbf1c1a..329e8da 100644 --- a/lib/go/jsonframer/package.json +++ b/lib/go/jsonframer/package.json @@ -1,7 +1,7 @@ { "name": "@grafana/infinity-jsonframer", "private": true, - "version": "0.2.3", + "version": "1.0.0", "scripts": { "tidy": "go mod tidy", "test:backend": "go test -v ./..."