Release 0.2.2.1-hf1 #88

Merged
NiXTheDev merged 2 commits from 0.2.2.1 into release 2026-08-05 08:58:07 +03:00
Owner

Summary

Hotfix release 0.2.2.1-hf1 — fixes that landed on 0.2.2.1 after PR #87 ("Release 0.2.2.1") was merged into release:

  1. Fixed broken build-linux script — removed a stray --define fragment from the package.json script so CI's --target/--outfile arguments append correctly and the Linux binary actually builds.
  2. Restored link preview preservation — bot replies now respect the source message's link_preview_options when present instead of blanket-suppressing previews:
    • reply_to_message path returns the replied-to message's link_preview_options in extras
    • Edited messages store extras correctly (destructured from ctx.editedMessage when isEdit)
    • When the source message has no preview options, the parameter is omitted (Telegram default behavior)

Also bumps the version to 0.2.2.1-hf1 and updates CHANGELOG.md.

Branch history

This branch was rebased onto release so it contains only the two hotfix commits on top of the merged 0.2.2.1 release (PR #87 was squash-merged, so the original feature commits are not ancestors of release).

Verification

  • Diff vs release: only CHANGELOG.md, package.json, src/tests/version.test.ts
  • Typecheck clean, lint clean, bun run src/version.ts version prints 0.2.2.1-hf1
  • Tests: 184 pass / 5 skip / 0 fail
## Summary Hotfix release **0.2.2.1-hf1** — fixes that landed on `0.2.2.1` after PR #87 ("Release 0.2.2.1") was merged into `release`: 1. **Fixed broken `build-linux` script** — removed a stray `--define` fragment from the `package.json` script so CI's `--target`/`--outfile` arguments append correctly and the Linux binary actually builds. 2. **Restored link preview preservation** — bot replies now respect the source message's `link_preview_options` when present instead of blanket-suppressing previews: - `reply_to_message` path returns the replied-to message's `link_preview_options` in extras - Edited messages store extras correctly (destructured from `ctx.editedMessage` when `isEdit`) - When the source message has no preview options, the parameter is omitted (Telegram default behavior) Also bumps the version to `0.2.2.1-hf1` and updates `CHANGELOG.md`. ## Branch history This branch was rebased onto `release` so it contains **only** the two hotfix commits on top of the merged 0.2.2.1 release (PR #87 was squash-merged, so the original feature commits are not ancestors of `release`). ## Verification - Diff vs `release`: only `CHANGELOG.md`, `package.json`, `src/tests/version.test.ts` - Typecheck clean, lint clean, `bun run src/version.ts version` prints `0.2.2.1-hf1` - Tests: 184 pass / 5 skip / 0 fail
The build-linux script ended in a leftover '--define' with nothing
after it, which broke the CI command:
  bun run build-linux --target=bun-linux-x64 --outfile dist/...
The appended args were being swallowed by the malformed --define.
Now the script is a clean prefix so --target/--outfile append correctly.
chore: bump version to 0.2.2.1-hf1 and add changelog entry
All checks were successful
Push Checks / Type Check (push) Successful in 25s
Push Checks / Tests (push) Successful in 19s
PR Checks / Format Check (pull_request) Successful in 16s
Push Checks / Format Check (push) Successful in 25s
Push Checks / Lint (push) Successful in 56s
PR Checks / Lint (pull_request) Successful in 18s
PR Checks / Type Check (pull_request) Successful in 23s
Secret Scanning / Scan for Secrets (pull_request) Successful in 15s
PR Checks / Tests (pull_request) Successful in 16s
PR Checks / Build Docker Image (Validation) (pull_request) Successful in 21m20s
Push Checks / Build and Push Docker Image (push) Successful in 24m42s
Create Release / release (pull_request) Has been skipped
4410f02589
Hotfix release shipping two fixes that missed the 0.2.2.1 merge:
- fix broken build-linux script (stray --define fragment)
- restore link preview preservation

Also relax version.test.ts semver regex to accept pre-release suffix.
NiXTheDev scheduled this pull request to auto merge when all checks succeed 2026-08-05 08:56:36 +03:00
NiXTheDev merged commit 8180b1e919 into release 2026-08-05 08:58:07 +03:00
NiXTheDev deleted branch 0.2.2.1 2026-08-05 08:58:07 +03:00
NiXTheDev referenced this pull request from a commit 2026-08-05 08:58:08 +03:00
Sign in to join this conversation.
No description provided.