@zenfs/core 1.11.0 → 1.11.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/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference path="../types/readable-stream.d.ts" preserve="true" />
2
1
  export * from './backends/index.js';
3
2
  export * from './config.js';
4
3
  export * from './context.js';
package/dist/index.js CHANGED
@@ -1,5 +1,3 @@
1
- // eslint-disable-next-line @typescript-eslint/triple-slash-reference
2
- /// <reference path="../types/readable-stream.d.ts" preserve="true" />
3
1
  export * from './backends/index.js';
4
2
  export * from './config.js';
5
3
  export * from './context.js';
@@ -2,6 +2,7 @@ import type * as fs from 'node:fs';
2
2
  import type * as promises from 'node:fs/promises';
3
3
  import type { Interface as ReadlineInterface } from 'node:readline';
4
4
  import type { Stream } from 'node:stream';
5
+ import type { ReadableStream as NodeReadableStream } from 'node:stream/web';
5
6
  import type { V_Context } from '../context.js';
6
7
  import type { File } from '../internal/file.js';
7
8
  import type { Stats } from '../stats.js';
@@ -88,7 +89,7 @@ export declare class FileHandle implements promises.FileHandle {
88
89
  * Read file data using a `ReadableStream`.
89
90
  * The handle will not be closed automatically.
90
91
  */
91
- readableWebStream(options?: promises.ReadableWebStreamOptions): ReadableStream<Uint8Array>;
92
+ readableWebStream(options?: promises.ReadableWebStreamOptions): NodeReadableStream<Uint8Array>;
92
93
  /**
93
94
  * @todo Implement
94
95
  */
@@ -1,3 +1,4 @@
1
+ /// <reference path="../../types/readable-stream.d.ts" preserve="true" />
1
2
  import type { Abortable } from 'node:events';
2
3
  import type * as fs from 'node:fs';
3
4
  import type { CreateReadStreamOptions, CreateWriteStreamOptions } from 'node:fs/promises';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zenfs/core",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "A filesystem, anywhere",
5
5
  "funding": {
6
6
  "type": "individual",
@@ -40,7 +40,7 @@
40
40
  "url": "https://github.com/zen-fs/core/issues"
41
41
  },
42
42
  "engines": {
43
- "node": ">= 16"
43
+ "node": ">= 18"
44
44
  },
45
45
  "exports": {
46
46
  ".": "./dist/index.js",
@@ -49,7 +49,8 @@
49
49
  "./promises": "./dist/vfs/promises.js",
50
50
  "./path": "./dist/vfs/path.js",
51
51
  "./eslint": "./eslint.shared.js",
52
- "./tests/*": "./tests/*"
52
+ "./tests/*": "./tests/*",
53
+ "./types/*": "./types/*"
53
54
  },
54
55
  "publishConfig": {
55
56
  "access": "public",
@@ -11,6 +11,7 @@ This allows us to bypass those problems.
11
11
  Warning: Do not install @types/readable-stream alongside this package!
12
12
  */
13
13
 
14
+ /// <reference types="node" preserve="true" />
14
15
  declare module 'readable-stream' {
15
16
  import { Readable, Writable } from 'node:stream';
16
17
  export { Readable, Writable };