tus-js-client is a robust, pure JavaScript client library that implements the tus resumable upload protocol, enabling reliable and resilient file transfers even across network interruptions. The current stable version is 4.3.1, with the project maintaining an active release cycle that includes frequent patch updates for bug fixes (e.g., bundling issues) and minor versions for feature enhancements like expanded IETF draft support. Major version bumps, such as v4.0.0, primarily serve to update minimum Node.js environment requirements rather than introducing breaking API changes. Key differentiators include its comprehensive support for the tus protocol, cross-platform compatibility across browsers, Node.js environments (requiring Node.js >=18), and Web Workers, alongside native TypeScript type definitions for an improved developer experience. It provides a foundational solution for developers needing to handle large file uploads with progress tracking, pause/resume functionality, and error recovery.
npm install tus-js-clientVerified import paths — ran on the pinned version, not inferred.
Demonstrates a basic file upload using the `Upload` class, including progress tracking, success, and error handling, with support for resuming previous uploads. This example is adaptable for both Node.js (using `fs.createReadStream`) and browser environments.
Ensure your Node.js environment is updated to version 18 or higher before upgrading to tus-js-client v4.x.
Upgrade to tus-js-client v4.3.1 or newer to benefit from fixes addressing these bundling problems (e.g., issues #748, #715). Ensure your bundler configuration is up-to-date and correctly handles Node.js polyfills if targeting browser environments.
Update to tus-js-client v4.2.1 or newer for the corrected `onSuccess` callback type definition. No code changes are typically required, but type-checking will now be accurate.
Upgrade to tus-js-client v4.2.2 or newer, which explicitly drops the `node:` protocol for imports to resolve these bundling issues. Ensure your bundler is updated and configured correctly.
Update to tus-js-client v4.3.1 or later. This version contains a patch specifically addressing this `Buffer` context issue during bundling (related to issue #748).
Upgrade to tus-js-client v4.0.1 or newer. This version removed a dependency on the global `window` object, improving compatibility with Web Workers and other environments without a `window` global.
No dependency data recorded yet.