fix: correct metadata adapter, expose vue item ref and tighten types#80
Conversation
- RepositoryHttp default metadata adapter no longer drops `contentLanguage` when both Content-Language and Accept-Language headers are present - expose `item` ref from useRepositoryHttp `create()` and `update()`, consistently with `read()` - align `HttpClientInstance.setBearerToken` type with its implementation - refactor RepositoryHttp `create`/`update` into a shared `_write` and the vue composables into a single `defineRepositoryRequest` helper (DRY) - replace the unsafe cast in `HttpClient.request` with a typed verb dispatch - type-check and tests now cover the `test/` folder; declaration emit moved to a dedicated `tsconfig.build.json` - move pnpm `onlyBuiltDependencies` to pnpm-workspace.yaml - document the upcoming ky 2.x / `prefix` breaking change under 3.0.0 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|
Warning Review limit reached
More reviews will be available in 47 minutes and 30 seconds. Learn how PR review limits work. Your organization has used up its prepaid credits, and credit purchases are no longer available. Enable the review add-on in the billing tab to keep reviews running — you're only billed for reviews past your plan's rate limits ($0.25/file). ⌛ How to resolve this issue?After more reviews become available, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans include higher PR review limits than trial, open-source, and free plans. In all cases, reviews become available again over time. During sustained high-volume PR review activity, CodeRabbit may temporarily slow when the next review becomes available. Please see our Fair Usage Limits Policy for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: ⛔ Files ignored due to path filters (1)
📒 Files selected for processing (15)
✨ 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 |
`pnpm version --no-git-tag-version` was run unconditionally in the reusable build workflow. On pull_request runs `github.event.release.tag_name` is empty, so the command failed with ERR_PNPM_INVALID_VERSION_BUMP. Guard the step so it runs only when triggered by a release. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
|



contentLanguagewhen both Content-Language and Accept-Language headers are presentitemref from useRepositoryHttpcreate()andupdate(), consistently withread()HttpClientInstance.setBearerTokentype with its implementationcreate/updateinto a shared_writeand the vue composables into a singledefineRepositoryRequesthelper (DRY)HttpClient.requestwith a typed verb dispatchtest/folder; declaration emit moved to a dedicatedtsconfig.build.jsononlyBuiltDependenciesto pnpm-workspace.yamlprefixbreaking change under 3.0.0