Skip to content

fix(deps): update module github.com/go-lark/lark to v2#1027

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-go-lark-lark-2.x
Open

fix(deps): update module github.com/go-lark/lark to v2#1027
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/github.com-go-lark-lark-2.x

Conversation

@renovate
Copy link
Copy Markdown
Contributor

@renovate renovate Bot commented May 18, 2026

This PR contains the following updates:

Package Change Age Confidence
github.com/go-lark/lark v1.16.0v2.0.1 age confidence

Release Notes

go-lark/lark (github.com/go-lark/lark)

v2.0.1

Compare Source

v2.0.0

Compare Source

Major release published as a separate Go module under github.com/go-lark/lark/v2.

Breaking changes vs v1
  • All API methods now take context.Context as the first argument (e.g. bot.PostText(ctx, ...), bot.PostNotification(ctx, ...), bot.GetTenantAccessTokenInternal(ctx)).
  • Removed StartHeartbeat/StopHeartbeat. Tenant access token is auto-renewed on demand; use SetAutoRenew(false) to opt out.
  • Authentication is now a regular API call rather than mutating the Bot (GetTenantAccessTokenInternal no longer requires updateToken). Token state can be set via SetTenantAccessToken.
  • Removed legacy PostNotification(title, text) and the PostNotificationV2 alias. Use the unified PostNotification(ctx, om) for webhook bots.
  • Dropped Event v1 (im.message) handling. Only Event v2 schema is supported.
  • Card builder is no longer in this repo. It has been moved to a standalone module: github.com/go-lark/card-builder.
  • HTTP layer redesigned: the old HTTPWrapper is replaced by an HTTPClient interface for easier customization (SetClient).
  • Group/Chat APIs consolidated under api_chat.go; the standalone api_group.go has been removed.
  • Minimum Go version bumped to 1.24.
New behaviours
  • API methods return a wrapped Go error for both HTTP failures and Lark business errors (in addition to the Code/Msg fields on the response). Business error bodies are now properly JSON‑decoded.
  • Bot exposes SetAutoRenew, SetTenantAccessToken, SetWebhook, SetClient, and Domain() for finer‑grained control.
Events
  • Event v2 with URL challenge, message receive, message read/recalled, reaction created/deleted, chat disbanded, user/bot added/deleted, plus encryption & token verification helpers.


Configuration

📅 Schedule: (in timezone Europe/Berlin)

  • Branch creation
    • "before 9am on monday"
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@renovate renovate Bot added area/dependencies Dependency management type/enhancement New feature or request labels May 18, 2026
@renovate renovate Bot force-pushed the renovate/github.com-go-lark-lark-2.x branch from 8df9ecf to b43fc25 Compare May 18, 2026 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/dependencies Dependency management size/XS type/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants