Skip to content

feat(logs): every hub.logs hook, useWriteLogsMutation, retryAfterSeconds - #63

Merged
Domantas merged 5 commits into
mainfrom
feat/logs-stage-a
Oct 21, 2026
Merged

Domantas merged 5 commits into
mainfrom
feat/logs-stage-a

Conversation

@Domantas

Copy link
Copy Markdown
Contributor

What changed

  • @norbix.ai/ts ^4.31.0 (peer >=4.31.0 — the new hooks need getLog / writeLogs).
  • hubLogs now covers all 15 hub.logs methods (added getLogs, getLog, cleanLogs, getLogSettings, saveLogSettings; new tag LogsSettings); new apiLogs.writeLogs (useWriteLogsMutation); SerializedNorbixError.retryAfterSeconds for a 429.
  • endUserOwnRecordsReport hook (new in core 4.31.0, keeps the database parity test green).
  • README: logs hooks section; logging integrations have test (nothing is delivered until the last test passed).

Tests

npx vitest run 19 files / 424 tests · npx tsc --noEmit · npm run lint · npm run build.

Expected version

next minor (feat).

🤖 Generated with Claude Code

Domantas and others added 4 commits October 21, 2026 21:27
The logs hooks use hub.logs.getLog and api.logs.writeLogs, which exist from
core SDK 4.31.0, so the peer range moves from >=4.29.0 to >=4.31.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nds on errors

- hubLogs: getLogs, getLog, cleanLogs, getLogSettings, saveLogSettings added
  (finding L12) — now all 15 hub.logs methods; new tag LogsSettings.
- apiLogs: writeLogs (API host) invalidating Logs.
- SerializedNorbixError.retryAfterSeconds when the SDK error carries one
  (429 CM-ERRORS-LOGGING-003). Optional, only set when present.
- tests/logs.test.ts: parity with the SDK's hub.logs, kind and tags per hook,
  and through the real SDK with a fake fetch: getLog path, saveLogSettings
  body, cleanLogs, writeLogs host/body, 429 retryAfterSeconds.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The SDK bump brought hub.database.endUserOwnRecordsReport; the parity test
(one hook per hub.database method) now counts 75.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

🚀 Release preview

Next version on merge to main: none

semantic-release dry-run output
[6:38:22 PM] [semantic-release] › ℹ  Running semantic-release version 25.0.9
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/npm"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "verifyConditions" from "@semantic-release/github"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "analyzeCommits" from "@semantic-release/commit-analyzer"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "generateNotes" from "@semantic-release/release-notes-generator"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "prepare" from "@semantic-release/npm"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/npm"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "publish" from "@semantic-release/github"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/npm"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "addChannel" from "@semantic-release/github"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "success" from "@semantic-release/github"
[6:38:22 PM] [semantic-release] › ✔  Loaded plugin "fail" from "@semantic-release/github"
[6:38:23 PM] [semantic-release] › ℹ  This test run was triggered on the branch refs/pull/63/merge, while semantic-release is configured to only publish from main, therefore a new version won’t be published.

If next_version is none, your commits don't trigger a release. Use feat: for minor (breaking changes too, until launch), fix: / perf: for patch.

…ore)

The Security scan check failed on the pull request for vite 8.3.2 (dev,
through vitest), already on main; 8.3.3+ fixes it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Domantas
Domantas merged commit fd25e8b into main Oct 21, 2026
7 checks passed
@Domantas
Domantas deleted the feat/logs-stage-a branch October 21, 2026 18:39
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.20.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant