Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions .changeset/silly-bats-rush.md

This file was deleted.

39 changes: 0 additions & 39 deletions .changeset/smooth-garlics-lay.md

This file was deleted.

47 changes: 47 additions & 0 deletions packages/arkenv/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,52 @@
# ArkEnv

## 0.8.2

### Patch Changes

- #### Array coercion _[`#693`](https://github.com/yamcodes/arkenv/pull/693) [`7919b6d`](https://github.com/yamcodes/arkenv/commit/7919b6dcd171553d0e6e6e819a862408284e1f71) [@yamcodes](https://github.com/yamcodes)_

ArkEnv now coerces arrays when the `coerce` option is enabled (true by default).
Arrays are parsed using trimmed, comma-separated values by default.

You can customize this behavior with the `arrayFormat` option:

- `comma` (default): Strings are split by comma-separated values and trimmed.
- `json`: Strings are parsed as JSON.

Example:

```dotenv
MY_ARRAY=one,two,three
MY_JSON_ARRAY=["a", "b"]
```

```ts
const env = arkenv(
{
MY_ARRAY: "string[]",
},
{
// optional, 'comma' is default
arrayFormat: "comma",
}
);

console.log(env.MY_ARRAY); // ["one", "two", "three"]

// Using JSON format
const jsonEnv = arkenv(
{
MY_JSON_ARRAY: "string[]",
},
{
arrayFormat: "json",
}
);

console.log(jsonEnv.MY_JSON_ARRAY); // ["a", "b"]
```

## 0.8.1

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/arkenv/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "arkenv",
"type": "module",
"version": "0.8.1",
"version": "0.8.2",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
16 changes: 16 additions & 0 deletions packages/bun-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @arkenv/bun-plugin

## 0.0.7

### Patch Changes

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

<small>

[`7919b6d`](https://github.com/yamcodes/arkenv/commit/7919b6dcd171553d0e6e6e819a862408284e1f71)

</small>

- `arkenv@0.8.2`

</details>

## 0.0.6

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/bun-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arkenv/bun-plugin",
"version": "0.0.6",
"version": "0.0.7",
"author": "Yam Borodetsky <yam@yam.codes>",
"repository": {
"type": "git",
Expand Down
8 changes: 8 additions & 0 deletions packages/internal/keywords/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @repo/keywords

## 0.2.0

### Minor Changes

- #### Rename `maybeParsedNumber`/`maybeParsedBoolean` to `maybeNumber`/`maybeBoolean` _[`#693`](https://github.com/yamcodes/arkenv/pull/693) [`7919b6d`](https://github.com/yamcodes/arkenv/commit/7919b6dcd171553d0e6e6e819a862408284e1f71) [@yamcodes](https://github.com/yamcodes)_

Rename these types for brevity and clarity.

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/keywords/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@repo/keywords",
"private": true,
"type": "module",
"version": "0.1.0",
"version": "0.2.0",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
16 changes: 16 additions & 0 deletions packages/internal/scope/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @repo/scope

## 0.1.1

### Patch Changes

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

<small>

[`7919b6d`](https://github.com/yamcodes/arkenv/commit/7919b6dcd171553d0e6e6e819a862408284e1f71)

</small>

- `@repo/keywords@0.2.0`

</details>

## 0.1.0

### Minor Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/scope/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "@repo/scope",
"private": true,
"type": "module",
"version": "0.1.0",
"version": "0.1.1",
"main": "./dist/index.cjs",
"module": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
14 changes: 14 additions & 0 deletions packages/internal/types/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
# @repo/types

## 0.0.5

### Patch Changes

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

<small>

</small>

- `@repo/scope@0.1.1`

</details>

## 0.0.4

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/internal/types/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@repo/types",
"version": "0.0.4",
"version": "0.0.5",
"type": "module",
"private": true,
"description": "Internal TypeScript types shared across ArkEnv packages",
Expand Down
16 changes: 16 additions & 0 deletions packages/vite-plugin/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,21 @@
# @arkenv/vite-plugin

## 0.0.25

### Patch Changes

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

<small>

[`7919b6d`](https://github.com/yamcodes/arkenv/commit/7919b6dcd171553d0e6e6e819a862408284e1f71)

</small>

- `arkenv@0.8.2`

</details>

## 0.0.24

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/vite-plugin/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@arkenv/vite-plugin",
"version": "0.0.24",
"version": "0.0.25",
"author": "Yam Borodetsky <yam@yam.codes>",
"repository": {
"type": "git",
Expand Down
Loading