@photostructure/fs-metadata 1.4.1 → 2.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 +23 -0
- package/CLAUDE.md +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +16 -13
- package/prebuilds/darwin-arm64/@photostructure+fs-metadata.glibc.node +0 -0
- package/prebuilds/darwin-x64/@photostructure+fs-metadata.glibc.node +0 -0
- package/prebuilds/win32-arm64/@photostructure+fs-metadata.glibc.node +0 -0
- package/prebuilds/win32-x64/@photostructure+fs-metadata.glibc.node +0 -0
- package/scripts/post-build.mjs +13 -4
- package/scripts/prebuildify-wrapper.ts +13 -4
- package/scripts/precommit.ts +4 -0
- package/src/common/metadata_worker.h +2 -1
- package/src/common/shutdown.h +4 -6
- package/src/fs.ts +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -14,6 +14,29 @@ Fixed for any bug fixes.
|
|
|
14
14
|
Security in case of vulnerabilities.
|
|
15
15
|
-->
|
|
16
16
|
|
|
17
|
+
## 2.0.0 - 2026-06-03
|
|
18
|
+
|
|
19
|
+
### Changed
|
|
20
|
+
|
|
21
|
+
- **BREAKING: Minimum supported Node.js raised to v22.** `engines.node` is now
|
|
22
|
+
`>=22` (previously `>=20.0.0`). Node.js 20 and 21 are no longer supported. The
|
|
23
|
+
supported matrix is now Node.js 22, 24, and 26. This drop is what makes the
|
|
24
|
+
release a major version; there are no breaking changes to the public runtime
|
|
25
|
+
API.
|
|
26
|
+
|
|
27
|
+
- **Dual type declarations for ESM and CommonJS.** The build now emits separate
|
|
28
|
+
`index.d.cts` and `index.d.mts` declaration files, and the package `exports`
|
|
29
|
+
map points each module system at its matching types. This fixes type
|
|
30
|
+
resolution under `"moduleResolution": "node16"`/`"nodenext"` consumers. The
|
|
31
|
+
build is now verified with [`@arethetypeswrong/cli`](https://arethetypeswrong.github.io/),
|
|
32
|
+
and dual-declaration generation plus export checks (`check:exports`) run as
|
|
33
|
+
part of the precommit/lint pipeline.
|
|
34
|
+
|
|
35
|
+
### Fixed
|
|
36
|
+
|
|
37
|
+
- **`statAsync` now passes `throwIfNoEntry`** to comply with the updated Node.js
|
|
38
|
+
`fs.stat` signature, avoiding a deprecation/typing mismatch on newer runtimes.
|
|
39
|
+
|
|
17
40
|
## 1.4.1 - 2026-04-27
|
|
18
41
|
|
|
19
42
|
### Fixed
|
package/CLAUDE.md
CHANGED
|
@@ -42,7 +42,7 @@ Use `_dirname()` from `./dirname` instead of `__dirname` - works in both CommonJ
|
|
|
42
42
|
|
|
43
43
|
### Node.js Version Compatibility
|
|
44
44
|
|
|
45
|
-
Jest 30 doesn't support Node.js 23. Use Node.js
|
|
45
|
+
Jest 30 doesn't support Node.js 23. Use Node.js 22, 24, or 26.
|
|
46
46
|
|
|
47
47
|
## System Volume Detection
|
|
48
48
|
|