@vizzly-testing/honeydiff 0.4.2 → 0.4.3
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 +12 -0
- package/index.js +3 -3
- package/package.json +7 -1
- package/platforms/index-aarch64-apple-darwin.node +0 -0
- package/platforms/index-aarch64-unknown-linux-gnu.node +0 -0
- package/platforms/index-x86_64-pc-windows-msvc.node +0 -0
- package/platforms/index-x86_64-unknown-linux-gnu.node +0 -0
- /package/{load-platform.js → load-platform.cjs} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.4.3] - 2025-12-01
|
|
9
|
+
|
|
10
|
+
## What's Changed
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
- Fixed ESM module loading error by renaming platform loader to `.cjs` extension. The package uses `"type": "module"` in package.json, which caused Node.js to incorrectly treat the CommonJS platform loader as ESM, resulting in import errors. The loader now uses the correct `.cjs` extension.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
- Updated Windows build infrastructure to use Blacksmith runners for improved performance
|
|
17
|
+
|
|
18
|
+
**Full Changelog**: https://github.com/vizzly-testing/honeydiff/compare/v0.4.2...v0.4.3
|
|
19
|
+
|
|
8
20
|
## [0.4.2] - 2025-12-01
|
|
9
21
|
|
|
10
22
|
## What's Changed
|
package/index.js
CHANGED
|
@@ -13,12 +13,12 @@ const __dirname = dirname(fileURLToPath(import.meta.url));
|
|
|
13
13
|
let addon;
|
|
14
14
|
|
|
15
15
|
// Try to load the native addon:
|
|
16
|
-
// 1. First try load-platform.
|
|
16
|
+
// 1. First try load-platform.cjs (exists in published npm package with multi-platform binaries)
|
|
17
17
|
// 2. Fall back to index.node (exists in local development builds)
|
|
18
|
-
const platformLoaderPath = join(__dirname, 'load-platform.
|
|
18
|
+
const platformLoaderPath = join(__dirname, 'load-platform.cjs');
|
|
19
19
|
|
|
20
20
|
if (existsSync(platformLoaderPath)) {
|
|
21
|
-
// Published package: use platform-specific loader
|
|
21
|
+
// Published package: use platform-specific loader (CommonJS)
|
|
22
22
|
addon = require(platformLoaderPath);
|
|
23
23
|
} else {
|
|
24
24
|
// Local development: use directly built index.node
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vizzly-testing/honeydiff",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.3",
|
|
4
4
|
"description": "High-performance image diffing for Node.js - Native bindings to Honeydiff Rust library",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -57,6 +57,12 @@
|
|
|
57
57
|
"load-platform.js",
|
|
58
58
|
"platforms/*.node",
|
|
59
59
|
"README.md",
|
|
60
|
+
"CHANGELOG.md",
|
|
61
|
+
"index.js",
|
|
62
|
+
"index.d.ts",
|
|
63
|
+
"load-platform.cjs",
|
|
64
|
+
"platforms/*.node",
|
|
65
|
+
"README.md",
|
|
60
66
|
"CHANGELOG.md"
|
|
61
67
|
],
|
|
62
68
|
"engines": {
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
File without changes
|