@photostructure/fs-metadata 0.3.2 → 0.4.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 +17 -3
- package/README.md +3 -3
- package/dist/index.cjs +324 -215
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +329 -215
- package/dist/index.mjs.map +1 -1
- package/dist/types/debuglog.d.ts +2 -6
- package/dist/types/defer.d.ts +1 -2
- package/dist/types/dirname.d.ts +1 -0
- package/dist/types/hidden.d.ts +5 -42
- package/dist/types/index.d.ts +91 -2
- package/dist/types/linux/mount_points.d.ts +2 -2
- package/dist/types/linux/mtab.d.ts +2 -2
- package/dist/types/mount_point.d.ts +1 -46
- package/dist/types/object.d.ts +8 -3
- package/dist/types/options.d.ts +2 -48
- package/dist/types/platform.d.ts +1 -0
- package/dist/types/remote_info.d.ts +2 -34
- package/dist/types/stack_path.d.ts +2 -0
- package/dist/types/system_volume.d.ts +2 -2
- package/dist/types/types/hidden_metadata.d.ts +32 -0
- package/dist/types/types/mount_point.d.ts +46 -0
- package/dist/types/types/native_bindings.d.ts +3 -3
- package/dist/types/types/options.d.ts +47 -0
- package/dist/types/types/remote_info.d.ts +33 -0
- package/dist/types/types/volume_metadata.d.ts +46 -0
- package/dist/types/unc.d.ts +1 -1
- package/dist/types/units.d.ts +25 -3
- package/dist/types/volume_metadata.d.ts +4 -50
- package/dist/types/volume_mount_points.d.ts +3 -6
- package/jest.config.base.cjs +63 -0
- package/jest.config.cjs +3 -16
- package/package.json +13 -15
- package/prebuilds/darwin-arm64/@photostructure+fs-metadata.glibc.node +0 -0
- package/prebuilds/win32-x64/@photostructure+fs-metadata.glibc.node +0 -0
- package/src/async.ts +9 -0
- package/src/darwin/hidden.cpp +14 -0
- package/src/darwin/raii_utils.h +85 -0
- package/src/darwin/volume_metadata.cpp +35 -60
- package/src/darwin/volume_mount_points.cpp +31 -22
- package/src/debuglog.ts +6 -2
- package/src/defer.ts +1 -1
- package/src/dirname.ts +13 -0
- package/src/global.d.ts +1 -0
- package/src/hidden.ts +6 -42
- package/src/{exports.ts → index.ts} +75 -30
- package/src/linux/mount_points.ts +4 -2
- package/src/linux/mtab.ts +3 -3
- package/src/mount_point.ts +2 -53
- package/src/object.ts +8 -3
- package/src/options.ts +5 -54
- package/src/path.ts +12 -5
- package/src/platform.ts +5 -5
- package/src/remote_info.ts +44 -49
- package/src/stack_path.ts +71 -0
- package/src/system_volume.ts +3 -6
- package/src/test-utils/assert.ts +1 -1
- package/src/test-utils/debuglog-child.ts +15 -0
- package/src/types/hidden_metadata.ts +38 -0
- package/src/types/mount_point.ts +53 -0
- package/src/types/native_bindings.ts +3 -3
- package/src/types/options.ts +54 -0
- package/src/types/remote_info.ts +35 -0
- package/src/types/volume_metadata.ts +52 -0
- package/src/unc.ts +1 -1
- package/src/units.ts +39 -7
- package/src/volume_metadata.ts +9 -66
- package/src/volume_mount_points.ts +3 -6
- package/tsup.config.ts +1 -0
- package/dist/types/exports.d.ts +0 -99
- package/dist/types/setup.d.ts +0 -2
- package/src/index.cts +0 -15
- package/src/index.mts +0 -17
- package/src/setup.ts +0 -69
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,22 @@ Fixed for any bug fixes.
|
|
|
14
14
|
Security in case of vulnerabilities.
|
|
15
15
|
-->
|
|
16
16
|
|
|
17
|
+
## [0.4.0] - 2025-01-09
|
|
18
|
+
|
|
19
|
+
- `Fixed`: Switch to thread-safe `getmntinfo_r_np()` for macOS. Improved darwin resource management.
|
|
20
|
+
|
|
21
|
+
## [0.3.3] - 2025-01-08
|
|
22
|
+
|
|
23
|
+
- `Packaging`: Improved ESM/CJS support with common `__dirname` implementation thanks to `tsup` [shims](https://tsup.egoist.dev/#inject-cjs-and-esm-shims).
|
|
24
|
+
|
|
25
|
+
This change simplifies the implementation and improves inline jsdocs as the exported code and docs have been inlined.
|
|
26
|
+
|
|
27
|
+
- `Packaging`: Re-enabled test coverage assertions (after finding the magicks to get istanbul to see what the tests were exercising)
|
|
28
|
+
|
|
29
|
+
- `Packaging`: Added debuglog tests
|
|
30
|
+
|
|
31
|
+
- `Packaging`: Fixed `npm run watch`
|
|
32
|
+
|
|
17
33
|
## [0.3.2] - 2025-01-03
|
|
18
34
|
|
|
19
35
|
- `Fixed`: prior `canReaddir()` (and subsequent `status` of volume metadata) would incorrectly fail if the first directory element wasn't readable.
|
|
@@ -32,9 +48,7 @@ No public codepath updates.
|
|
|
32
48
|
|
|
33
49
|
## [0.3.0] - 2025-01-01
|
|
34
50
|
|
|
35
|
-
- `Changed`: For consistency,
|
|
36
|
-
[Options.systemFsTypes](https://photostructure.github.io/fs-metadata/interfaces/Options.html#systemfstypes)
|
|
37
|
-
is now a `string[]` (it was a `Set<string>`)
|
|
51
|
+
- `Changed`: For consistency, [Options.systemFsTypes](https://photostructure.github.io/fs-metadata/interfaces/Options.html#systemfstypes) is now a `string[]` (it was a `Set<string>`)
|
|
38
52
|
|
|
39
53
|
## [0.2.0] - 2025-01-01
|
|
40
54
|
|
package/README.md
CHANGED
|
@@ -14,9 +14,9 @@ Built and supported by [PhotoStructure](https://photostructure.com).
|
|
|
14
14
|
## Features
|
|
15
15
|
|
|
16
16
|
- Cross-platform support:
|
|
17
|
-
- Windows 10+ (x64
|
|
18
|
-
- macOS 14+
|
|
19
|
-
- Ubuntu 22+ (x64, arm64) (with Gnome GIO/`GVfs` mount support
|
|
17
|
+
- Windows 10+ (x64)
|
|
18
|
+
- macOS 14+
|
|
19
|
+
- Ubuntu 22+ (x64, arm64) (with Gnome GIO/`GVfs` mount support where available)
|
|
20
20
|
|
|
21
21
|
- [List all mounted volumes/drives](https://photostructure.github.io/fs-metadata/functions/getVolumeMountPoints.html)
|
|
22
22
|
|