Skip to content

Commit 233c7bd

Browse files
Version Packages (alpha)
1 parent bf796ce commit 233c7bd

5 files changed

Lines changed: 109 additions & 52 deletions

File tree

.changeset/pre.json

Lines changed: 52 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,54 @@
11
{
2-
"mode": "pre",
3-
"tag": "alpha",
4-
"initialVersions": {
5-
"arkenv-cli-playground": "0.0.0",
6-
"bun-react-playground": "0.1.0",
7-
"vite-playground": "0.0.0",
8-
"vite-legacy-playground": "0.0.0",
9-
"@repo/playwright-www": "0.0.0",
10-
"www": "0.0.0",
11-
"arkenv": "0.11.1",
12-
"@arkenv/bun-plugin": "0.1.7",
13-
"@arkenv/cli": "0.2.10",
14-
"@arkenv/fumadocs-ui": "0.0.8",
15-
"@repo/scope": "0.1.3",
16-
"@repo/types": "0.1.0",
17-
"@arkenv/nextjs": "0.0.7",
18-
"@arkenv/vite-plugin": "0.1.1",
19-
"@arkenv/build": "0.0.1",
20-
"@arkenv/nuxt": "0.0.1",
21-
"@arkenv/core": "1.0.0-alpha.2",
22-
"@repo/utils": "0.1.3",
23-
"@arkenv/standard": "1.0.0-alpha.2",
24-
"@repo/log": "0.0.1"
25-
},
26-
"changesets": [
27-
"add-host-preset-add-command",
28-
"drop-example-e-alias",
29-
"epg3nspi",
30-
"fix-nuxt-proxy-coercion",
31-
"forward-port-hosting-presets",
32-
"forward-port-keywords-typetable",
33-
"host-preset-alias",
34-
"improve-npm-keywords",
35-
"init-v1",
36-
"injectable-logger-api",
37-
"machine-actionable-error-codes",
38-
"nuxt-augment-config-key",
39-
"nuxt-flat-layout-cli-alignment",
40-
"nuxt-module-options-jsdoc-v1",
41-
"nuxt-strict-auto-extend",
42-
"reconcile-v0-features",
43-
"remove-framework-shared-exports",
44-
"rename-create-env-to-arkenv",
45-
"standard-mode-flat-layout",
46-
"standard-mode-packaging",
47-
"trim-short-flag-aliases",
48-
"unified-error-normalization",
49-
"unify-coercion",
50-
"valibot-example-registry"
51-
]
2+
"mode": "pre",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"arkenv-cli-playground": "0.0.0",
6+
"bun-react-playground": "0.1.0",
7+
"vite-playground": "0.0.0",
8+
"vite-legacy-playground": "0.0.0",
9+
"@repo/playwright-www": "0.0.0",
10+
"www": "0.0.0",
11+
"arkenv": "0.11.1",
12+
"@arkenv/bun-plugin": "0.1.7",
13+
"@arkenv/cli": "0.2.10",
14+
"@arkenv/fumadocs-ui": "0.0.8",
15+
"@repo/scope": "0.1.3",
16+
"@repo/types": "0.1.0",
17+
"@arkenv/nextjs": "0.0.7",
18+
"@arkenv/vite-plugin": "0.1.1",
19+
"@arkenv/build": "0.0.1",
20+
"@arkenv/nuxt": "0.0.1",
21+
"@arkenv/core": "1.0.0-alpha.2",
22+
"@repo/utils": "0.1.3",
23+
"@arkenv/standard": "1.0.0-alpha.2",
24+
"@repo/log": "0.0.1"
25+
},
26+
"changesets": [
27+
"add-host-preset-add-command",
28+
"add-host-strict-layouts-forward-port",
29+
"drop-example-e-alias",
30+
"epg3nspi",
31+
"fix-nuxt-proxy-coercion",
32+
"forward-port-hosting-presets",
33+
"forward-port-keywords-typetable",
34+
"host-preset-alias",
35+
"improve-npm-keywords",
36+
"init-v1",
37+
"injectable-logger-api",
38+
"machine-actionable-error-codes",
39+
"nuxt-augment-config-key",
40+
"nuxt-flat-layout-cli-alignment",
41+
"nuxt-module-options-jsdoc-v1",
42+
"nuxt-strict-auto-extend",
43+
"reconcile-v0-features",
44+
"remove-framework-shared-exports",
45+
"rename-create-env-to-arkenv",
46+
"standard-mode-flat-layout",
47+
"standard-mode-packaging",
48+
"trim-short-flag-aliases",
49+
"unified-error-normalization",
50+
"unify-coercion",
51+
"valibot-example-registry",
52+
"vite-env-module-transform"
53+
]
5254
}

packages/arkenv/CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,19 @@
11
# @arkenv/core
22

3+
## 1.0.0-alpha.10
4+
5+
### Minor Changes
6+
7+
- #### Support `arkenv add host` for strict multi-file layouts _[`#1434`](https://github.com/yamcodes/arkenv/pull/1434) [`a3d93be`](https://github.com/yamcodes/arkenv/commit/a3d93bedf30fcc46bdaad5966486345dd8f9d75b) [@yamcodes](https://github.com/yamcodes)_
8+
9+
Support `arkenv add host [provider]` in projects with strict multi-file layouts (`client.ts` and `server.ts`). Automatically partition preset variables into client-prefixed keys for `client.ts` and server-only keys for `server.ts`. Align help text and docs so `add host` is not described as flat-`env.ts`-only.
10+
11+
Usage:
12+
13+
```bash
14+
npx arkenv@latest add host [provider]
15+
```
16+
317
## 1.0.0-alpha.9
418

519
### Minor Changes

packages/arkenv/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "arkenv",
33
"type": "module",
4-
"version": "1.0.0-alpha.9",
4+
"version": "1.0.0-alpha.10",
55
"description": "Interactive CLI for scaffolding ArkEnv projects",
66
"bin": {
77
"arkenv": "./dist/index.cjs"

packages/vite-plugin/CHANGELOG.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,46 @@
11
# @arkenv/vite-plugin
22

3+
## 1.0.0-alpha.7
4+
5+
### Minor Changes
6+
7+
- #### Add `env.ts` transform for Vite fullstack apps _[`#1423`](https://github.com/yamcodes/arkenv/pull/1423) [`e1cf6db`](https://github.com/yamcodes/arkenv/commit/e1cf6db6fac038528c7b956df2315de3ecd97f24) [@yamcodes](https://github.com/yamcodes)_
8+
9+
Let the Vite plugin discover your `env.ts` and expose a shared `env` object that works in both client and server code. On the client, public (`VITE_*`) values are inlined at build time and server-only keys throw if read; on the server/SSR, `env.ts` still runs normally and validates against the real environment at boot. The plugin does not rewrite your `env.ts` file on disk.
10+
11+
Works with `@arkenv/vite-plugin` and `@arkenv/vite-plugin/standard`.
12+
13+
Usage:
14+
15+
```ts
16+
// vite.config.ts
17+
import arkenv from "@arkenv/vite-plugin";
18+
19+
export default {
20+
plugins: [arkenv()], // finds src/env.ts or env.ts
21+
// or: arkenv({ schemaPath: "src/env.ts", clientPrefix: "VITE_" })
22+
};
23+
```
24+
25+
```ts
26+
// src/env.ts
27+
import arkenv from "@arkenv/core";
28+
29+
export const env = arkenv({
30+
DATABASE_URL: "string",
31+
VITE_API_URL: "string",
32+
});
33+
```
34+
35+
```ts
36+
import { env } from "./env";
37+
38+
env.VITE_API_URL; // available on client and server
39+
env.DATABASE_URL; // server only — throws if read in the browser
40+
```
41+
42+
Passing a schema to `arkenv(schema)` (the previous `import.meta.env` define API) continues to work unchanged.
43+
344
## 1.0.0-alpha.6
445

546
### Patch Changes

packages/vite-plugin/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@arkenv/vite-plugin",
3-
"version": "1.0.0-alpha.6",
3+
"version": "1.0.0-alpha.7",
44
"author": "Yam Borodetsky <yam@yam.codes>",
55
"repository": {
66
"type": "git",

0 commit comments

Comments
 (0)