Skip to content

Releases: gramiojs/gramio

v0.5.0

17 Feb 18:00
5a05457

Choose a tag to compare

docs: add testing guidelines and comprehensive test suite with @gramio/test

refactor: migrate from middleware-io to @gramio/composer

  • Add comprehensive

  • Fix type narrowing in Updates.run() for context handling

  • Expose Plugin["~"] getter for duck-typing compatibility with EventComposer

  • Promote plugin composers to "scoped" mode to share context across extensions

  • Add Plugin.extend(composer) overload for direct composer integration

  • Implement Bot.extend(composer) overload with type inference

refactor: improve type safety and add composer deduplication support- Add proper type assertions for derive/on/use handlers in Bot and Plugin

  • Remove type assertions (as any) from test cases using composer.extend(plugin)

  • Properly extract and merge plugin derives into composer type signature

refactor: add type-safe Plugin.extend() support to EventComposer- Add module augmentation for EventComposer.extend() to accept AnyPlugin

chore: readme badge

refactor: remove unused mode parameter from handleUpdate method

  • Change CallbackData import to type-only

  • Expose bot info on composer for command mention stripping

  • Move reaction(), callbackQuery(), chosenInlineResult(), inlineQuery(), hears(), command(), and startParameter() implementations from Bot to Composer methods

  • Update @gramio/composer to 0.2.0, @gramio/types to 9.4.1

chore: bump dependencies and migrate shorthand methods to Composer- Update @biomejs/biome to 2.4.2, pkgroll to 2.26.0

  • Add UserInChatScope tests for scoped message sending

  • Add chosenInlineResult handler tests for query matching and result selection

  • Add inlineQuery handler tests for string/regex/function matchers and onResult option

  • Add reaction handler tests covering emoji add/remove, multi-user reactions, and scoped shortcuts

  • Add testing guidelines for @gramio/test scoped API usage

chore: bump @gramio/test to 0.1.0 and add comprehensive inline/reaction test coverage- Update @gramio/test from 0.0.2 to 0.1.0

refactor: remove unnecessary type assertion in Plugin.on() method

  • Remove commented-out handleUpdate() call

  • Replace for-await loop with queue.addBatch() for batch update processing

refactor: replace unused error variable and use queue.addBatch() for updates- Rename caught error to _error in handleUpdate() to indicate it's unused

chore: bump version to 0.5.0 and remove unnecessary type assertion in Plugin.derive()

refactor: delegate Bot.decorate() to composer.decorate() and remove contextsMappings usage #21

refactor: add TODO comment for context isolation performance research in Bot.decorate()

  • Update hears, callbackQuery, inlineQuery, and chosenInlineResult tests to use expectString for captured match groups

  • Replace optional chaining (?.[]) with explicit null checks and type-safe extraction

refactor: add type-safe expectString helper and replace nullable assertions in test cases- Add expectString() helper to safely extract and validate string values from unknown types
Full Changelog: v0.4.14...v0.5.0

v0.4.14

14 Feb 17:24

Choose a tag to compare

chore: bump dependencies and version to 0.4.14
Full Changelog: v0.4.13...v0.4.14

v0.4.13

11 Feb 15:28
b2561f3

Choose a tag to compare

test: add tests for UpdateQueue, webhook handler, and utility functions

chore: claude.md

feat: add onApiCall hook for API call instrumentation and tracing

feat: improve error stack traces by capturing call site context

chore: bump dependencies and version to 0.4.13

refactor: remove unused FilterDefinitions
Full Changelog: v0.4.12...v0.4.13

v0.4.12

08 Feb 15:15
bef84d5

Choose a tag to compare

chore: bump dependencies and version to 0.4.12
Full Changelog: v0.4.11...v0.4.12

v0.4.11

07 Sep 17:03
78699be

Choose a tag to compare

refactor: replace Object.entries to for loop

Merge pull request #19 from Unitoshka/patch-1refactor: replace Object.entries to for loop

feat: add startParameter trigger

Merge branch 'main' of https://github.com/gramiojs/gramio

What's Changed

  • refactor: replace Object.entries to for loop by @fdmafhgs in #19

New Contributors

  • @fdmafhgs made their first contribution in #19

Full Changelog: v0.4.10...v0.4.11

v0.4.10

12 Jul 00:19
0726443

Choose a tag to compare

feat: update to 9.1 Bot API

Merge branch 'main' of https://github.com/gramiojs/gramio

chore: bump

Full Changelog: v0.4.9...v0.4.10

v0.4.9

23 Jun 16:33
fd234c6

Choose a tag to compare

feat: accept string[] as a bot.hears trigger

Merge pull request #15 from helloryuko/mainfeat: accept string[] as a bot.hears trigger

Update package.json

What's Changed

  • feat: accept string[] as a bot.hears trigger by @helloryuko in #15

New Contributors

  • @helloryuko made their first contribution in #15

Full Changelog: v0.4.8...v0.4.9

v0.4.8

05 Jun 12:30
612fc5d

Choose a tag to compare

chore: some type tests for triggers

fix: bad decorate typings and make it configurable

Full Changelog: v0.4.7...v0.4.8

v0.4.7

24 May 13:41
fb0dcc3

Choose a tag to compare

feat: add support for command array and replace @tag from entity when username isnt available

chore: bump

Full Changelog: v0.4.5...v0.4.7

v0.4.5

24 May 13:20
e909b6e

Choose a tag to compare

chore: little rewrite webhook adapters with more cloudflare compabilty

feat: implement shouldWait in webhookHandler

chore: bump

Full Changelog: v0.4.4...v0.4.5