@visulima/fs 5.0.0-alpha.7 → 5.0.0-alpha.8
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 +14 -0
- package/LICENSE.md +0 -125
- package/dist/index.js +4 -4
- package/dist/packem_shared/{collect-BnUYRrRI.js → collect-CqQ3eVab.js} +1 -1
- package/dist/packem_shared/{collectSync-D5G2RGDI.js → collectSync-noE08NNv.js} +1 -1
- package/dist/packem_shared/{walk-D5yHruvk.js → walk-CSZgCuDx.js} +10 -3
- package/dist/packem_shared/{walkSync-09nKPVw4.js → walkSync-C4Cy28xb.js} +10 -3
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## @visulima/fs [5.0.0-alpha.8](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.7...@visulima/fs@5.0.0-alpha.8) (2026-04-15)
|
|
2
|
+
|
|
3
|
+
### Bug Fixes
|
|
4
|
+
|
|
5
|
+
* **filesystem:** resolve eslint issues in fs, path, and find-cache-dir ([59ad5e3](https://github.com/visulima/visulima/commit/59ad5e3051e92365eb8b1fdd73d4f4fd1f4bb547))
|
|
6
|
+
* **fs:** narrow walk directory type and drop unsupported parseJson generic ([2f709ba](https://github.com/visulima/visulima/commit/2f709ba9aab0ca24d56a9a1bb0d10c35bbd7505a))
|
|
7
|
+
* **fs:** relax no-unsafe-* rules and remove stale disable comments ([d49d900](https://github.com/visulima/visulima/commit/d49d9002bf0e07b420833531a22490c088384509))
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
### Dependencies
|
|
11
|
+
|
|
12
|
+
* **@visulima/path:** upgraded to 3.0.0-alpha.9
|
|
13
|
+
* **@visulima/error:** upgraded to 6.0.0-alpha.9
|
|
14
|
+
|
|
1
15
|
## @visulima/fs [5.0.0-alpha.7](https://github.com/visulima/visulima/compare/@visulima/fs@5.0.0-alpha.6...@visulima/fs@5.0.0-alpha.7) (2026-04-08)
|
|
2
16
|
|
|
3
17
|
### Bug Fixes
|
package/LICENSE.md
CHANGED
|
@@ -61,131 +61,6 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
61
61
|
> MIT
|
|
62
62
|
>
|
|
63
63
|
> # Bundled dependencies:
|
|
64
|
-
> ## @visulima/path
|
|
65
|
-
> License: MIT
|
|
66
|
-
> By: Daniel Bannert
|
|
67
|
-
> Repository: git+https://github.com/visulima/visulima.git
|
|
68
|
-
>
|
|
69
|
-
> > MIT License
|
|
70
|
-
> >
|
|
71
|
-
> > Copyright (c) 2026 visulima
|
|
72
|
-
> >
|
|
73
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
74
|
-
> > of this software and associated documentation files (the "Software"), to deal
|
|
75
|
-
> > in the Software without restriction, including without limitation the rights
|
|
76
|
-
> > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
77
|
-
> > copies of the Software, and to permit persons to whom the Software is
|
|
78
|
-
> > furnished to do so, subject to the following conditions:
|
|
79
|
-
> >
|
|
80
|
-
> > The above copyright notice and this permission notice shall be included in all
|
|
81
|
-
> > copies or substantial portions of the Software.
|
|
82
|
-
> >
|
|
83
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
84
|
-
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
85
|
-
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
86
|
-
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
87
|
-
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
88
|
-
> > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
89
|
-
> > SOFTWARE.
|
|
90
|
-
> >
|
|
91
|
-
> > ---
|
|
92
|
-
> >
|
|
93
|
-
> > MIT License
|
|
94
|
-
> >
|
|
95
|
-
> > Copyright (c) Pooya Parsa <pooya@pi0.io> - Daniel Roe <daniel@roe.dev>
|
|
96
|
-
> >
|
|
97
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
98
|
-
> > of this software and associated documentation files (the "Software"), to deal
|
|
99
|
-
> > in the Software without restriction, including without limitation the rights
|
|
100
|
-
> > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
101
|
-
> > copies of the Software, and to permit persons to whom the Software is
|
|
102
|
-
> > furnished to do so, subject to the following conditions:
|
|
103
|
-
> >
|
|
104
|
-
> > The above copyright notice and this permission notice shall be included in all
|
|
105
|
-
> > copies or substantial portions of the Software.
|
|
106
|
-
> >
|
|
107
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
108
|
-
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
109
|
-
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
110
|
-
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
111
|
-
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
112
|
-
> > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
113
|
-
> > SOFTWARE.
|
|
114
|
-
> >
|
|
115
|
-
> > ---
|
|
116
|
-
> >
|
|
117
|
-
> > Copyright Joyent, Inc. and other Node contributors.
|
|
118
|
-
> >
|
|
119
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a
|
|
120
|
-
> > copy of this software and associated documentation files (the
|
|
121
|
-
> > "Software"), to deal in the Software without restriction, including
|
|
122
|
-
> > without limitation the rights to use, copy, modify, merge, publish,
|
|
123
|
-
> > distribute, sublicense, and/or sell copies of the Software, and to permit
|
|
124
|
-
> > persons to whom the Software is furnished to do so, subject to the
|
|
125
|
-
> > following conditions:
|
|
126
|
-
> >
|
|
127
|
-
> > The above copyright notice and this permission notice shall be included
|
|
128
|
-
> > in all copies or substantial portions of the Software.
|
|
129
|
-
> >
|
|
130
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
131
|
-
> > OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
132
|
-
> > MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
|
|
133
|
-
> > NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
|
|
134
|
-
> > DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
|
|
135
|
-
> > OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
|
|
136
|
-
> > USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
137
|
-
> >
|
|
138
|
-
> > ---
|
|
139
|
-
> >
|
|
140
|
-
> > Bundled zeptomatch (https://github.com/fabiospampinato/zeptomatch)
|
|
141
|
-
> >
|
|
142
|
-
> > The MIT License (MIT)
|
|
143
|
-
> >
|
|
144
|
-
> > Copyright (c) 2023-present Fabio Spampinato
|
|
145
|
-
> >
|
|
146
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a
|
|
147
|
-
> > copy of this software and associated documentation files (the "Software"),
|
|
148
|
-
> > to deal in the Software without restriction, including without limitation
|
|
149
|
-
> > the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
|
150
|
-
> > and/or sell copies of the Software, and to permit persons to whom the
|
|
151
|
-
> > Software is furnished to do so, subject to the following conditions:
|
|
152
|
-
> >
|
|
153
|
-
> > The above copyright notice and this permission notice shall be included in
|
|
154
|
-
> > all copies or substantial portions of the Software.
|
|
155
|
-
> >
|
|
156
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
157
|
-
> > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
158
|
-
> > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
159
|
-
> > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
160
|
-
> > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
|
161
|
-
> > FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
|
162
|
-
> > DEALINGS IN THE SOFTWARE.
|
|
163
|
-
> >
|
|
164
|
-
> >
|
|
165
|
-
> >
|
|
166
|
-
> > # Licenses of bundled dependencies
|
|
167
|
-
> > The published @visulima/path artifact additionally contains code with the following licenses:
|
|
168
|
-
> > MIT
|
|
169
|
-
> >
|
|
170
|
-
> > # Bundled dependencies:
|
|
171
|
-
> > ## binary-extensions
|
|
172
|
-
> > License: MIT
|
|
173
|
-
> > By: Sindre Sorhus
|
|
174
|
-
> > Repository: sindresorhus/binary-extensions
|
|
175
|
-
> >
|
|
176
|
-
> > > MIT License
|
|
177
|
-
> > >
|
|
178
|
-
> > > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
179
|
-
> > > Copyright (c) Paul Miller (https://paulmillr.com)
|
|
180
|
-
> > >
|
|
181
|
-
> > > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
182
|
-
> > >
|
|
183
|
-
> > > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
184
|
-
> > >
|
|
185
|
-
> > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
186
|
-
>
|
|
187
|
-
> ---------------------------------------
|
|
188
|
-
>
|
|
189
64
|
> ## is-plain-obj
|
|
190
65
|
> License: MIT
|
|
191
66
|
> By: Sindre Sorhus
|
package/dist/index.js
CHANGED
|
@@ -8,12 +8,12 @@ export { default as ensureLinkSync } from './packem_shared/ensureLinkSync-D9RVAg
|
|
|
8
8
|
export { default as ensureSymlink } from './packem_shared/ensureSymlink-CoRYDRwr.js';
|
|
9
9
|
export { default as ensureSymlinkSync } from './packem_shared/ensureSymlinkSync-CFimFlgh.js';
|
|
10
10
|
export { CRLF, EOL, LF, detect, format } from './eol.js';
|
|
11
|
-
export { default as collect } from './packem_shared/collect-
|
|
12
|
-
export { default as collectSync } from './packem_shared/collectSync-
|
|
11
|
+
export { default as collect } from './packem_shared/collect-CqQ3eVab.js';
|
|
12
|
+
export { default as collectSync } from './packem_shared/collectSync-noE08NNv.js';
|
|
13
13
|
export { default as findUp } from './packem_shared/findUp-YcNLKdfV.js';
|
|
14
14
|
export { default as findUpSync } from './packem_shared/findUpSync-BfA5fheN.js';
|
|
15
|
-
export { default as walk } from './packem_shared/walk-
|
|
16
|
-
export { default as walkSync } from './packem_shared/walkSync-
|
|
15
|
+
export { default as walk } from './packem_shared/walk-CSZgCuDx.js';
|
|
16
|
+
export { default as walkSync } from './packem_shared/walkSync-C4Cy28xb.js';
|
|
17
17
|
export { default as isAccessible } from './packem_shared/isAccessible-DuVrTNFV.js';
|
|
18
18
|
export { default as isAccessibleSync } from './packem_shared/isAccessibleSync-DI8mM0fA.js';
|
|
19
19
|
export { move, moveSync, rename, renameSync } from './packem_shared/move-DbpW5_vA.js';
|
|
@@ -54,9 +54,16 @@ async function* walk(directory, {
|
|
|
54
54
|
if (maxDepth < 0) {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
-
const mappedMatch = match ? match.map(
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
const mappedMatch = match ? match.map(
|
|
58
|
+
// eslint-disable-next-line no-confusing-arrow
|
|
59
|
+
(pattern) => typeof pattern === "string" ? globToRegExp(pattern) : pattern
|
|
60
|
+
) : void 0;
|
|
61
|
+
const mappedSkip = skip ? skip.map(
|
|
62
|
+
// eslint-disable-next-line no-confusing-arrow
|
|
63
|
+
(pattern) => typeof pattern === "string" ? globToRegExp(pattern) : pattern
|
|
64
|
+
) : void 0;
|
|
65
|
+
const resolvedDirectory = resolve(toPath(directory));
|
|
66
|
+
directory = resolvedDirectory;
|
|
60
67
|
if (includeDirectories && walkInclude(directory, extensions, mappedMatch, mappedSkip)) {
|
|
61
68
|
yield await _createWalkEntry(directory);
|
|
62
69
|
}
|
|
@@ -53,9 +53,16 @@ function* walkSync(directory, {
|
|
|
53
53
|
if (maxDepth < 0) {
|
|
54
54
|
return;
|
|
55
55
|
}
|
|
56
|
-
const mappedMatch = match ? match.map(
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
const mappedMatch = match ? match.map(
|
|
57
|
+
// eslint-disable-next-line no-confusing-arrow
|
|
58
|
+
(pattern) => typeof pattern === "string" ? globToRegExp(pattern) : pattern
|
|
59
|
+
) : void 0;
|
|
60
|
+
const mappedSkip = skip ? skip.map(
|
|
61
|
+
// eslint-disable-next-line no-confusing-arrow
|
|
62
|
+
(pattern) => typeof pattern === "string" ? globToRegExp(pattern) : pattern
|
|
63
|
+
) : void 0;
|
|
64
|
+
const resolvedDirectory = resolve(toPath(directory));
|
|
65
|
+
directory = resolvedDirectory;
|
|
59
66
|
if (includeDirectories && walkInclude(directory, extensions, mappedMatch, mappedSkip)) {
|
|
60
67
|
yield _createWalkEntry(directory);
|
|
61
68
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@visulima/fs",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.8",
|
|
4
4
|
"description": "Human friendly file system utilities for Node.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"anolilab",
|
|
@@ -113,7 +113,7 @@
|
|
|
113
113
|
"LICENSE.md"
|
|
114
114
|
],
|
|
115
115
|
"dependencies": {
|
|
116
|
-
"@visulima/path": "3.0.0-alpha.
|
|
116
|
+
"@visulima/path": "3.0.0-alpha.9",
|
|
117
117
|
"type-fest": "5.5.0"
|
|
118
118
|
},
|
|
119
119
|
"peerDependencies": {
|