Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump github.com/SevereCloud/vksdk/v2 from 2.11.0 to 2.13.0 #1698

Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jan 25, 2022

Bumps github.com/SevereCloud/vksdk/v2 from 2.11.0 to 2.13.0.

Release notes

Sourced from github.com/SevereCloud/vksdk/v2's releases.

v2.13.0

Поддержка MessagePack и zstd

Результат перехода с gzip (JSON) на zstd (msgpack):

  • в 7 раз быстрее сжатие (–1 мкс);
  • на 10% меньше размер данных (8 Кбайт вместо 9 Кбайт);
  • продуктовый эффект не статзначимый :(

Как мы отказались от JPEG, JSON, TCP и ускорили ВКонтакте в два раза

VK API способно возвращать ответ в виде MessagePack. Это эффективный формат двоичной сериализации, похожий на JSON, только быстрее и меньше по размеру.

ВНИМАНИЕ, C MessagePack НЕКОТОРЫЕ МЕТОДЫ МОГУТ ВОЗВРАЩАТЬ СЛОМАННУЮ КОДИРОВКУ.

Для сжатия, вместо классического gzip, можно использовать zstd. Сейчас vksdk поддерживает zstd без словаря. Если кто знает как получать словарь, отпишитесь сюда.

vk := api.NewVK(os.Getenv("USER_TOKEN"))
method := "store.getStickersKeywords"
params := api.Params{
"aliases":       true,
"all_products":  true,
"need_stickers": true,
}
r, err := vk.Request(method, params) // Content-Length: 44758 byte
if err != nil {
log.Fatal(err)
}
log.Println("json:", len(r)) // json: 814231 byte
vk.EnableMessagePack() // enable MessagePack
vk.EnableZstd() // enable zstd
r, err = vk.Request(method, params) // Content-Length: 35755 byte
if err != nil {
log.Fatal(err)
}
log.Println("msgpack:", len(r)) // msgpack: 650775 byte

0ed3f0c feat: api support MessagePack 15a6084 feat: api support zstd

Авторизация используя VK ID

VK ID — это единая платформа для авторизации и регистрации пользователей в разных сервисах экосистемы VK.

... (truncated)

Commits
  • 64932fd Merge pull request #178 from SevereCloud/dev-v2.13.0
  • 15a6084 feat: api support zstd
  • c58c2c9 feat: MessagesTemplateElementCarousel add PhotoID
  • b286e3d feat: add AuthExchangeSilentAuthToken method
  • aaa7499 feat: add SilentAuthPayload
  • db2c8e7 feat: add AuthGetProfileInfoBySilentToken method
  • 0ed3f0c feat: api support MessagePack
  • 5ec50a1 test: more vk bad errors
  • 0ef1653 test: TestStreaming_Run more sleep
  • 970f936 test: fix TestVK_GroupsJoin
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

Bumps [github.com/SevereCloud/vksdk/v2](https://github.com/SevereCloud/vksdk) from 2.11.0 to 2.13.0.
- [Release notes](https://github.com/SevereCloud/vksdk/releases)
- [Commits](SevereCloud/vksdk@v2.11.0...v2.13.0)

---
updated-dependencies:
- dependency-name: github.com/SevereCloud/vksdk/v2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot added dependencies Pull requests that update a dependency file go Pull requests that update Go code labels Jan 25, 2022
@dependabot dependabot bot requested a review from 42wim January 25, 2022 23:06
Copy link

@codeclimate codeclimate bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The PR diff size of 21781 lines exceeds the maximum allowed for the inline comments feature.

@codeclimate
Copy link

codeclimate bot commented Jan 25, 2022

Code Climate has analyzed commit 318e65a and detected 0 issues on this pull request.

View more on Code Climate.

@42wim 42wim merged commit 5a1fd7d into master Jan 28, 2022
@42wim 42wim deleted the dependabot/go_modules/github.com/SevereCloud/vksdk/v2-2.13.0 branch January 28, 2022 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file go Pull requests that update Go code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant