@visulima/fs 5.1.0 → 6.0.0

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 CHANGED
@@ -1,3 +1,11 @@
1
+ ## @visulima/fs [6.0.0](https://github.com/visulima/visulima/compare/%40visulima%2Ffs%405.1.0...%40visulima%2Ffs%406.0.0) (2026-08-08)
2
+
3
+
4
+ ### Dependencies
5
+
6
+ * **@visulima/path:** upgraded to 4.0.0
7
+ * **@visulima/yaml:** upgraded to 1.0.0
8
+
1
9
  ## @visulima/fs [5.1.0](https://github.com/visulima/visulima/compare/%40visulima%2Ffs%405.0.11...%40visulima%2Ffs%405.1.0) (2026-08-02)
2
10
 
3
11
 
package/LICENSE.md CHANGED
@@ -312,9 +312,41 @@ Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
312
312
 
313
313
  # Licenses of bundled types
314
314
  The published @visulima/fs artifact additionally contains code with the following licenses:
315
- ISC, MIT
315
+ MIT
316
316
 
317
317
  # Bundled types:
318
+ ## @visulima/yaml
319
+ License: MIT
320
+ By: Daniel Bannert
321
+ Repository: git+https://github.com/visulima/visulima.git
322
+
323
+ > MIT License
324
+ >
325
+ > Copyright (c) 2026 visulima
326
+ >
327
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
328
+ > of this software and associated documentation files (the "Software"), to deal
329
+ > in the Software without restriction, including without limitation the rights
330
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
331
+ > copies of the Software, and to permit persons to whom the Software is
332
+ > furnished to do so, subject to the following conditions:
333
+ >
334
+ > The above copyright notice and this permission notice shall be included in all
335
+ > copies or substantial portions of the Software.
336
+ >
337
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
338
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
339
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
340
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
341
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
342
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
343
+ > SOFTWARE.
344
+ >
345
+ > <!-- DEPENDENCIES -->
346
+ > <!-- /DEPENDENCIES -->
347
+
348
+ ---------------------------------------
349
+
318
350
  ## is-fs-case-sensitive
319
351
  License: MIT
320
352
  By: Hiroki Osame
@@ -371,25 +403,4 @@ Repository: git+https://github.com/SuperchupuDev/tinyglobby.git
371
403
  > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
372
404
  > SOFTWARE.
373
405
 
374
- ---------------------------------------
375
-
376
- ## yaml
377
- License: ISC
378
- By: Eemeli Aro
379
- Repository: github:eemeli/yaml
380
-
381
- > Copyright Eemeli Aro <eemeli@gmail.com>
382
- >
383
- > Permission to use, copy, modify, and/or distribute this software for any purpose
384
- > with or without fee is hereby granted, provided that the above copyright notice
385
- > and this permission notice appear in all copies.
386
- >
387
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
388
- > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
389
- > FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
390
- > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
391
- > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
392
- > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
393
- > THIS SOFTWARE.
394
-
395
406
  <!-- /TYPE_DEPENDENCIES -->
package/README.md CHANGED
@@ -48,28 +48,28 @@ yarn add @visulima/fs
48
48
  pnpm add @visulima/fs
49
49
  ```
50
50
 
51
- > **Note:** If you want to parse or write YAML, you'll need to install `yaml` as well.
51
+ > **Note:** If you want to parse or write YAML, you'll need to install `@visulima/yaml` as well.
52
52
 
53
53
  ```sh
54
- npm install yaml
54
+ npm install @visulima/yaml
55
55
  ```
56
56
 
57
57
  ```sh
58
- yarn add yaml
58
+ yarn add @visulima/yaml
59
59
  ```
60
60
 
61
61
  ```sh
62
- pnpm add yaml
62
+ pnpm add @visulima/yaml
63
63
  ```
64
64
 
65
- > After installing `yaml`, you can use the `readYaml`, `readYamlSync` and `writeYaml`, `writeYamlSync` functions from `@visulima/fs/yaml`.
65
+ > After installing `@visulima/yaml`, you can use the `readYaml`, `readYamlSync` and `writeYaml`, `writeYamlSync` functions from `@visulima/fs/yaml`.
66
66
 
67
67
  ## Usage
68
68
 
69
69
  ### Quickstart by subpath
70
70
 
71
71
  `@visulima/fs` ships one entry per concern. Import from the narrowest subpath you
72
- need so the optional parser peers (`yaml`, `smol-toml`, `jsonc-parser`, `json5`,
72
+ need so the optional parser peers (`@visulima/yaml`, `smol-toml`, `jsonc-parser`, `json5`,
73
73
  `ini`) stay tree-shaken.
74
74
 
75
75
  ```typescript
package/dist/glob.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-0UK6O_wZ.js";
2
- export type { G as GlobOptions } from "./packem_shared/types.d-C-RhhzcS.js";
1
+ export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-SlQXhcIG.js";
2
+ export type { G as GlobOptions } from "./packem_shared/types.d-CgCO6qUp.js";
3
3
  import 'node:fs';
4
4
  import 'fdir';
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, l as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-C-RhhzcS.js";
2
- export { type A as CodeFrameLocation, type k as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type o as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-C-RhhzcS.js";
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, l as JsonReviver, x as RetryOptions, y as WriteFileOptions, z as WriteJsonOptions } from "./packem_shared/types.d-CgCO6qUp.js";
2
+ export { type A as CodeFrameLocation, type k as CodeFrameOptions, B as FIND_UP_STOP, D as F_OK, type E as FindUpNameFnResult, type H as FindUpNameSyncFnResult, type G as GlobOptions, type o as JsonReplacer, K as R_OK, type L as ReadFileEncoding, M as W_OK, X as X_OK } from "./packem_shared/types.d-CgCO6qUp.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-0UK6O_wZ.js";
5
+ export { g as glob, a as globSync } from "./packem_shared/glob-sync.d-SlQXhcIG.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/ini.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CompressionType, R as ReadIniOptions, W as WriteIniOptions } from "./packem_shared/types.d-C-RhhzcS.js";
2
- export type { I as IniEncodeOptions, a as IniLineEnding } from "./packem_shared/types.d-C-RhhzcS.js";
1
+ import { C as CompressionType, R as ReadIniOptions, W as WriteIniOptions } from "./packem_shared/types.d-CgCO6qUp.js";
2
+ export type { I as IniEncodeOptions, a as IniLineEnding } from "./packem_shared/types.d-CgCO6qUp.js";
3
3
  import 'node:fs';
4
4
  import 'fdir';
5
5
  /**
package/dist/json5.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { C as CompressionType, b as ReadJson5Options, J as Json5Reviver, c as WriteJson5Options } from "./packem_shared/types.d-C-RhhzcS.js";
2
- export type { d as Json5Replacer } from "./packem_shared/types.d-C-RhhzcS.js";
1
+ import { C as CompressionType, b as ReadJson5Options, J as Json5Reviver, c as WriteJson5Options } from "./packem_shared/types.d-CgCO6qUp.js";
2
+ export type { d as Json5Replacer } from "./packem_shared/types.d-CgCO6qUp.js";
3
3
  import 'node:fs';
4
4
  import 'fdir';
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 { C as CompressionType, e as ReadJsoncOptions, f as WriteJsoncOptions } from "./packem_shared/types.d-C-RhhzcS.js";
2
- export type { g as JsoncFormattingOptions, h as JsoncParseOptions } from "./packem_shared/types.d-C-RhhzcS.js";
1
+ import { C as CompressionType, e as ReadJsoncOptions, f as WriteJsoncOptions } from "./packem_shared/types.d-CgCO6qUp.js";
2
+ export type { g as JsoncFormattingOptions, h as JsoncParseOptions } from "./packem_shared/types.d-CgCO6qUp.js";
3
3
  import 'node:fs';
4
4
  import 'fdir';
5
5
  /**
@@ -1,4 +1,4 @@
1
- import { G as GlobOptions } from "./types.d-C-RhhzcS.js";
1
+ import { G as GlobOptions } from "./types.d-CgCO6qUp.js";
2
2
  /**
3
3
  * Asynchronously matches files on disk using one or more glob patterns.
4
4
  *
@@ -0,0 +1 @@
1
+ import{parse as t}from"@visulima/yaml";import u from"./readFile-VgxUDrNH.js";async function g(n,o,f){const i=(typeof o=="function"?f:o??f)??{},{buffer:a,compression:c,encoding:p="utf8",flag:s,...e}=i,r=await u(n,{buffer:a,compression:c,encoding:p,flag:s});return typeof o=="function"?t(r,o,e):t(r,e)}export{g as default};
@@ -0,0 +1 @@
1
+ import{parse as t}from"@visulima/yaml";import s from"./readFileSync-CloFeQw8.js";function g(n,o,f){const c=(typeof o=="function"?f:o??f)??{},{buffer:i,compression:p,encoding:u="utf8",flag:m,...e}=c,r=s(n,{buffer:i,compression:p,encoding:u,flag:m});return typeof o=="function"?t(r,o,e):t(r,e)}export{g as default};