@php-wasm/fs-journal 0.7.19 → 0.9.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.
@@ -1,5 +1,4 @@
1
- import { BasePHP, UniversalPHP } from '../../../universal/src/index.ts';
2
- import type { IsomorphicLocalPHP } from '../../../universal/src/index.ts';
1
+ import { PHP, UniversalPHP } from '../../../universal/src/index.ts';
3
2
  export type EmscriptenFS = any;
4
3
  /**
5
4
  * Represents a stream in the Emscripten file system.
@@ -91,15 +90,15 @@ export type FSNode = {
91
90
  children?: FSNode[];
92
91
  };
93
92
  export type FilesystemOperation = CreateOperation | UpdateFileOperation | DeleteOperation | RenameOperation;
94
- export declare function journalFSEvents(php: BasePHP, fsRoot: string, onEntry?: (entry: FilesystemOperation) => void): () => any;
93
+ export declare function journalFSEvents(php: PHP, fsRoot: string, onEntry?: (entry: FilesystemOperation) => void): () => any;
95
94
  /**
96
95
  * Replays a list of filesystem operations on a PHP instance.
97
96
  *
98
97
  * @param php
99
98
  * @param entries
100
99
  */
101
- export declare function replayFSJournal(php: BasePHP, entries: FilesystemOperation[]): void;
102
- export declare function recordExistingPath(php: IsomorphicLocalPHP, fromPath: string, toPath: string): Generator<FilesystemOperation>;
100
+ export declare function replayFSJournal(php: PHP, entries: FilesystemOperation[]): void;
101
+ export declare function recordExistingPath(php: PHP, fromPath: string, toPath: string): Generator<FilesystemOperation>;
103
102
  /**
104
103
  * Normalizes a list of filesystem operations to remove
105
104
  * redundant operations.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@php-wasm/fs-journal",
3
- "version": "0.7.19",
3
+ "version": "0.9.2",
4
4
  "description": "Bindings to journal the PHP filesystem",
5
5
  "repository": {
6
6
  "type": "git",
@@ -36,7 +36,7 @@
36
36
  "main": "./index.cjs",
37
37
  "module": "./index.js",
38
38
  "license": "GPL-2.0-or-later",
39
- "gitHead": "687ec237085853ff5c808814c28be349146a5d1a",
39
+ "gitHead": "40dca15bf2d5c21c2ee57a878940cb6f7f7851f0",
40
40
  "engines": {
41
41
  "node": ">=18.18.0",
42
42
  "npm": ">=8.11.0"