Note: We keep splitio/go-client untouched
because the dependency is broken.

See https://github.com/mattermost/mattermost-server/pull/18604

```release-note
NONE
```
Этот коммит содержится в:
Agniva De Sarker
2021-11-24 19:45:28 +05:30
коммит произвёл GitHub
родитель fd8fea804b
Коммит 189d447591
362 изменённых файлов: 66284 добавлений и 19348 удалений

18
vendor/github.com/vmihailenco/msgpack/v5/.golangci.yml сгенерированный поставляемый
Просмотреть файл

@@ -1,18 +0,0 @@
run:
concurrency: 8
deadline: 5m
tests: false
linters:
enable-all: true
disable:
- gochecknoglobals
- gocognit
- godox
- wsl
- funlen
- gochecknoinits
- gomnd
- nlreturn
- goerr113
- exhaustive
- nestif

52
vendor/github.com/vmihailenco/msgpack/v5/CHANGELOG.md сгенерированный поставляемый
Просмотреть файл

@@ -1,3 +1,51 @@
# Changelog
## [5.3.5](https://github.com/vmihailenco/msgpack/compare/v5.3.4...v5.3.5) (2021-10-22)
See https://msgpack.uptrace.dev/changelog/
## v5
### Added
- `DecodeMap` is split into `DecodeMap`, `DecodeTypedMap`, and `DecodeUntypedMap`.
- New msgpack extensions API.
### Changed
- `Reset*` functions also reset flags.
- `SetMapDecodeFunc` is renamed to `SetMapDecoder`.
- `StructAsArray` is renamed to `UseArrayEncodedStructs`.
- `SortMapKeys` is renamed to `SetSortMapKeys`.
### Removed
- `UseJSONTag` is removed. Use `SetCustomStructTag("json")` instead.
## v4
- Encode, Decode, Marshal, and Unmarshal are changed to accept single argument. EncodeMulti and
DecodeMulti are added as replacement.
- Added EncodeInt8/16/32/64 and EncodeUint8/16/32/64.
- Encoder changed to preserve type of numbers instead of chosing most compact encoding. The old
behavior can be achieved with Encoder.UseCompactEncoding.
## v3.3
- `msgpack:",inline"` tag is restored to force inlining structs.
## v3.2
- Decoding extension types returns pointer to the value instead of the value. Fixes #153
## v3
- gopkg.in is not supported any more. Update import path to github.com/vmihailenco/msgpack.
- Msgpack maps are decoded into map[string]interface{} by default.
- EncodeSliceLen is removed in favor of EncodeArrayLen. DecodeSliceLen is removed in favor of
DecodeArrayLen.
- Embedded structs are automatically inlined where possible.
- Time is encoded using extension as described in https://github.com/msgpack/msgpack/pull/209. Old
format is supported as well.
- EncodeInt8/16/32/64 is replaced with EncodeInt. EncodeUint8/16/32/64 is replaced with EncodeUint.
There should be no performance differences.
- DecodeInterface can now return int8/16/32 and uint8/16/32.
- PeekCode returns codes.Code instead of byte.

3
vendor/github.com/vmihailenco/msgpack/v5/Makefile сгенерированный поставляемый
Просмотреть файл

@@ -1,7 +1,6 @@
all:
test:
go test ./...
go test ./... -short -race
go test ./... -run=NONE -bench=. -benchmem
env GOOS=linux GOARCH=386 go test ./...
go vet
golangci-lint run

9
vendor/github.com/vmihailenco/msgpack/v5/README.md сгенерированный поставляемый
Просмотреть файл

@@ -13,6 +13,11 @@
- [Reference](https://pkg.go.dev/github.com/vmihailenco/msgpack/v5)
- [Examples](https://pkg.go.dev/github.com/vmihailenco/msgpack/v5#pkg-examples)
Other projects you may like:
- [Bun](https://bun.uptrace.dev) - fast and simple SQL client for PostgreSQL, MySQL, and SQLite.
- [BunRouter](https://bunrouter.uptrace.dev/) - fast and flexible HTTP router for Go.
## Features
- Primitives, arrays, maps, structs, time.Time and interface{}.
@@ -79,7 +84,3 @@ func ExampleMarshal() {
// Output: bar
}
```
## See also
- [Fast and flexible ORM for sql.DB](https://bun.uptrace.dev)

1
vendor/github.com/vmihailenco/msgpack/v5/commitlint.config.js сгенерированный поставляемый Обычный файл
Просмотреть файл

@@ -0,0 +1 @@
module.exports = { extends: ['@commitlint/config-conventional'] }

3
vendor/github.com/vmihailenco/msgpack/v5/decode.go сгенерированный поставляемый
Просмотреть файл

@@ -341,6 +341,9 @@ func (d *Decoder) DecodeBool() (bool, error) {
}
func (d *Decoder) bool(c byte) (bool, error) {
if c == msgpcode.Nil {
return false, nil
}
if c == msgpcode.False {
return false, nil
}

7
vendor/github.com/vmihailenco/msgpack/v5/encode_map.go сгенерированный поставляемый
Просмотреть файл

@@ -17,11 +17,12 @@ func encodeMapValue(e *Encoder, v reflect.Value) error {
return err
}
for _, key := range v.MapKeys() {
if err := e.EncodeValue(key); err != nil {
iter := v.MapRange()
for iter.Next() {
if err := e.EncodeValue(iter.Key()); err != nil {
return err
}
if err := e.EncodeValue(v.MapIndex(key)); err != nil {
if err := e.EncodeValue(iter.Value()); err != nil {
return err
}
}

4
vendor/github.com/vmihailenco/msgpack/v5/package.json сгенерированный поставляемый Обычный файл
Просмотреть файл

@@ -0,0 +1,4 @@
{
"name": "msgpack",
"version": "5.3.5"
}

6
vendor/github.com/vmihailenco/msgpack/v5/version.go сгенерированный поставляемый Обычный файл
Просмотреть файл

@@ -0,0 +1,6 @@
package msgpack
// Version is the current release version.
func Version() string {
return "5.3.5"
}