@stacksjs/storage 0.72.102 → 0.73.0

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/dist/zip.d.ts +7 -0
  2. package/package.json +7 -7
package/dist/zip.d.ts CHANGED
@@ -7,6 +7,13 @@ export declare function archive(paths: string | string[]): Promise<Result<Subpro
7
7
  export declare function unarchive(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
8
8
  export declare function compress(paths: string[]): Promise<Result<Subprocess, CommandError>>;
9
9
  export declare function decompress(paths: string | string[]): Promise<Result<Subprocess, CommandError>>;
10
+ /*
11
+ * Bun's zlib bindings take `Uint8Array<ArrayBuffer>` - a view over a real
12
+ * ArrayBuffer - while `Uint8Array` alone defaults to `ArrayBufferLike`, which
13
+ * also admits a SharedArrayBuffer. These wrappers keep the wider parameter so
14
+ * callers need not care, and name the narrowing here rather than reaching for
15
+ * `any`, which also unchecked the options object beside it.
16
+ */
10
17
  export declare function gzipSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
11
18
  export declare function gunzipSync(data: Uint8Array): Uint8Array;
12
19
  export declare function deflateSync(data: Uint8Array, options?: ZlibCompressionOptions): Uint8Array;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@stacksjs/storage",
3
3
  "type": "module",
4
4
  "sideEffects": false,
5
- "version": "0.72.102",
5
+ "version": "0.73.0",
6
6
  "description": "The Stacks file system.",
7
7
  "author": "Chris Breuer",
8
8
  "contributors": [
@@ -61,15 +61,15 @@
61
61
  "prepublishOnly": "bun run build"
62
62
  },
63
63
  "dependencies": {
64
- "@stacksjs/ts-cloud": "^0.12.7",
64
+ "@stacksjs/ts-cloud": "^0.12.10",
65
65
  "ts-images": "^0.2.11"
66
66
  },
67
67
  "devDependencies": {
68
- "@stacksjs/arrays": "0.72.102",
68
+ "@stacksjs/arrays": "0.73.0",
69
69
  "better-dx": "^0.2.24",
70
- "@stacksjs/error-handling": "0.72.102",
71
- "@stacksjs/path": "0.72.102",
72
- "@stacksjs/strings": "0.72.102",
73
- "@stacksjs/types": "0.72.102"
70
+ "@stacksjs/error-handling": "0.73.0",
71
+ "@stacksjs/path": "0.73.0",
72
+ "@stacksjs/strings": "0.73.0",
73
+ "@stacksjs/types": "0.73.0"
74
74
  }
75
75
  }