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
43 changes: 0 additions & 43 deletions .changeset/hip-breads-sit.md

This file was deleted.

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

## 0.8.1

### Patch Changes

- #### Strip undeclared keys from output by default _[`#662`](https://github.com/yamcodes/arkenv/pull/662) [`d83d746`](https://github.com/yamcodes/arkenv/commit/d83d746e5f3672b97dea1d3eff0515a04af1d0e2) [@yamcodes](https://github.com/yamcodes)_

Environment variables not defined in your schema are now stripped from the output object by default.

You can customize this behavior using the new `onUndeclaredKey` option.

For example, assuming this is your `.env` file:

```env
MY_VAR=hello
UNDECLARED_VAR=world
```

And this is your schema:

```ts
const env = arkenv({
MY_VAR: type.string(),
});

console.log(env);
```

Current output:

```ts
{
MY_VAR: "hello";
}
```

Previous output:

```ts
{
MY_VAR: "hello",
UNDECLARED_VAR: "world"
}
```

## 0.8.0

### Minor 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.0",
"version": "0.8.1",
"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.6

### Patch Changes

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

<small>

[`d83d746`](https://github.com/yamcodes/arkenv/commit/d83d746e5f3672b97dea1d3eff0515a04af1d0e2)

</small>

- `arkenv@0.8.1`

</details>

## 0.0.5

### 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.5",
"version": "0.0.6",
"author": "Yam Borodetsky <yam@yam.codes>",
"repository": {
"type": "git",
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.23

### Patch Changes

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

<small>

[`d83d746`](https://github.com/yamcodes/arkenv/commit/d83d746e5f3672b97dea1d3eff0515a04af1d0e2)

</small>

- `arkenv@0.8.1`

</details>

## 0.0.22

### 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.22",
"version": "0.0.23",
"author": "Yam Borodetsky <yam@yam.codes>",
"repository": {
"type": "git",
Expand Down
Loading