Skip to content

Release v2.1.0 — EU region support#24

Merged
cloudbring merged 3 commits into
masterfrom
release/v2.1.0
Jul 11, 2026
Merged

Release v2.1.0 — EU region support#24
cloudbring merged 3 commits into
masterfrom
release/v2.1.0

Conversation

@cloudbring

@cloudbring cloudbring commented Jul 11, 2026

Copy link
Copy Markdown
Owner

Ships the EU region support that merged in #23 (2026-01-27) but never reached npm — closes the gap behind #20, where @karljv has been waiting since April for an npx-installable version.

What's in this release

Verified locally

build, lint (biome: 0 errors), typecheck, and 151 tests green — both with and without NEW_RELIC_REGION=EU.

⚠️ Before merging (maintainer steps)

  1. npm auth: the NPM_TOKEN secret dates to Aug 2025 (classic-token era, revoked by npm in Dec 2025). Either configure npm Trusted Publishing for this repo+workflow (preferred — CI already sets id-token: write and provenance) or mint a fresh granular token and update the secret.
  2. Merging to master auto-publishes: CI detects the 2.0.0→2.1.0 bump, runs npm publish --access public, tags v2.1.0, and creates the GitHub Release from the CHANGELOG.

After release

🤖 Generated with Claude Code

https://claude.ai/code/session_012xEutmxJq5Ad1VdFyfzEhQ

Summary by CodeRabbit

  • New Features

    • Added support for regional NerdGraph endpoints in the US and EU.
    • Added the NEW_RELIC_REGION environment variable for regional configuration.
  • Bug Fixes

    • Improved EU-region NerdGraph URL handling and validation.
  • Documentation

    • Updated the changelog with 2.1.0 release details.
    • Reorganized publishing guidance for automated and manual releases.
  • Chores

    • Updated the package to version 2.1.0 and improved package build preparation.

cloudbring and others added 2 commits July 10, 2026 23:57
…ate publishing guide for automated CI releases
- bump to 2.1.0 (semver minor: EU region is a feature), CHANGELOG dated
- fix region test asserting env-derived URL against hardcoded EU client
  (unblocks CI red on master since PR #23 merge)
- biome-ignore for private-method bracket access in rest-client.test.ts
- cherry-pick release hardening: Node >=20 engines, npm provenance, prepack build
- remove protect-master.yml (unconditionally fails every master push; use
  branch protection settings instead)

Verified locally: build, lint (biome exit 0), typecheck, 151 tests green
with and without NEW_RELIC_REGION=EU.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012xEutmxJq5Ad1VdFyfzEhQ
@coderabbitai

coderabbitai Bot commented Jul 11, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

Warning

Review limit reached

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

Next review available in: 52 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: defaults

Review profile: CHILL

Plan: Pro

Run ID: 8e1e697c-10ac-44e8-ae6b-ac31a8ac73eb

📥 Commits

Reviewing files that changed from the base of the PR and between 8dc85bc and e79acf0.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml
📝 Walkthrough

Walkthrough

The release updates package versioning, npm packaging, publishing documentation, changelog entries, and REST client tests. It also removes the workflow that blocked direct pushes to master.

Changes

Release preparation

Layer / File(s) Summary
Package release metadata
package.json
Bumps the package version to 2.1.0 and adds a prepack build step.
Publishing workflow and release notes
CHANGELOG.md, PUBLISHING.md
Documents CI and manual publishing, updates release process instructions, and records regional support and release hardening changes.
Regional request test alignment
test/client/rest-client/*
Updates the REST client POST URL assertion for the EU endpoint and suppresses a lint warning in a test.

Estimated code review effort: 2 (Simple) | ~10 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Linked Issues check ⚠️ Warning The PR shows release/docs/test updates, but no runtime code adding NEW_RELIC_REGION or endpoint selection for EU support. Add the actual client/config logic that selects the EU or US GraphQL endpoint from NEW_RELIC_REGION or a base URL setting.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the release and its main feature, EU region support.
Out of Scope Changes check ✅ Passed The changes are release-related and support the v2.1.0 rollout, with no obvious unrelated additions.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch release/v2.1.0

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
CHANGELOG.md (1)

24-47: 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win

Add all required Keep a Changelog sections to the 2.1.0 entry.

The entry currently shows only Added, Changed, and Fixed. Add empty Deprecated, Removed, and Security sections in the standard order.

Suggested structure
 ### Changed
 ...
 
+### Deprecated
+
+### Removed
+
 ### Fixed
 ...
+
+### Security
+

As per coding guidelines, every version entry must include Added, Changed, Deprecated, Removed, Fixed, and Security sections.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@CHANGELOG.md` around lines 24 - 47, Add the missing Keep a Changelog sections
to the 2.1.0 entry in CHANGELOG.md: include empty Deprecated and Removed
sections between Changed and Fixed, and an empty Security section after Fixed,
preserving the standard order Added, Changed, Deprecated, Removed, Fixed,
Security.

Source: Coding guidelines

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@PUBLISHING.md`:
- Around line 44-53: Update the manual publishing instructions in PUBLISHING.md
to avoid claiming provenance support from local npm publishing: remove
NPM_CONFIG_PROVENANCE=true from the fallback command or direct users to the
supported CI/OIDC workflow, and clearly label the local command as
non-provenance.

---

Outside diff comments:
In `@CHANGELOG.md`:
- Around line 24-47: Add the missing Keep a Changelog sections to the 2.1.0
entry in CHANGELOG.md: include empty Deprecated and Removed sections between
Changed and Fixed, and an empty Security section after Fixed, preserving the
standard order Added, Changed, Deprecated, Removed, Fixed, Security.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: 1f9c7216-7099-4ede-9c50-387dea096177

📥 Commits

Reviewing files that changed from the base of the PR and between e7aa468 and 8dc85bc.

📒 Files selected for processing (6)
  • .github/workflows/protect-master.yml
  • CHANGELOG.md
  • PUBLISHING.md
  • package.json
  • test/client/rest-client/rest-client-requests.test.ts
  • test/client/rest-client/rest-client.test.ts
💤 Files with no reviewable changes (1)
  • .github/workflows/protect-master.yml

Comment thread PUBLISHING.md
Comment on lines 44 to 53
```bash
# Ensure package is built
npm ci
npm run build

# Test locally that it works
node dist/server.js

# Make bin executable
chmod +x dist/server.js
```

### Add Shebang to Server
Edit `src/server.ts` and add at the very top:
```typescript
#!/usr/bin/env node
```

Then rebuild:
```bash
npm run build
```

### Publish to NPM
```bash
# Dry run to see what will be published
# optional dry run
npm publish --dry-run

# Publish for real
npm publish --access public
# publish (public package with provenance)
NPM_CONFIG_PROVENANCE=true npm publish --access public
```

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.

🩺 Stability & Availability | 🟠 Major | ⚡ Quick win

Do not promise provenance from the manual local fallback.

NPM_CONFIG_PROVENANCE=true npm publish does not provide the supported cloud CI/OIDC context documented for npm provenance. Make the manual fallback explicitly non-provenance, or route it through the supported CI workflow. (docs.npmjs.com)

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@PUBLISHING.md` around lines 44 - 53, Update the manual publishing
instructions in PUBLISHING.md to avoid claiming provenance support from local
npm publishing: remove NPM_CONFIG_PROVENANCE=true from the fallback command or
direct users to the supported CI/OIDC workflow, and clearly label the local
command as non-provenance.

- publish job on Node 24.x + npm@latest (OIDC needs npm >= 11.5.1)
- drop NODE_AUTH_TOKEN from the publish step; auth comes from the
  Trusted Publisher config on npmjs.com (id-token: write already set)
- provenance is automatic for OIDC publishes from public repos

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012xEutmxJq5Ad1VdFyfzEhQ
@cloudbring
cloudbring merged commit dc6e426 into master Jul 11, 2026
5 checks passed
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.

EU Region unsupported

1 participant