diff --git a/.changeset/silly-animals-fly.md b/.changeset/silly-animals-fly.md deleted file mode 100644 index b09b84cc4..000000000 --- a/.changeset/silly-animals-fly.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -"arkenv": patch ---- - -#### Automatic boolean string conversion - -The `boolean` type now accepts `"true"`/`"false"` strings from environment variables and converts them to actual boolean values. This also works with boolean defaults. - -Example: - -```ts -import arkenv from 'arkenv'; - -const env = arkenv({ - DEBUG: "boolean", - ENABLE_FEATURE: "boolean = true" -}); - -console.log(env.DEBUG); -console.log(env.ENABLE_FEATURE); -``` - -Result: - -```sh -❯ DEBUG=true npx tsx index.ts -true -true -``` diff --git a/.changeset/slick-banks-win.md b/.changeset/slick-banks-win.md deleted file mode 100644 index e7cc54781..000000000 --- a/.changeset/slick-banks-win.md +++ /dev/null @@ -1,9 +0,0 @@ ---- -"@arkenv/vite-plugin": patch ---- - -#### Support Vite 2.x - -Extended the supported Vite versions to include **2.9.18** through **7.x** (inclusive). - -Also, we've added the `vite-plugin` keyword to the `package.json`, and a section in the `README.md` explaining why this plugin is a Vite only plugin (and not a Rollup plugin). \ No newline at end of file diff --git a/packages/arkenv/CHANGELOG.md b/packages/arkenv/CHANGELOG.md index d088a6cdb..9966e7dac 100644 --- a/packages/arkenv/CHANGELOG.md +++ b/packages/arkenv/CHANGELOG.md @@ -1,5 +1,35 @@ # ArkEnv +## 0.7.3 + +### Patch Changes + +- #### Automatic boolean string conversion _[`#218`](https://github.com/yamcodes/arkenv/pull/218) [`e554e2b`](https://github.com/yamcodes/arkenv/commit/e554e2b41aab1b8e29d873982ea587c069f4732d) [@yamcodes](https://github.com/yamcodes)_ + + The `boolean` type now accepts `"true"`/`"false"` strings from environment variables and converts them to actual boolean values. This also works with boolean defaults. + + Example: + + ```ts + import arkenv from "arkenv"; + + const env = arkenv({ + DEBUG: "boolean", + ENABLE_FEATURE: "boolean = true", + }); + + console.log(env.DEBUG); + console.log(env.ENABLE_FEATURE); + ``` + + Result: + + ```sh + ❯ DEBUG=true npx tsx index.ts + true + true + ``` + ## 0.7.2 ### Patch Changes diff --git a/packages/arkenv/package.json b/packages/arkenv/package.json index 5f38de9b2..0bb16f8be 100644 --- a/packages/arkenv/package.json +++ b/packages/arkenv/package.json @@ -1,7 +1,7 @@ { "name": "arkenv", "type": "module", - "version": "0.7.2", + "version": "0.7.3", "main": "./dist/index.cjs", "module": "./dist/index.js", "types": "./dist/index.d.ts", diff --git a/packages/vite-plugin/CHANGELOG.md b/packages/vite-plugin/CHANGELOG.md index 87a946ec6..dddc504a6 100644 --- a/packages/vite-plugin/CHANGELOG.md +++ b/packages/vite-plugin/CHANGELOG.md @@ -1,5 +1,27 @@ # @arkenv/vite-plugin +## 0.0.13 + +### Patch Changes + +- #### Support Vite 2.x _[`#212`](https://github.com/yamcodes/arkenv/pull/212) [`bfe08f6`](https://github.com/yamcodes/arkenv/commit/bfe08f6d9f21352186420f0f68611840e164da52) [@yamcodes](https://github.com/yamcodes)_ + + Extended the supported Vite versions to include **2.9.18** through **7.x** (inclusive). + + Also, we've added the `vite-plugin` keyword to the `package.json`, and a section in the `README.md` explaining why this plugin is a Vite only plugin (and not a Rollup plugin). + +
Updated 1 dependency + + + +[`e554e2b`](https://github.com/yamcodes/arkenv/commit/e554e2b41aab1b8e29d873982ea587c069f4732d) + + + +- `arkenv@0.7.3` + +
+ ## 0.0.12 ### Patch Changes diff --git a/packages/vite-plugin/package.json b/packages/vite-plugin/package.json index 0b92b15a9..bafe88c80 100644 --- a/packages/vite-plugin/package.json +++ b/packages/vite-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@arkenv/vite-plugin", - "version": "0.0.12", + "version": "0.0.13", "author": "Yam Borodetsky ", "repository": { "type": "git",