@visulima/fs 5.0.0-alpha.28 → 5.0.0-alpha.29
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/CHANGELOG.md +21 -0
- package/dist/glob.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/ini.d.ts +2 -2
- package/dist/json5.d.ts +2 -2
- package/dist/jsonc.d.ts +2 -2
- package/dist/packem_shared/findUp-CZow0UvS.js +1 -0
- package/dist/packem_shared/findUpSync-BOMeyfWY.js +1 -0
- package/dist/packem_shared/{glob-sync.d-D0bva7NJ.d.ts → glob-sync.d-C2DOaHkM.d.ts} +1 -1
- package/dist/packem_shared/{types.d-RVETMZ5K.d.ts → types.d-B0eZSeBp.d.ts} +1 -1
- package/dist/toml.d.ts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/yaml.d.ts +2 -2
- package/package.json +1 -1
- package/dist/packem_shared/findUp-BT07y_Me.js +0 -1
- package/dist/packem_shared/findUpSync-BvZiYsKJ.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,24 @@
|
|
|
1
|
+
## @visulima/fs [5.0.0-alpha.29](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.28...@visulima/fs@5.0.0-alpha.29) (2026-06-02)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **fs:** normalize file:// URL names via path's toPath in find-up ([124b2ce](https://github.com/visulima/visulima/commit/124b2ced6f165ba161a4a29bf26ffb0e2fc389cf))
|
|
6
|
+
|
|
7
|
+
### Miscellaneous Chores
|
|
8
|
+
|
|
9
|
+
* apply eslint + prettier autofixes across packages ([c1bb784](https://github.com/visulima/visulima/commit/c1bb7848a0d93d0dfe2960c77e3cda22239c79a0))
|
|
10
|
+
* cs fixes ([#659](https://github.com/visulima/visulima/issues/659)) ([61f8912](https://github.com/visulima/visulima/commit/61f891274c1de22a36af256fc981b585b9ec6a6a))
|
|
11
|
+
|
|
12
|
+
### Tests
|
|
13
|
+
|
|
14
|
+
* **fs:** cover ini-preserve rewrites, sanitize fallbacks, json5 hooks, walk symlinks, and move/remove options ([6e61c3a](https://github.com/visulima/visulima/commit/6e61c3adba9e438e45bcd2a277b7a1db3b6845b7))
|
|
15
|
+
* improve coverage across packages ([91bd6d3](https://github.com/visulima/visulima/commit/91bd6d3b61736e3c8bd1fc59b0b5955f76a5d323))
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Dependencies
|
|
19
|
+
|
|
20
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.31
|
|
21
|
+
|
|
1
22
|
## @visulima/fs [5.0.0-alpha.28](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.27...@visulima/fs@5.0.0-alpha.28) (2026-05-27)
|
|
2
23
|
|
|
3
24
|
### Bug Fixes
|
package/dist/glob.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-
|
|
2
|
-
export { type G as GlobOptions } from "./packem_shared/types.d-
|
|
1
|
+
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-C2DOaHkM.js";
|
|
2
|
+
export { type G as GlobOptions } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
package/dist/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions,
|
|
2
|
-
export { type A as CodeFrameLocation, type
|
|
1
|
+
import { q as WalkOptions, F as FindUpName, r as FindUpOptions, s as FindUpNameSync, t as WalkEntry, u as ReadFileOptions, v as ContentType, w as ReadJsonOptions, n as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
2
|
+
export { type A as CodeFrameLocation, type m as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type g as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
3
3
|
import { symlink } from 'node:fs';
|
|
4
4
|
export { CRLF, EOL, LF, detect, format } from "./eol.js";
|
|
5
|
-
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-
|
|
5
|
+
export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-C2DOaHkM.js";
|
|
6
6
|
export { type GlobParentOptions, default as globParent } from "./glob-parent.js";
|
|
7
7
|
export { type IsGlobOptions, default as isGlob } from "./is-glob.js";
|
|
8
8
|
export { type MatchOptions, match, matcher } from "./match.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{FIND_UP_STOP as o,F_OK as t,R_OK as a,W_OK as f,X_OK as s}from"./packem_shared/F_OK-CAwY1qU7.js";import{default as m}from"./packem_shared/ensureDir-CZ4oUFuo.js";import{default as n}from"./packem_shared/ensureDirSync-CoPWhbjM.js";import{default as d}from"./packem_shared/ensureFile-CF1cAAyh.js";import{default as i}from"./packem_shared/ensureFileSync-C3qR6naU.js";import{default as y}from"./packem_shared/ensureLink-LLLxlGHn.js";import{default as F}from"./packem_shared/ensureLinkSync-Dh_GtT8F.js";import{default as k}from"./packem_shared/ensureSymlink-D50kj2zl.js";import{default as O}from"./packem_shared/ensureSymlinkSync-BbVDPvI4.js";import{CRLF as v,EOL as D,LF as L,detect as J,format as K}from"./eol.js";import{default as P}from"./packem_shared/collect-JK4R3E7e.js";import{default as h}from"./packem_shared/collectSync-DttoZ98y.js";import{default as C}from"./packem_shared/findUp-
|
|
1
|
+
import{FIND_UP_STOP as o,F_OK as t,R_OK as a,W_OK as f,X_OK as s}from"./packem_shared/F_OK-CAwY1qU7.js";import{default as m}from"./packem_shared/ensureDir-CZ4oUFuo.js";import{default as n}from"./packem_shared/ensureDirSync-CoPWhbjM.js";import{default as d}from"./packem_shared/ensureFile-CF1cAAyh.js";import{default as i}from"./packem_shared/ensureFileSync-C3qR6naU.js";import{default as y}from"./packem_shared/ensureLink-LLLxlGHn.js";import{default as F}from"./packem_shared/ensureLinkSync-Dh_GtT8F.js";import{default as k}from"./packem_shared/ensureSymlink-D50kj2zl.js";import{default as O}from"./packem_shared/ensureSymlinkSync-BbVDPvI4.js";import{CRLF as v,EOL as D,LF as L,detect as J,format as K}from"./eol.js";import{default as P}from"./packem_shared/collect-JK4R3E7e.js";import{default as h}from"./packem_shared/collectSync-DttoZ98y.js";import{default as C}from"./packem_shared/findUp-CZow0UvS.js";import{default as z}from"./packem_shared/findUpSync-BOMeyfWY.js";import{default as G}from"./packem_shared/glob-MHJQjR39.js";import{default as N}from"./packem_shared/globSync-CwzlELgS.js";import{default as W}from"./packem_shared/walk-B9f2OdKi.js";import{default as j}from"./packem_shared/walkSync-_5-O8qTe.js";import{default as B}from"./glob-parent.js";import{default as M}from"./packem_shared/isAccessible-CDFxsAAo.js";import{default as V}from"./packem_shared/isAccessibleSync-5nzZWgin.js";import{default as Z}from"./is-glob.js";import{match as ee,matcher as re}from"./match.js";import{move as te,moveSync as ae,rename as fe,renameSync as se}from"./packem_shared/move-LmP6P9sn.js";import{default as me}from"./packem_shared/readFile-BAVMZg5e.js";import{default as ne}from"./packem_shared/readFileSync-CGmzMUF2.js";import{default as de}from"./packem_shared/readJson-kPx68Wv1.js";import{default as ie}from"./packem_shared/readJsonSync-_HXNI3Se.js";import{default as ye}from"./packem_shared/emptyDir-8utO028L.js";import{default as Fe}from"./packem_shared/emptyDirSync-Bk5fUX73.js";import{default as ke}from"./packem_shared/remove-DH41Ov_c.js";import{default as Oe}from"./packem_shared/removeSync-50OEdnHd.js";import{sanitize as ve}from"./packem_shared/sanitize-CU1xmyrg.js";import{default as Le}from"./packem_shared/writeFile-DNGaDOMX.js";import{default as Ke}from"./packem_shared/writeFileSync-CE1i-eMA.js";import{default as Pe}from"./packem_shared/writeJson-BkGlq1Kv.js";import{default as he}from"./packem_shared/writeJsonSync-HndmyvEK.js";import{isFsCaseSensitive as Ce}from"./packem_shared/isFsCaseSensitive-CMZVY1A2.js";export{v as CRLF,D as EOL,o as FIND_UP_STOP,t as F_OK,L as LF,a as R_OK,f as W_OK,s as X_OK,P as collect,h as collectSync,J as detect,ye as emptyDir,Fe as emptyDirSync,m as ensureDir,n as ensureDirSync,d as ensureFile,i as ensureFileSync,y as ensureLink,F as ensureLinkSync,k as ensureSymlink,O as ensureSymlinkSync,C as findUp,z as findUpSync,K as format,G as glob,B as globParent,N as globSync,M as isAccessible,V as isAccessibleSync,Ce as isFsCaseSensitive,Z as isGlob,ee as match,re as matcher,te as move,ae as moveSync,me as readFile,ne as readFileSync,de as readJson,ie as readJsonSync,ke as remove,Oe as removeSync,fe as rename,se as renameSync,ve as sanitize,W as walk,j as walkSync,Le as writeFile,Ke as writeFileSync,Pe as writeJson,he as writeJsonSync};
|
package/dist/ini.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type I as IniEncodeOptions, type
|
|
1
|
+
import { C as CompressionType, b as ReadIniOptions, c as WriteIniOptions } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
2
|
+
export { type I as IniEncodeOptions, type d as IniLineEnding } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
/**
|
package/dist/json5.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type
|
|
1
|
+
import { C as CompressionType, R as ReadJson5Options, J as Json5Reviver, W as WriteJson5Options } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
2
|
+
export { type a as Json5Replacer } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
declare function readJson5<R = unknown>(path: URL | string, options?: ReadJson5Options<CompressionType>): Promise<R>;
|
package/dist/jsonc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type
|
|
1
|
+
import { C as CompressionType, i as ReadJsoncOptions, j as WriteJsoncOptions } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
2
|
+
export { type k as JsoncFormattingOptions, type l as JsoncParseOptions } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var h=Object.defineProperty;var a=(r,e)=>h(r,"name",{value:e,configurable:!0});import{createRequire as b}from"node:module";import{resolve as c,parse as P,isAbsolute as S,dirname as B}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import{FIND_UP_STOP as q}from"./F_OK-CAwY1qU7.js";const v=b(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,j=a(r=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,i]=s.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return s.getBuiltinModule(r)}return v(r)},"__cjs_getBuiltinModule"),{stat:A,lstat:T}=j("node:fs/promises");var M=Object.defineProperty,m=a((r,e)=>M(r,"name",{value:e,configurable:!0}),"s");const N=m(async(r,e={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const i=e.cwd?f(e.cwd):process.cwd();let t=c(i);const{root:u}=P(t),d=f(e.stopAt??u),g=c(t,d),l=e.type??"file",_=m(async function(n){return typeof r=="function"?[await r(n)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");e.allowSymlinks??=!0;const w=e.allowSymlinks?A:T;for(;t&&t!==g&&t!==u;){const n=await _(t);for(let o of n){if(o===q)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=f(o));const p=S(o)?o:c(t,o);try{const y=await w(p);if(l==="file"&&y.isFile()||l==="directory"&&y.isDirectory())return p}catch{}}t=B(t)}},"findUp");export{N as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var b=Object.defineProperty;var i=(e,t)=>b(e,"name",{value:t,configurable:!0});import{createRequire as h}from"node:module";import{resolve as c,parse as j,isAbsolute as T,dirname as P}from"@visulima/path";import{toPath as f}from"@visulima/path/utils";import{FIND_UP_STOP as B}from"./F_OK-CAwY1qU7.js";const v=h(import.meta.url),n=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,w=i(e=>{if(typeof n<"u"&&n.versions&&n.versions.node){const[t,s]=n.versions.node.split(".").map(Number);if(t>22||t===22&&s>=3||t===20&&s>=16)return n.getBuiltinModule(e)}return v(e)},"__cjs_getBuiltinModule"),{statSync:A,lstatSync:S}=w("node:fs");var q=Object.defineProperty,y=i((e,t)=>q(e,"name",{value:t,configurable:!0}),"o");const F=y((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const s=t.cwd?f(t.cwd):process.cwd();let r=c(s);const{root:a}=j(r),m=f(t.stopAt??a),d=c(r,m),u=t.type??"file",g=y(function(o){return typeof e=="function"?[e(o)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const _=t.allowSymlinks?A:S;for(;r&&r!==d&&r!==a;){for(let o of g(r)){if(o===B)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=f(o));const l=T(o)?o:c(r,o);try{const p=_(l);if(u==="file"&&p.isFile()||u==="directory"&&p.isDirectory())return l}catch{}}r=P(r)}},"findUpSync");export{F as default};
|
|
@@ -1657,4 +1657,4 @@ type WriteIniExtras = {
|
|
|
1657
1657
|
* whitespace and inline `;` / `#` comments) for unchanged values.
|
|
1658
1658
|
*/
|
|
1659
1659
|
type WriteIniOptions = IniEncodeOptions & WriteFileOptions & WriteIniExtras;
|
|
1660
|
-
export { CodeFrameLocation as A, FIND_UP_STOP as B,
|
|
1660
|
+
export { CodeFrameLocation as A, FIND_UP_STOP as B, CompressionType as C, F_OK as D, FindUpNameFnResult as E, FindUpName as F, GlobOptions as G, FindUpNameSyncFnResult as H, IniEncodeOptions as I, Json5Reviver as J, R_OK as K, ReadFileEncoding as L, W_OK as M, ReadJson5Options as R, WriteJson5Options as W, X_OK as X, YamlReviver as Y, Json5Replacer as a, ReadIniOptions as b, WriteIniOptions as c, IniLineEnding as d, ReadYamlOptions as e, WriteYamlOptions as f, JsonReplacer as g, YamlReplacer as h, ReadJsoncOptions as i, WriteJsoncOptions as j, JsoncFormattingOptions as k, JsoncParseOptions as l, CodeFrameOptions as m, JsonReviver as n, ReadTomlOptions as o, WriteTomlOptions as p, WalkOptions as q, FindUpOptions as r, FindUpNameSync as s, WalkEntry as t, ReadFileOptions as u, ContentType as v, ReadJsonOptions as w, RetryOptions as x, WriteFileOptions as y, WriteJsonOptions as z };
|
package/dist/toml.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { C as CompressionType, o as ReadTomlOptions, p as WriteTomlOptions } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
2
2
|
import 'node:fs';
|
|
3
3
|
import 'tinyglobby';
|
|
4
4
|
/**
|
package/dist/utils.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { J as JSONError } from "./packem_shared/json-error.d-DVILOyHc.js";
|
|
2
2
|
import { JsonValue } from 'type-fest';
|
|
3
|
-
import {
|
|
3
|
+
import { m as CodeFrameOptions, n as JsonReviver } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
4
4
|
export { toPath } from '@visulima/path/utils';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'tinyglobby';
|
package/dist/yaml.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type
|
|
1
|
+
import { C as CompressionType, e as ReadYamlOptions, Y as YamlReviver, f as WriteYamlOptions, g as JsonReplacer } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
2
|
+
export { type h as YamlReplacer } from "./packem_shared/types.d-B0eZSeBp.js";
|
|
3
3
|
import 'node:fs';
|
|
4
4
|
import 'tinyglobby';
|
|
5
5
|
declare function readYaml<R = Record<string, unknown>>(path: URL | string, options?: ReadYamlOptions<CompressionType>): Promise<R>;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var b=Object.defineProperty;var a=(r,e)=>b(r,"name",{value:e,configurable:!0});import{createRequire as v}from"node:module";import{resolve as c,parse as B,isAbsolute as R,dirname as S}from"@visulima/path";import{toPath as y}from"@visulima/path/utils";import{FIND_UP_STOP as U}from"./F_OK-CAwY1qU7.js";const T=v(import.meta.url),s=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,d=a(r=>{if(typeof s<"u"&&s.versions&&s.versions.node){const[e,i]=s.versions.node.split(".").map(Number);if(e>22||e===22&&i>=3||e===20&&i>=16)return s.getBuiltinModule(r)}return T(r)},"__cjs_getBuiltinModule"),{stat:j,lstat:A}=d("node:fs/promises"),{fileURLToPath:P}=d("node:url");var q=Object.defineProperty,m=a((r,e)=>q(r,"name",{value:e,configurable:!0}),"n");const N=m(async(r,e={})=>{if(typeof r!="string"&&!Array.isArray(r)&&typeof r!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const i=e.cwd?y(e.cwd):process.cwd();let t=c(i);const{root:f}=B(t),g=y(e.stopAt??f),_=c(t,g),u=e.type??"file",h=m(async function(n){return typeof r=="function"?[await r(n)]:typeof r=="string"?[r]:Array.isArray(r)?r:[r]},"getMatchers");e.allowSymlinks??=!0;const w=e.allowSymlinks?j:A;for(;t&&t!==_&&t!==f;){const n=await h(t);for(let o of n){if(o===U)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=P(o));const l=R(o)?o:c(t,o);try{const p=await w(l);if(u==="file"&&p.isFile()||u==="directory"&&p.isDirectory())return l}catch{}}t=S(t)}},"findUp");export{N as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var b=Object.defineProperty;var i=(e,t)=>b(e,"name",{value:t,configurable:!0});import{createRequire as v}from"node:module";import{resolve as c,parse as A,isAbsolute as P,dirname as B}from"@visulima/path";import{toPath as p}from"@visulima/path/utils";import{FIND_UP_STOP as R}from"./F_OK-CAwY1qU7.js";const w=v(import.meta.url),n=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,d=i(e=>{if(typeof n<"u"&&n.versions&&n.versions.node){const[t,s]=n.versions.node.split(".").map(Number);if(t>22||t===22&&s>=3||t===20&&s>=16)return n.getBuiltinModule(e)}return w(e)},"__cjs_getBuiltinModule"),{statSync:S,lstatSync:T}=d("node:fs"),{fileURLToPath:j}=d("node:url");var U=Object.defineProperty,y=i((e,t)=>U(e,"name",{value:t,configurable:!0}),"o");const F=y((e,t={})=>{if(typeof e!="string"&&!Array.isArray(e)&&typeof e!="function")throw new TypeError("The `name` argument must be of type `string` or `string[]`");const s=t.cwd?p(t.cwd):process.cwd();let r=c(s);const{root:f}=A(r),m=p(t.stopAt??f),g=c(r,m),a=t.type??"file",_=y(function(o){return typeof e=="function"?[e(o)]:typeof e=="string"?[e]:Array.isArray(e)?e:[e]},"getMatchers");t.allowSymlinks??=!0;const h=t.allowSymlinks?S:T;for(;r&&r!==g&&r!==f;){for(let o of _(r)){if(o===R)return;if(o===void 0)continue;Buffer.isBuffer(o)?o=o.toString():o instanceof URL&&(o=j(o));const u=P(o)?o:c(r,o);try{const l=h(u);if(a==="file"&&l.isFile()||a==="directory"&&l.isDirectory())return u}catch{}}r=B(r)}},"findUpSync");export{F as default};
|