Conversation
…timizing standard error mapping
🦋 Changeset detectedLatest commit: 3184e97 The changes in this PR will be included in the next version bump. This PR includes no changesetsWhen 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 |
arkenv
@arkenv/build
@arkenv/bun-plugin
@arkenv/core
@arkenv/fumadocs-ui
@arkenv/nextjs
@arkenv/nuxt
@arkenv/standard
@arkenv/vite-plugin
commit: |
Open
…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
Contributor
📦 Bundle Size Report
✅ All size limits passed! |
…s in CONTRIBUTING.md
Version Packages (alpha)
… and refactor arkenv scaffold logic.
…fig and test files
…ackage versions across examples
…ge publishConfig to public
…dard modes (#1249) This PR implements flat-layout overload and `createEnv` named export support for Next.js and Nuxt standard mode integrations. Closes #1245 Closes #1246 ### Proposed Changes - **Next.js**: - Add standard flat-layout overload signature to `@arkenv/nextjs/standard`. - Export `createEnv` named alias in all Next.js standard entry points. - Remove deprecated `(coreCreateEnv as any)` casts from Next.js config generator. - **Nuxt**: - Add standard flat-layout overload signature to `@arkenv/nuxt/standard`. - Parse flat layout configuration options dynamically at runtime in Nuxt internal validation helper. - **Documentation**: - Update integration docs to show new flat-layout usage. --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
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/nextjs@1.0.0-alpha.5 ### Minor Changes - #### Add flat-layout overload to standard mode integrations _[`#1249`](#1249) [`a6ed115`](a6ed115) [@yamcodes](https://github.com/yamcodes)_ Introduce flat-layout signature overloads to `@arkenv/nextjs/standard` and `@arkenv/nuxt/standard`, enabling Standard Schema users (e.g., Zod, Valibot) to use the same flat environment structure as the core ArkType mode. Usage: ```ts import arkenv from "@arkenv/nextjs/standard"; import { z } from "zod"; export const env = arkenv( { DATABASE_URL: z.string().url(), NEXT_PUBLIC_API_URL: z.string().url(), }, { runtimeEnv: { NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL, }, } ); ``` ## @arkenv/nuxt@1.0.0-alpha.3 ### Minor Changes - #### Add flat-layout overload to standard mode integrations _[`#1249`](#1249) [`a6ed115`](a6ed115) [@yamcodes](https://github.com/yamcodes)_ Introduce flat-layout signature overloads to `@arkenv/nextjs/standard` and `@arkenv/nuxt/standard`, enabling Standard Schema users (e.g., Zod, Valibot) to use the same flat environment structure as the core ArkType mode. Usage: ```ts import arkenv from "@arkenv/nextjs/standard"; import { z } from "zod"; export const env = arkenv( { DATABASE_URL: z.string().url(), NEXT_PUBLIC_API_URL: z.string().url(), }, { runtimeEnv: { NEXT_PUBLIC_API_URL: process.env.NEXT_PUBLIC_API_URL, }, } ); ``` --------- 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>
…ce for all integrations
…ents for Nuxt and Next.js documentation
…nal peer dependencies
6609c40 to
822659c
Compare
Closes #737 --------- Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: pullfrog[bot] <226033991+pullfrog[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
https://arkenv-v1.vercel.app