Releases: gramiojs/files
v0.5.0
-
bump version to 0.5.0
-
@gramio/types peer dep bumped to ^10.0.0
sendVideo, sendMediaGroup, sendPaidMedia, editMessageMedia
setMyProfilePhoto, plus extra cover/photo/live_photo fields on
-
Regenerated MEDIA_METHODS picks up sendLivePhoto, sendPoll,
-
isBlob restored to warn once when it sees a Promise
when the same field appears in multiple variants
that live in a single union variant; falls back to "name" in params.X
-
Discriminator-based predicates (params.X?.type === "...") for fields
bogus extractor entries
so nested non-file objects like InputPollOption.media don't produce
-
Two-level walker that refuses to descend past one named-reference field,
@gramio/schema-parser instead of reading ./tg-bot-api/public/dev/custom.min.json
feat: switch generator to @gramio/schema-parser, bump @gramio/types to v10- scripts/generate.ts now fetches the live Telegram Bot API schema via
chore: silence TS6 baseUrl deprecation in tsconfig
ci: use bunx tsc to pin typescript to local devDep
Full Changelog: v0.4.0...v0.5.0
v0.4.0
before each Telegram API call.
middleware that detects file uploads and converts Blob/File params to FormData
feat: add filesMiddleware for wrappergram middleware chainExports filesMiddleware from @gramio/files/middleware — a ready-to-use
Merge branch 'main' of https://github.com/gramiojs/files
Full Changelog: v0.3.1...v0.4.0
v0.3.2
chore: bump dependencies and version to 0.3.2
Full Changelog: v0.3.1...v0.3.2
v0.3.1
chore: skip undefined values in form data conversion
chore: ensure proper buffer conversion to Uint8Array for File constructor
Full Changelog: v0.3.0...v0.3.1
v0.3.0
v0.2.0
v0.1.3
chore: write a better tests for MediaUpload class and utils
chore: improve test for readable stream
chore: add deprecation notice about Promise
chore: improve test and types
chore: bump and use text lockfile
Full Changelog: v0.1.2...v0.1.3
v0.1.2
chore: use "@gramio/types": "*"
chore: bumps
chore: add npm downloads badge
Full Changelog: v0.1.0...v0.1.2
v0.1.0
feat: allow more data types and use more better methods
chore: bumps
Full Changelog: v0.0.12...v0.1.0
v0.0.12
chore: add LICENSE
chore: ship ESM
chore: remove throw when method not for file upload
chore: remove crypto random
chore: ship ESM & CJS
Full Changelog: v0.0.11...v0.0.12