Skip to content

Prepare for public release: global location parsing, drop trace and migrations - #2

Merged
promptadvisers merged 1 commit into
mainfrom
public-release
Sep 28, 2026
Merged

promptadvisers merged 1 commit into
mainfrom
public-release

Conversation

@promptadvisers

Copy link
Copy Markdown
Collaborator

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.mjs covers every ISO country plus EU, Europe, LATAM, North America, and the UN M49 groupings Upwork uses.

  • Ambiguous region members (Turkey for "Europe") and unrecognized list entries ("Canada or Narnia") stay unknown instead of blocked.
  • State names (New Jersey, New Mexico, Georgia, Indiana), lowercase "us" ("contact us only"), and names like Jordan are no longer read as restrictions.
  • Fixed a retired ISO code (DD) shadowing Germany and "Bosnia & Herzegovina" style names.

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: true stays 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
  • Full-history scan for personal data and credentials: clean

🤖 Generated with Claude Code

…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>
@promptadvisers
promptadvisers merged commit 7aff73f into main Sep 28, 2026
8 checks passed
@promptadvisers
promptadvisers deleted the public-release branch September 28, 2026 16:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant