@photostructure/fs-metadata 1.2.0 → 1.3.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
@@ -14,6 +14,12 @@ Fixed for any bug fixes.
14
14
  Security in case of vulnerabilities.
15
15
  -->
16
16
 
17
+ ## 1.3.0 - 2026-03-26
18
+
19
+ ### Added
20
+
21
+ - New optional `mountPoints` field on `Options`: pass pre-fetched mount points to `getMountPointForPath()` and `getVolumeMetadataForPath()` to avoid redundant system queries when resolving multiple paths. Obtain via `getVolumeMountPoints({ includeSystemVolumes: true })`.
22
+
17
23
  ## 1.2.0 - 2026-03-26
18
24
 
19
25
  ### Added
package/dist/index.cjs CHANGED
@@ -1502,7 +1502,7 @@ async function getVolumeMetadataForPathImpl(pathname, opts, nativeFn2) {
1502
1502
  }
1503
1503
  async function findMountPointByDeviceId(resolved, resolvedStat, opts, nativeFn2) {
1504
1504
  const targetDev = resolvedStat.dev;
1505
- const mountPoints = await getVolumeMountPointsImpl(
1505
+ const mountPoints = opts.mountPoints ?? await getVolumeMountPointsImpl(
1506
1506
  { ...opts, includeSystemVolumes: true },
1507
1507
  nativeFn2
1508
1508
  );