just-secrets 0.0.1 → 0.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # just-secrets
2
2
 
3
- Native OS secret storage for Node.js 24+. Zero dependencies, native addons, or install scripts.
3
+ Native OS secret storage for Node.js 22+. Zero dependencies, native addons, or install scripts.
4
4
 
5
5
  ```sh
6
6
  npm install just-secrets
@@ -19,7 +19,7 @@ const token = await secrets.get({ service: 'com.example.cli', name: 'api-token'
19
19
  const deleted = await secrets.delete({ service: 'com.example.cli', name: 'api-token' });
20
20
  ```
21
21
 
22
- Node 24 also supports `const { secrets } = require('just-secrets')`. TypeScript declarations ship with the package. There is no build step.
22
+ Node 22.12+ also supports `const { secrets } = require('just-secrets')` without flags. On earlier Node 22 releases, use ESM `import` or asynchronous `import()` from CommonJS. TypeScript declarations ship with the package. There is no build step.
23
23
 
24
24
  ## API
25
25
 
@@ -102,7 +102,7 @@ Not every backend can distinguish locked, denied, and unavailable states; these
102
102
 
103
103
  ## Development
104
104
 
105
- Only Node.js 24+ and npm are required for development. There are no runtime or development npm dependencies.
105
+ Use the latest patch release of Node.js 22, 24, or 26 and npm for development. There are no runtime or development npm dependencies.
106
106
 
107
107
  ```sh
108
108
  npm ci
@@ -114,7 +114,7 @@ npm run test:package # pack, offline install, ESM/CommonJS import checks
114
114
 
115
115
  Integration tests use a disposable keychain on macOS and UUID-namespaced credentials on Linux/Windows, with cleanup. They cover create, read, overwrite, delete, missing entries, Unicode, empty values, case-sensitive identity, and persistence across Node processes. They do not prove persistence across reboot.
116
116
 
117
- The GitHub Actions matrix runs Node 24 on Linux x64/ARM64, macOS Intel/Apple Silicon, and Windows x64. Linux CI starts an isolated GNOME Keyring session. Native Windows tests require the Windows runner; macOS and Linux mocks alone cannot validate the PowerShell bridge.
117
+ The GitHub Actions matrix runs Node 22, 24, and 26 on Linux x64/ARM64, macOS Intel/Apple Silicon, and Windows x64 (15 combinations). Linux CI starts an isolated GNOME Keyring session. Native Windows tests require the Windows runner; macOS and Linux mocks alone cannot validate the PowerShell bridge.
118
118
 
119
119
  ## Publishing
120
120
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "just-secrets",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "Native OS secret storage for Node.js. Zero dependencies.",
5
5
  "type": "module",
6
6
  "main": "./src/index.js",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "sideEffects": false,
22
22
  "engines": {
23
- "node": ">=24"
23
+ "node": ">=22"
24
24
  },
25
25
  "scripts": {
26
26
  "test": "node --test test/*.test.js",
package/src/index.d.ts CHANGED
@@ -16,5 +16,5 @@ export interface Secrets {
16
16
  delete(service: string, name: string): Promise<boolean>;
17
17
  }
18
18
 
19
- /** Native secret storage for Node.js 24+, using OS-provided credential tools. */
19
+ /** Native secret storage for Node.js 22+, using OS-provided credential tools. */
20
20
  export declare const secrets: Secrets;