Skip to content

v1#1165

Draft
yamcodes wants to merge 98 commits into
devfrom
v1
Draft

v1#1165
yamcodes wants to merge 98 commits into
devfrom
v1

Conversation

@yamcodes

@yamcodes yamcodes commented Jun 5, 2026

Copy link
Copy Markdown
Owner

@changeset-bot

changeset-bot Bot commented Jun 5, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: d92e75d

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

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

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

@pkg-pr-new

pkg-pr-new Bot commented Jun 5, 2026

Copy link
Copy Markdown

Open in StackBlitz

arkenv

npm i https://pkg.pr.new/yamcodes/arkenv@1165

@arkenv/build

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/build@1165

@arkenv/bun-plugin

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/bun-plugin@1165

@arkenv/core

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/core@1165

@arkenv/fumadocs-ui

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/fumadocs-ui@1165

@arkenv/nextjs

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/nextjs@1165

@arkenv/nuxt

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/nuxt@1165

@arkenv/standard

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/standard@1165

@arkenv/vite-plugin

npm i https://pkg.pr.new/yamcodes/arkenv/@arkenv/vite-plugin@1165

commit: fd09b53

@yamcodes yamcodes mentioned this pull request Jun 6, 2026
yamcodes added 3 commits June 10, 2026 23:14
…pre-coercion model (#1193)

Fixes #1178

Unifies the coercion execution model between the default `arkenv` and
`arkenv/standard` entry points. Uses a pre-coercion flow that
shallow-copies the env object and applies coercion prior to validation
against the unmodified schema.

### Changes
- Replace ArkType's `.pipe()` coercion wrapper with pre-coercion flow
using `findCoercionPaths` + `applyCoercion` directly in
`packages/arkenv/src/arktype/index.ts`
- Delete the redundant wrapper file
`packages/arkenv/src/arktype/coercion/coerce.ts` and its re-export
- Update `coerce.test.ts` unit tests to use a local helper mapping the
pre-coercion flow
- Update coercion documentation, FAQ, Standard Schema docs, and ADR-0002
@github-actions github-actions Bot added docs Adds or changes documentation, or acts as documentation in and of itself arkenv Changes to the `arkenv` npm package. www Improvements or additions to arkenv.js.org tests This issue or PR is about adding, removing or changing tests labels Jun 12, 2026
@arkenv-bot

arkenv-bot Bot commented Jun 12, 2026

Copy link
Copy Markdown
Contributor

📦 Bundle Size Report

Package Size Limit Diff Status
@arkenv/bun-plugin 916 B 3.13 kB -63.9%
arkenv 2.02 kB 2.05 kB 0.0%
arkenv/standard 2.19 kB 2.25 kB 0.0%
arkenv/core 441 B 500 B 0.0%
@arkenv/vite-plugin 308 B 2.93 kB -84.8%
@arkenv/standard 3.46 kB 3.52 kB -
@arkenv/nextjs 885 B 2.93 kB -11.7%
@arkenv/nextjs/shared 894 B 1.46 kB -12.2%
@arkenv/nextjs/server 967 B 1.95 kB -10.1%
@arkenv/nextjs/client 955 B 1.95 kB -10.3%
@arkenv/nextjs/config 2.58 kB 2.93 kB +6.6%
@arkenv/core 2.6 kB 2.64 kB -

All size limits passed!

@arkenv-bot arkenv-bot Bot mentioned this pull request Jun 12, 2026
yamcodes and others added 30 commits June 21, 2026 23:31
…and-formatting

(v1) Unify error normalization and formatting
# Conflicts:
#	apps/www/content/docs/nextjs/layouts/simple.mdx
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 v1, this PR will
be updated.

⚠️⚠️⚠️⚠️⚠️⚠️

`v1` is currently in **pre mode** so this branch has prereleases rather
than normal releases. If you want to exit prereleases, run `changeset
pre exit` on `v1`.

⚠️⚠️⚠️⚠️⚠️⚠️

# Releases
## @arkenv/bun-plugin@1.0.0-alpha.3

### Major Changes

- #### Move `arkenv` to peer dependencies in framework plugins
_[`#1202`](#1202)
[`763270c`](763270c)
[@yamcodes](https://github.com/yamcodes)_

Framework plugins no longer declare `arkenv` as a regular dependency.
`arkenv` is now declared as a `peerDependency` with a caret range
(`^1.0.0`), ensuring a single shared instance across all plugins and the
host application.

This change prevents duplicate instances of `arkenv` in `node_modules`,
which could break ArkType structural typing and schema validation at
runtime.

  Plugins affected:

  - `@arkenv/nextjs`
  - `@arkenv/nuxt`
  - `@arkenv/vite-plugin`
  - `@arkenv/bun-plugin`

  Before:

  ```bash
  npm install @arkenv/nextjs
  ```

  After:

  ```bash
  npm install arkenv @arkenv/nextjs
  ```

**BREAKING CHANGE:** Users must now install `arkenv` alongside the
plugin. Previously, `arkenv` was automatically pulled in as a regular
dependency.
## @arkenv/nextjs@1.0.0-alpha.3

### Major Changes

- #### Move `arkenv` to peer dependencies in framework plugins
_[`#1202`](#1202)
[`763270c`](763270c)
[@yamcodes](https://github.com/yamcodes)_

Framework plugins no longer declare `arkenv` as a regular dependency.
`arkenv` is now declared as a `peerDependency` with a caret range
(`^1.0.0`), ensuring a single shared instance across all plugins and the
host application.

This change prevents duplicate instances of `arkenv` in `node_modules`,
which could break ArkType structural typing and schema validation at
runtime.

  Plugins affected:

  - `@arkenv/nextjs`
  - `@arkenv/nuxt`
  - `@arkenv/vite-plugin`
  - `@arkenv/bun-plugin`

  Before:

  ```bash
  npm install @arkenv/nextjs
  ```

  After:

  ```bash
  npm install arkenv @arkenv/nextjs
  ```

**BREAKING CHANGE:** Users must now install `arkenv` alongside the
plugin. Previously, `arkenv` was automatically pulled in as a regular
dependency.
## @arkenv/nuxt@1.0.0-alpha.1

### Major Changes

- #### Move `arkenv` to peer dependencies in framework plugins
_[`#1202`](#1202)
[`763270c`](763270c)
[@yamcodes](https://github.com/yamcodes)_

Framework plugins no longer declare `arkenv` as a regular dependency.
`arkenv` is now declared as a `peerDependency` with a caret range
(`^1.0.0`), ensuring a single shared instance across all plugins and the
host application.

This change prevents duplicate instances of `arkenv` in `node_modules`,
which could break ArkType structural typing and schema validation at
runtime.

  Plugins affected:

  - `@arkenv/nextjs`
  - `@arkenv/nuxt`
  - `@arkenv/vite-plugin`
  - `@arkenv/bun-plugin`

  Before:

  ```bash
  npm install @arkenv/nextjs
  ```

  After:

  ```bash
  npm install arkenv @arkenv/nextjs
  ```

**BREAKING CHANGE:** Users must now install `arkenv` alongside the
plugin. Previously, `arkenv` was automatically pulled in as a regular
dependency.
## @arkenv/vite-plugin@1.0.0-alpha.3

### Major Changes

- #### Move `arkenv` to peer dependencies in framework plugins
_[`#1202`](#1202)
[`763270c`](763270c)
[@yamcodes](https://github.com/yamcodes)_

Framework plugins no longer declare `arkenv` as a regular dependency.
`arkenv` is now declared as a `peerDependency` with a caret range
(`^1.0.0`), ensuring a single shared instance across all plugins and the
host application.

This change prevents duplicate instances of `arkenv` in `node_modules`,
which could break ArkType structural typing and schema validation at
runtime.

  Plugins affected:

  - `@arkenv/nextjs`
  - `@arkenv/nuxt`
  - `@arkenv/vite-plugin`
  - `@arkenv/bun-plugin`

  Before:

  ```bash
  npm install @arkenv/nextjs
  ```

  After:

  ```bash
  npm install arkenv @arkenv/nextjs
  ```

**BREAKING CHANGE:** Users must now install `arkenv` alongside the
plugin. Previously, `arkenv` was automatically pulled in as a regular
dependency.

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
closes #1199

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[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/bun-plugin Issues or Pull Requests involving the Bun plugin for ArkEnv @arkenv/cli Issues or Pull Requests involving the ArkEnv CLI @arkenv/fumadocs-ui Issues or Pull Requests involving the ArkEnv Fumadocs UI theme @arkenv/nextjs Issues or Pull Requests involving the Next.js integration for ArkEnv @arkenv/nuxt Issues or Pull Requests involving the Nuxt integration for ArkEnv @arkenv/vite-plugin Issues or Pull Requests involving the Vite plugin for ArkEnv arkenv Changes to the `arkenv` npm package. docs Adds or changes documentation, or acts as documentation in and of itself example Issues or Pull Requests concerning at least one ArkEnv example. (Found in the `examples/` directory) playground Issues or Pull Requests concerning a playground. (Found in the `apps/playgrounds/` directory) tests This issue or PR is about adding, removing or changing tests www Improvements or additions to arkenv.js.org

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant