Refactor codebase, add session options, and update dependencies (v2.2.0)#13
Draft
Sahil1337 wants to merge 2 commits into
Draft
Refactor codebase, add session options, and update dependencies (v2.2.0)#13Sahil1337 wants to merge 2 commits into
Sahil1337 wants to merge 2 commits into
Conversation
- Deleted utility files: index.js, logger.js, native.js, request.js, tlsError.js from dist/utils. - Removed corresponding typings from typings/utils and typings/interface. - Cleaned up workers/index.js and typings/workers/index.d.ts by removing unused exports. - Eliminated unnecessary Client, Cookie, Response, Session, and requests typings from typings/lib. - Streamlined the overall codebase by removing redundant interfaces and types.
feat: add support for multiple certificate compression algorithms - Changed `certCompressionAlgo` to `certCompressionAlgos` in payload and session interfaces. - Updated related documentation and examples. feat: introduce new session options - Added options for disabling HTTP/3, enabling protocol racing, and using custom cookie jars. - Added support for certificate pinning hosts and default headers. fix: update ClientIdentifier enum with new browser versions refactor: improve library handler to manage native binary versioning - Added version marker to ensure native binaries are re-downloaded when the wrapper version changes. chore: remove unused payload smoke test file build: update TypeScript configuration for better compatibility - Set root directory and added node types.
|
Important Review skippedDraft detected. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Plus Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces version 2.2.0 of
node-tls-client, syncing the wrapper with the native shared library v1.15.1 and adding extensive new features, options, and fixes. The update brings parity with the latest native capabilities, deprecates and replaces some configuration fields, and improves HTTP/3 support. It also ensures the native binary cache refreshes on upgrade, preventing stale binaries. Documentation, examples, and type definitions are updated to reflect these changes.Major feature and compatibility updates:
chrome_146(waschrome_131), aligning with the native library. To keep the old fingerprint, explicitly setclientIdentifier: ClientIdentifier.chrome_131.certCompressionAlgofield is deprecated in favor of the new array fieldcertCompressionAlgos. The old key is still accepted for backward compatibility but will be removed in a future major version. [1] [2] [3]New features and options:
chrome_130_psk,chrome_146_psk,brave_146_psk,safari_ios_18_5,firefox_148, etc.).SessionOptions, includingdisableHttp3,withProtocolRacing,withoutCookieJar,withCustomCookieJar,certificatePinningHosts,defaultHeaders, andtimeoutSeconds. [1] [2] [3]h3Settings,h3SettingsOrder,h3PseudoHeaderOrder,h3PriorityParam,h3SendGreaseFrames,echCandidatePayloads,echCandidateCipherSuites,recordSizeLimit,streamId,allowHttp, andsupportedDelegatedCredentialsAlgorithms. [1] [2]KeyShareCurvesaddsX25519Kyber768OldandX25519MLKEM768;SupportedSignatureAlgorithmsaddsSHA224_RSAandSHA224_ECDSA.examples/http3.js.Deprecations and fixes:
withDefaultCookieJarpayload field; cookie behavior is unchanged. [1] [2]readme.mdupdated to reflect new/changed options and deprecations. [1] [2] [3]Build and workflow improvements:
package.jsonscripts to ensure the build and docs run before publishing, and updated dev dependencies for Node 24 and TypeScript 6. [1] [2] [3]References:
[1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12]