Repository navigation
UOD-421: Update README and remove legacy hCaptcha, Castle and Temu request types - #47
Merged
Merged
Conversation
The table listed a request class that does not exist and missed several supported ones. Every class was cross-checked against the src/Requests exports and the official API task list. - Remove AmazonProxylessRequest: the package only ships AmazonRequest - Document optional minScore (0.1-0.9) on RecaptchaV2EnterpriseRequest - Add RecaptchaV3EnterpriseRequest - Add FunCaptcha and Binance rows (FunCaptchaRequest, BinanceRequest) - Extend the complex image row with ComplexImageFunCaptchaRequest - Extend custom anti-bot tasks with TSPD, Altcha, Alibaba, Friendly, Hunt, MTCaptcha and Yidun request classes - HCaptcha, Castle and Temu classes are not listed: those task types are absent from the official API task list
Client configuration was implemented but not described in the README. - Add a Client Configuration section: clientKey, serviceUrl and softId (sent with every createTask, ClientOptions.defaultSoftId 54 when not set)
The error-handling pattern and the polling behaviour were not described anywhere in the README. - Add an Error Handling section: the result.error / ErrorType pattern used by Solve instead of exceptions (Timeout, API error codes mapped by ErrorCodeConverter, Unknown), the GetBalanceError and CapmonsterCloudClientError exceptions, with a usage example - Describe automatic getTaskResult polling and the GetResultTimeouts object accepted as the second Solve argument (firstRequestDelay, optional firstRequestNoCacheDelay, requestsInterval, timeout), with an override example - Note that unsolved tasks are not charged
These task types are absent from the official API task list and the team approved removing them. - Delete the HCaptchaRequest, ComplexImageHCaptchaRequest, TemuRequest and CastleRequest modules with their response types - Drop the Solve overloads, Task union members, TaskType enum entries, the HCaptchaTimeouts preset and the index exports - Remove the related serialization and integration specs Note: removing public exports is a breaking change for package consumers. The version is intentionally left untouched here; the version bump and release are a separate team decision.
CaptchaResult carries the price of the solved task in USD. - Note the USD price of a solution in the error handling section - Show result.cost in the error handling example
djaga-ru
requested review from
DZaznobin93 and
evgeniykornev
and removed request for
DZaznobin93 and
evgeniykornev
November 19, 2026 16:04
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.
Updates the Node.js SDK README for UOD-421 and removes legacy request types. Covers the supported captcha types table, client configuration, error handling and polling, and the solution cost.
1. Supported captcha types table - README.md
AmazonProxylessRequest(the package shipsAmazonRequestonly)minScore(0.1-0.9) onRecaptchaV2EnterpriseRequest; addsRecaptchaV3EnterpriseRequest, FunCaptcha, Binance,ComplexImageFunCaptchaRequestand the full custom anti-bot task list2. Client configuration - README.md
clientKey,serviceUrl,softIdwith defaults taken from the code3. Error handling and polling - README.md
result.error/ErrorTypepattern,GetBalanceError,CapmonsterCloudClientErrorand overridableGetResultTimeouts4. Legacy request types removal - src/
5. Solution cost - README.md
result.cost(USD)Commits:
Stats: 22 files changed, 72 insertions(+), 738 deletions(-).