@alwatr/env 5.0.0 → 5.4.0
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 +38 -0
- package/README.md +0 -2
- package/dist/main.cjs +2 -3
- package/dist/main.mjs +2 -3
- package/package.json +8 -8
- package/dist/main.cjs.LEGAL.txt +0 -0
- package/dist/main.mjs.LEGAL.txt +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,44 @@
|
|
|
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.4.0](https://github.com/Alwatr/nanolib/compare/@alwatr/env@1.0.1...@alwatr/env@5.4.0) (2025-02-18)
|
|
7
|
+
|
|
8
|
+
### Dependencies update
|
|
9
|
+
|
|
10
|
+
* bump @types/node from ^22.13.0 to ^22.13.4 and prettier from 3.4.2 to 3.5.1; update eslint-import-resolver-typescript to 3.8.2 ([b9a8399](https://github.com/Alwatr/nanolib/commit/b9a8399add39509e90bfdc589fb5e2321718029d)) by @
|
|
11
|
+
|
|
12
|
+
## 5.3.0 (2025-02-03)
|
|
13
|
+
|
|
14
|
+
### Miscellaneous Chores
|
|
15
|
+
|
|
16
|
+
* edit README ([3860b3d](https://github.com/Alwatr/nanolib/commit/3860b3df48ab82dc479d5236c2e8579df614aabf)) by @
|
|
17
|
+
|
|
18
|
+
### Dependencies update
|
|
19
|
+
|
|
20
|
+
* bump the development-dependencies group across 1 directory with 11 updates ([cb79d07](https://github.com/Alwatr/nanolib/commit/cb79d072a57c79e1c01abff1a293d6757bb65350)) by @
|
|
21
|
+
* update typescript and @types/node to version 5.7.3 and 22.13.0 respectively across multiple packages ([ddab05b](https://github.com/Alwatr/nanolib/commit/ddab05b5d767c30191f36a065e4bc88744e8e3fe)) by @
|
|
22
|
+
|
|
23
|
+
## 5.0.0 (2024-11-02)
|
|
24
|
+
|
|
25
|
+
### ⚠ BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
* To simplify version management and ensure consistency, all nanolib packages now use the same version as @alwatr/nanolib. This may require updates to your project's dependencies.
|
|
28
|
+
|
|
29
|
+
### Code Refactoring
|
|
30
|
+
|
|
31
|
+
* use the same version as @alwatr/nanolib ([60eb860](https://github.com/Alwatr/nanolib/commit/60eb860a0e33dfffe2d1d95e63ce54c60876be06)) by @
|
|
32
|
+
|
|
33
|
+
## [5.3.0](https://github.com/Alwatr/nanolib/compare/v5.2.1...v5.3.0) (2025-02-03)
|
|
34
|
+
|
|
35
|
+
### Miscellaneous Chores
|
|
36
|
+
|
|
37
|
+
* edit README ([3860b3d](https://github.com/Alwatr/nanolib/commit/3860b3df48ab82dc479d5236c2e8579df614aabf)) by @ArmanAsadian
|
|
38
|
+
|
|
39
|
+
### Dependencies update
|
|
40
|
+
|
|
41
|
+
* bump the development-dependencies group across 1 directory with 11 updates ([cb79d07](https://github.com/Alwatr/nanolib/commit/cb79d072a57c79e1c01abff1a293d6757bb65350)) by @dependabot[bot]
|
|
42
|
+
* update typescript and @types/node to version 5.7.3 and 22.13.0 respectively across multiple packages ([ddab05b](https://github.com/Alwatr/nanolib/commit/ddab05b5d767c30191f36a065e4bc88744e8e3fe)) by @alimd
|
|
43
|
+
|
|
6
44
|
## 5.0.0 (2024-11-02)
|
|
7
45
|
|
|
8
46
|
### ⚠ BREAKING CHANGES
|
package/README.md
CHANGED
|
@@ -71,8 +71,6 @@ const apiKey = getEnv({name: 'API_KEY'}); // Throws an error if API_KEY is not s
|
|
|
71
71
|
|
|
72
72
|
The following companies, organizations, and individuals support Nanolib ongoing maintenance and development. Become a Sponsor to get your logo on our README and website.
|
|
73
73
|
|
|
74
|
-
[](https://exirstudio.com)
|
|
75
|
-
|
|
76
74
|
### Contributing
|
|
77
75
|
|
|
78
76
|
Contributions are welcome! Please read our [contribution guidelines](https://github.com/Alwatr/.github/blob/next/CONTRIBUTING.md) before submitting a pull request.
|
package/dist/main.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* @alwatr/env v5.
|
|
1
|
+
/* @alwatr/env v5.4.0 */
|
|
2
2
|
"use strict";
|
|
3
3
|
var __defProp = Object.defineProperty;
|
|
4
4
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
@@ -26,7 +26,7 @@ __export(main_exports, {
|
|
|
26
26
|
module.exports = __toCommonJS(main_exports);
|
|
27
27
|
var import_package_tracer = require("@alwatr/package-tracer");
|
|
28
28
|
var import_platform_info = require("@alwatr/platform-info");
|
|
29
|
-
__dev_mode__: import_package_tracer.packageTracer.add("@alwatr/env", "5.
|
|
29
|
+
__dev_mode__: import_package_tracer.packageTracer.add("@alwatr/env", "5.4.0");
|
|
30
30
|
function getEnv(option) {
|
|
31
31
|
let value = process.env[option.name];
|
|
32
32
|
if (value === "") value = void 0;
|
|
@@ -44,5 +44,4 @@ function getEnv(option) {
|
|
|
44
44
|
0 && (module.exports = {
|
|
45
45
|
getEnv
|
|
46
46
|
});
|
|
47
|
-
/*! For license information please see main.cjs.LEGAL.txt */
|
|
48
47
|
//# sourceMappingURL=main.cjs.map
|
package/dist/main.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
/* @alwatr/env v5.
|
|
1
|
+
/* @alwatr/env v5.4.0 */
|
|
2
2
|
|
|
3
3
|
// src/main.ts
|
|
4
4
|
import { packageTracer } from "@alwatr/package-tracer";
|
|
5
5
|
import { platformInfo } from "@alwatr/platform-info";
|
|
6
|
-
__dev_mode__: packageTracer.add("@alwatr/env", "5.
|
|
6
|
+
__dev_mode__: packageTracer.add("@alwatr/env", "5.4.0");
|
|
7
7
|
function getEnv(option) {
|
|
8
8
|
let value = process.env[option.name];
|
|
9
9
|
if (value === "") value = void 0;
|
|
@@ -20,5 +20,4 @@ function getEnv(option) {
|
|
|
20
20
|
export {
|
|
21
21
|
getEnv
|
|
22
22
|
};
|
|
23
|
-
/*! For license information please see main.mjs.LEGAL.txt */
|
|
24
23
|
//# sourceMappingURL=main.mjs.map
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwatr/env",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "A tiny and tree-shakable TypeScript library to get environment variables with type-safe and fallback value for development and production.",
|
|
5
5
|
"author": "S. Ali Mihandoost <ali.mihandoost@gmail.com>",
|
|
6
6
|
"keywords": [
|
|
@@ -67,16 +67,16 @@
|
|
|
67
67
|
"clean": "rm -rfv dist *.tsbuildinfo"
|
|
68
68
|
},
|
|
69
69
|
"dependencies": {
|
|
70
|
-
"@alwatr/package-tracer": "^5.
|
|
71
|
-
"@alwatr/platform-info": "^5.
|
|
70
|
+
"@alwatr/package-tracer": "^5.4.0",
|
|
71
|
+
"@alwatr/platform-info": "^5.4.0"
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@alwatr/nano-build": "^5.
|
|
74
|
+
"@alwatr/nano-build": "^5.4.0",
|
|
75
75
|
"@alwatr/prettier-config": "^5.0.0",
|
|
76
76
|
"@alwatr/tsconfig-base": "^5.0.0",
|
|
77
|
-
"@alwatr/type-helper": "^5.
|
|
78
|
-
"@types/node": "^22.
|
|
79
|
-
"typescript": "^5.
|
|
77
|
+
"@alwatr/type-helper": "^5.3.0",
|
|
78
|
+
"@types/node": "^22.13.4",
|
|
79
|
+
"typescript": "^5.7.3"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "074be0d0fe780bf929e163045f8f598cd2697636"
|
|
82
82
|
}
|
package/dist/main.cjs.LEGAL.txt
DELETED
|
File without changes
|
package/dist/main.mjs.LEGAL.txt
DELETED
|
File without changes
|