Prepare for public release: global location parsing, drop trace and migrations - #2
Merged
Merged
Conversation
…igrations Location restrictions only understood US, Canada, and UK wording, so "EU residents only" or "Must be based in Germany" came back unknown for most of the community. Parsing now covers every country plus common regions (EU, Europe, LATAM, North America, and UN M49 groupings). Ambiguous region members and unrecognized list entries stay unknown instead of blocked, and state names like New Jersey or Georgia, and lowercase "us", are no longer read as country restrictions. A retired ISO code (DD) was also shadowing Germany. The trace command mapped Upwork's internal endpoints, which does not belong in a public tool. The legacy JSON and URL migrations served installs that predate this project; reads already rebuild canonical URLs. AGENTS.md and CONTRIBUTING.md now describe a public repository instead of forbidding one. Co-Authored-By: Claude Opus 5.5 <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 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.
What changes
Location parsing for every country and common regions. Restrictions were only understood in US, Canada, and UK wording, so "EU residents only" or "Must be based in Germany" came back unknown. The new
src/regions.mjscovers every ISO country plus EU, Europe, LATAM, North America, and the UN M49 groupings Upwork uses.Removed
trace. It mapped Upwork's internal GraphQL endpoints, which does not belong in a public tool.Removed legacy migrations. The JSON cache import and two URL migrations served installs that predate this project. Reads already rebuild canonical job URLs from the ID.
Public docs. README, AGENTS.md, and CONTRIBUTING.md describe a public MIT project, not affiliated with Upwork.
private: truestays in package.json so npm publication remains a deliberate decision.Verification
npm test: 105 pass (3 new location tests; the removed trace and migration tests went with their code)npm run check:release: passes🤖 Generated with Claude Code