Commits
![dependabot[bot]](https://secure.gravatar.com/avatar/48ea49be76d0c68403a7f3df87e3487d.jpg?s=96&d=mm)

dependabot[bot] authored and GitHub committed f2b1c145dae
MINOR: [JS] Bump memfs from 3.5.3 to 4.2.1 in /js (#37078) Bumps [memfs](https://github.com/streamich/memfs) from 3.5.3 to 4.2.1. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/streamich/memfs/releases">memfs's releases</a>.</em></p> <blockquote> <h2>v4.2.1</h2> <h2><a href="https://github.com/streamich/memfs/compare/v4.2.0...v4.2.1">4.2.1</a> (2023-08-07)</h2> <h3>Bug Fixes</h3> <ul> <li>don't error when watched directory gets renamed (<a href="https://redirect.github.com/streamich/memfs/issues/939">#939</a>) (<a href="https://github.com/streamich/memfs/commit/b431b089636619113e2dd39e9dc4a2c02048270a">b431b08</a>)</li> </ul> <h2>memfs v4</h2> <p><code>memfs</code> v4 has been released, install <code>4.2.0</code> NPM package.</p> <h2>File System Access API</h2> <p><code>memfs</code> added adapters for <a href="https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API">File System Access</a> (FAS) API, which is a file system API available in browsers. FSA can write to a real user folder, which user picks; or without any permissions can write to a virtual file system, called OPFS (Origin Private File System). <code>memfs</code> implements adapters, which:</p> <ul> <li>Construct a Node's <code>fs</code>-like API out of the FSA API. <ul> <li>In browser, support for synchronous <code>fs</code> methods is also available using a WebWorker.</li> </ul> </li> <li>Also, the other way around, <code>memfs</code> can provide FSA API on top of any <code>fs</code>-like file system.</li> </ul> <h2>Other notable changes</h2> <ul> <li>In-memory <code>fs</code> changes <ul> <li>A number of in-memory <code>fs</code> bugs were fixed.</li> <li>Type interfaces of methods and options objects for in-memory <code>fs</code> were improved.</li> <li><code>mkdirp</code> and <code>mkdripSync</code> were removed, they were deprecated before. (You can pass the <code>"recursive"</code> flag to <code>mkdir</code> and <code>mkdirSync</code>, instead.)</li> <li>Many re-usable Node.js <code>fs</code> utilities now live in the <code>/src/node</code> folder.</li> <li>Promises API methods are now bound by default to their <code>this</code> object, just like in native <code>fs</code> module.</li> </ul> </li> <li><code>crudfs</code> and <code>casfs</code> <ul> <li><code>crudfs</code> implementation on top of Node <code>fs</code> was added.</li> <li><code>crudfs</code> implementation on top of File System Access API was added.</li> <li><code>casfs</code> implementation on top of <code>crudfs</code> was added.</li> </ul> </li> <li><code>print</code> utility was added which allows to recursively print a directory tree to terminal.</li> <li><code>snapshot</code> utility was added which allows to create recursive binary snapshots of folders and then load them back into some folder.</li> <li>The <code>/demo</code> folder now contains multiple Webpack demos.</li> <li>Build changes and deprecations <ul> <li>TypeScript was upgraded from version 4 to 5.</li> <li><code>tslib</code> is now included as peer dependency, instead of TypeScript helpers being emitted into distributable.</li> <li>TypeScript build target of the distributable is no <code>es2017</code>, instead of previously <code>es5</code>.</li> <li>The library is now tested on Node v18+ versions.</li> <li><code>BigInt</code> shim is no longer shipped, <code>memfs</code> will rely on the <code>BigInt</code> provided by the JavaScript environment. You can shim that global, if necessary.</li> <li><code>fs-monkey</code> dependency was removed.</li> </ul> </li> <li>New features in this major release are marked as <code>experimental</code>, which means those APIs are in preview, their public interface may have breaking changes even across minor releases.</li> <li>CircleCI was removed, now GitHub Actions power all builds and releases.</li> <li>The <code>next</code> branch was tested, which deploys pre-releases.</li> </ul> <h3>Bug Fixes</h3> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Changelog</summary> <p><em>Sourced from <a href="https://github.com/streamich/memfs/blob/master/CHANGELOG.md">memfs's changelog</a>.</em></p> <blockquote> <h2><a href="https://github.com/streamich/memfs/compare/v4.2.0...v4.2.1">4.2.1</a> (2023-08-07)</h2> <h3>Bug Fixes</h3> <ul> <li>don't error when watched directory gets renamed (<a href="https://redirect.github.com/streamich/memfs/issues/939">#939</a>) (<a href="https://github.com/streamich/memfs/commit/b431b089636619113e2dd39e9dc4a2c02048270a">b431b08</a>)</li> </ul> <h1><a href="https://github.com/streamich/memfs/compare/v4.0.0...v4.1.0">4.1.0</a> (2023-06-26)</h1> <h3>Bug Fixes</h3> <ul> <li>🐛 add support for unknown nodes (<a href="https://github.com/streamich/memfs/commit/77786f16ca77a2658d73c3bdb29d5018a1fe9ecc">77786f1</a>)</li> <li>🐛 allow readin into various kinds of buffers (<a href="https://github.com/streamich/memfs/commit/361812dc7d05b2c8ed1f52cb2181d0f71d9c2f4f">361812d</a>)</li> <li>🐛 allow readin into various kinds of buffers (<a href="https://github.com/streamich/memfs/commit/e9c70e97dc2e063848baf7e3d307cd30491116a2">e9c70e9</a>)</li> <li>🐛 allow to seek in file (<a href="https://github.com/streamich/memfs/commit/c04895b50b18996e2b7c9c4ba389baaede57fc1f">c04895b</a>)</li> <li>🐛 allow to seek in file (<a href="https://github.com/streamich/memfs/commit/b3636899c8091a8ee1443b148fc23ebb1895ce18">b363689</a>)</li> <li>🐛 correctly handle directory paths (<a href="https://github.com/streamich/memfs/commit/ea909e805781d19f7c3749dab65155f67b119344">ea909e8</a>)</li> <li>🐛 do not allow empty children names (<a href="https://github.com/streamich/memfs/commit/f014fd8e19aec12163c717eed429c2a6ddc95437">f014fd8</a>)</li> <li>🐛 do not allow empty children names (<a href="https://github.com/streamich/memfs/commit/43da1d6279e4c32543ebfd0780bf149d27a07265">43da1d6</a>)</li> <li>🐛 handle root folder better (<a href="https://github.com/streamich/memfs/commit/89bbffde3fc2bd1e41b2c292888023b9b72cf41d">89bbffd</a>)</li> <li>🐛 handle root folder better (<a href="https://github.com/streamich/memfs/commit/76de78002fa4ae613308227fd03ee2f643c41671">76de780</a>)</li> <li>🐛 improve file opening and closing logic (<a href="https://github.com/streamich/memfs/commit/403c27140536b27b1137d68d493851d360b7c90f">403c271</a>)</li> <li>🐛 throw "ENOENT" and "ENOTDIR" when folder or file 404 (<a href="https://github.com/streamich/memfs/commit/5de4faa305748006a45817f6fa8446ed7e4df5b1">5de4faa</a>)</li> <li>🐛 throw "ENOENT" and "ENOTDIR" when folder or file 404 (<a href="https://github.com/streamich/memfs/commit/ddd5d565b33009959e32e77db8e1705809c4c29a">ddd5d56</a>)</li> </ul> <h3>Features</h3> <ul> <li>🎸 add .toTree() to Volume (<a href="https://github.com/streamich/memfs/commit/2d5c4cb8097f7b09b223d980efe9e14a2576ed6f">2d5c4cb</a>)</li> <li>🎸 add .truncate() method (<a href="https://github.com/streamich/memfs/commit/038ab36d1ac8b24428a11135fe9affe95c99e587">038ab36</a>)</li> <li>🎸 add .truncate() method (<a href="https://github.com/streamich/memfs/commit/085335ca8736b67db05c02bbd11cccf5b9bf000b">085335c</a>)</li> <li>🎸 add ability to close files (<a href="https://github.com/streamich/memfs/commit/0db56becb255d4fce72fce16fa8cc120c07ed41a">0db56be</a>)</li> <li>🎸 add ability to close files (<a href="https://github.com/streamich/memfs/commit/d3828a8058808ebdcd055493f4c2f72e3bcb58e7">d3828a8</a>)</li> <li>🎸 add ability to create sub directories (<a href="https://github.com/streamich/memfs/commit/8f15bd9dd4f6e00360a000aaaf865af984ca2559">8f15bd9</a>)</li> <li>🎸 add ability to create sub directories (<a href="https://github.com/streamich/memfs/commit/528c807281a0f920d4c819eebef942cd250b4479">528c807</a>)</li> <li>🎸 add ability to remove all files (<a href="https://github.com/streamich/memfs/commit/76cabc763c280bc23abb8d873f5fa304ce8fcef6">76cabc7</a>)</li> <li>🎸 add ability to remove all files (<a href="https://github.com/streamich/memfs/commit/566e29b543825e6bc71c9b881ce05e93ee657eca">566e29b</a>)</li> <li>🎸 add appendFileSync() method (<a href="https://github.com/streamich/memfs/commit/57192fe98112970fcda201fcf240c57da071cdae">57192fe</a>)</li> <li>🎸 add appendFileSync() method (<a href="https://github.com/streamich/memfs/commit/27411e40125d8fb86e13977735d9122166d55961">27411e4</a>)</li> <li>🎸 add basenem() utility (<a href="https://github.com/streamich/memfs/commit/8b276956876c270dda1e5f7930392daa9a97acf5">8b27695</a>)</li> <li>🎸 add basenem() utility (<a href="https://github.com/streamich/memfs/commit/43354e5a024c8be28a897c53e1d4ea5b46b66d39">43354e5</a>)</li> <li>🎸 add binary serialization to snapshots (<a href="https://github.com/streamich/memfs/commit/c1cd615d7172023c2c7a40b61767d8a3470c9b33">c1cd615</a>)</li> <li>🎸 add copyFile() method (<a href="https://github.com/streamich/memfs/commit/de2bb0aae0c5380dde78689ac1376862f26c6af9">de2bb0a</a>)</li> <li>🎸 add copyFile() method (<a href="https://github.com/streamich/memfs/commit/5e207c4a60019f4df187510682d83a0597df2468">5e207c4</a>)</li> <li>🎸 add copyFileSync() method (<a href="https://github.com/streamich/memfs/commit/7e0137c23c4b0254e1cf40fcad0349f282d4a556">7e0137c</a>)</li> <li>🎸 add copyFileSync() method (<a href="https://github.com/streamich/memfs/commit/5fc1bacf4a337ca25d0207a0e9f94768c2976528">5fc1bac</a>)</li> <li>🎸 add createSwapFile() method (<a href="https://github.com/streamich/memfs/commit/dfdb90893bf67b035337fc059b44f7ad9dfba6a7">dfdb908</a>)</li> <li>🎸 add createSwapFile() method (<a href="https://github.com/streamich/memfs/commit/b07ce795e757cab67ab4b81e50c397486e32ba40">b07ce79</a>)</li> <li>🎸 add crudfs types (<a href="https://github.com/streamich/memfs/commit/18c0658124a83e7819022ccb415d163b88e7abbb">18c0658</a>)</li> </ul> </blockquote> <p>... (truncated)</p> </details> <details> <summary>Commits</summary> <ul> <li><a href="https://github.com/streamich/memfs/commit/a16834f7c9a8a24985473f5dab638f60d1410174"><code>a16834f</code></a> chore(release): 4.2.1 [skip ci]</li> <li><a href="https://github.com/streamich/memfs/commit/b431b089636619113e2dd39e9dc4a2c02048270a"><code>b431b08</code></a> fix: don't error when watched directory gets renamed (<a href="https://redirect.github.com/streamich/memfs/issues/939">#939</a>)</li> <li><a href="https://github.com/streamich/memfs/commit/cd6c25698536aab8845774c4a0036376a0fd599f"><code>cd6c256</code></a> chore(deps): bump semver from 5.7.1 to 5.7.2 (<a href="https://redirect.github.com/streamich/memfs/issues/935">#935</a>)</li> <li><a href="https://github.com/streamich/memfs/commit/3356138893ac68619cb671abd10654b63c570ba9"><code>3356138</code></a> Merge pull request <a href="https://redirect.github.com/streamich/memfs/issues/903">#903</a> from streamich/renovate/rimraf-5.x</li> <li><a href="https://github.com/streamich/memfs/commit/af1e9d1f4d8df206dc5670893a7a390a4bb326f4"><code>af1e9d1</code></a> Release 4.2.0</li> <li><a href="https://github.com/streamich/memfs/commit/75e60a50621649f4f303427cc5b6d1a9942ffcf5"><code>75e60a5</code></a> docs: remove v4 notice</li> <li><a href="https://github.com/streamich/memfs/commit/7556e5be4c40b9abd41c25fb687e6efe34f2cbb7"><code>7556e5b</code></a> chore(release): 4.1.0 [skip ci]</li> <li><a href="https://github.com/streamich/memfs/commit/51c40524034bd4a6180acc6a4e8b9ed8393f6324"><code>51c4052</code></a> chore(deps): update dependency rimraf to v5</li> <li><a href="https://github.com/streamich/memfs/commit/32dd55af51e8374f98bb6818c9688233d15cc60f"><code>32dd55a</code></a> Merge pull request <a href="https://redirect.github.com/streamich/memfs/issues/926">#926</a> from streamich/next</li> <li><a href="https://github.com/streamich/memfs/commit/491272bcc0179b005694d59a6dd437445f49ead2"><code>491272b</code></a> chore: 🤖 bump compile target to es2017</li> <li>Additional commits viewable in <a href="https://github.com/streamich/memfs/compare/v3.5.3...v4.2.1">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@ dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@ dependabot rebase` will rebase this PR - `@ dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@ dependabot merge` will merge this PR after your CI passes on it - `@ dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@ dependabot cancel merge` will cancel a previously requested merge and block automerging - `@ dependabot reopen` will reopen this PR if it is closed - `@ dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@ dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@ dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@ dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@ dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Signed-off-by: Sutou Kouhei <kou@clear-code.com>