@alwatr/env 5.5.13 โ†’ 5.5.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,21 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.5.15](https://github.com/Alwatr/nanolib/compare/@alwatr/env@5.5.14...@alwatr/env@5.5.15) (2025-09-20)
7
+
8
+ ### ๐Ÿ› Bug Fixes
9
+
10
+ * add sideEffects property to package.json files for better tree-shaking ([c7b9e74](https://github.com/Alwatr/nanolib/commit/c7b9e74e1920c8e35b438742de61883ca62da58c))
11
+ * add sideEffects property to package.json files for better tree-shaking ([e8402c4](https://github.com/Alwatr/nanolib/commit/e8402c481a14a1f807a37aaa862a936713d26176))
12
+
13
+ ### ๐Ÿงน Miscellaneous Chores
14
+
15
+ * remove duplicate sideEffects property from multiple package.json files ([b123f86](https://github.com/Alwatr/nanolib/commit/b123f86be81481de2314aae9bb2eeb629743d24c))
16
+
17
+ ## [5.5.14](https://github.com/Alwatr/nanolib/compare/@alwatr/env@5.5.13...@alwatr/env@5.5.14) (2025-09-19)
18
+
19
+ **Note:** Version bump only for package @alwatr/env
20
+
6
21
  ## [5.5.13](https://github.com/Alwatr/nanolib/compare/@alwatr/env@5.5.12...@alwatr/env@5.5.13) (2025-09-15)
7
22
 
8
23
  **Note:** Version bump only for package @alwatr/env
package/dist/main.cjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/env v5.5.13 */
1
+ /** ๐Ÿ“ฆ @alwatr/env v5.5.15 */ __dev_mode__: console.log("๐Ÿ“ฆ @alwatr/env v5.5.15");
2
2
  "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var main_exports={};__export(main_exports,{getEnv:()=>getEnv});module.exports=__toCommonJS(main_exports);var import_platform_info=require("@alwatr/platform-info");function getEnv(option){let value=process.env[option.name];if(value==="")value=void 0;if(import_platform_info.platformInfo.development===true){value??=option.developmentValue??option.defaultValue}else{value??=option.defaultValue}if(value===void 0){throw new Error(`Environment variable "${option.name}" is required.`)}return value}0&&(module.exports={getEnv});
3
3
  //# sourceMappingURL=main.cjs.map
package/dist/main.mjs CHANGED
@@ -1,3 +1,3 @@
1
- /* @alwatr/env v5.5.13 */
1
+ /** ๐Ÿ“ฆ @alwatr/env v5.5.15 */ __dev_mode__: console.log("๐Ÿ“ฆ @alwatr/env v5.5.15");
2
2
  import{platformInfo}from"@alwatr/platform-info";function getEnv(option){let value=process.env[option.name];if(value==="")value=void 0;if(platformInfo.development===true){value??=option.developmentValue??option.defaultValue}else{value??=option.defaultValue}if(value===void 0){throw new Error(`Environment variable "${option.name}" is required.`)}return value}export{getEnv};
3
3
  //# sourceMappingURL=main.mjs.map
package/package.json CHANGED
@@ -1,18 +1,18 @@
1
1
  {
2
2
  "name": "@alwatr/env",
3
3
  "description": "A tiny and tree-shakable TypeScript library to get environment variables with type-safe and fallback value for development and production.",
4
- "version": "5.5.13",
4
+ "version": "5.5.15",
5
5
  "author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
6
6
  "bugs": "https://github.com/Alwatr/nanolib/issues",
7
7
  "dependencies": {
8
- "@alwatr/platform-info": "5.5.13"
8
+ "@alwatr/platform-info": "5.5.15"
9
9
  },
10
10
  "devDependencies": {
11
- "@alwatr/nano-build": "6.2.0",
12
- "@alwatr/prettier-config": "5.0.3",
13
- "@alwatr/tsconfig-base": "6.0.1",
14
- "@alwatr/type-helper": "6.0.2",
15
- "@types/node": "^22.18.3",
11
+ "@alwatr/nano-build": "6.3.0",
12
+ "@alwatr/prettier-config": "5.0.4",
13
+ "@alwatr/tsconfig-base": "6.0.2",
14
+ "@alwatr/type-helper": "6.1.1",
15
+ "@types/node": "^22.18.6",
16
16
  "typescript": "^5.9.2"
17
17
  },
18
18
  "exports": {
@@ -73,7 +73,8 @@
73
73
  "watch:es": "yarn run build:es --watch",
74
74
  "watch:ts": "yarn run build:ts --watch --preserveWatchOutput"
75
75
  },
76
+ "sideEffects": false,
76
77
  "type": "module",
77
78
  "types": "./dist/main.d.ts",
78
- "gitHead": "e081773e1ba6bf1c62c07d7dc966b174fa7dd3ea"
79
+ "gitHead": "44d9eb76cd9ea59d39b2b00467bea42873155f31"
79
80
  }