Repository navigation
[pull] main from firecrawl:main - #473
Merged
Merged
Conversation
* chore(api): drop unused XTwitterUrl type export The type is only referenced inside url.ts, so knip reports the export as unused and blocks commits. * feat(api): tag keyless signup links with UTM parameters Every keyless prompt (daily limit, unsupported endpoint, suspicious IP) now links to /signin?utm_source=keyless&utm_medium=api, so accounts created from the keyless free tier can be attributed to it. The limit message no longer puts a period right after the URL, so a copied link cannot pick up a stray character in utm_medium. * test(api): assert the keyless signup URL is not followed by a period A substring check also passed for utm_medium=api., so it could not catch the stray period the limit message avoids. * feat(api): stamp keyless signup links with the prompt date Keyless signup links now carry utm_content=YYYY-MM-DD, the UTC date the prompt was shown, so a signup can be measured against the prompt that led to it. The date is added where the message leaves the API (the three keyless auth responses, the credit-limit body and browser errors), so the constants used for internal checks stay unchanged. The scrape-browser discovery-header check reads the body's reason instead of comparing the now-dated text. * test(api): pin a US time zone in the prompt-date tests 02:00 UTC on the 30th is the same date in UTC, so on a UTC runner the tests could not tell a UTC date from a local one. Pinning America/Chicago makes a regression to local dates fail on any runner. * revert: drop keyless prompt date from signup links The prompt date matches the signup date and is not the first-request date, so it adds no conversion signal. Reverts 6ce3844 and 6ec87b8. * test: pin the keyless signup URL to end at utm_medium Addresses review: a substring match would still pass if utm_content came back, so assert nothing follows the URL's query. --------- Co-authored-by: Claude <noreply@anthropic.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
See Commits and Changes for more details.
Created by
pull[bot] (v2.0.0-alpha.4)
Can you help keep this open source service alive? 💖 Please sponsor : )