-
Notifications
You must be signed in to change notification settings - Fork 53
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
A semver-major update. Modernizes and simplifies many things. The tdl client is tidied up and some long-planned changes are implemented. The non-deprecated API mostly remains the same. - Dropped suport for tdlib < v1.8.0 - Dropped suport for node.js < v16 - Dropped compatibility with tdl-tdlib-addon - Removed many deprecated things - Rewrote the code of the tdl package in TypeScript (from an old version of Flow) Some other packages still use Flow-in-comments (that's pretty ok) - Removed the use of babel - Removed the custom config of eslint - Updated the dev dependencies - client.login is finally a normal update handler - client.login can now accept the object directly besides a thunk function - TDLib errors are now wrapped in the TDLibError (extends Error) class (this hasn't been done for many years because of backward compatibility) - Added client.createBareClient() instead of the bare option - TdlError is replaced with UnknownError and wraps only non-Error exceptions - Added a possibility to iterate via async js iterators - Removed the eventemitter3 dependency - client.off() now returns boolean instead of void; the once? argument is removed - Added examples/custom-login.js - removed null from the return type of execute - tdl-install-types now generates Execute from marked-as-sync functions only - tdl-install-types now also generates $Function (union of all tdlib function codomains) - See the CHANGELOG update for other changes
- Loading branch information
Showing
52 changed files
with
9,375 additions
and
11,304 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
node_modules/ | ||
dist/ | ||
flow-typed/ | ||
flow/ | ||
scripts/ | ||
vendor/ | ||
examples/ | ||
/test.js | ||
*.ts | ||
typings-tests/ | ||
/temp.js | ||
tests/integration/ | ||
tests/types/ | ||
typings/ | ||
/jest.config.js | ||
/setup-jest.js | ||
*.d.ts | ||
*.js.flow |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,27 @@ | ||
{ | ||
"parser": "@babel/eslint-parser", | ||
"env": { | ||
"browser": false, | ||
"node": true, | ||
"es6": true | ||
"es2021": true | ||
}, | ||
"extends": [ | ||
"@bannerets/eslint-config-flow" | ||
"eslint:recommended", | ||
"plugin:@typescript-eslint/recommended" | ||
], | ||
"parser": "@typescript-eslint/parser", | ||
"plugins": [ | ||
"@typescript-eslint" | ||
], | ||
"rules": { | ||
"semi": ["warn", "never"], | ||
"no-redeclare": 0, | ||
"valid-jsdoc": 0 | ||
} | ||
"valid-jsdoc": 0, | ||
"no-undef": 0, | ||
"no-constant-condition": 0, | ||
"no-case-declarations": 0, | ||
"@typescript-eslint/no-explicit-any": 0, | ||
"@typescript-eslint/no-var-requires": 0, | ||
"@typescript-eslint/no-unused-vars": 0, | ||
"@typescript-eslint/ban-ts-comment": 0 | ||
}, | ||
"root": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.