UNPKG

@skyra/env-utilities

Version:

Functional utilities for reading and parsing environmental variables

175 lines (107 loc) 14.3 kB
# Changelog All notable changes to this project will be documented in this file. # [@skyra/env-utilities@2.0.1](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@2.0.0...@skyra/env-utilities@2.0.1) - (2025-05-22) ## 🐛 Bug Fixes - **env-utilities:** Bump dotenv dependencies ([2a3e19d](https://github.com/skyra-project/archid-components/commit/2a3e19d8cad89c69d3ca871b03fc98285d293d84)) # [@skyra/env-utilities@2.0.0](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.3.0...@skyra/env-utilities@2.0.0) - (2025-03-13) ## 🐛 Bug Fixes - **deps:** Update all non-major dependencies ([5393a0c](https://github.com/skyra-project/archid-components/commit/5393a0c28285f0ebd4a0d6b17d60f9a96b99a93a)) ([#397](https://github.com/skyra-project/archid-components/pull/397) by @renovate[bot]) - **deps:** Update all non-major dependencies ([b222bb6](https://github.com/skyra-project/archid-components/commit/b222bb697cadc02ac5997f66f679a87678aae7fa)) ([#396](https://github.com/skyra-project/archid-components/pull/396) by @renovate[bot]) - **deps:** Update dependency dotenv-expand to v12 ([c4cb7ee](https://github.com/skyra-project/archid-components/commit/c4cb7eed6163a67ea7996a6d7868832e3a07952c)) ([#393](https://github.com/skyra-project/archid-components/pull/393) by @renovate[bot]) - 💥 **Co-authored-by:** renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> - **deps:** Update all non-major dependencies ([d38f55b](https://github.com/skyra-project/archid-components/commit/d38f55b0db2d86ae8958d0d8669ca519f1085874)) ([#391](https://github.com/skyra-project/archid-components/pull/391) by @renovate[bot]) - **deps:** Update all non-major dependencies ([b1b6cde](https://github.com/skyra-project/archid-components/commit/b1b6cde63d5918e309fc2ded9a409550ac27fa8b)) ([#388](https://github.com/skyra-project/archid-components/pull/388) by @renovate[bot]) - **deps:** Update all non-major dependencies ([2a3232b](https://github.com/skyra-project/archid-components/commit/2a3232beae5666062e46703d9cf8807582ed9cf5)) ([#387](https://github.com/skyra-project/archid-components/pull/387) by @renovate[bot]) - **deps:** Update all non-major dependencies ([a92e0a3](https://github.com/skyra-project/archid-components/commit/a92e0a34b0fb9c443c035b9e592f529f045eeced)) ([#382](https://github.com/skyra-project/archid-components/pull/382) by @renovate[bot]) - **deps:** Update all non-major dependencies ([fe68090](https://github.com/skyra-project/archid-components/commit/fe68090e102ce3d90bb546995a11ae483dfaf34d)) ([#374](https://github.com/skyra-project/archid-components/pull/374) by @renovate[bot]) - **deps:** Update all non-major dependencies ([c4958f3](https://github.com/skyra-project/archid-components/commit/c4958f309705129b84bba7b67bcb54dca3fc3736)) ([#372](https://github.com/skyra-project/archid-components/pull/372) by @renovate[bot]) - **deps:** Update all non-major dependencies ([7edd912](https://github.com/skyra-project/archid-components/commit/7edd9126c38916fd3aeca65c8ac4a7c0673f2b90)) - **deps:** Update all non-major dependencies ([ac48314](https://github.com/skyra-project/archid-components/commit/ac4831401349f7b755c0ebd5c532e61e60562d8b)) ([#360](https://github.com/skyra-project/archid-components/pull/360) by @renovate[bot]) - **deps:** Update all non-major dependencies ([f6f86c3](https://github.com/skyra-project/archid-components/commit/f6f86c316aabf8b375b74e6ac7ef62b1aadd807f)) ([#353](https://github.com/skyra-project/archid-components/pull/353) by @renovate[bot]) - **deps:** Update all non-major dependencies ([f6d7625](https://github.com/skyra-project/archid-components/commit/f6d76256a14598cf18427dc6f282dfcc535710f8)) ([#336](https://github.com/skyra-project/archid-components/pull/336) by @renovate[bot]) - **deps:** Update dependency dotenv-expand to ^11.0.6 ([a3d99b1](https://github.com/skyra-project/archid-components/commit/a3d99b1634df6c275406dd10f3a111364b89b5f8)) ([#335](https://github.com/skyra-project/archid-components/pull/335) by @renovate[bot]) - **deps:** Update dependency dotenv-expand to v11 ([d255fc5](https://github.com/skyra-project/archid-components/commit/d255fc57848ba63796eb5f5d11b2494a865412cc)) ([#332](https://github.com/skyra-project/archid-components/pull/332) by @renovate[bot]) - **deps:** Update all non-major dependencies ([faab5bb](https://github.com/skyra-project/archid-components/commit/faab5bbfc00899feb34cec53314c5758b1454c8a)) ([#331](https://github.com/skyra-project/archid-components/pull/331) by @renovate[bot]) - **env-utilities:** Ensure that dotenvPath can never be an array ([ca5930a](https://github.com/skyra-project/archid-components/commit/ca5930ab5cb606318ac2eeb992904fec5b530c7b)) - **deps:** Update all non-major dependencies ([1ca90e9](https://github.com/skyra-project/archid-components/commit/1ca90e97cda951d8f383cb9cb98b77e5aa266815)) ([#324](https://github.com/skyra-project/archid-components/pull/324) by @renovate[bot]) - **deps:** Update all non-major dependencies ([c1c4cfe](https://github.com/skyra-project/archid-components/commit/c1c4cfeaa9f8aa576c2a178de35ee0c232b40d92)) ([#322](https://github.com/skyra-project/archid-components/pull/322) by @renovate[bot]) ## 📝 Documentation - **env-utilities:** Add note about using /setup ([07a19fa](https://github.com/skyra-project/archid-components/commit/07a19fa90c17d9803397c97261ca3e695ce0d95a)) ## 🚀 Features - **env-utilities:** Add support for @skyra/env-utilities/setup ([295c963](https://github.com/skyra-project/archid-components/commit/295c963b90711f0e4f02633eeda7f9a04bd30a7f)) ([#406](https://github.com/skyra-project/archid-components/pull/406) by @SerenModz21) # [@skyra/env-utilities@1.3.0](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.3.0...@skyra/env-utilities@1.3.0) - (2023-12-27) ## 🏠 Refactor - Switch to properly split CJS and ESM (#298) ([1a07da4](https://github.com/skyra-project/archid-components/commit/1a07da4ae9ddbf9fbf8caf550ddb3e1cea1f2209)) ## 🐛 Bug Fixes - **deps:** Update all non-major dependencies ([e6c2cb4](https://github.com/skyra-project/archid-components/commit/e6c2cb43b4123e3a3d70eb4795a991ca6b9902b5)) ## 🚀 Features - **utils:** Add case insensitive boolean support ([3caa118](https://github.com/skyra-project/archid-components/commit/3caa118ffb9f830fc833df977b3fb27b0504e641)) - **utils:** Add `envIs{Null,Nullish,Undefined}` ([4fe7382](https://github.com/skyra-project/archid-components/commit/4fe738287eeb19094c9aaa9b9dc6e075f2255517)) # [@skyra/env-utilities@1.2.2](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.2.2...@skyra/env-utilities@1.2.2) - (2023-12-10) ## 🐛 Bug Fixes - **deps:** Update all non-major dependencies ([d64478a](https://github.com/skyra-project/archid-components/commit/d64478a87defafe5b2e7cf1454fbd17801913721)) - **env-utilities:** Mark source as esm ([59a9a1f](https://github.com/skyra-project/archid-components/commit/59a9a1fec2f69f78441a3488be3e53aa8ace05eb)) - **deps:** Update all non-major dependencies ([c4035a1](https://github.com/skyra-project/archid-components/commit/c4035a1b8d37c9b73abaa9217e29246ce615df94)) - **deps:** Update all non-major dependencies ([aed5a61](https://github.com/skyra-project/archid-components/commit/aed5a615be59d88e082eefe7a700337e7b3e1637)) - **deps:** Update dependency dotenv to ^16.3.1 ([f15fae6](https://github.com/skyra-project/archid-components/commit/f15fae670c7977c1db039d3dc7d35391150bb2ed)) # [@skyra/env-utilities@1.2.1](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.2.0...@skyra/env-utilities@1.2.1) - (2023-06-17) ## 🐛 Bug Fixes - **env-utilities:** Bump dotenv dependency ([70676fb](https://github.com/skyra-project/archid-components/commit/70676fb19c4955b25d678c28fb66233f2629cce0)) - **deps:** Update all non-major dependencies ([098ea85](https://github.com/skyra-project/archid-components/commit/098ea85e886440a54d56698d985fc3964b424bda)) # [@skyra/env-utilities@1.2.0](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.1.0...@skyra/env-utilities@1.2.0) - (2023-04-12) ## 🏠 Refactor - Add select menu classes (#200) ([cbab493](https://github.com/skyra-project/archid-components/commit/cbab493afc198d24226bd626efa80c82379ea36c)) ## 🐛 Bug Fixes - Update to TypeScript v5 & use moduleResolution node16 (#239) ([92986c1](https://github.com/skyra-project/archid-components/commit/92986c15e0ebed07efdbaf21f28915e373a738bd)) ## 🚀 Features - **env-utilities:** Drop dotenv-cra in favour of embedding the code directly (#241) ([fa57ad6](https://github.com/skyra-project/archid-components/commit/fa57ad605def670049c90439cf1258d76a3df143)) # [@skyra/env-utilities@1.1.0](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.0.2...@skyra/env-utilities@1.1.0) - (2022-10-02) ## 🐛 Bug Fixes - **env-utilities:** Fixed pack for CJS (#169) ([4c11055](https://github.com/skyra-project/archid-components/commit/4c1105570af73715795b95b28be56d1514adfc7d)) ## 🚀 Features - Add twitch helpers package (#168) ([103160f](https://github.com/skyra-project/archid-components/commit/103160f94898a6842544441a49dd13bb8bacf48f)) # [@skyra/env-utilities@1.0.2](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.0.1...@skyra/env-utilities@1.0.2) - (2022-07-17) ## 🐛 Bug Fixes - Bump deps and use tsup dts ([7c1cb5d](https://github.com/skyra-project/archid-components/commit/7c1cb5d2baa1b9b92665f9b44e355cb0e318b687)) - **deps:** Update all non-major dependencies (#116) ([67a5515](https://github.com/skyra-project/archid-components/commit/67a55152775b859f4c289e63d549f01901a5c1d0)) # [@skyra/env-utilities@1.0.1](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@1.0.0...@skyra/env-utilities@1.0.1) - (2022-06-19) ## 🐛 Bug Fixes - **deps:** Update all non-major dependencies (#108) ([dab6744](https://github.com/skyra-project/archid-components/commit/dab67449301dfbffbf81d03a7c6fcd86e452740b)) # [@skyra/env-utilities@1.0.0] (https://github.com/skyra-project/archid-components/tree/@skyra/env-utilities@1.0.0) - (2022-05-07) ## 🐛 Bug Fixes - **env-utilities:** Use `prepublish` instead of `prepublishOnly` ([8fa2662](https://github.com/skyra-project/archid-components/commit/8fa2662eecf94c53a320d8c5d2a706906d8dc4ba)) - **env-utilities:** Resolved some typing issues (#49) ([444a7c6](https://github.com/skyra-project/archid-components/commit/444a7c664d9029445c6b67438fa9b1bf3b555a49)) - **env-utilities:** Do not assign debug to false (#48) ([558fe70](https://github.com/skyra-project/archid-components/commit/558fe70cb5b51d6118563f19f1c4e361e75b96b1)) - Ensure proper files array for yarn pack ([38214a3](https://github.com/skyra-project/archid-components/commit/38214a3be182369efe076428c425b6aa43e1ee35)) - Fixed export mapping in package.json ([d217c18](https://github.com/skyra-project/archid-components/commit/d217c18ac357fd83c448fc5682857b292e09da60)) ## 🚀 Features - **env-utilities:** Set package version to 1.0.0 before publish ([6d05a24](https://github.com/skyra-project/archid-components/commit/6d05a246dc07f264159ca3ac878c9c7bc7a92525)) - **env-utilities:** Add cjs bundle ([1632266](https://github.com/skyra-project/archid-components/commit/16322662ca0d9160eadd643fcfe9f7071f723e65)) - Added env utilities (#39) ([cf11ad2](https://github.com/skyra-project/archid-components/commit/cf11ad2536ad64bb27580f44c81d0997936661b6)) # [@skyra/env-utilities@0.0.7] (https://github.com/skyra-project/archid-components/tree/@skyra/env-utilities@0.0.7) - (2022-04-15) ## Bug Fixes - **env-utilities:** Use `prepublish` instead of `prepublishOnly` ([8fa2662](https://github.com/skyra-project/archid-components/commit/8fa2662eecf94c53a320d8c5d2a706906d8dc4ba)) - **env-utilities:** Resolved some typing issues (#49) ([444a7c6](https://github.com/skyra-project/archid-components/commit/444a7c664d9029445c6b67438fa9b1bf3b555a49)) - **env-utilities:** Do not assign debug to false (#48) ([558fe70](https://github.com/skyra-project/archid-components/commit/558fe70cb5b51d6118563f19f1c4e361e75b96b1)) - Ensure proper files array for yarn pack ([38214a3](https://github.com/skyra-project/archid-components/commit/38214a3be182369efe076428c425b6aa43e1ee35)) - Fixed export mapping in package.json ([d217c18](https://github.com/skyra-project/archid-components/commit/d217c18ac357fd83c448fc5682857b292e09da60)) ## Features - **env-utilities:** Add cjs bundle ([1632266](https://github.com/skyra-project/archid-components/commit/16322662ca0d9160eadd643fcfe9f7071f723e65)) - Added env utilities (#39) ([cf11ad2](https://github.com/skyra-project/archid-components/commit/cf11ad2536ad64bb27580f44c81d0997936661b6)) # [@skyra/env-utilities@0.0.6](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@0.0.5...@skyra/env-utilities@0.0.6) - (2022-04-15) ## Bug Fixes - **env-utilities:** Resolved some typing issues (#49) ([444a7c6](https://github.com/skyra-project/archid-components/commit/444a7c664d9029445c6b67438fa9b1bf3b555a49)) # [@skyra/env-utilities@0.0.5](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@0.0.4...@skyra/env-utilities@0.0.5) - (2022-04-12) ## Bug Fixes - **env-utilities:** Do not assign debug to false (#48) ([558fe70](https://github.com/skyra-project/archid-components/commit/558fe70cb5b51d6118563f19f1c4e361e75b96b1)) # [@skyra/env-utilities@0.0.4](https://github.com/skyra-project/archid-components/compare/@skyra/env-utilities@0.0.3...@skyra/env-utilities@0.0.4) - (2022-04-12) ## Bug Fixes - Ensure proper files array for yarn pack ([38214a3](https://github.com/skyra-project/archid-components/commit/38214a3be182369efe076428c425b6aa43e1ee35)) # [@skyra/env-utilities@0.0.3] (https://github.com/skyra-project/archid-components/tree/@skyra/env-utilities@0.0.3) - (2022-04-12) ## Bug Fixes - Fixed export mapping in package.json ([d217c18](https://github.com/skyra-project/archid-components/commit/d217c18ac357fd83c448fc5682857b292e09da60)) ## Features - Added env utilities (#39) ([cf11ad2](https://github.com/skyra-project/archid-components/commit/cf11ad2536ad64bb27580f44c81d0997936661b6))