@secrecy/lib 1.86.4-fix-md5.1 → 1.86.4-fix-crypto.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.
@@ -1,3 +1,3 @@
1
- import { type EncryptedFile, type SecretStreamProgress } from '../crypto/data.js';
1
+ import { type DecryptSecretStreamOptions, type EncryptedFile, type SecretStreamProgress } from '../crypto/data.js';
2
2
  export declare const encrypt: (key: Uint8Array, dataToEncrypt: Uint8Array<ArrayBuffer>, progress?: (progress: SecretStreamProgress) => Promise<void>, signal?: AbortSignal) => Promise<EncryptedFile>;
3
- export declare const decrypt: (key: Uint8Array, dataToDecrypt: Uint8Array<ArrayBuffer>, progress?: (progress: SecretStreamProgress) => Promise<void>, signal?: AbortSignal) => Promise<Uint8Array<ArrayBuffer>>;
3
+ export declare const decrypt: (key: Uint8Array, dataToDecrypt: Uint8Array<ArrayBuffer>, progress?: (progress: SecretStreamProgress) => Promise<void>, signal?: AbortSignal, options?: DecryptSecretStreamOptions) => Promise<Uint8Array<ArrayBuffer>>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@secrecy/lib",
3
3
  "author": "Secrecy Team <contact@secrecy.tech>",
4
4
  "description": "Client-side end-to-end encryption SDK for Secrecy",
5
- "version": "1.86.4-fix-md5.1",
5
+ "version": "1.86.4-fix-crypto.1",
6
6
  "engines": {
7
7
  "node": ">=22.21.1"
8
8
  },
@@ -49,13 +49,14 @@
49
49
  "format": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check --cache --cache-strategy content --cache-location='node_modules/.cache/.prettiercache'",
50
50
  "format:fix": "prettier \"**/*.{ts,tsx,md,mdx,json}\" --check --write --cache --cache-strategy content --cache-location='node_modules/.cache/.prettiercache'",
51
51
  "docs": "typedoc",
52
- "prepublish": "bun run build",
53
52
  "check-types": "bun run build:workers && tsc --noEmit",
54
53
  "test": "bun run build:workers && bun test",
55
- "build": "bun run build:workers && tsc -p tsconfig.build.json",
54
+ "build": "bun run build:workers && node scripts/inject-version.mjs && tsc -p tsconfig.build.json",
55
+ "build:workers": "bun scripts/build-workers.ts",
56
+ "test:watch": "bun test --watch",
57
+ "prepublishOnly": "bun run build",
56
58
  "prepare": "husky",
57
- "semantic-release": "semantic-release",
58
- "build:workers": "bun scripts/build-workers.ts"
59
+ "semantic-release": "semantic-release"
59
60
  },
60
61
  "devDependencies": {
61
62
  "@commitlint/cli": "^20.3.0",
@@ -90,7 +91,7 @@
90
91
  },
91
92
  "dependencies": {
92
93
  "@js-temporal/polyfill": "^0.5.1",
93
- "@secrecy/trpc-api-types": "1.43.0-fix-remove-plaintext-md5.1",
94
+ "@secrecy/trpc-api-types": "1.43.0-dev.1",
94
95
  "@trpc/client": "11.6.0",
95
96
  "@types/libsodium-wrappers-sumo": "^0.7.8",
96
97
  "axios": "^1.13.2",