Security News
Highlights from the 2024 Rails Community Survey
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
prebuilt-tdlib
Advanced tools
This package distributes pre-built TDLib shared libraries through npm. The libraries are built on GitHub Actions: prebuilt-tdlib.yml.
The shared libraries are statically linked against OpenSSL and zlib to prevent compatibility issues in Node.js.
Supported systems:
To install prebuilt-tdlib
for the latest TDLib version that prebuilt-tdlib
supports, run:
$ npm install prebuilt-tdlib
To install prebuilt-tdlib
for a specific TDLib version, e.g. TDLib v1.8.27,
run:
$ npm install prebuilt-tdlib@td-1.8.27
prebuilt-tdlib
can be installed for other TDLib versions, execute
$ npm info prebuilt-tdlib dist-tags
to get the list of available versions.
The TDLib version is important: there is no backward compatibility and the interface you use can completely change.
Note: Before
prebuilt-tdlib@td-1.8.14
(2023-06-26), the Linux binary was built on Ubuntu 20.04 requiring glibc >= 2.31, and macOS arm64 was not supported. Currently, the Linux build environment is based on CentOS 7. The macOS arm64 binary isn't tested in the CI.
The prebuilt-tdlib
package exports a single function getTdjson
, which
returns the path to the tdjson
shared library.
const { getTdjson } = require('prebuilt-tdlib')
console.log(getTdjson())
// Prints a path like:
// '/home/user/proj/node_modules/prebuilt-tdlib/prebuilds/tdlib-linux-x64/libtdjson.so'
This package can be used with, for example, tdl
. You can pass the
path to tdl.configure
(since tdl v7.3.0):
const tdl = require('tdl')
const { getTdjson } = require('prebuilt-tdlib')
tdl.configure({ tdjson: getTdjson() })
// ...
The pre-built libraries can also be extracted and used with any other library or programming language.
This information is present mostly for maintaining
prebuilt-tdlib
, it is not necessary for using this package.
Because TDLib does not follow SemVer, not to require the users to manually
specify the exact version of prebuilt-tdlib
in their package.json
, the TDLib
version is packed into a single minor version.
prebuilt-tdlib
is published to npm under versions 0.xyyyzzz.v
, where
x
, y
, z
correspond to the x.y.z
TDLib version (e.g., 1.8.0). The
leading zeros are appended to y
and z
(y=8
becomes y=008
).v
corresponds to the version of prebuilt-tdlib
itself, these updates can
contain fixes in case some of the builds were broken or include new pre-built
libraries for other platforms.0
.Example: the npm release for TDLib v1.8.5
is 0.1008005.0
.
For convenience, td-X
dist-tags are available. To install prebuilt-tdlib
for
TDLib v1.8.5, just run npm install prebuilt-tdlib@td-1.8.5
, or
npm install prebuilt-tdlib@td-1.8.0
for TDLib v1.8.0. This will automatically
install the needed version of prebuilt-tdlib
.
The releases of the prebuilt-tdlib
npm package are not git-tagged.
Additionaly, TDLib's releasing process is unusual, and the updates generally do
not have a specific git-tagged release. Most prebuilt-tdlib
releases are not
connected to a tag release in the TDLib repository. Usually, the prebuilt
packages are generated based on the "Update version to x.y.z." TDLib commits
(example). Otherwise, the commit hash is indicated in the list
below. Since prebuilt-tdlib@td-1.8.19
(2023-09-26), the packages include a
prebuilds/tdlib.json
file specifying the commit hash and version of TDLib.
For the always up-to-date list, check npm info prebuilt-tdlib dist-tags
.
Or, for all ever published versions, see npm info prebuilt-tdlib versions
.
An incomplete list is available below (mostly exceptions or "stable" / notable versions):
npm tag | notes |
---|---|
[tdlib b1b33cf42790ca10ef34abc2ac8828ae704f1f56] | |
[tdlib 66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9] | |
[tdlib 70bee089d492437ce931aa78446d89af3da182fc] | |
[tdlib de5379f00b6af7686f197037ca3b494e6277e523] | |
[last released 2023-10-10] |
FAQs
Pre-built TDLib libraries
The npm package prebuilt-tdlib receives a total of 968 weekly downloads. As such, prebuilt-tdlib popularity was classified as not popular.
We found that prebuilt-tdlib demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A record 2,709 developers participated in the 2024 Ruby on Rails Community Survey, revealing key tools, practices, and trends shaping the Rails ecosystem.
Security News
In 2023, data breaches surged 78% from zero-day and supply chain attacks, but developers are still buried under alerts that are unable to prevent these threats.
Security News
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.