Skip to content

Releases: gramiojs/schema-parser

v1.0.1

21 Feb 18:33
fc1aa95

Choose a tag to compare

chore: bump version to 1.0.1 and fix Telegram Bot API URL trailing slash

test: fix anchor link format in integration and unit tests
Full Changelog: v1.0.0...v1.0.1

v1.0.0

21 Feb 17:49
fef311d

Choose a tag to compare

fix: improve OneOf pattern matching to handle offset and full sentence values

chore: bump version to 0.1.1

chore: add blockquote support in schema parser and update method descriptions

feat: add support for parsing Array of multiple type references as one_of variants

fix: convert protocol-relative emoji image URLs to https in markdown output

docs: add testing requirements to CLAUDE.md development guidelines

fix: skip empty anchor links and add trailing slash to Bot API base URL

feat: separate const extraction from default pattern matching to preserve required fields

docs: add comprehensive JSDoc comments to parser types and schema interfaces

docs: add TypeScript types section to README with exported type reference

fix: use processed content instead of raw textContent in link conversion rule

feat: append oneOf type links to description in oneOf object schemas

fix: improve const detection to support curly quotes and prevent misclassification as defaults

feat: add support for Telegram file images in markdown conversion and blog image wrappers

  • Add ObjectWithEnum variant to schema for string enum types

  • Detect currency fields via ISO 4217 pattern and reference Currencies enum

  • Add semanticType markers for formattable strings, update types, and markup objects

  • Replace InputFile references with dedicated 'file' type for better type safety

feat: add currency enum support, file type handling, and semantic type markers- Fetch and parse Telegram currencies.json to generate synthetic Currencies enum

  • Reflect new direct

  • Update "How it works" section with semantic marker injection details

  • Add file type handling examples and currency reference field examples

  • Document semanticType markers: "formattable", "updateType", "markup"

  • Add ObjectWithEnum variant and FieldFile type to exported types

  • Document currency enum support with optional currency codes parameter

docs: update README and schema to reflect API 9.4 changes and new semantic type features- Update version from 9.0 to 9.4 (2026-02-09)

  • Bump version to 1.0.0

  • Add integration tests for InputPollOption pattern and caption_parse_mode sibling detection

  • Skip fields that already have semanticType from description-based checks

  • Apply sibling-based detection after field assembly for both methods and objects

feat: detect formattable strings via sibling fields- Add applyFormattableSiblings to mark string fields as formattable when they have ${key}_entities or ${key}_parse_mode siblings

  • Detect file upload fields via "More information on Sending Files" link in description

  • Convert string fields accepting file uploads (media, thumbnail, cover, photo, video, animation, sticker) to one_of unions with InputFile and string variants

feat: mark text fields as formattable and convert file upload strings to InputFile | string unions- Add semanticType: "formattable" to poll questions, gift/subscription text, captions, explanations, and checklist fields

  • Add description to Currencies enum with source links to currencies.json and supported currencies docs

feat: add XTR currency and documentation to Currencies enum- Add XTR (Telegram Stars) to currencies list as it's used in schema but not in currencies.json

  • Clarify that InputFile becomes type: "reference" in fields, type: "file" in objects

  • Update README with formattable detection logic and InputFile handling details

  • Explain why _parse_mode-only detection is used for objects vs methods

  • Add semantic markers reference table with object-level and field-level patterns

docs: update documentation to reflect formattable sibling detection and InputFile reference changes- Document sibling-based formattable detection in CLAUDE.md architecture section

  • Update integration tests to account for 3 additional

  • APIResponse is oneOf union of APIResponseOk and APIResponseError

  • APIResponseError has ok: false const, description, error_code, and optional parameters fields

  • APIResponseOk has ok: true const and result field

  • These objects are not present in HTML structure but documented in Making Requests section

feat: inject hardcoded APIResponse objects for Making Requests section- Add APIResponseOk, APIResponseError, and APIResponse objects to schema
Full Changelog: v0.1.0...v1.0.0

v0.1.0

20 Feb 13:44
f971f2c

Choose a tag to compare

chore: schema improves

fix: required in methods

fix: dirty hack gor getAvailableGifts

chore: improve resolveReturnType

chore: dirty hack and link improves

fix: double at enum

feat: complete schema parser with rewrites and ports from tg-bot-api rust crate

docs: add comprehensive README with usage examples and schema documentation
Full Changelog: v0.0.2...v0.1.0

v0.0.2

12 Apr 12:52
992380a

Choose a tag to compare

chore: add required field

Full Changelog: v0.0.1...v0.0.2

v0.0.1

12 Apr 12:29
aaf4a55

Choose a tag to compare

chore: readme

feat: add version with date parser

feat: archor collector

feat: section parsing

feat: try to implement oneOf

feat: use turndown for html => md

feat: add types mapper and tests for it

fix: many cases in test suite for types

feat: a lot of improves in test suite

feat: add enum support for strings

feat: support enums for number values too (also test for icon_color)

chore: make parseSections selection section

feat: WIP custom schema

chore: a lot of tries for implemetings number enums default min max

feat: add support for return resolving

feat: improve oneOf and some fixes

feat: const support

chore: prepare to publish

chore: export

Full Changelog: https://github.com/gramiojs/schema-parser/commits/v0.0.1