Skip to content

Releases: F4RAN/cuimp-ts

v2.0.2

10 Jun 22:10

Choose a tag to compare

What's Changed

  • chore: Increase version (78850f0)

Installation Methods

Recommended: Install directly from GitHub

npm will automatically build from source (via prepare script):

npm install github:F4RAN/cuimp-ts#v2.0.2

Or in package.json:

{
  "dependencies": {
    "cuimp": "github:F4RAN/cuimp-ts#v2.0.2"
  }
}

Alternative: Manual installation (pre-built)

If you don't want automatic building, download cuimp-ts-v2.0.2.tar.gz (includes dist):

wget https://github.com/F4RAN/cuimp-ts/releases/download/v2.0.2/cuimp-ts-v2.0.2.tar.gz
tar -xzf cuimp-ts-v2.0.2.tar.gz -C ./cuimp
npm install ./cuimp

v2.0.1

10 Jun 22:07
6f9dd5c

Choose a tag to compare

What's Changed

Installation Methods

Recommended: Install directly from GitHub

npm will automatically build from source (via prepare script):

npm install github:F4RAN/cuimp-ts#v2.0.1

Or in package.json:

{
  "dependencies": {
    "cuimp": "github:F4RAN/cuimp-ts#v2.0.1"
  }
}

Alternative: Manual installation (pre-built)

If you don't want automatic building, download cuimp-ts-v2.0.1.tar.gz (includes dist):

wget https://github.com/F4RAN/cuimp-ts/releases/download/v2.0.1/cuimp-ts-v2.0.1.tar.gz
tar -xzf cuimp-ts-v2.0.1.tar.gz -C ./cuimp
npm install ./cuimp

v2.0.0

17 May 20:58
fca8336

Choose a tag to compare

What's Changed

  • Merge pull request #42 from taina0407/main (fca8336)
  • iOS and Android support #40 #45
  • curl-impersonate Alpha version predicted problem #43

Installation Methods

Recommended: Install directly from GitHub

npm will automatically build from source (via prepare script):

npm install github:F4RAN/cuimp-ts#v2.0.0

Or in package.json:

{
  "dependencies": {
    "cuimp": "github:F4RAN/cuimp-ts#v2.0.0"
  }
}

Alternative: Manual installation (pre-built)

If you don't want automatic building, download cuimp-ts-v2.0.0.tar.gz (includes dist):

wget https://github.com/F4RAN/cuimp-ts/releases/download/v2.0.0/cuimp-ts-v2.0.0.tar.gz
tar -xzf cuimp-ts-v2.0.0.tar.gz -C ./cuimp
npm install ./cuimp

v1.10.0

16 Feb 15:26

Choose a tag to compare

What's Changed

  • release: proxy, and linux problem solved (076da1a)

Proxy in CuimpOptions: You can set a default proxy when creating the client with createCuimpHttp({ proxy: '...' }); all requests use it unless overridden per request. Thanks @hexiro for the suggestion (#38).
Linux musl detection: Binary downloads on Linux now detect musl libc so the correct binary is chosen. Thanks @vinikjkkj for the fix (#37).

Installation Methods

Recommended: Install directly from GitHub

npm will automatically build from source (via prepare script):

npm install github:F4RAN/cuimp-ts#v1.10.0

Or in package.json:

{
  "dependencies": {
    "cuimp": "github:F4RAN/cuimp-ts#v1.10.0"
  }
}

Alternative: Manual installation (pre-built)

If you don't want automatic building, download cuimp-ts-v1.10.0.tar.gz (includes dist):

wget https://github.com/F4RAN/cuimp-ts/releases/download/v1.10.0/cuimp-ts-v1.10.0.tar.gz
tar -xzf cuimp-ts-v1.10.0.tar.gz -C ./cuimp
npm install ./cuimp

v1.9.0

24 Jan 21:24
0e53091

Choose a tag to compare

What's Changed

  • Added Raspberry Pi (ARM/Linux) support (validated by running all examples on Raspberry Pi).
  • Merge pull request #36 from pirasalbe/feature/raspberry-pi-support-squash (0e53091). Thanks @pirasalbe.

Installation Methods

Recommended: Install directly from GitHub

npm will automatically build from source (via prepare script):

npm install github:F4RAN/cuimp-ts#v1.9.0

Or in package.json:

{
  "dependencies": {
    "cuimp": "github:F4RAN/cuimp-ts#v1.9.0"
  }
}

Alternative: Manual installation (pre-built)

If you don't want automatic building, download cuimp-ts-v1.9.0.tar.gz (includes dist):

wget https://github.com/F4RAN/cuimp-ts/releases/download/v1.9.0/cuimp-ts-v1.9.0.tar.gz
tar -xzf cuimp-ts-v1.9.0.tar.gz -C ./cuimp
npm install ./cuimp

v1.8.0

05 Jan 21:00

Choose a tag to compare

What's Changed

Features

  • Added streaming request API: requestStream(config, handlers) with onHeaders, onData, onEnd, onError, and optional body collection. (PR #33, @niallo)
  • Added runBinaryStream with stdout backpressure handling + RunStreamResult. (PR #33, @niallo)
  • Added incremental parser createHttpResponseStreamParser for curl -i (early headers, streamed body, redirects/100-continue), with lowercase header normalization. (PR #33, @niallo)
  • Refactored request arg building into buildRequestParts for reuse across request modes. (PR #33, @niallo)
  • Updated exports + README docs for streaming usage and --no-buffer (SSE/immediate flush). (PR #33, @niallo)

Fixes

  • Fixed Node.js v25 ESM crash related to minizlib missing ZstdDecompress (enforced compatible minizlib via npm overrides). (#31, @2dragonly)
  • Streaming hardening: avoid treating a body starting with HTTP/ as a new header block; reduced buffering/allocations by streaming chunks directly. (PR #33)

Enhancements

  • Moved diagnostic logs to debug() so they can be suppressed by omitting debug in custom logger. (#29, @kenmadev)
  • Added autoDownload: false to prevent automatic binary downloads when missing. (#29, @kenmadev)

Tests / Examples

  • Added tests for streaming edge cases and header-case normalization.
  • Added examples:
    • examples/10-custom-logger.js
    • examples/07-binary-management.js

v1.7.0

18 Dec 09:58

Choose a tag to compare

cuimp-ts v1.7.0

What’s Changed

  • Fixed a Windows-specific issue where .bat wrappers from libcurl-impersonate caused duplicate headers when users explicitly overrode headers (e.g. Accept).
  • Implemented safe parsing of .bat arguments so user-provided headers correctly override defaults without breaking browser impersonation behavior.
  • Preserved original argument order and all non-header options (TLS, HTTP/2, ciphers, etc.).
  • Added comprehensive Windows-focused tests and runnable examples.
  • Version bump to v1.7.0.

Special thanks to @DoveAz for the clear report and thorough testing.

Note: This is a Windows-only workaround due to limitations of .bat wrappers. If libcurl-impersonate changes its approach in the future, this logic can be simplified and aligned upstream.


Installation Methods

Recommended: Install directly from GitHub

npm will automatically build from source (via the prepare script):

npm install github:F4RAN/cuimp-ts#v1.7.0

Or in package.json:

{
  "dependencies": {
    "cuimp": "github:F4RAN/cuimp-ts#v1.7.0"
  }
}

Alternative: Manual installation (pre-built)

If you prefer not to build locally, download the pre-built archive (includes dist):

wget https://github.com/F4RAN/cuimp-ts/releases/download/v1.7.0/cuimp-ts-v1.7.0.tar.gz
tar -xzf cuimp-ts-v1.7.0.tar.gz -C ./cuimp
npm install ./cuimp

v1.6.3

15 Dec 18:33

Choose a tag to compare

What's Changed

  • fix(windows): handle .bat paths with spaces and harden argument quoting for CMD special characters
  • fix(post): send JSON body via stdin on Windows to prevent UNSUPPORTED_PROTOCOL / URL_MALFORMAT with & / " in --data-binary

Special thanks to @kenmadev for the detailed repro cases and for testing multiple iterations of the fix.

v1.6.2

14 Dec 10:03
d3dd713

Choose a tag to compare

Release v1.6.2 - HttpOnly Cookie Support

🎉 What's New

This release adds full support for HttpOnly cookies in the Netscape cookie format. HttpOnly cookies are now properly parsed and accessible through all CookieJar methods.

✨ Features

HttpOnly Cookie Support

  • Parse HttpOnly cookies - Cookies prefixed with #HttpOnly_ are now correctly identified and parsed (previously skipped as comments)
  • Domain cleaning - The #HttpOnly_ prefix is automatically stripped from cookie domains during parsing
  • Full API support - HttpOnly cookies work with all CookieJar methods:
    • getCookies() - Returns HttpOnly cookies along with regular cookies
    • getCookiesForDomain() - Includes HttpOnly cookies when filtering by domain
    • deleteCookie() - Can delete HttpOnly cookies by name

🔧 Technical Changes

  • Added isLineComment() method to distinguish HttpOnly cookies from comments
  • Added domainCleaner() method to strip #HttpOnly_ prefix from domains
  • Updated getCookies() to parse HttpOnly cookies correctly
  • Updated deleteCookie() to handle HttpOnly cookies
  • Added comprehensive test coverage for HttpOnly cookie functionality

📝 Example

import { CookieJar } from 'cuimp'

const cookieJar = new CookieJar('/path/to/cookies.txt')

// HttpOnly cookies in Netscape format are now parsed:
// #HttpOnly_.example.com    TRUE    /    TRUE    1797236218    session_id    abc123

const cookies = cookieJar.getCookies()
// Returns both regular and HttpOnly cookies

🐛 Bug Fixes

  • Fixed issue where HttpOnly cookies were incorrectly skipped as comments (#23)

🙏 Credits

Special thanks to @kenmadev for reporting this issue and providing the sample cookie format!

📚 Documentation

  • See examples/14-httponly-cookies.js for a complete example
  • All existing functionality remains unchanged (backward compatible)

🔗 Related

  • Fixes #23
  • Implemented in #24

Full Changelog: v1.6.1...v1.6.2

v1.6.1

08 Dec 15:10

Choose a tag to compare

What's Changed

Installation Methods

Recommended: Install directly from GitHub

npm will automatically build from source (via prepare script):

npm install github:F4RAN/cuimp-ts#v1.6.1

Or in package.json:

{
  "dependencies": {
    "cuimp": "github:F4RAN/cuimp-ts#v1.6.1"
  }
}

Alternative: Manual installation (pre-built)

If you don't want automatic building, download cuimp-ts-v1.6.1.tar.gz (includes dist):

wget https://github.com/F4RAN/cuimp-ts/releases/download/v1.6.1/cuimp-ts-v1.6.1.tar.gz
tar -xzf cuimp-ts-v1.6.1.tar.gz -C ./cuimp
npm install ./cuimp