REPOSITORY / ScuroNeko/Laniakea
Releases
-
1.0.0 RC 16
Pre-ReleaseGolang lint / lint (push) Successful in 2m15sreleased this
2026-04-29 12:31:41 +03:00 | 29 commits to dev since this releaseBreaking Changes
- Replaced
git.scuroneko.dev/scuroneko/slogwithgit.scuroneko.dev/scuroneko/sneklog/v2across public logger APIs, includingAppDataLogger, logger getters, and custom logger setters. - Renamed exported
Json,Url, andIdidentifiers to idiomaticJSON,URL, andIDspellings, includingBotOpts.APIURL,BotOpts.SetAPIURL(...),tgapi.APIOpts.SetAPIURL(...),BotOptsFileJSONCodec,BotPayloadJSON, and related README examples. - Made the request logger field internal; use
Bot.SetRequestLogger(...)andBot.GetRequestLogger()instead of accessingBot.RequestLoggerdirectly.
Added
- Added
Bot.UpdatesIter(...)as an iterator wrapper around a singleBot.Updates(...)call, including error delivery through the iterator. - Added scene-local callback payload handlers through
Scene.OnPayload(...), including observer lifecycle events for scene payload execution. - Added configurable logger output through
BotOpts.LogFormat,BotOpts.SetLogFormat(...),BotOpts.SetLogFormatter(...),tgapi.APIOpts.SetLogFormat(...), andtgapi.APIOpts.SetLogFormatter(...). - Added JSON BotOpts file format versioning through
ConfigVersion,ErrConfigVersionMismatch, andBotOpts.FileConfigVersion. - Added
Bot.SetLogger(...),Bot.SetRequestLogger(...),Bot.SetWebHookLogger(...),Bot.GetRequestLogger(), andBot.GetWebHookLogger()helpers for explicit logger customization.
Changed
- Updated
pond/v2tov2.7.1. Bot.RunWithContext(...)now closes an explicitly set request logger whenUseRequestLoggeris false and closes webhook loggers before long-polling startup.- Bot loggers now apply the configured token replacer consistently across the main bot logger, request logger, internal API and uploader loggers, webhook logger, app-data logger writers, and auto-managed plugin loggers.
- JSON
BotOptsfiles now writeversion, reject newer unsupported config versions, keep older unversioned files loadable, and preserve the loaded file version inBotOpts.FileConfigVersion. Bot.RunWithContext(...)treatscontext.DeadlineExceededlikecontext.Canceledand exits polling without retry logging.- README and README_RU now use the current
JSON,URL, andIDpublic API names.
Fixed
- Fixed the go-lint workflow file to end with a newline.
Tests
- Added regression coverage for
Bot.UpdatesIter(...)error delivery and early iterator stop behavior. - Added regression coverage proving
Bot.RunWithContext(...)preserves polling retry attempts and backoff delays across repeated getUpdates failures. - Added regression coverage proving polling startup preserves an enabled request logger.
- Updated file logger regression coverage for the current
sneklogtext prefix format. - Added regression coverage proving token masking still applies after
initLoggers(...)switches loggers to file-backed writers and that auto-managed plugin loggers inherit token masking. - Added regression coverage for JSON config version handling and scene-local payload routing, including observer lifecycle events and callback fallthrough behavior.
- Updated logger helper tests for the explicit log format and formatter parameters.
Full Changelog: v1.0.0-rc.15...v1.0.0-rc.16
Downloads
- Replaced