memfs 4.56.2 → 4.56.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "memfs",
3
- "version": "4.56.2",
3
+ "version": "4.56.7",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -127,14 +127,14 @@
127
127
  "tslib": "2"
128
128
  },
129
129
  "dependencies": {
130
- "@jsonjoy.com/fs-core": "4.56.2",
131
- "@jsonjoy.com/fs-fsa": "4.56.2",
132
- "@jsonjoy.com/fs-node": "4.56.2",
133
- "@jsonjoy.com/fs-node-builtins": "4.56.2",
134
- "@jsonjoy.com/fs-node-to-fsa": "4.56.2",
135
- "@jsonjoy.com/fs-node-utils": "4.56.2",
136
- "@jsonjoy.com/fs-print": "4.56.2",
137
- "@jsonjoy.com/fs-snapshot": "^4.56.2",
130
+ "@jsonjoy.com/fs-core": "workspace:*",
131
+ "@jsonjoy.com/fs-fsa": "workspace:*",
132
+ "@jsonjoy.com/fs-node": "workspace:*",
133
+ "@jsonjoy.com/fs-node-builtins": "workspace:*",
134
+ "@jsonjoy.com/fs-node-to-fsa": "workspace:*",
135
+ "@jsonjoy.com/fs-node-utils": "workspace:*",
136
+ "@jsonjoy.com/fs-print": "workspace:*",
137
+ "@jsonjoy.com/fs-snapshot": "workspace:^",
138
138
  "@jsonjoy.com/json-pack": "^1.11.0",
139
139
  "@jsonjoy.com/util": "^1.9.0",
140
140
  "glob-to-regex.js": "^1.0.1",
@@ -142,4 +142,4 @@
142
142
  "tree-dump": "^1.0.3",
143
143
  "tslib": "^2.0.0"
144
144
  }
145
- }
145
+ }
@@ -1,19 +0,0 @@
1
- # Synchronous `fs` in browser
2
-
3
- This demo executes tests of **synchronous** Node.js API built on top of File
4
- System Access API in browser.
5
-
6
- There are two tests:
7
-
8
- - OPFS — virtual file system built into browsers.
9
- - Native File System Access API folder — a real folder that user explicitly grants permission to.
10
-
11
- See the assertions run in the browser console.
12
-
13
- https://github.com/streamich/memfs/assets/9773803/f841b6cc-728d-4341-b426-3daa6b43f8ac
14
-
15
- Run:
16
-
17
- ```
18
- demo:fsa-to-node-sync-tests
19
- ```
@@ -1,17 +0,0 @@
1
- This demo shows how `tar-stream` package can be used to create a zip file from
2
- a folder selected with File System Access API.
3
-
4
- Below demo uses the File System Access API in the browser to get access to a real folder
5
- on the file system. It then converts a [`FileSystemDirectoryHandle`](https://developer.mozilla.org/en-US/docs/Web/API/FileSystemDirectoryHandle) instance
6
- to a Node-like `fs` file system.
7
-
8
- It then creates two text files using `fs.promises.writeFile`, and then uses `tar-stream` package to create a zip file
9
- and write it back got the file system using Node's `fs.createWriteStream`.
10
-
11
- https://github.com/streamich/memfs/assets/9773803/8dc61d1e-61bf-4dfc-973b-028332fd4473
12
-
13
- Run:
14
-
15
- ```
16
- demo:fsa-to-node-zipfile
17
- ```
@@ -1,16 +0,0 @@
1
- # `isomorphic-git` running on `memfs` in-memory file system
2
-
3
- This demo shows how to run `isomorphic-git` on `memfs` in-memory file system. It
4
- creates a new folder `/repo`, then inits a Git repository there, then creates a
5
- a file `/repo/README.md` and commits it.
6
-
7
- ![](https://github.com/streamich/memfs/assets/9773803/021af8ea-690d-4e4e-9d05-d3e0dea60672)
8
-
9
- Run:
10
-
11
- ```
12
- yarn
13
- npx ts-node demo/git/index.ts
14
- ```
15
-
16
- The demo will print the snapshot of the file system after each step.
@@ -1,18 +0,0 @@
1
- This demo showcase how to run Git in browser but write to a real user file system
2
- folder. It is possible through File System Access API. The API allows to request
3
- a folder from user and then use it as a real file system in browser.
4
-
5
- In this demo we use `memfs` to create a Node `fs`-like file system in browser
6
- out of the folder provided by File System Access API. We then use `isomorphic-git`
7
- to run Git commands on that file system.
8
-
9
- In the demo itself we initiate a Git repo, then we create a `README.md` file, we
10
- stage it, and finally we commit it.
11
-
12
- https://github.com/streamich/memfs/assets/9773803/c15212e8-3ee2-4d2a-b325-9fbdcc377c12
13
-
14
- Run:
15
-
16
- ```
17
- yarn demo:git-fsa
18
- ```
@@ -1,20 +0,0 @@
1
- This demo showcase how to run Git in browser built-int OPFS file system. OPFS
2
- stands for (Origin Private File System) it is a virtual file system available
3
- in browser and it requires no permission to access.
4
-
5
- In this demo we use `memfs` to create a Node `fs`-like file system in browser
6
- out of OPFS. We then use `isomorphic-git` to run Git commands on that file system.
7
-
8
- In the demo itself we initiate a Git repo, then we create a `README.md` file, we
9
- stage it, and finally we commit it.
10
-
11
- https://github.com/streamich/memfs/assets/9773803/bbc83f3f-98ad-48cc-9259-b6f543aa1a03
12
-
13
- Run:
14
-
15
- ```
16
- yarn demo:git-opfs
17
- ```
18
-
19
- You can install [OPFS Explorer](https://chrome.google.com/webstore/detail/opfs-explorer/acndjpgkpaclldomagafnognkcgjignd) Chrome
20
- extension to verify the contents of the OPFS file system.