Skip to content

Commit b2b5681

Browse files
authored
Merge pull request #1219 from yamcodes/changeset-release/v1
Version Packages (alpha)
2 parents b93f5ab + 71001eb commit b2b5681

11 files changed

Lines changed: 98 additions & 7 deletions

File tree

.changeset/pre.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@
1515
"@repo/scope": "0.1.3",
1616
"@repo/types": "0.1.0",
1717
"@arkenv/nextjs": "0.0.7",
18-
"@arkenv/vite-plugin": "0.1.1"
18+
"@arkenv/vite-plugin": "0.1.1",
19+
"@arkenv/build": "0.0.1",
20+
"@arkenv/nuxt": "0.0.1"
1921
},
20-
"changesets": ["init-v1", "rename-create-env-to-arkenv", "unify-coercion"]
22+
"changesets": [
23+
"init-v1",
24+
"rename-create-env-to-arkenv",
25+
"unified-error-normalization",
26+
"unify-coercion"
27+
]
2128
}

packages/arkenv/CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,24 @@
11
# ArkEnv
22

3+
## 1.0.0-alpha.2
4+
5+
### Major Changes
6+
7+
- #### Refactor error system to use normalized `EnvIssue` and add `{ safe: true }` API _[`#1157`](https://github.com/yamcodes/arkenv/pull/1157) [`427ced6`](https://github.com/yamcodes/arkenv/commit/427ced6bd9af4589c5fd696906bdf712104870bb) [@yamcodes](https://github.com/yamcodes)_
8+
9+
Introduce a unified `EnvIssue` type for programmatic access to validation issues via `ArkEnvError.issues`, and add the non-throwing `{ safe: true }` configuration option to `arkenv`.
10+
11+
Error messages now use ANSI colors instead of a bullet-point prefix:
12+
13+
```diff
14+
- - [PORT] must be a valid port number (was "invalid-port")
15+
+ PORT must be a valid port number (was "invalid-port")
16+
```
17+
18+
Note: Header (red), variable path (yellow), and received value (cyan) are now styled with ANSI escape codes. Update any test suites asserting on exact error text.
19+
20+
**BREAKING CHANGE**: `ValidationIssue` and `formatInternalErrors` removed. Use `EnvIssue` and `formatIssues` instead.
21+
322
## 1.0.0-alpha.1
423

524
### Major 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.1",
4+
"version": "1.0.0-alpha.2",
55
"description": "Typesafe environment variables parsing and validation with ArkType",
66
"main": "./dist/index.cjs",
77
"module": "./dist/index.mjs",

packages/bun-plugin/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @ArkEnv/Bun-plugin
22

3+
## 1.0.0-alpha.2
4+
5+
### Patch Changes
6+
7+
<details><summary>Updated 1 dependency</summary>
8+
9+
<small>
10+
11+
[`427ced6`](https://github.com/yamcodes/arkenv/commit/427ced6bd9af4589c5fd696906bdf712104870bb)
12+
13+
</small>
14+
15+
- `arkenv@1.0.0-alpha.2`
16+
17+
</details>
18+
319
## 1.0.0-alpha.1
420

521
### Patch Changes

packages/bun-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/bun-plugin",
3-
"version": "1.0.0-alpha.1",
3+
"version": "1.0.0-alpha.2",
44
"author": "Yam Borodetsky <yam@yam.codes>",
55
"repository": {
66
"type": "git",

packages/nextjs/CHANGELOG.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @ArkEnv/nextjs
22

3+
## 1.0.0-alpha.2
4+
5+
### Patch Changes
6+
7+
<details><summary>Updated 1 dependency</summary>
8+
9+
<small>
10+
11+
[`427ced6`](https://github.com/yamcodes/arkenv/commit/427ced6bd9af4589c5fd696906bdf712104870bb)
12+
13+
</small>
14+
15+
- `arkenv@1.0.0-alpha.2`
16+
17+
</details>
18+
319
## 1.0.0-alpha.1
420

521
### Major Changes
@@ -56,6 +72,7 @@
5672
},
5773
});
5874
```
75+
5976
### Patch Changes
6077

6178
<details><summary>Updated 1 dependency</summary>

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": "1.0.0-alpha.1",
3+
"version": "1.0.0-alpha.2",
44
"author": "Yam Borodetsky <yam@yam.codes>",
55
"repository": {
66
"type": "git",

packages/nuxt/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @arkenv/nuxt
22

3+
## 0.0.2-alpha.0
4+
5+
### Patch Changes
6+
7+
<details><summary>Updated 1 dependency</summary>
8+
9+
<small>
10+
11+
[`427ced6`](https://github.com/yamcodes/arkenv/commit/427ced6bd9af4589c5fd696906bdf712104870bb)
12+
13+
</small>
14+
15+
- `arkenv@1.0.0-alpha.2`
16+
17+
</details>
18+
319
## 0.0.1
420

521
### Patch Changes

packages/nuxt/package.json

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

packages/vite-plugin/CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# @ArkEnv/Vite-plugin
22

3+
## 1.0.0-alpha.2
4+
5+
### Patch Changes
6+
7+
<details><summary>Updated 1 dependency</summary>
8+
9+
<small>
10+
11+
[`427ced6`](https://github.com/yamcodes/arkenv/commit/427ced6bd9af4589c5fd696906bdf712104870bb)
12+
13+
</small>
14+
15+
- `arkenv@1.0.0-alpha.2`
16+
17+
</details>
18+
319
## 1.0.0-alpha.1
420

521
### Patch Changes

0 commit comments

Comments
 (0)