@ningh-o/opencv-js 4.10.0-default.1 → 4.11.0-core.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.

Potentially problematic release.


This version of @ningh-o/opencv-js might be problematic. Click here for more details.

package/README.md CHANGED
@@ -1,25 +1,19 @@
1
1
  # @ningh-o/opencv-js
2
2
 
3
- Self-built [OpenCV.js](https://docs.opencv.org/4.10.0/) 4.10.0 (default variant), packaged for npm by the [opencv-js build pipeline](https://github.com/ningh-o/opencv-js).
3
+ Self-built [OpenCV.js](https://docs.opencv.org/4.11.0/) 4.11.0 (core variant), packaged for npm by the [opencv-js build pipeline](https://github.com/ningh-o/opencv-js).
4
4
 
5
5
  ## Usage
6
6
 
7
7
  ```js
8
- import cvModule from "@ningh-o/opencv-js";
9
- // The package exports a Promise that resolves to the initialized module:
10
- const cv = await cvModule;
11
- console.log(cv.getBuildInformation());
12
- ```
13
-
14
- CommonJS: `require("@ningh-o/opencv-js")` returns the same Promise:
8
+ import cv from "@ningh-o/opencv-js";
9
+ // or: const cv = require("@ningh-o/opencv-js");
15
10
 
16
- ```js
17
- const cvModule = require("@ningh-o/opencv-js");
18
- cvModule.then((cv) => console.log(cv.getBuildInformation()));
11
+ // OpenCV.js initializes asynchronously:
12
+ await new Promise((resolve) => { cv.onRuntimeInitialized = resolve; });
13
+ console.log(cv.getBuildInformation());
19
14
  ```
20
15
 
21
- - OpenCV version: **4.10.0**
22
- - Variant: **default**
16
+ - OpenCV version: **4.11.0**
17
+ - Variant: **core**
23
18
  - Built with Emscripten from the official OpenCV sources (WebAssembly + SIMD).
24
- - TypeScript declarations included (`index.d.ts`).
25
19
  - License: Apache-2.0 (see LICENSE).
package/opencv.js CHANGED
Binary file
package/package.json CHANGED
@@ -1,12 +1,10 @@
1
1
  {
2
2
  "name": "@ningh-o/opencv-js",
3
- "version": "4.10.0-default.1",
4
- "description": "OpenCV.js 4.10.0 (default variant) — WebAssembly build of OpenCV for JavaScript",
3
+ "version": "4.11.0-core.0",
4
+ "description": "OpenCV.js 4.11.0 (core variant) — WebAssembly build of OpenCV for JavaScript",
5
5
  "main": "./opencv.js",
6
- "types": "./index.d.ts",
7
6
  "files": [
8
7
  "opencv.js",
9
- "index.d.ts",
10
8
  "LICENSE",
11
9
  "README.md"
12
10
  ],