Skip to content

fix(server): drop duplicate getClientIp export in rate-limiter#699

Merged
buremba merged 1 commit into
mainfrom
fix/rate-limiter-dup-export
May 13, 2026
Merged

fix(server): drop duplicate getClientIp export in rate-limiter#699
buremba merged 1 commit into
mainfrom
fix/rate-limiter-dup-export

Conversation

@buremba
Copy link
Copy Markdown
Member

@buremba buremba commented May 13, 2026

Surfaced by the WS9/WS10 sweep — PR #694 restored the helper but the merge of #693 left an earlier copy intact. esbuild fails make build-packages with:

src/gateway/utils/rate-limiter.ts:26:16: ERROR: Multiple exports with the same name "getClientIp"

That cascades through typecheck and integration on main. Drops the older un-documented copy, keeps the JSDoc'd one (functionally identical). make build-packages + bun run typecheck both green locally.

PR #694 restored the helper, but the merge of #693 left an earlier copy
intact — esbuild errors out on `Multiple exports with the same name
"getClientIp"` in src/gateway/utils/rate-limiter.ts, breaking
`make build-packages` on main (typecheck + integration CI jobs cascade
from there). Drop the older un-documented copy; keep the JSDoc'd one.

No behavior change — the two implementations were functionally identical.
@buremba buremba force-pushed the fix/rate-limiter-dup-export branch from 61838dd to 467e6df Compare May 13, 2026 14:47
@buremba buremba merged commit 36baed1 into main May 13, 2026
4 checks passed
@buremba buremba deleted the fix/rate-limiter-dup-export branch May 13, 2026 14:47
Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 61838ddb36

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread bun.lock
"vite": "^6.0.0",
"vitest": "^2.1.8",
},
},
},
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Restore the packages/web workspace in bun.lock

In checkouts where the packages/web submodule is initialized, the root workspaces: ["packages/*"] still makes @lobu/web part of the Bun workspace, but this lockfile now omits its workspace entry and all web-only dependencies (the diff drops the previous "packages/web" and "@lobu/web@workspace:packages/web" entries). Since bun install --help documents --frozen-lockfile as disallowing lockfile changes, CI or production installs with the submodule present will either fail because Bun must rewrite the lockfile or proceed without the committed web dependency graph being locked.

Useful? React with 👍 / 👎.

@codecov-commenter
Copy link
Copy Markdown

⚠️ Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

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.

2 participants