Skip to content

feat: add evlog/toolkit for custom framework integrations#169

Merged
HugoRCD merged 4 commits intoHugoRCD:mainfrom
OskarLebuda:feat/shared
Mar 13, 2026
Merged

feat: add evlog/toolkit for custom framework integrations#169
HugoRCD merged 4 commits intoHugoRCD:mainfrom
OskarLebuda:feat/shared

Conversation

@OskarLebuda
Copy link
Copy Markdown
Contributor

expose shared utils

🔗 Linked issue

📚 Description

📝 Checklist

  • I have linked an issue or discussion.
  • I have updated the documentation accordingly.

@vercel
Copy link
Copy Markdown

vercel bot commented Mar 13, 2026

@OskarLebuda is attempting to deploy a commit to the HRCD Projects Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Mar 13, 2026

Thank you for following the naming conventions! 🙏

@HugoRCD HugoRCD changed the title feat: expose shared feat: add evlog/toolkit for custom framework integrations Mar 13, 2026
@HugoRCD HugoRCD self-requested a review March 13, 2026 18:24
@vercel
Copy link
Copy Markdown

vercel bot commented Mar 13, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
evlog-docs Ready Ready Preview, Comment, Open in v0 Mar 13, 2026 6:29pm

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new bot commented Mar 13, 2026

npm i https://pkg.pr.new/evlog@169
npm i https://pkg.pr.new/@evlog/nuxthub@169

commit: aeb1040

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new public subpath entrypoint (evlog/toolkit) to expose the internal src/shared/ building blocks so community/custom framework integrations can reuse the same middleware pipeline utilities as the built-in adapters.

Changes:

  • Publish src/shared/* as evlog/toolkit via build + package export mappings.
  • Move extractErrorStatus into shared/errors.ts and re-export from nitro.ts for backward compatibility.
  • Add/extend documentation (README + docs site) for building custom integrations using the toolkit.

Reviewed changes

Copilot reviewed 14 out of 14 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
packages/evlog/tsdown.config.ts Adds a new build entry for toolkit pointing at src/shared/index.ts.
packages/evlog/src/shared/storage.ts Marks createLoggerStorage as part of the public toolkit API via JSDoc.
packages/evlog/src/shared/middleware.ts Switches to shared/errors and annotates toolkit-facing APIs as @beta.
packages/evlog/src/shared/index.ts Introduces the evlog/toolkit barrel re-exporting shared utilities.
packages/evlog/src/shared/errors.ts Adds new shared home for extractErrorStatus() (toolkit export).
packages/evlog/src/nitro.ts Re-exports extractErrorStatus from shared/errors to preserve existing imports.
packages/evlog/package.json Exposes ./toolkit in exports and typesVersions.
packages/evlog/README.md Documents the new “Custom” option pointing to evlog/toolkit.
apps/docs/content/2.frameworks/14.custom-integration.md Adds a full guide for custom integrations using the toolkit API.
apps/docs/content/2.frameworks/00.overview.md Adds “Custom” to the frameworks overview table + card list.
apps/docs/content/1.getting-started/2.installation.md Links to the new Custom Integration guide from installation docs.
AGENTS.md Documents the new public entrypoint mapping and intent for src/shared/.
.changeset/toolkit-entrypoint.md Declares a minor release for the new toolkit entrypoint.
.agents/skills/create-framework-integration/SKILL.md Notes that shared utilities are publicly available as evlog/toolkit.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@HugoRCD HugoRCD merged commit 8462164 into HugoRCD:main Mar 13, 2026
9 of 10 checks passed
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.

3 participants