Skip to content

Commit 3df74e3

Browse files
authored
Merge pull request #4023 from shamaton/update/msgpack-v3
2 parents bb7d6d8 + bc1aa34 commit 3df74e3

File tree

7 files changed

+11
-9
lines changed

7 files changed

+11
-9
lines changed

bind_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717

1818
"github.com/fxamacker/cbor/v2"
1919
"github.com/gofiber/fiber/v3/binder"
20-
"github.com/shamaton/msgpack/v2"
20+
"github.com/shamaton/msgpack/v3"
2121
"github.com/stretchr/testify/require"
2222
"github.com/valyala/fasthttp"
2323
)

binder/msgpack_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package binder
33
import (
44
"testing"
55

6-
"github.com/shamaton/msgpack/v2"
6+
"github.com/shamaton/msgpack/v3"
77
"github.com/stretchr/testify/require"
88
)
99

ctx_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ import (
3434

3535
"github.com/fxamacker/cbor/v2"
3636
"github.com/gofiber/utils/v2"
37-
"github.com/shamaton/msgpack/v2"
37+
"github.com/shamaton/msgpack/v3"
3838
"github.com/stretchr/testify/require"
3939
"github.com/valyala/bytebufferpool"
4040
"github.com/valyala/fasthttp"

docs/api/ctx.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2427,7 +2427,7 @@ app.Post("/", func(c fiber.Ctx) error {
24272427
24282428
A compact binary alternative to [JSON](#json) for efficient data transfer between micro-services or from server to client. MessagePack serializes faster and yields smaller payloads than plain JSON.
24292429

2430-
Converts any **interface** or **string** to MsgPack using the [shamaton/msgpack](https://pkg.go.dev/github.com/shamaton/msgpack/v2) package.
2430+
Converts any **interface** or **string** to MsgPack using the [shamaton/msgpack](https://pkg.go.dev/github.com/shamaton/msgpack/v3) package.
24312431

24322432
:::info
24332433
MsgPack also sets the content header to the `ctype` parameter. If no `ctype` is passed in, the header is set to `application/vnd.msgpack`.

docs/guide/advance-format.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Fiber lets you use MessagePack for efficient binary serialization. Use one of th
1616
### Recommended Libraries
1717

1818
- [github.com/vmihailenco/msgpack](https://pkg.go.dev/github.com/vmihailenco/msgpack) — A widely used, feature-rich MsgPack library.
19-
- [github.com/shamaton/msgpack/v2](https://pkg.go.dev/github.com/shamaton/msgpack/v2) — High-performance MsgPack library.
19+
- [github.com/shamaton/msgpack/v3](https://pkg.go.dev/github.com/shamaton/msgpack/v3) — High-performance MsgPack library.
2020

2121
### Installation
2222

@@ -25,17 +25,17 @@ Install either library using:
2525
```bash
2626
go get github.com/vmihailenco/msgpack
2727
# or
28-
go get github.com/shamaton/msgpack/v2
28+
go get github.com/shamaton/msgpack/v3
2929
```
3030

3131
> **Note:** Fiber doesn't bundle a MsgPack implementation because it's outside the Go standard library. Pick one of the popular libraries in the ecosystem; the two below are widely used and well maintained.
3232
33-
### Example: Using `shamaton/msgpack/v2`
33+
### Example: Using `shamaton/msgpack/v3`
3434

3535
```go
3636
import (
3737
"github.com/gofiber/fiber/v3"
38-
"github.com/shamaton/msgpack/v2"
38+
"github.com/shamaton/msgpack/v3"
3939
)
4040

4141
type User struct {

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ require (
88
github.com/google/uuid v1.6.0
99
github.com/mattn/go-colorable v0.1.14
1010
github.com/mattn/go-isatty v0.0.20
11-
github.com/shamaton/msgpack/v2 v2.4.0
11+
github.com/shamaton/msgpack/v3 v3.0.0
1212
github.com/stretchr/testify v1.11.1
1313
github.com/tinylib/msgp v1.6.3
1414
github.com/valyala/bytebufferpool v1.0.0

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZb
2222
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
2323
github.com/shamaton/msgpack/v2 v2.4.0 h1:O5Z08MRmbo0lA9o2xnQ4TXx6teJbPqEurqcCOQ8Oi/4=
2424
github.com/shamaton/msgpack/v2 v2.4.0/go.mod h1:6khjYnkx73f7VQU7wjcFS9DFjs+59naVWJv1TB7qdOI=
25+
github.com/shamaton/msgpack/v3 v3.0.0 h1:xl40uxWkSpwBCSTvS5wyXvJRsC6AcVcYeox9PspKiZg=
26+
github.com/shamaton/msgpack/v3 v3.0.0/go.mod h1:DcQG8jrdrQCIxr3HlMYkiXdMhK+KfN2CitkyzsQV4uc=
2527
github.com/stretchr/testify v1.11.1 h1:7s2iGBzp5EwR7/aIZr8ao5+dra3wiQyKjjFuvgVKu7U=
2628
github.com/stretchr/testify v1.11.1/go.mod h1:wZwfW3scLgRK+23gO65QZefKpKQRnfz6sD981Nm4B6U=
2729
github.com/tinylib/msgp v1.6.3 h1:bCSxiTz386UTgyT1i0MSCvdbWjVW+8sG3PjkGsZQt4s=

0 commit comments

Comments
 (0)