diff --git a/.changeset/pre.json b/.changeset/pre.json index f52140d3f..520e6dfec 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -27,7 +27,9 @@ "add-host-preset-add-command", "add-host-presets-phase-4", "add-host-strict-layouts-forward-port", + "align-missing-schema-host-hints", "align-missing-schema-throw", + "align-v1-shared-missing-schema-errors", "bun-env-module-transform", "drop-example-e-alias", "epg3nspi", @@ -46,9 +48,11 @@ "nuxt-skip-setup-before-boot-gate", "nuxt-strict-auto-extend", "nuxt-strict-client-shared-auto-extend", + "optional-strict-shared-v1", "reconcile-v0-features", "remove-framework-shared-exports", "rename-create-env-to-arkenv", + "split-help-global-init-options", "standard-isolation-guards", "standard-mode-flat-layout", "standard-mode-packaging", diff --git a/packages/arkenv/CHANGELOG.md b/packages/arkenv/CHANGELOG.md index d284d19b1..75f1d5b05 100644 --- a/packages/arkenv/CHANGELOG.md +++ b/packages/arkenv/CHANGELOG.md @@ -1,5 +1,36 @@ # @arkenv/core +## 1.0.0-alpha.11 + +### Patch Changes + +- #### Split `--help` options into Global and `init` sections _[`#1487`](https://github.com/yamcodes/arkenv/pull/1487) [`f86887c`](https://github.com/yamcodes/arkenv/commit/f86887c55c13c979451ff85d6d4ec5d3d69113dd) [@yamcodes](https://github.com/yamcodes)_ + + List shared flags under **Global options** and scaffolding flags under **init options**, matching the multi-command `/docs/cli` taxonomy. + + ```bash + npx arkenv@alpha --help + ``` + + ```text + Usage: + arkenv init [project-name] ... + arkenv add host [provider] ... + + Global options: + --yes, -y Skip prompts and use defaults ... + --quiet, -q Quiet mode ... + --json, -j Output structured JSON ... + --agent Enable non-interactive, machine-readable mode ... + --help, -h Show this help message + + init options: + --example Specify an example name ... + --force, -f Bypass checks and force scaffolding + --no-codegen Disable automatic env.gen.ts code generation ... + --host-preset, -H Specify a hosting provider preset ... + ``` + ## 1.0.0-alpha.10 ### Minor Changes diff --git a/packages/arkenv/package.json b/packages/arkenv/package.json index bca739229..16086b48c 100644 --- a/packages/arkenv/package.json +++ b/packages/arkenv/package.json @@ -1,7 +1,7 @@ { "name": "arkenv", "type": "module", - "version": "1.0.0-alpha.10", + "version": "1.0.0-alpha.11", "description": "Interactive CLI for scaffolding ArkEnv projects", "bin": { "arkenv": "./dist/index.cjs" diff --git a/packages/build/CHANGELOG.md b/packages/build/CHANGELOG.md index b9569e1f2..8ae17e8fb 100644 --- a/packages/build/CHANGELOG.md +++ b/packages/build/CHANGELOG.md @@ -1,5 +1,32 @@ # @arkenv/build +## 0.0.2-alpha.2 + +### Patch Changes + +- #### Make missing-schema errors short and actionable across hosts _[`#1495`](https://github.com/yamcodes/arkenv/pull/1495) [`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [@yamcodes](https://github.com/yamcodes)_ + + When a host cannot find an env schema, throw a consistent message that names the expected path / `schemaPath` and points to `npx arkenv@latest init`, without embedding a starter `env.ts` module. + + Example: + + ```text + [ArkEnv] Could not find schema file at src/env.ts or env.ts. Please specify 'schemaPath' in ArkEnv options (or run `npx arkenv@latest init`). + ``` + +- #### Make `env/internal/shared.ts` optional in strict layout _[`#1505`](https://github.com/yamcodes/arkenv/pull/1505) [`9bfe1c4`](https://github.com/yamcodes/arkenv/commit/9bfe1c4a6e278966ff2c0b2219d95e319888fb98) [@yamcodes](https://github.com/yamcodes)_ + + Strict layout now works with just `client.ts` and `server.ts`. Omit `internal/shared.ts` when you have nothing to share — shared keys are treated as empty. + + ```ts + // env/client.ts + env/server.ts alone is enough + export default withArkEnv(nextConfig, { + layout: "strict", + }); + ``` + + The CLI still scaffolds `shared.ts` by default for convenience. + ## 0.0.2-alpha.1 ### Patch Changes diff --git a/packages/build/package.json b/packages/build/package.json index b25e0f9e7..0ef7f6f43 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@arkenv/build", - "version": "0.0.2-alpha.1", + "version": "0.0.2-alpha.2", "description": "Shared build and codegen utilities for ArkEnv framework plugins", "type": "module", "main": "./dist/index.cjs", diff --git a/packages/bun-plugin/CHANGELOG.md b/packages/bun-plugin/CHANGELOG.md index 9aec52911..3cd97f96a 100644 --- a/packages/bun-plugin/CHANGELOG.md +++ b/packages/bun-plugin/CHANGELOG.md @@ -1,5 +1,31 @@ # @arkenv/bun-plugin +## 1.0.0-alpha.8 + +### Patch Changes + +- #### Make missing-schema errors short and actionable across hosts _[`#1495`](https://github.com/yamcodes/arkenv/pull/1495) [`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [@yamcodes](https://github.com/yamcodes)_ + + When a host cannot find an env schema, throw a consistent message that names the expected path / `schemaPath` and points to `npx arkenv@latest init`, without embedding a starter `env.ts` module. + + Example: + + ```text + [ArkEnv] Could not find schema file at src/env.ts or env.ts. Please specify 'schemaPath' in ArkEnv options (or run `npx arkenv@latest init`). + ``` + +
Updated 1 dependency + + + +[`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [`9bfe1c4`](https://github.com/yamcodes/arkenv/commit/9bfe1c4a6e278966ff2c0b2219d95e319888fb98) + + + +- `@arkenv/build@0.0.2-alpha.2` + +
+ ## 1.0.0-alpha.7 ### Minor Changes diff --git a/packages/bun-plugin/package.json b/packages/bun-plugin/package.json index ec933074a..8b90ffaaf 100644 --- a/packages/bun-plugin/package.json +++ b/packages/bun-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@arkenv/bun-plugin", - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.8", "author": "Yam Borodetsky ", "repository": { "type": "git", diff --git a/packages/nextjs/CHANGELOG.md b/packages/nextjs/CHANGELOG.md index e73a5a1e0..97d2c9376 100644 --- a/packages/nextjs/CHANGELOG.md +++ b/packages/nextjs/CHANGELOG.md @@ -1,5 +1,48 @@ # @arkenv/nextjs +## 1.0.0-alpha.9 + +### Patch Changes + +- #### Align missing-schema errors with short, actionable host guidance _[`#1488`](https://github.com/yamcodes/arkenv/pull/1488) [`9d5bdbb`](https://github.com/yamcodes/arkenv/commit/9d5bdbbeaf2fdddf69f5bcc47a7d79b15a51ece3) [@yamcodes](https://github.com/yamcodes)_ + + Point missing-schema errors at checked paths / `schemaPath` and `arkenv init`, matching the Bun plugin style, without embedding starter `env.ts` modules. + +- #### Make missing-schema errors short and actionable across hosts _[`#1495`](https://github.com/yamcodes/arkenv/pull/1495) [`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [@yamcodes](https://github.com/yamcodes)_ + + When a host cannot find an env schema, throw a consistent message that names the expected path / `schemaPath` and points to `npx arkenv@latest init`, without embedding a starter `env.ts` module. + + Example: + + ```text + [ArkEnv] Could not find schema file at src/env.ts or env.ts. Please specify 'schemaPath' in ArkEnv options (or run `npx arkenv@latest init`). + ``` + +- #### Make `env/internal/shared.ts` optional in strict layout _[`#1505`](https://github.com/yamcodes/arkenv/pull/1505) [`9bfe1c4`](https://github.com/yamcodes/arkenv/commit/9bfe1c4a6e278966ff2c0b2219d95e319888fb98) [@yamcodes](https://github.com/yamcodes)_ + + Strict layout now works with just `client.ts` and `server.ts`. Omit `internal/shared.ts` when you have nothing to share — shared keys are treated as empty. + + ```ts + // env/client.ts + env/server.ts alone is enough + export default withArkEnv(nextConfig, { + layout: "strict", + }); + ``` + + The CLI still scaffolds `shared.ts` by default for convenience. + +
Updated 1 dependency + + + +[`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [`9bfe1c4`](https://github.com/yamcodes/arkenv/commit/9bfe1c4a6e278966ff2c0b2219d95e319888fb98) + + + +- `@arkenv/build@0.0.2-alpha.2` + +
+ ## 1.0.0-alpha.8 ### Patch Changes diff --git a/packages/nextjs/package.json b/packages/nextjs/package.json index 41ed07e91..ab8077b1a 100644 --- a/packages/nextjs/package.json +++ b/packages/nextjs/package.json @@ -1,6 +1,6 @@ { "name": "@arkenv/nextjs", - "version": "1.0.0-alpha.8", + "version": "1.0.0-alpha.9", "author": "Yam Borodetsky ", "repository": { "type": "git", diff --git a/packages/nuxt/CHANGELOG.md b/packages/nuxt/CHANGELOG.md index 6578c3b8e..6966fc2ce 100644 --- a/packages/nuxt/CHANGELOG.md +++ b/packages/nuxt/CHANGELOG.md @@ -1,5 +1,48 @@ # @arkenv/nuxt +## 1.0.0-alpha.11 + +### Patch Changes + +- #### Align missing-schema errors with short, actionable host guidance _[`#1488`](https://github.com/yamcodes/arkenv/pull/1488) [`9d5bdbb`](https://github.com/yamcodes/arkenv/commit/9d5bdbbeaf2fdddf69f5bcc47a7d79b15a51ece3) [@yamcodes](https://github.com/yamcodes)_ + + Point missing-schema errors at checked paths / `schemaPath` and `arkenv init`, matching the Bun plugin style, without embedding starter `env.ts` modules. + +- #### Make missing-schema errors short and actionable across hosts _[`#1495`](https://github.com/yamcodes/arkenv/pull/1495) [`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [@yamcodes](https://github.com/yamcodes)_ + + When a host cannot find an env schema, throw a consistent message that names the expected path / `schemaPath` and points to `npx arkenv@latest init`, without embedding a starter `env.ts` module. + + Example: + + ```text + [ArkEnv] Could not find schema file at src/env.ts or env.ts. Please specify 'schemaPath' in ArkEnv options (or run `npx arkenv@latest init`). + ``` + +- #### Make `env/internal/shared.ts` optional in strict layout _[`#1505`](https://github.com/yamcodes/arkenv/pull/1505) [`9bfe1c4`](https://github.com/yamcodes/arkenv/commit/9bfe1c4a6e278966ff2c0b2219d95e319888fb98) [@yamcodes](https://github.com/yamcodes)_ + + Strict layout now works with just `client.ts` and `server.ts`. Omit `internal/shared.ts` when you have nothing to share — shared keys are treated as empty. + + ```ts + // env/client.ts + env/server.ts alone is enough + export default withArkEnv(nextConfig, { + layout: "strict", + }); + ``` + + The CLI still scaffolds `shared.ts` by default for convenience. + +
Updated 1 dependency + + + +[`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [`9bfe1c4`](https://github.com/yamcodes/arkenv/commit/9bfe1c4a6e278966ff2c0b2219d95e319888fb98) + + + +- `@arkenv/build@0.0.2-alpha.2` + +
+ ## 1.0.0-alpha.10 ### Major Changes diff --git a/packages/nuxt/package.json b/packages/nuxt/package.json index ccd6a0d0a..d6a36884d 100644 --- a/packages/nuxt/package.json +++ b/packages/nuxt/package.json @@ -1,6 +1,6 @@ { "name": "@arkenv/nuxt", - "version": "1.0.0-alpha.10", + "version": "1.0.0-alpha.11", "author": "Yam Borodetsky ", "repository": { "type": "git", diff --git a/packages/vite-plugin/CHANGELOG.md b/packages/vite-plugin/CHANGELOG.md index 50b49b902..c3a0b0a64 100644 --- a/packages/vite-plugin/CHANGELOG.md +++ b/packages/vite-plugin/CHANGELOG.md @@ -1,5 +1,35 @@ # @arkenv/vite-plugin +## 1.0.0-alpha.8 + +### Patch Changes + +- #### Align missing-schema errors with short, actionable host guidance _[`#1488`](https://github.com/yamcodes/arkenv/pull/1488) [`9d5bdbb`](https://github.com/yamcodes/arkenv/commit/9d5bdbbeaf2fdddf69f5bcc47a7d79b15a51ece3) [@yamcodes](https://github.com/yamcodes)_ + + Point missing-schema errors at checked paths / `schemaPath` and `arkenv init`, matching the Bun plugin style, without embedding starter `env.ts` modules. + +- #### Make missing-schema errors short and actionable across hosts _[`#1495`](https://github.com/yamcodes/arkenv/pull/1495) [`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [@yamcodes](https://github.com/yamcodes)_ + + When a host cannot find an env schema, throw a consistent message that names the expected path / `schemaPath` and points to `npx arkenv@latest init`, without embedding a starter `env.ts` module. + + Example: + + ```text + [ArkEnv] Could not find schema file at src/env.ts or env.ts. Please specify 'schemaPath' in ArkEnv options (or run `npx arkenv@latest init`). + ``` + +
Updated 1 dependency + + + +[`3785c6b`](https://github.com/yamcodes/arkenv/commit/3785c6bfa27888a669900045b5b326e7baa1558b) [`9bfe1c4`](https://github.com/yamcodes/arkenv/commit/9bfe1c4a6e278966ff2c0b2219d95e319888fb98) + + + +- `@arkenv/build@0.0.2-alpha.2` + +
+ ## 1.0.0-alpha.7 ### Minor Changes diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index d2735f4d1..df42434b6 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@arkenv/vite-plugin", - "version": "1.0.0-alpha.7", + "version": "1.0.0-alpha.8", "author": "Yam Borodetsky ", "repository": { "type": "git",