@push.rocks/smartcrypto 2.4.0 → 2.4.1

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.
@@ -3,7 +3,7 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartcrypto',
6
- version: '2.4.0',
6
+ version: '2.4.1',
7
7
  description: 'A library providing easy methods for cryptographic operations, including key pair generation.'
8
8
  };
9
9
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiMDBfY29tbWl0aW5mb19kYXRhLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vdHMvMDBfY29tbWl0aW5mb19kYXRhLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBQ0gsTUFBTSxDQUFDLE1BQU0sVUFBVSxHQUFHO0lBQ3hCLElBQUksRUFBRSx5QkFBeUI7SUFDL0IsT0FBTyxFQUFFLE9BQU87SUFDaEIsV0FBVyxFQUFFLCtGQUErRjtDQUM3RyxDQUFBIn0=
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@push.rocks/smartcrypto",
3
- "version": "2.4.0",
3
+ "version": "2.4.1",
4
4
  "private": false,
5
5
  "description": "A library providing easy methods for cryptographic operations, including key pair generation.",
6
6
  "main": "dist_ts/index.js",
@@ -12,7 +12,7 @@
12
12
  "author": "Task Venture Capital GmbH",
13
13
  "license": "MIT",
14
14
  "devDependencies": {
15
- "@git.zone/tsbuild": "^5.0.0",
15
+ "@git.zone/tsbuild": "^5.1.0",
16
16
  "@git.zone/tsrun": "^3.0.2",
17
17
  "@git.zone/tstest": "^6.3.2",
18
18
  "@types/node": "^26.6.2"
@@ -40,6 +40,7 @@
40
40
  "last 1 chrome versions"
41
41
  ],
42
42
  "type": "module",
43
+ "sideEffects": false,
43
44
  "keywords": [
44
45
  "cryptography",
45
46
  "encryption",
package/readme.md CHANGED
@@ -211,6 +211,8 @@ Passphrases are asymmetric between export and import: `toEncryptedPemString('')`
211
211
 
212
212
  The WebCrypto APIs, including encrypted private-key PEMs, and the package-entry hashing functions are tested with Node.js 22 and current Chromium. Browsers require a secure context for WebCrypto. The `@push.rocks/smartcrypto/node` entry is tested with Node.js 22 and Deno.
213
213
 
214
+ The package declares `"sideEffects": false`, and no module does work at import time. Browser bundlers such as esbuild, Rollup, Rolldown and webpack therefore keep only what a bundle imports: a bundle that uses only the hashing functions stays a few kilobytes and does not include `node-forge`, which only the RSA APIs, encrypted private-key PEMs and the `nodeForge` export load.
215
+
214
216
  ## Migration from @push.rocks/smartkey
215
217
 
216
218
  `@push.rocks/smartkey` is deprecated; RSA key pairs and passphrase-encrypted private keys live in this package.
@@ -3,6 +3,6 @@
3
3
  */
4
4
  export const commitinfo = {
5
5
  name: '@push.rocks/smartcrypto',
6
- version: '2.4.0',
6
+ version: '2.4.1',
7
7
  description: 'A library providing easy methods for cryptographic operations, including key pair generation.'
8
8
  }