Update client API examples to current library versions#1693
Conversation
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.
Deploying dev-site with
|
| 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 |
|
Warning Review limit reached
Next review available in: 45 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the 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 configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (5)
✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
There was a problem hiding this comment.
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.
What
Refresh the client API code examples so they match the current MaxMind client library releases:
5.0.2→5.1.0) and minFraud (4.2.0→4.3.0) dependency versions in the Maven/Gradle install snippets.importsyntax, since@maxmind/geoip2-node(v7) and@maxmind/minfraud-api-node(v9) are now ESM-only (no morerequire()).printstatement 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.0constraints already resolve to the current 3.x releases). Verified withhugo --gc --minify(builds clean) and the link checker.