Commit d5ad3e3
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
- packages
- cli
- nextjs
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
3 | 17 | | |
4 | 18 | | |
5 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
3 | 11 | | |
4 | 12 | | |
5 | 13 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
0 commit comments