mtcute

modern typescript library for mtproto. supports browsers, node/bun, deno and more!

MIT License

Downloads
14.4K
Stars
137
Committers
4

Bot releases are visible (Hide)

mtcute - v0.12.5

Published by github-actions[bot] 5 months ago

core

  • 81c8dab2a6d556c4cf6a65d4e429228fa643546c: fix(core): use globalThis instead of eval
  • c0ae65b60fed4ae7d380dc47d4d82015bd3e822d: fix(core): call Conversation.handleUpdate on the wrapper client
  • d828d497dbc162b57b4e122a4465f4296763d010: fix(core): correctly cancel on timeout
  • e6e5d97a3e91fe7d6be40cc4840441972666b655: feat(core): fireAndForget param for getCallbackAnswer
  • 86405fae18d4d1efa883a7112cbef5f9970d384f: fix(core): onError not working

html-parser

  • 7a6d98497717be5e38c7e3203fedffd25145038b: fix(html-parser): interpolating inside attribs
  • 9ff8f9d33f433054aee3cc0aa923c4f74296534c: feat(html-parser): allow passing Longs to interpolate

markdown-parser

  • e081fddbc2f0fe74d60f2ecfbaa01958e78fd4dd: feat(markdown-parser): support Longs in interpolation
  • 41a35758056a462fb5a3263072c7d3958b9d7a92: fix(markdown-parser): handle interpolation inside links
mtcute - v0.12.4

Published by github-actions[bot] 5 months ago

test

  • 6ec7c94ddb2bb195b460638fb78dfc48ebe037a3: build(deps): use caret peer dependency for @mtcute/test

dispatcher

  • 2d78a892b42027c37498e5c49d7a3c6c4c6089fe: fix(dispatcher): better errors in CallbackDataBuilder#parse
  • 702ff2a0de68ac7bda6daeb40f0438b2fb25733b: fix(dispatcher): don't throw on invalid data when using predicates

crypto-node

  • b419cb47534e5010e3a5d2ec084a1fe3a43d1bff: build(deps): removed node-gyp from root, bumped node-gyp-build
mtcute - v0.12.3

Published by github-actions[bot] 5 months ago

dispatcher

  • 0960dae59bb8fd86bce74c01469a0bc81fee009d: feat(dispatcher): allow predicates in CallbackDataBuilder .filter()
mtcute - v0.12.2

Published by github-actions[bot] 5 months ago

core

  • 71941325577e5991e6fdca646b8324541eead10b: fix(core): correctly handle disableUpdates for highlevel client
mtcute - v0.12.1

Published by github-actions[bot] 5 months ago

core

  • dc99a9103b206ee3b99fd07a7529793586835510: fix(core): onError doesn't register
  • e3fc079f05f7ed2b0b346dfcd68063f05d654c9a: fix(core): emit error on -404
mtcute - v0.12.0

Published by github-actions[bot] 5 months ago

dispatcher

  • 20e27070dc224272f73cc95a4042392fb3716369: fix(dispatcher): pubilc constructor for WizardScene
  • a2cdc737351b657266a417a68ba46259eaeeef05: feat: initial deno support
  • 8baacc701cb04bf7bd3aad007daea4481775695f: feat(dispatcher): dependency injection
  • f277bbc41cf526972b361a6ff155d13135908eeb: build(ts): disable stripInternal
  • 0b97e79c478f1650526e5f4bc252a3aaa6ac3917: feat(dispatcher): allow injecting multiple deps at once
  • cb0dbb712a74f2d3dc4230c46c1da211174e5f0d: feat(dispatcher): dependency injection (#55)
  • 2a399532a3d8fe18d641350ccec852d370caf098: feat: support business connections
  • 82b1552468528a80966459e2c98caf98b7d587a9: feat(dispatcher): filter for scheduled messages

core

  • b418577bfa1f9c851f5ea6320afa99935f56824a: refactor(test): refactored and improved deno/bun vitest polyfills a bit
  • a2cdc737351b657266a417a68ba46259eaeeef05: feat: initial deno support
  • 67b290643d1c8de18644d58813059ba6216a2da0: build: use a stripped down non-conflicting version of lib.deno.d.ts instead
  • 8b80a3ddbe005f45be70f0c0114993fcf705cea3: build: updated to 179 layer
  • de8033e6d2f69daa89f2676c4a8fff4160955730: ❗ BREAKING chore(core)!: moved full-specific fields to FullChat
    breaking: Chat constructor signature changed. also removed some fields fromChat, but any code depending on them would be incorrect anyway
  • a414ea9425a5a65c65bb36a17ca464842263790d: feat(core): basic support for quick replies
  • 756b99e12f0fedd446cd7f91f2d8de468e22f1d4: feat(core): support Telegram Business and some other new features
  • 00da6736e69b6dfeb81187ef7b4b217310955ab6: feat(core): new stickers features
  • e8a09ec2705d7a7ac88015bcdc2a649a2602251f: feat(core): broadcast_only flag for searchGlobal
  • e9d5158451b6015295ecba3e9dba69aa804e4a85: feat(core): getCollectibleInfo method
  • c021f64ed0ca468087a3326ed6d9390abe79cdb0: fix(core): inspect longs as strings
  • 2a399532a3d8fe18d641350ccec852d370caf098: feat: support business connections
  • f877e97d3450f11f54f5c24bdc52f0fda06a92fb: feat(core): added missing fields to Message
  • 47e1cde58570ca418c92032d79e13d4e194fb9b8: feat(core): getAllScheduledMessages method
  • 86fefbfc028b41445d5c63ec2798ae657f162945: fix(core): groupedIdUnique is always non-null

web

  • b418577bfa1f9c851f5ea6320afa99935f56824a: refactor(test): refactored and improved deno/bun vitest polyfills a bit
  • a2cdc737351b657266a417a68ba46259eaeeef05: feat: initial deno support
  • 67b290643d1c8de18644d58813059ba6216a2da0: build: use a stripped down non-conflicting version of lib.deno.d.ts instead

node

  • d84a946411c07d0e1c53d4ffcf30dc8700b8dafd: build(node): bumped better-sqlite3
  • c3c7d1ddcea1b324db61a21fc52f74a7810f48c7: build: added deprecation notice to commonjs builds
  • 365369be95ae1f0952eb491371ebac0df4e675dc: ❗ BREAKING fix(node)!: recursive crypto-node import
    breaking: moved NodeCryptoProvider to @mtcute/node/utils.js
  • a2cdc737351b657266a417a68ba46259eaeeef05: feat: initial deno support
  • dc56deb08a3f6c689dedc5b4faef2855d48732fa: fix: check for listener count before emitting error

crypto-node

  • 03a156e9a8e5ebe56f61400c10d47bfc5607c3be: feat(crypto-node): prebuilts for arm
  • 365369be95ae1f0952eb491371ebac0df4e675dc: ❗ BREAKING fix(node)!: recursive crypto-node import
    breaking: moved NodeCryptoProvider to @mtcute/node/utils.js

i18n

  • 9389cf8b5fa07903dc0df5d4085da7f3b4b53e40: ❗ BREAKING chore(i18n)!: export plurals from index
    breaking: @mtcute/i18n/* imports are now all in @mtcute/i18n
  • 8baacc701cb04bf7bd3aad007daea4481775695f: feat(dispatcher): dependency injection
  • f277bbc41cf526972b361a6ff155d13135908eeb: build(ts): disable stripInternal

test

  • 365369be95ae1f0952eb491371ebac0df4e675dc: ❗ BREAKING fix(node)!: recursive crypto-node import
    breaking: moved NodeCryptoProvider to @mtcute/node/utils.js

tl

  • 365369be95ae1f0952eb491371ebac0df4e675dc: ❗ BREAKING fix(node)!: recursive crypto-node import
    breaking: moved NodeCryptoProvider to @mtcute/node/utils.js
  • 8b80a3ddbe005f45be70f0c0114993fcf705cea3: build: updated to 179 layer

bun

  • a2cdc737351b657266a417a68ba46259eaeeef05: feat: initial deno support
  • dc56deb08a3f6c689dedc5b4faef2855d48732fa: fix: check for listener count before emitting error

deno

  • a2cdc737351b657266a417a68ba46259eaeeef05: feat: initial deno support
  • 67b290643d1c8de18644d58813059ba6216a2da0: build: use a stripped down non-conflicting version of lib.deno.d.ts instead
  • 33515169ff741d8027160c3b0a81a25c4055d2ff: fix(deno): lazily import @db/sqlite
  • dc56deb08a3f6c689dedc5b4faef2855d48732fa: fix: check for listener count before emitting error
mtcute - v0.11.1

Published by github-actions[bot] 6 months ago

dispatcher

  • 20e27070dc224272f73cc95a4042392fb3716369: fix(dispatcher): pubilc constructor for WizardScene
mtcute - v0.11.0

Published by github-actions[bot] 6 months ago

core

  • f527ca49cf0f8d030246a0e92d420dd6fea1c5af: fix(core): hopefully fixed typescript performace issues with tg.call
  • d91557cb1b21b43afdf93f2a64c0fafb7964ff24: fix(core): hopefully fixed typescript performace issues with tg.call (#32)
  • 32e29715ade4dd5ccadd95c60711e7100830ad57: fix(core): automatically add relevant file extension
  • 4cc96a843d4fa1bdbf8248ac43ff50964c38f56a: fix(core): automatically add relevant file extension (#46)
  • ac8d63a669a1c2e4a1cea21896368b2c90d7a811: ❗ BREAKING chore(core)!: inlined dcOption parsing in string sessions
    breaking: readStringSession now accepts only one argument
  • 9491b2b1e6286dd0ca55cade993c1abbd59339ff: fix: use node: scheme for node imports
  • c5ce2c321d4c7e03158c7927ef59fc1ad445b5ef: build: some fixes + made @mtcute/test esm-only
  • 29d3fd8f8c4dcc9257ea8d46475cb280c04fb3fe: fix(core): correct default offset for getHistory with reverse flag
  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building
  • 78457fb1586fca7268f24533c74c08f10f3cbdb5: fix(web): wait for the websocket to close
  • 44a60360abf11858ebd05186c8aa3e2e52212a89: fix(core): normalizeInputMedia should respect uploaded file name

crypto-node

  • de3d3d81babe0136c64e8bf013230bb9a230d2c6: feat(crypto-node): bundle prebuilts with the package
  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

convert

  • ac8d63a669a1c2e4a1cea21896368b2c90d7a811: ❗ BREAKING chore(core)!: inlined dcOption parsing in string sessions
    breaking: readStringSession now accepts only one argument
  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

test

  • c5ce2c321d4c7e03158c7927ef59fc1ad445b5ef: build: some fixes + made @mtcute/test esm-only
  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

bun

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building
  • 17204338826370483f75b3003f097097269d469a: fix(bun): correctly handle BunFiles

dispatcher

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

file-id

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

html-parser

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

http-proxy

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

i18n

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

markdown-parser

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

mtproxy

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

node

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

socks-proxy

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

tl-runtime

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

tl-utils

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

tl

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

wasm

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building

web

  • 9d114a3552ad079923bf3b8176148a98bf2f0a21: build: initial support for jsr building
  • 78457fb1586fca7268f24533c74c08f10f3cbdb5: fix(web): wait for the websocket to close
mtcute - v0.10.1

Published by github-actions[bot] 7 months ago

html-parser

  • 869d5987c72cec0d8fe79cec17219f4c684dc0ae: fix(html): keep whitespaces in raw text

core

  • 3f0e95ef318cd77961957b4564fc9148360310db: feat(core): joinTextWithEntities method in utils
mtcute - v0.10.0

Published by github-actions[bot] 7 months ago

core

  • 9091a105375427b4f3f2fe4c05541c6f37832017: fix(core): hopefully fix duplicating msg_id leading to bad_msg_container 64
  • bf2f7999a6b6caf001eaf60f86d36e4c00f09735: ❗ BREAKING feat!: updated to 177 layer
    breaking: .createGroup now returns CreateGroupResult

tl

  • bf2f7999a6b6caf001eaf60f86d36e4c00f09735: ❗ BREAKING feat!: updated to 177 layer
    breaking: .createGroup now returns CreateGroupResult
mtcute - v0.9.1

Published by github-actions[bot] 7 months ago

core

  • d577f0ed9b75c3b4385e2118a863cdc99e2ba974: fix(core): improved state_req handling
  • 5ab251cafe63f90646e77c9c766700634b83711b: fix(core): improved state_req handling

bun

  • fa267eef0320bc106ef1632fec789cfcf6183933: fix: correctly reset session
  • fc3391feaf07b1c33045087b05fa1e6cc53c8b4c: fix(bun): handle backpressure for tcp connections

node

  • fa267eef0320bc106ef1632fec789cfcf6183933: fix: correctly reset session

web

  • fa267eef0320bc106ef1632fec789cfcf6183933: fix: correctly reset session
mtcute - v0.9.0

Published by github-actions[bot] 7 months ago

core

  • 3074e9bbf56cf95f6f3fd7783d7ce16532fa36a8: build(deps): updated vitest
  • 142dddd25384e1fe521c300a9beac745d6e6bf88: refactor: moved most of sqlite implementation to core
  • 1e780ec4af7070822a55508796ca67991232c532: feat: @mtcute/bun package for initial first-class bun support

tl-utils

  • 3074e9bbf56cf95f6f3fd7783d7ce16532fa36a8: build(deps): updated vitest
  • b4099f15bd76a7460bd1410e7a56935c31211e0e: build: fixed vitest version in @mtcute/test + fixed vite configs

test

  • b4099f15bd76a7460bd1410e7a56935c31211e0e: build: fixed vitest version in @mtcute/test + fixed vite configs

dispatcher

  • 142dddd25384e1fe521c300a9beac745d6e6bf88: refactor: moved most of sqlite implementation to core

node

  • 50835609f0a4fdecad00d88886337e0ee42e2c5c: ❗ BREAKING chore!: moved @mtcute/sqlite into @mtcute/node
    breaking: @mtcute/sqlite no longer exists
  • 1e780ec4af7070822a55508796ca67991232c532: feat: @mtcute/bun package for initial first-class bun support

bun

  • 1e780ec4af7070822a55508796ca67991232c532: feat: @mtcute/bun package for initial first-class bun support

tl-runtime

  • 1e780ec4af7070822a55508796ca67991232c532: feat: @mtcute/bun package for initial first-class bun support

create-bot

  • 9d34d902a43a0451272166465d25883b9671e4ed: feat(create-bot): support bun
mtcute - v0.8.2

Published by github-actions[bot] 7 months ago

create-bot

  • 9f76b78103480c04b58855a3d76e90efbd5874bd: fix(create-bot): husky || true
mtcute - v0.8.1

Published by github-actions[bot] 7 months ago

create-bot

  • ff89ce3ddd0b943c5abfa1c29e1dd8e071ba45ef: feat(create-bot): support package managers other than pnpm
  • 8f909ee3384aec8a2c180f1fa4960c027f6c4fb1: fix(create-bot): husky install is deprecated
mtcute - v0.8.0

Published by github-actions[bot] 7 months ago

core

  • be899afca27c40b4b9a16d5c2a605208386c515d: fix(core): infinite bad_msg_notification 17 when system time is wrong
  • ceb606a347f37e0094f13b31190d7dad6a97609c: fix(core): hide _parsedStatus from inspect
  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • fb72d3194d38899b59a95283ce23d3ca35a4ca48: fix: properly handle file uploads + downloading as node stream
  • fbf5c8f4bc2fab726f4b579b64b51f0e690670f3: ❗ BREAKING chore!: removed @mtcute/wasm dependency from core
    breaking: WasmCryptoProvider no longer exists
  • 42f1482d7f80d085ef085cfe3315da070a81c753: build(core): improved tree-shakeability
  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false
  • b9f8fd58db4617be10d80736ce390fcf6f0bff21: fix(core): try to use symbol for platform
  • 83746aa46046a0cf8781ebef87242ac3f06fb915: feat: initial support for connection states
  • ab2425a26ed14caab9028bb0da5069ab462d5464: feat: support for "updating" states + improved catch up a bit
  • c9a4558e5c962a72863b0ac76ba91d389ed02f06: fix: download threads never connecting
  • f7d6e6730bd8265b5605e17b8bc7df770beffb92: feat(core): withParams method
  • 81a12a80880163766f52cfe49562703a1f991493: fix(core): send connection state through worker
  • 14a54f5a25ac6af5e15668b57a2393e85c244e40: fix(core): check for message id in _findMessageInUpdate
  • 999c18c6161149e88454f989e2036d7a7519a056: fix(core): check for message id in _findMessageInUpdate (#23)
  • 6828d563175d087ed433a90730fdc022fc1d3108: feat(tl): updated to layer 176

crypto-node

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages

dispatcher

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • fb72d3194d38899b59a95283ce23d3ca35a4ca48: fix: properly handle file uploads + downloading as node stream
  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false

file-id

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false

http-proxy

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • 9420f155b26e33b682ba36f05cf08b4880d73f1e: fix: tsconfig refs

mtproxy

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • 9420f155b26e33b682ba36f05cf08b4880d73f1e: fix: tsconfig refs

node

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • fb72d3194d38899b59a95283ce23d3ca35a4ca48: fix: properly handle file uploads + downloading as node stream
  • 83746aa46046a0cf8781ebef87242ac3f06fb915: feat: initial support for connection states

socks-proxy

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • 9420f155b26e33b682ba36f05cf08b4880d73f1e: fix: tsconfig refs

sqlite

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages

test

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • fb72d3194d38899b59a95283ce23d3ca35a4ca48: fix: properly handle file uploads + downloading as node stream

tl-runtime

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • fb72d3194d38899b59a95283ce23d3ca35a4ca48: fix: properly handle file uploads + downloading as node stream
  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false

tl

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • ddc8f1dad74946f301a082765082c995278ce30d: feat(tl): scrape schema from weba/k sources
  • 6828d563175d087ed433a90730fdc022fc1d3108: feat(tl): updated to layer 176

wasm

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • fb72d3194d38899b59a95283ce23d3ca35a4ca48: fix: properly handle file uploads + downloading as node stream
  • 9420f155b26e33b682ba36f05cf08b4880d73f1e: fix: tsconfig refs
  • 791a3a58b5c64635f7bffd69babcdf6f3be1d5c7: fix: wasm build and e2e fixes
  • f274dfe857786c6ce6267c35040a76101d9d43b9: fix(core): use workaround for wasm loading
  • fea8d93dcb493867a02ad15b96aee8291d899de3: fix: only-if-esm for getWasmUrl
  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false

web

  • a2739b678c016b4bb9862ce20b25567c715fb80d: ❗ BREAKING chore!: started extracting platform-specific stuff into separate packages
  • fb72d3194d38899b59a95283ce23d3ca35a4ca48: fix: properly handle file uploads + downloading as node stream
  • f274dfe857786c6ce6267c35040a76101d9d43b9: fix(core): use workaround for wasm loading
  • baa4ccf755dcf0c6592e1e25de8add57279063da: fix(core): web worker implementation
  • fbf5c8f4bc2fab726f4b579b64b51f0e690670f3: ❗ BREAKING chore!: removed @mtcute/wasm dependency from core
    breaking: WasmCryptoProvider no longer exists
  • 56b2fe70d34be8f3bfe1f34a49c8123ef61ba99d: fix(web): worker fixes
  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false
  • d64aa478cc2605c6ff0ece86448cea950d67c932: fix(web): export websocket
  • 83746aa46046a0cf8781ebef87242ac3f06fb915: feat: initial support for connection states

html-parser

  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false

markdown-parser

  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false

tl-utils

  • d87a11b52e917f7876ab234719a38c1a053a8896: build: added sideEffects: false
  • ddc8f1dad74946f301a082765082c995278ce30d: feat(tl): scrape schema from weba/k sources

create-bot

  • f9d9133e88bb65400972a135876b015e34f87912: fix(create-bot): NodeTelegramClient -> TelegramClient

convert

  • 2fe476cf3cf3e7d84d4fdacecf60bc94563a4fa6: feat: initial support for session conversion
mtcute - v0.7.2

Published by github-actions[bot] 8 months ago

create-bot

  • 10ccfae4968bf499ace78a47cc85ea8f7bfc83ef: fix: __dirname on windows

wasm

  • 10ccfae4968bf499ace78a47cc85ea8f7bfc83ef: fix: __dirname on windows

core

  • 8f0e072f4ad2053df87dbfc89a6b2139a752540d: fix(core): string session
mtcute - v0.7.1

Published by github-actions[bot] 8 months ago

core

  • 54c904d3fac075d31aea2d3650da6e331890c1e0: fix(core): avoid imports from tty
  • 8c38f836dda41575b287f554c6ce5031ce8ad34e: feat(core): export all methods in methods.js
  • 852bc1062930aa69d98462b03f5fb7b44529c5e2: fix(core): session import/export

create-bot

  • f05ada6cd26da2d5e447aec46912ca626c91f32c: fix(create-bot): use cross-spawn
mtcute - v0.7.0

Published by github-actions[bot] 8 months ago

[!WARNING]
there was a large internals refactor in this release. while most of the surface apis remained the same,
the following should be noted:

  • storage format has changed in incompatible way.
    while a migration is available for sqlite storage, it may break requiring to either re-login or export-then-import
  • json-based storages (json file and localstorage) were deprecated and removed
  • client has been merged into core. it should be safe to replace all @mtcute/client imports with @mtcute/core.
    if you use @mtcute/node everything should work as-is
  • dispatcher no longer implicitly converts storage. see docs for an example

core

  • eca99a75352656ed7b9d642b408ad106d9107788: ❗ BREAKING refactor!: large refactor of storage implementation
    breaking: pretty much the entire storage thing has been overhauled.
    migrations from older versions are not available, please do them manually through string sessions
  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests
  • 20a46c54a80128f3ec523b6cd9c219216e0cdddb: fix: e2e
  • ac3b5df9a03d9ebe1e20f9493ceeedd71db8617d: ❗ BREAKING refactor!: renamed MaybeAsync -> MaybePromise
  • 7036fe1e972e95206fc1bc13e32d723cca9fee5c: fix: fixed handling of -404
  • e6c7af6ed2bc4e84e27cfa88e84ac15443e63ec4: feat: updated to layer 173
  • 27e14472fff54705d804d9be9b31d3d22e10d46a: feat: app config manager
  • 99bd1bc313b6a971340a4158b20a34af4628a020: feat: resolveUser and resolveChannel methods + refactor to use them
  • 5d137a91256c879e960be813bf13341af437dc23: fix(core): check pq for primality
  • a17604b623777969ecf0ab5104e8132d64eb38da: fix(core): websocket reconnection
  • 8460cc3ade2ae3220d85fb73805928c4053ec9ca: feat(tl): updated to 174 layer
  • 2d01b38e95bed9d3d97dbdc09ff42c1d36819794: feat(core): support new message actions

dispatcher

  • eca99a75352656ed7b9d642b408ad106d9107788: ❗ BREAKING refactor!: large refactor of storage implementation
    breaking: pretty much the entire storage thing has been overhauled.
    migrations from older versions are not available, please do them manually through string sessions
  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests
  • ac3b5df9a03d9ebe1e20f9493ceeedd71db8617d: ❗ BREAKING refactor!: renamed MaybeAsync -> MaybePromise
  • cc5cb3150dcb48434df815d0f35e2ce6619487b4: fix(sqlite): added migrations for older storage schema

file-id

  • eca99a75352656ed7b9d642b408ad106d9107788: ❗ BREAKING refactor!: large refactor of storage implementation
    breaking: pretty much the entire storage thing has been overhauled.
    migrations from older versions are not available, please do them manually through string sessions
  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage

sqlite

  • eca99a75352656ed7b9d642b408ad106d9107788: ❗ BREAKING refactor!: large refactor of storage implementation
    breaking: pretty much the entire storage thing has been overhauled.
    migrations from older versions are not available, please do them manually through string sessions
  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests
  • cc5cb3150dcb48434df815d0f35e2ce6619487b4: fix(sqlite): added migrations for older storage schema

test

  • eca99a75352656ed7b9d642b408ad106d9107788: ❗ BREAKING refactor!: large refactor of storage implementation
    breaking: pretty much the entire storage thing has been overhauled.
    migrations from older versions are not available, please do them manually through string sessions
  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests
  • ac3b5df9a03d9ebe1e20f9493ceeedd71db8617d: ❗ BREAKING refactor!: renamed MaybeAsync -> MaybePromise

html-parser

  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 4e78b643df7e5a90db523774f091cb25ebeed8e6: fix: fixed build for other packages
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests

i18n

  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 4e78b643df7e5a90db523774f091cb25ebeed8e6: fix: fixed build for other packages
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests

markdown-parser

  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 4e78b643df7e5a90db523774f091cb25ebeed8e6: fix: fixed build for other packages
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests

node

  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 4e78b643df7e5a90db523774f091cb25ebeed8e6: fix: fixed build for other packages

tl

  • c8e026dc033c0c24f6c00b0e462203dd1bac8ca1: ❗ BREAKING refactor!: merged client into core + fixed dispatcher for new storage
  • 6768b155148fea7209b8ca37287dcd6b76de5ee7: fix: tests
  • e6c7af6ed2bc4e84e27cfa88e84ac15443e63ec4: feat: updated to layer 173
  • 27e14472fff54705d804d9be9b31d3d22e10d46a: feat: app config manager
  • 8460cc3ade2ae3220d85fb73805928c4053ec9ca: feat(tl): updated to 174 layer

create-bot

  • 80850c9ad580675e689e7c97011004b7a13a37f8: fix(create-bot): pnpm run run -> pnpm start
mtcute - v0.6.0

Published by teidesu 10 months ago

client

  • support for bot reactions
mtcute - v0.4.0

Published by github-actions[bot] 10 months ago

client

  • c278599612d194607f64434df07b05f95a2f342f: feat(client): allow disabling updates manager
  • 8e07d7f5524cde3a9820965b94dc0e1380ac4fd1: fix(client): do not propagate Conversation updates
  • c538c2b0595bd940994fb0907daa13c4ecae92dd: fix(core): allow storage reset to be async
  • 0bdf778462d9cbc6e98bc56c57a4c6d4d31f0c29: ❗ BREAKING chore(client)!: renamed some methods
    breaking:
    • setProfilePhoto -> setMyProfilePhoto
    • setUsername -> setMyUsername
    • setEmojiStatus -> setMyEmojiStatus
  • 3eaceedb8b5ae7b3073cbc85374386a988987dcc: feat(client): support public/personal/video profile photos in Chat
  • 391049b86fe5674ee7195d1f92e246f06ae454c7: fix(client): file download cancellation issues
  • c175e416165933ab9ea2349f042a558c2cda835d: ❗ BREAKING feat!: updated to layer 169
    breaking:
    • boost related methods re-done to allow for multiple boosts per user
    • BotKeyboard.requestPeer and peer_chosen changed

core

  • 02a6a0e133440f950cec649f8dec079b998e5b8f: fix(core): proper exit cleanup in json file
  • c538c2b0595bd940994fb0907daa13c4ecae92dd: fix(core): allow storage reset to be async
  • 7e0f172aa845271366114aff35b27caebaf03f13: fix(core): incomplete session reset
  • ca1916c5cbee3c45775890667abd7ee1556abf93: fix(core): do not close connection by inactivity when there are pending queries

sqlite

  • 62e8e3b33f0c58dacdf021437cfaf6b4aaa9be08: fix(sqlite): cleanup on exit
  • 81eb664fecd8b89132b218c1ee9f1d02dd199572: fix(sqlite): dangling timeout when multiple .load() calls

test

  • c538c2b0595bd940994fb0907daa13c4ecae92dd: fix(core): allow storage reset to be async

tl

  • c175e416165933ab9ea2349f042a558c2cda835d: ❗ BREAKING feat!: updated to layer 169
    breaking:
    • boost related methods re-done to allow for multiple boosts per user
    • BotKeyboard.requestPeer and peer_chosen changed
Package Rankings
Top 4.46% on Npmjs.org