[email protected] (2021-02-16)
- Fixes node-gyp's error log output when installing using npm v7.
[email protected] (2021-01-14)
- Important: TypeScript and Flow users now need to install
tdlib-types
for the TDLib typings to work. It is now possible to install the typings for other TDLib versions. client.pause()
andclient.resume()
are now deprecated.- Removed deprecated
client.invokeFuture
. - Added
client.getBackendName(): string
function. - Supports only TDLib v1.5.0 or newer (instead of v1.4.0).
- Requires
[email protected]
. - Multiple documentation improvements.
- Internal:
-
- Updated Flow to v0.138.0.
- This is the first release of
tdlib-types
, see its README. - The TDLib typings have been split from the
tdl
package into this package. - The generator now parses "may be null" comments.
- Added typings for TDLib v1.7.0.
[email protected], [email protected], [email protected], [email protected] (2021-01-14)
- Removed deprecated
setLogFilePath
,setLogMaxFileSize
, andsetLogVerbosityLevel
. - New method:
getName(): string
. create()
now doesn't need to return a promise.
[email protected] (2020-12-04)
- Fixed not building on Windows.
[email protected] (2020-11-08)
- New method:
client.close()
, returns a promise. client.invokeFuture
is deprecated.tdl-tdlib-addon
is now recommended instead oftdl-tdlib-ffi
. Note that the libraryFile extension in tdl-tdlib-addon is mandatory (ffi-napi automatically appends the extension).- Documentation improvements.
- Other improvements.
[email protected] (2020-11-08)
- Uses dlopen instead of rpath.
- Added support for
td_set_log_fatal_error_callback
. - Major improvements.
[email protected] (2020-11-08)
- Minor improvements.
[email protected] (2020-06-30)
- ffi-napi updated to v3. This adds support for Node.js v14 and drops support for Node.js older than v10.
[email protected] (2020-03-22)
- Adds full support for TDLib v1.6.0:
-
- TDLib typings are updated to TDLib v1.6.0.
-
- Registration in the
login
function now works with TDLib v1.5.0+ (and doesn't support tdlib <1.5.0). PR: #71.
- Registration in the
- Several improvements to the documentation.
- Internal:
-
- Moved the
tdlib-typings
project into this repository.
- Moved the
[email protected] (2019-05-07)
- Fixed renaming of objects in an array (see #48).
- Important: Allowed recovery from invalid phone numbers (see #33).
loginDetails.phoneNumber
/loginDetails.token
field replaced withloginDetails.getPhoneNumber
/loginDetails.getToken
function. - Important:
new Client(options)
->new Client(tdlibInstance, options)
- Splitted
tdl
into two packages:tdl
andtdl-tdlib-ffi
. Users should manually install both. - Now the
tdl
core package can work in browser. - Added the
tdl-tdlib-wasm
package. - (very unstable) Added the
tdl-tdlib-addon
package. - Removed static method
Client.fromTDLib
. - Changed behaviour of
client.on('update')
andclient.on('error')
. client.login()
(andclient.connectAndLogin()
) argument is optional now.- Added
client.off
(alias ofclient.removeListener
) andclient.addListener
(alias ofclient.on
).Rx.fromEvent
from RxJS 6 can now work withtdl
out of the box. Example:Rx.fromEvent(client, 'update')
. - Removed
client.setLogFilePath
,client.setLogMaxFileSize
,client.setLogVerbosityLevel
methods, which are deprecated in TDLib. - Added the
disableAuth
advanced option. - Many documentation improvements.
- Added basic contributing guidelines.
- TDLib typings for TS/Flow:
-
- Updated to tdlib v1.4.0.
-
- Changed names of "input" kind of types:
xxxOptional
->xxx$Input
- Changed names of "input" kind of types:
-
- Properties of input types are read-only now.
-
- Flow: Now all types are exact. Previously, only input types were exact.
-
- Flow: Now non-input types are subtypes of input.
- Other minor improvements.
- Added
client.connectAndLogin
method. - File
types/tdlib.ts
renamed totypes/tdlib.d.ts
(see #31).
- Added
client.pause()
andclient.resume()
functions, which allow you to pause update receiving.
- Fixed #24.
- Important: The
client.connect
function is now splitted into two functions:client.connect
andclient.login
. RemovedbeforeAuth
argument fromclient.connect
function. RemovedloginDetails
option fromClient
constructor; nowclient.login
accepts a function that returnsLoginDetails
. - Added OS detection. Now
tdl
searches fortdjson
on Windows and forlibtdjson
on other OSes. - Added
response
event that allows reading pure updates (i.e. "events" or "responses") that come from tdlibclient_receive()
. - Removed
logFilePath
option.client.setLogFilePath()
method can be used instead. tdlib.send
now returnsundefined
instead ofnull
.- Added
databaseEncryptionKey
option. - Added
useDefaultVerbosityLevel
option for advanced users. When it's set to true,tdl
doesn't invokesetLogVerbosityLevel
duringconnect()
. - TDLib typings updated to TDLib v1.3.0. Documentation comments added to TDLib typings.
- Many documentation improvements.
tdlib.setLogFatalErrorCallback
now acceptsnull
.client.setLogFatalErrorCallback
now acceptsnull
.- Internal:
-
- Added internal package
tdl-shared
with TS / Flow types.
- Added internal package
-
- Added
debug
namespaces:tdl:client:emitter
,tdl:client:response
,tdl:client:request
.
- Added
-
- Many improvements of tests for TS / Flow typings.
- Added
client.removeListener
function. - Internal:
-
- Flow updated to v0.76.0.
- Added
beforeAuth
argument inclient.connect
function. dev
option renamed touseTestDc
.- Added
Client.create
andClient.fromTDLib
static methods. - Added
auth-not-needed
event. - Changed
client.on('error')
signature:(event: 'error', listener: (err: TDError) => void) => Client
to(event: 'error', listener: (err: TDError | Error) => void) => Client
. - Internal:
-
- Now names of private fields start with
_
.
- Now names of private fields start with
-
- Added tests for Flow typings.
- Now errors in
_loop
are correctly handled. See #16.
- Some fixes in TDlib TS typings.
- Added TypeScript typings.
- Minimum Node.js version is
8.6.0
. - Added sign up support. Added
loginDetails.getName
function. - Added support of previously unsupported tdjson functions:
-
- Added
client.setLogMaxFileSize
.
- Added
-
- Added
client.setLogFatalErrorCallback
.
- Added
-
- Added
tdlib.setLogMaxFileSize
.
- Added
- Bugfixes. See #6.
- Internal:
-
- Added
.gitattributes
.
- Added
- Fixed value of
main
field inpackage.json
.
- Some improvements of Flow typings.
src/tdlib-types.js
renamed totypes/tdlib.js
.- Added
tdlib.setLogFatalErrorCallback
method. - Documentation: Added 'typings' and 'examples' section in README.
- Bugfixes.
prepublish
script in package.json replaced withprepare
andprepack
.- Internal:
-
- Added eslint.
-
- Added
.editorconfig
.
- Added
- Added
client.invokeFuture
function. - Added
multiple-accounts.js
andusing-fluture.js
examples. - Added
tdlibIntance
option. - Some documentation improvements.
- Some bugfixes.
- Added event
auth-needed
. - Fixed arrays in TDLib flow typings.
- Added
TDLib_API.md
file. inquirer
replaced withpromptly
.- Added
useMutableRename
option. - Travis activated.
build
badge added to README. - Added
skipOldUpdates
option. - Node.js
events
replaced witheventemitter3
.
- Fixes in TDLib flow typings.
- Internal:
-
- Flow updated to v0.69.0.