@powerlines/plugin-crypto 0.10.734 → 0.10.735

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 (2) hide show
  1. package/README.md +32 -0
  2. package/package.json +7 -7
package/README.md CHANGED
@@ -81,6 +81,38 @@ The noble packages used can be found below:
81
81
 
82
82
  <!-- END doctoc -->
83
83
 
84
+ ## Features
85
+
86
+ - Adds the `crypto` builtin module for runtime cryptography (audited `@noble/ciphers` + `@noble/hashes`)
87
+ - Composes the `env` plugin; resolved config requires both `salt` and `encryptionKey`
88
+ - Pins the noble packages as dependencies and renders the `CryptoBuiltin` module during `prepare`
89
+
90
+ ## Usage
91
+
92
+ Install the plugin:
93
+
94
+ ```bash
95
+ pnpm add @powerlines/plugin-crypto
96
+ ```
97
+
98
+ Register it in `powerlines.config.ts`:
99
+
100
+ ```ts
101
+ import { defineConfig } from "powerlines";
102
+ import { plugin as crypto } from "@powerlines/plugin-crypto";
103
+
104
+ export default defineConfig({
105
+ plugins: [
106
+ crypto({
107
+ salt: process.env.SALT,
108
+ encryptionKey: process.env.ENCRYPTION_KEY
109
+ })
110
+ ]
111
+ });
112
+ ```
113
+
114
+ Run the Powerlines build for your project to activate the plugin.
115
+
84
116
  ## Installing
85
117
 
86
118
  Using [pnpm](http://pnpm.io):
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@powerlines/plugin-crypto",
3
- "version": "0.10.734",
3
+ "version": "0.10.735",
4
4
  "type": "module",
5
5
  "description": "A Powerlines plugin that provides unique identifier generation capabilities at runtime by adding the `id` builtin module.",
6
6
  "repository": {
@@ -120,20 +120,20 @@
120
120
  "@alloy-js/typescript": "^0.24.0",
121
121
  "@noble/ciphers": "^2.4.0",
122
122
  "@power-plant/alloy-js": "^0.0.95",
123
- "@powerlines/plugin-alloy": "^0.26.314",
124
- "@powerlines/plugin-env": "^0.16.425",
125
- "@storm-software/config-tools": "^1.190.151",
123
+ "@powerlines/plugin-alloy": "^0.26.315",
124
+ "@powerlines/plugin-env": "^0.16.426",
125
+ "@storm-software/config-tools": "^1.190.154",
126
126
  "@stryke/path": "^0.29.43",
127
127
  "defu": "^6.1.7",
128
- "powerlines": "^0.47.216"
128
+ "powerlines": "^0.47.217"
129
129
  },
130
130
  "devDependencies": {
131
- "@powerlines/plugin-plugin": "^0.12.629",
131
+ "@powerlines/plugin-plugin": "^0.12.630",
132
132
  "@types/node": "^25.9.9"
133
133
  },
134
134
  "publishConfig": { "access": "public" },
135
135
  "main": "./dist/index.cjs",
136
136
  "module": "./dist/index.mjs",
137
137
  "types": "./dist/index.d.cts",
138
- "gitHead": "75efa1cc4eb8bc90093202669065576aa70fbfef"
138
+ "gitHead": "bb4e1f2b32a8bb9d20559ca7c3df3a2f30a0d14e"
139
139
  }