Skip to content

Commit d5ad3e3

Browse files
Version Packages (#1080)
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 main, this PR will be updated. # Releases ## @arkenv/cli@0.2.4 ### Patch Changes - #### Fix empty sections in Next.js scaffolded schema _[`7756fcf`](7756fcf) [@yamcodes](https://github.com/yamcodes)_ The CLI no longer emits empty `server: {}`, `client: {}`, or `shared: {}` blocks when no variables belong to that section. Previously, scaffolding a project with no `NEXT_PUBLIC_*` variables produced `client: {}`, which caused a TypeScript error: Type '{}' is missing the following properties from type '{ PORT: never; NODE_ENV: never; }': PORT, NODE_ENV `server`, `client`, and `shared` sections are now conditionally omitted when empty. `runtimeEnv` is always emitted as it is required by `@arkenv/nextjs`. This applies across all three validator templates (ArkType, Zod, Valibot). ## @arkenv/nextjs@0.0.3 ### Patch Changes - #### Fix Next.js schema string autocomplete _[`#1079`](#1079) [`bbab725`](bbab725) [@pullfrog](https://github.com/apps/pullfrog)_ Provide ArkType DSL contextual typing for `server`, `client`, and `shared` schema values. Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7756fcf commit d5ad3e3

6 files changed

Lines changed: 24 additions & 22 deletions

File tree

.changeset/fix-cli-skip-empty-nextjs-sections.md

Lines changed: 0 additions & 13 deletions
This file was deleted.

.changeset/fix-nextjs-schema-autocomplete.md

Lines changed: 0 additions & 7 deletions
This file was deleted.

packages/cli/CHANGELOG.md

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

3+
## 0.2.4
4+
5+
### Patch Changes
6+
7+
- #### Fix empty sections in Next.js scaffolded schema _[`7756fcf`](https://github.com/yamcodes/arkenv/commit/7756fcf2bb5012c65d61783d6dda96976fbffe11) [@yamcodes](https://github.com/yamcodes)_
8+
9+
The CLI no longer emits empty `server: {}`, `client: {}`, or `shared: {}` blocks when no variables belong to that section. Previously, scaffolding a project with no `NEXT_PUBLIC_*` variables produced `client: {}`, which caused a TypeScript error:
10+
11+
```
12+
Type '{}' is missing the following properties from type '{ PORT: never; NODE_ENV: never; }': PORT, NODE_ENV
13+
```
14+
15+
`server`, `client`, and `shared` sections are now conditionally omitted when empty. `runtimeEnv` is always emitted as it is required by `@arkenv/nextjs`. This applies across all three validator templates (ArkType, Zod, Valibot).
16+
317
## 0.2.3
418

519
### Patch Changes

packages/cli/package.json

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

packages/nextjs/CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# @arkenv/nextjs
22

3+
## 0.0.3
4+
5+
### Patch Changes
6+
7+
- #### Fix Next.js schema string autocomplete _[`#1079`](https://github.com/yamcodes/arkenv/pull/1079) [`bbab725`](https://github.com/yamcodes/arkenv/commit/bbab725cc4817053fb0bfb693deaadee4a5f1519) [@pullfrog](https://github.com/apps/pullfrog)_
8+
9+
Provide ArkType DSL contextual typing for `server`, `client`, and `shared` schema values.
10+
311
## 0.0.2
412

513
### Patch Changes

packages/nextjs/package.json

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

0 commit comments

Comments
 (0)