Skip to content

Version Packages#1117

Merged
yamcodes merged 1 commit into
mainfrom
changeset-release/main
May 31, 2026
Merged

Version Packages#1117
yamcodes merged 1 commit into
mainfrom
changeset-release/main

Conversation

@arkenv-bot
Copy link
Copy Markdown
Contributor

@arkenv-bot arkenv-bot Bot commented May 31, 2026

This PR was opened by the Changesets release 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/cli@0.2.7

Patch Changes

  • Format empty schema objects cleanly in scaffolding #1116 b62ebbd @yamcodes

    Format empty schema objects cleanly as {} on a single line (instead of multi-line empty blocks with trailing whitespace) during project scaffolding.

  • Generate tailored createEnv factory in Next.js strict layout #1116 b62ebbd @yamcodes

    Generate a tailored createEnv factory helper in env.gen.ts when using the strict split-schema layout (instead of exporting a raw runtimeEnv object).

    This eliminates the need to manually declare or reference the runtimeEnv object inside the client schema client.ts file, aligning it closer to the core arkenv experience of simply calling createEnv(schema, options).

    Example usage in client.ts:

    import { createEnv } from "./generated/env.gen";
    import { SharedSchema } from "./internal/shared";
    
    export const env = createEnv(
      {
        NEXT_PUBLIC_API_URL: "string",
      },
      {
        extends: [SharedSchema],
      }
    );
  • Support split schema layout in Next.js config wrapper #1116 b62ebbd @yamcodes

    Add support for the strict split schema layout in the Next.js withArkEnv configuration wrapper and update CLI scaffolding instructions:

    • Add a layout option ("simple" | "strict") to withArkEnv configuration, which defaults to auto-detecting the strict layout if split files (env/internal/shared.ts, env/client.ts, env/server.ts) exist.
    • Implement key extraction from strict client and shared schema files.
    • Update CLI next-steps messages to include withArkEnv wrapping instructions for strict layout nextjs projects.

@arkenv/nextjs@0.0.5

Patch Changes

  • Generate tailored createEnv factory in Next.js strict layout #1116 b62ebbd @yamcodes

    Generate a tailored createEnv factory helper in env.gen.ts when using the strict split-schema layout (instead of exporting a raw runtimeEnv object).

    This eliminates the need to manually declare or reference the runtimeEnv object inside the client schema client.ts file, aligning it closer to the core arkenv experience of simply calling createEnv(schema, options).

    Example usage in client.ts:

    import { createEnv } from "./generated/env.gen";
    import { SharedSchema } from "./internal/shared";
    
    export const env = createEnv(
      {
        NEXT_PUBLIC_API_URL: "string",
      },
      {
        extends: [SharedSchema],
      }
    );
  • Support split schema layout in Next.js config wrapper #1116 b62ebbd @yamcodes

    Add support for the strict split schema layout in the Next.js withArkEnv configuration wrapper and update CLI scaffolding instructions:

    • Add a layout option ("simple" | "strict") to withArkEnv configuration, which defaults to auto-detecting the strict layout if split files (env/internal/shared.ts, env/client.ts, env/server.ts) exist.
    • Implement key extraction from strict client and shared schema files.
    • Update CLI next-steps messages to include withArkEnv wrapping instructions for strict layout nextjs projects.

@github-actions github-actions Bot added docs Improvements or additions to documentation @arkenv/cli Issues or Pull Requests involving the ArkEnv CLI @arkenv/nextjs Issues or Pull Requests involving the Next.js integration for ArkEnv labels May 31, 2026
@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 31, 2026

Open in StackBlitz

arkenv

npm i https://pkg.pr.new/arkenv@1117

@arkenv/bun-plugin

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

@arkenv/cli

npm i https://pkg.pr.new/@arkenv/cli@1117

@arkenv/fumadocs-ui

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

@arkenv/nextjs

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

@arkenv/vite-plugin

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

commit: 0687b7a

@arkenv-bot
Copy link
Copy Markdown
Contributor Author

arkenv-bot Bot commented May 31, 2026

📦 Bundle Size Report

Package Size Limit Diff Status
@arkenv/bun-plugin 2.4 kB 2.44 kB <0.1%
arkenv 1.73 kB 1.95 kB <0.1%
arkenv/standard 1.01 kB 1.07 kB -
arkenv/core 441 B 500 B -
@arkenv/nextjs 1003 B 2.93 kB -
@arkenv/nextjs/shared 1022 B 1.46 kB -
@arkenv/nextjs/server 1.06 kB 1.95 kB -
@arkenv/nextjs/client 1.05 kB 1.95 kB -
@arkenv/nextjs/config 2.36 kB 2.93 kB -
@arkenv/vite-plugin 1.91 kB 2.93 kB <0.1%

All size limits passed!

@yamcodes yamcodes merged commit 0705afe into main May 31, 2026
21 checks passed
@yamcodes yamcodes deleted the changeset-release/main branch May 31, 2026 10:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

@arkenv/cli Issues or Pull Requests involving the ArkEnv CLI @arkenv/nextjs Issues or Pull Requests involving the Next.js integration for ArkEnv docs Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant