Skip to content

Remove ArkEnvError export from main entry#815

Merged
yamcodes merged 6 commits intomainfrom
remove-ark-env-error-export
Feb 24, 2026
Merged

Remove ArkEnvError export from main entry#815
yamcodes merged 6 commits intomainfrom
remove-ark-env-error-export

Conversation

@yamcodes
Copy link
Owner

@yamcodes yamcodes commented Feb 24, 2026

Summary by CodeRabbit

  • Breaking Changes
    • ArkEnvError is now exclusively available via "arkenv/core"; previously importable from the main "arkenv" package

@changeset-bot
Copy link

changeset-bot bot commented Feb 24, 2026

🦋 Changeset detected

Latest commit: 5d4fa3f

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
arkenv Minor
@arkenv/bun-plugin Patch
@arkenv/vite-plugin Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added docs Improvements or additions to documentation arkenv Changes to the `arkenv` npm package. @arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv labels Feb 24, 2026
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 24, 2026

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 41b2908 and 5d4fa3f.

📒 Files selected for processing (6)
  • .changeset/shiny-brooms-thank.md
  • packages/arkenv/package.json
  • packages/arkenv/src/core.ts
  • packages/arkenv/src/index.ts
  • packages/bun-plugin/package.json
  • packages/vite-plugin/package.json
💤 Files with no reviewable changes (1)
  • packages/arkenv/src/index.ts

Walkthrough

This PR relocates the ArkEnvError export from the arkenv package root to the arkenv/core submodule. The changeset documents this breaking API change. Package.json files are updated with granular size-limit configurations for individual entry points and refined size limits.

Changes

Cohort / File(s) Summary
ArkEnvError Export Relocation
.changeset/shiny-brooms-thank.md, packages/arkenv/src/index.ts, packages/arkenv/src/core.ts
Removes ArkEnvError re-export from package root index, updates documentation examples to reflect new import path from "arkenv/core", and documents the breaking change via changeset.
Size Limit Configuration Updates
packages/arkenv/package.json, packages/bun-plugin/package.json, packages/vite-plugin/package.json
Replaces aggregated size-limit entry with three granular per-bundle entries; updates size script; removes node:module from ignore lists across packages.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8 minutes

Possibly related PRs

Suggested labels

arkenv, docs

Poem

A rabbit hops through exports bright,
Moving errors left and right,
From root to core, they find their place,
Size limits neat—a cleaner space! 🐰✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Remove ArkEnvError export from main entry' accurately and specifically describes the main change in the pull request: removing the ArkEnvError re-export from the index barrel file.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
  • 📝 Generate docstrings (stacked PR)
  • 📝 Generate docstrings (commit on current branch)
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch remove-ark-env-error-export

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.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@pkg-pr-new
Copy link

pkg-pr-new bot commented Feb 24, 2026

Open in StackBlitz

npm i https://pkg.pr.new/arkenv@815
npm i https://pkg.pr.new/@arkenv/bun-plugin@815
npm i https://pkg.pr.new/@arkenv/fumadocs-ui@815
npm i https://pkg.pr.new/@arkenv/vite-plugin@815

commit: 5d4fa3f

@arkenv-bot
Copy link
Contributor

arkenv-bot bot commented Feb 24, 2026

📦 Bundle Size Report

Package Size Limit Diff Status
@arkenv/vite-plugin 1.91 kB 2.93 kB 0.0%
arkenv 441 B 2.93 kB 0.0%
@arkenv/bun-plugin 2.4 kB 2.44 kB 0.0%

All size limits passed!

1 similar comment
@arkenv-bot
Copy link
Contributor

arkenv-bot bot commented Feb 24, 2026

📦 Bundle Size Report

Package Size Limit Diff Status
@arkenv/vite-plugin 1.91 kB 2.93 kB 0.0%
arkenv 441 B 2.93 kB 0.0%
@arkenv/bun-plugin 2.4 kB 2.44 kB 0.0%

All size limits passed!

@arkenv-bot
Copy link
Contributor

arkenv-bot bot commented Feb 24, 2026

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

Project Deployment Review Updated (Asia/Almaty)
arkenv Ready Ready Preview, Comment Feb 25 2026, 12:22 AM (Asia/Almaty)

@yamcodes yamcodes merged commit 5e8025f into main Feb 24, 2026
18 checks passed
@yamcodes yamcodes deleted the remove-ark-env-error-export branch February 24, 2026 20:13
@arkenv-bot arkenv-bot bot mentioned this pull request Feb 24, 2026
yamcodes pushed a commit that referenced this pull request Feb 24, 2026
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## arkenv@0.11.0

### Minor Changes

- #### Remove `ArkEnvError` import from "arkenv"
_[`#815`](#815)
[`5e8025f`](5e8025f)
[@yamcodes](https://github.com/yamcodes)_

    The `ArkEnvError` class is now only available via:

    ```ts
    import { ArkEnvError } from "arkenv/core";
    ```

## @arkenv/bun-plugin@0.1.6

### Patch Changes

<details><summary>Updated 1 dependency</summary>

<small>


[`5e8025f`](5e8025f)

</small>

-   `arkenv@0.11.0`

</details>

## @arkenv/vite-plugin@0.0.32

### Patch Changes

<details><summary>Updated 1 dependency</summary>

<small>


[`5e8025f`](5e8025f)

</small>

-   `arkenv@0.11.0`

</details>

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv arkenv Changes to the `arkenv` npm package. docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant