envapt 5.0.0 → 5.0.2

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.
Files changed (3) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +14 -17
  3. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # envapt
2
2
 
3
+ ## 5.0.2
4
+
5
+ ### Patch Changes
6
+
7
+ - 1ac6429: Tighten README positioning and claims.
8
+
9
+ ## 5.0.1
10
+
11
+ ### Patch Changes
12
+
13
+ - Replace the README hero table with a borderless side-by-side layout so GitHub and npm no longer draw table chrome (or the heading underline) around it, and drop the rule between the hero and the intro.
14
+
3
15
  ## 5.0.0
4
16
 
5
17
  ### Major Changes
package/README.md CHANGED
@@ -1,24 +1,21 @@
1
- <table border="0" cellspacing="0" cellpadding="0">
2
- <tr>
3
- <td width="160" valign="middle" align="center">
4
- <img src="https://raw.githubusercontent.com/materwelonDhruv/envapt/main/.github/assets/logo.png" width="120" alt="envapt logo" />
5
- </td>
6
- <td valign="middle">
7
- <h1>envapt</h1>
8
- <p>
9
- <strong>The apt way to handle environment variables.</strong><br/>
10
- Read them as typed values, with zero runtime dependencies and the same API on Node, Bun, and Deno.
11
- </p>
1
+ <img src="https://raw.githubusercontent.com/materwelonDhruv/envapt/main/.github/assets/logo.png" width="120" align="left" alt="envapt logo" />
2
+
3
+ <h3>envapt</h3>
4
+
5
+ <p>
6
+ <strong>The apt way to handle environment variables.</strong><br/>
7
+ Read them as typed values, with zero runtime dependencies.
8
+ </p>
9
+
10
+ <p>
12
11
  <a href="https://www.npmjs.com/package/envapt"><img alt="npm" src="https://img.shields.io/npm/v/envapt?logo=npm&logoColor=cb3838&label=%20&labelColor=103544&color=cb3838"></a>
13
12
  <a href="https://www.npmjs.com/package/envapt"><img alt="downloads" src="https://img.shields.io/npm/dm/envapt?style=flat&color=f7f6e8&labelColor=103544&label=downloads"></a>
14
13
  <a href="https://jsr.io/@materwelon/envapt"><img alt="jsr" src="https://jsr.io/badges/@materwelon/envapt"></a>
15
14
  <img alt="CI" src="https://img.shields.io/github/actions/workflow/status/materwelonDhruv/envapt/checks.yml?branch=main&label=tests&style=flat&logo=github&color=3fb950&labelColor=103544">
16
15
  <a href="LICENSE"><img alt="License" src="https://img.shields.io/npm/l/envapt?style=flat&color=e97826&logo=apache&label="></a>
17
- </td>
18
- </tr>
19
- </table>
16
+ </p>
20
17
 
21
- ---
18
+ <br clear="left"/>
22
19
 
23
20
  `process.env` always hands you a `string | undefined`. envapt returns the type you asked for, with a
24
21
  fallback that removes `undefined` from the return type.
@@ -38,7 +35,7 @@ const port = Envapter.getNumber('PORT', 3000); // number, not string | undefined
38
35
  your own function or a Standard Schema validator (zod, valibot, arktype).
39
36
  - **Zero runtime dependencies.** envapt ships its own `.env` parser, so nothing is added to your
40
37
  dependency tree.
41
- - **The same API on Node, Bun, and Deno.** Node `>=20`, Bun `>=1.3`, Deno `>=2.5`; ESM and CJS.
38
+ - **Runs on Node, Bun, and Deno.** Node `>=20`, Bun `>=1.3`, Deno `>=2.5`; ESM and CJS.
42
39
  - **`.env` loading built in.** A per-environment file cascade, `${VAR}` templates, and strict /
43
40
  required checks.
44
41
 
@@ -59,7 +56,7 @@ Both share the same parsing, converters, and cache.
59
56
 
60
57
  ### Functional
61
58
 
62
- Read a value anywhere, in JavaScript or TypeScript. No build step.
59
+ Read a value from any call site, in JavaScript or TypeScript. No build step.
63
60
 
64
61
  ```ts
65
62
  import { Envapter, Converters } from 'envapt';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "envapt",
3
3
  "type": "module",
4
- "version": "5.0.0",
4
+ "version": "5.0.2",
5
5
  "description": "Type-safe environment variables for TypeScript. Zero-dependency .env loader and parser with the same API on Node, Bun, and Deno. Decorators, converters, and Standard Schema (zod/valibot/arktype) validation.",
6
6
  "types": "./dist/index.d.mts",
7
7
  "exports": {