Skip to content

feat: add spaceReputation object to interfaces, helper, and all modules#16

Merged
Tsabary merged 1 commit into
mainfrom
feat/space-reputation-object
Jun 30, 2026
Merged

feat: add spaceReputation object to interfaces, helper, and all modules#16
Tsabary merged 1 commit into
mainfrom
feat/space-reputation-object

Conversation

@Tsabary

@Tsabary Tsabary commented Jun 30, 2026

Copy link
Copy Markdown
Collaborator

Phase 3 of the space-reputation consolidation (@sublay/node).

What

Adds the spaceReputation object to both SpaceReputation*Params interfaces (users variant rejects "context"), deprecates the flat props, and adds buildSpaceReputationParams mirroring core's contract. Migrates all 23 reputation-consuming modules across entities, comments, users, spaces, chat, search, and reports so the object is destructured out and only the helper's flat output reaches axios params.

Safety

Backward-compatible by construction (wire unchanged, flat props still accepted). Closes the bracket-leak / silent-drop no-op where a nested object handed to axios params would serialize to spaceReputation[spaceId]=… and be silently ignored by the server. A serialization regression guard covers each forwarding shape (silent-drop, params: data, rest-spread).

Tests

369 tests green, typecheck clean.

🤖 Generated with Claude Code

…modules

Phase 3 of space-reputation consolidation. Adds the spaceReputation object to
both SpaceReputation*Params interfaces (users variant rejects "context"),
deprecates the flat props, and adds buildSpaceReputationParams mirroring core's
contract. Migrates all 23 reputation-consuming modules across entities,
comments, users, spaces, chat, search, and reports so the object is destructured
out and only the helper's flat output reaches axios params — closing the
bracket-leak / silent-drop no-op. Adds a serialization regression guard covering
each forwarding shape.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@Tsabary Tsabary self-assigned this Jun 30, 2026
@Tsabary Tsabary merged commit f7e08f3 into main Jun 30, 2026
1 check 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.

1 participant