Skip to content

Releases: gramiojs/test

v0.3.0

23 Feb 21:55

Choose a tag to compare

docs: expand MessageObject builder API and add media send methods to UserObjectAdd comprehensive media send methods (sendPhoto, sendVideo, sendDocument, sendVoice, sendSticker, sendLocation, sendContact, sendDice) to UserObject with FormattableString support, auto-generated file IDs via genFile(), and optional chat targeting. Add sendReply() and sendCommand() convenience methods. Extend MessageObject with fluent builder methods for text/caption (FormattableString-aware), entities, all media types, and message

feat: add advanced user methods, chat.post(), API call helpers, and clickByTextAdd UserObject.editMessage() (emits edited_message), forwardMessage() (emits message with forward_origin), sendMediaGroup() (emits multiple messages with shared media_group_id), and pinMessage() (emits service message with pinned_message for GramIO's "pinned_message" event). Add sendAudio(), sendAnimation(), and sendVideoNote() media methods with auto-generated file IDs. Add ChatObject.post() for anonymous channel_post updates

chore: bump version to 0.3.0
Full Changelog: v0.1.0...v0.3.0

v0.1.0

17 Feb 12:42
7b07532

Choose a tag to compare

feat: add inline queries, reactions, and user scopes with comprehensive APIAdd InlineQueryObject/ChosenInlineResultObject builders, ReactObject for message_reaction updates, UserInChatScope/UserOnMessageScope for chainable scoped operations, and user methods for sendInlineQuery(), chooseInlineResult(), react(), in(), and on(). Update README with detailed documentation for all new features including usage examples and API reference tables.

feat: add automatic reaction state tracking on MessageObjectTrack per-user reactions on MessageObject.reactions Map, auto-compute old_reaction from in-memory state in user.react(), remove oldReactions option from react() and UserOnMessageScope.react(), persist new reaction state after emit, and add comprehensive tests for multi-user tracking, state updates, removal, ReactObject auto-tracking, and explicit .remove() override behavior.

chore: bump version to 0.1.1

chore: revert version to 0.1.0
Full Changelog: v0.0.2...v0.1.0

v0.0.2

15 Feb 22:21

Choose a tag to compare

fix: correct package metadata and badge URLs from objects-builder to testUpdate package.json name, description, keywords, homepage, readme, and repository URL from @gramio/objects-builder to @gramio/test. Fix README badge URLs to reference correct package. Update deno.json name field to match package identity.

chore: bump version to 0.0.2 and update dependenciesUpdate Biome schema to 2.4.0, remove unused organizeImports config and empty ignore array. Upgrade @biomejs/biome (1.9.4→2.4.0), @types/bun (1.2.8→1.3.9), pkgroll (2.11.2→2.25.2), typescript (5.8.2→5.9.3), @gramio/types (9.0.1→9.4.0), and gramio (0.3.0→0.4.14).
Full Changelog: v0.0.1...v0.0.2

v0.0.1

15 Feb 22:08

Choose a tag to compare

feat: MVP proposal of @gramio/test

feat: add chat support, API interception, and user interaction methodsAdd ChatObject with members tracking, CallbackQueryObject for inline keyboard interactions, API call interception and mocking, and user methods for sending messages, joining/leaving chats, and clicking inline buttons. Extend MessageObject with chat() method and add comprehensive test coverage for all new features.

feat: add comprehensive documentation with API reference and usage examplesAdd detailed README with installation instructions, quick start guide, and complete API documentation covering TelegramTestEnvironment, UserObject methods (sendMessage, join, leave, click), ChatObject state tracking, MessageObject/CallbackQueryObject builders, and API call inspection examples.

feat: add API mocking with onApi/offApi and error simulation supportAdd env.onApi() for overriding API responses with static values or dynamic handlers, env.offApi() for resetting overrides, and apiError() helper for simulating TelegramError responses with proper error codes and parameters. Include comprehensive test coverage for static/dynamic handlers, conditional responses, error simulation with retry_after, and handler reset functionality.
Full Changelog: https://github.com/gramiojs/test/commits/v0.0.1