Skip to content

Migrate stream to grammY 2.0 - #6

Open
KnightNiwrem wants to merge 3 commits into
grammyjs:mainfrom
KnightNiwrem:main
Open

KnightNiwrem wants to merge 3 commits into
grammyjs:mainfrom
KnightNiwrem:main

Conversation

@KnightNiwrem

Copy link
Copy Markdown
Member

Note

This PR was primarily written by GPT-5.6 Sol xhigh in ChatGPT Work.

Summary

This migrates the stream plugin to grammY 2.0 and closes the stream item in the grammY 2.0 plugin compatibility work:

  • switch runtime and type imports to the @grammyjs/grammy v2 beta published on JSR
  • adapt the public return types to grammY 2.0's unified Message type
  • replace the legacy deno2node/NPM backport with JSR-native package metadata and publishing
  • update tests to use package identifiers directly and align CI with the JSR-native workflow
  • exempt the same-organization jsr:@grammyjs/grammy package from Deno's minimum dependency age while retaining the policy for other dependencies

StreamFlavor already accepts and transforms an existing context type, so it already satisfies the transformative context-flavour requirement from grammyjs/grammY#709 without an API change.

Closes #5.

Validation

  • deno fmt --check
  • deno lint
  • deno check
  • deno test — 14 passed on Ubuntu, macOS, and Windows
  • deno publish --dry-run --allow-dirty --no-check

Checklist

  • This PR has been manually reviewed by a human.

chatgpt-codex-connector[bot]

This comment was marked as resolved.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Migrate to grammY 2.0

1 participant