Skip to content

Update client API examples to current library versions#1693

Merged
horgh merged 3 commits into
mainfrom
update-client-api-examples
Jul 6, 2026
Merged

Update client API examples to current library versions#1693
horgh merged 3 commits into
mainfrom
update-client-api-examples

Conversation

@oschwald

@oschwald oschwald commented Jul 3, 2026

Copy link
Copy Markdown
Member

What

Refresh the client API code examples so they match the current MaxMind client library releases:

  • Java: bump the GeoIP2 (5.0.25.1.0) and minFraud (4.2.04.3.0) dependency versions in the Maven/Gradle install snippets.
  • Node.js: update the examples to ES module import syntax, since @maxmind/geoip2-node (v7) and @maxmind/minfraud-api-node (v9) are now ESM-only (no more require()).
  • Python: fix a Python 2 print statement in the proxy-detection example to Python 3 syntax.

The other languages' examples were checked against each library's current release/README and left unchanged where already correct (e.g. the PHP Composer ~3.0 constraints already resolve to the current 3.x releases). Verified with hugo --gc --minify (builds clean) and the link checker.

oschwald added 3 commits July 3, 2026 23:16
Bump the pinned Maven/Gradle version strings in the GeoIP and
minFraud client code examples to the latest releases of the
geoip2 and minfraud Java packages.
The Node.js GeoIP and minFraud client libraries are now published
as ES modules only, so update the sample code to use `import`
instead of the removed CommonJS `require()` form.
The sample script used the Python 2 print statement, which is a
syntax error under Python 3. Convert it to the print() function
so the example runs as-is.
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 3, 2026

Copy link
Copy Markdown

Deploying dev-site with  Cloudflare Pages  Cloudflare Pages

Latest commit: c758721
Status: ✅  Deploy successful!
Preview URL: https://e8ed9c9e.dev-site-4ua.pages.dev
Branch Preview URL: https://update-client-api-examples.dev-site-4ua.pages.dev

View logs

@coderabbitai

coderabbitai Bot commented Jul 3, 2026

Copy link
Copy Markdown

Warning

Review limit reached

@oschwald, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 45 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: bd96bf51-1a0e-4a59-82cd-4be409a1c166

📥 Commits

Reviewing files that changed from the base of the PR and between 1cdc3f9 and c758721.

📒 Files selected for processing (5)
  • content/geoip/geolocate-an-ip/databases.md
  • content/geoip/geolocate-an-ip/web-services.md
  • content/minfraud/evaluate-a-transaction.md
  • content/minfraud/proxy-detection.md
  • content/minfraud/report-a-transaction.md
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch update-client-api-examples

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates documentation examples across several files. It bumps the MaxMind GeoIP2 Java dependency version to 5.1.0 and the minFraud dependency version to 4.3.0. Additionally, it modernizes JavaScript examples by replacing CommonJS require statements with ES Module imports, and updates Python examples to use Python 3 syntax, including updating the shebang and converting print statements to print functions. There are no review comments, and I have no feedback to provide.

Important

The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.

@horgh horgh merged commit 73248c2 into main Jul 6, 2026
11 checks passed
@horgh horgh deleted the update-client-api-examples branch July 6, 2026 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants