Upgrade go dependencies (#644)

* update pion WebRTC from v3 to v4.

* update mapstructure dependency to use go-viper version.

* update go-chi dependency to v5.
This commit is contained in:
Miroslav Šedivý
2026-04-25 15:20:43 +02:00
committed by GitHub
parent fdb0be3426
commit 2c124c506e
22 changed files with 49 additions and 131 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"net/http"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/m1k1o/neko/server/pkg/auth"
"github.com/m1k1o/neko/server/pkg/types"
+1 -1
View File
@@ -3,7 +3,7 @@ package room
import (
"net/http"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/m1k1o/neko/server/pkg/auth"
"github.com/m1k1o/neko/server/pkg/types/event"
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/m1k1o/neko/server/pkg/types"
"github.com/m1k1o/neko/server/pkg/utils"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
)
type SessionDataPayload struct {
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"os"
"strings"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
"github.com/rs/zerolog/log"
"github.com/spf13/cobra"
"github.com/spf13/viper"
+1 -1
View File
@@ -4,7 +4,7 @@ import (
"net/http"
"net/http/pprof"
"github.com/go-chi/chi"
"github.com/go-chi/chi/v5"
"github.com/m1k1o/neko/server/pkg/types"
)
@@ -3,7 +3,7 @@ package message
import (
"github.com/m1k1o/neko/server/internal/http/legacy/types"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
)
type Message struct {
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"fmt"
"net/http"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
oldMessage "github.com/m1k1o/neko/server/internal/http/legacy/message"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"errors"
"fmt"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
"github.com/spf13/viper"
oldEvent "github.com/m1k1o/neko/server/internal/http/legacy/event"
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"net/http"
"time"
"github.com/go-chi/chi/middleware"
"github.com/go-chi/chi/v5/middleware"
"github.com/rs/zerolog"
"github.com/m1k1o/neko/server/pkg/types"
+2 -2
View File
@@ -3,8 +3,8 @@ package http
import (
"net/http"
"github.com/go-chi/chi"
"github.com/go-chi/chi/middleware"
"github.com/go-chi/chi/v5"
"github.com/go-chi/chi/v5/middleware"
"github.com/go-chi/cors"
"github.com/rs/zerolog"
+1 -1
View File
@@ -9,7 +9,7 @@ import (
"github.com/m1k1o/neko/server/internal/webrtc/payload"
"github.com/m1k1o/neko/server/pkg/types"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
"github.com/rs/zerolog"
)
+2 -2
View File
@@ -10,12 +10,12 @@ import (
"sync/atomic"
"time"
"github.com/pion/ice/v2"
"github.com/pion/ice/v4"
"github.com/pion/interceptor"
"github.com/pion/interceptor/pkg/cc"
"github.com/pion/interceptor/pkg/gcc"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log"
"github.com/spf13/viper"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/m1k1o/neko/server/pkg/types"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promauto"
)
+1 -1
View File
@@ -8,7 +8,7 @@ import (
"github.com/pion/interceptor/pkg/cc"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
"github.com/rs/zerolog"
"github.com/m1k1o/neko/server/internal/config"
+2 -2
View File
@@ -6,8 +6,8 @@ import (
"sync"
"github.com/pion/rtcp"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v3/pkg/media"
"github.com/pion/webrtc/v4"
"github.com/pion/webrtc/v4/pkg/media"
"github.com/rs/zerolog"
"github.com/m1k1o/neko/server/pkg/types"
+1 -1
View File
@@ -7,7 +7,7 @@ import (
"github.com/m1k1o/neko/server/pkg/types/event"
"github.com/m1k1o/neko/server/pkg/types/message"
"github.com/pion/webrtc/v3"
"github.com/pion/webrtc/v4"
)
func (h *MessageHandlerCtx) signalRequest(session types.Session, payload *message.SignalRequest) error {