@stream-io/video-filters-web 0.1.3 → 0.1.5

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
@@ -2,6 +2,20 @@
2
2
 
3
3
  This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
4
4
 
5
+ ## [0.1.5](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.4...@stream-io/video-filters-web-0.1.5) (2024-11-08)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * guard against null fenceSync ([#1565](https://github.com/GetStream/stream-video-js/issues/1565)) ([9a3ae38](https://github.com/GetStream/stream-video-js/commit/9a3ae385ebed5b7fd44855ed2a7b7fc01ac53792))
11
+
12
+ ## [0.1.4](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.3...@stream-io/video-filters-web-0.1.4) (2024-09-19)
13
+
14
+
15
+ ### Features
16
+
17
+ * React SDK cold-start optimizations ([#1488](https://github.com/GetStream/stream-video-js/issues/1488)) ([972e579](https://github.com/GetStream/stream-video-js/commit/972e5792b5a131a212b1031ade76dcb383897a46))
18
+
5
19
  ### [0.1.3](https://github.com/GetStream/stream-video-js/compare/@stream-io/video-filters-web-0.1.2...@stream-io/video-filters-web-0.1.3) (2024-07-02)
6
20
 
7
21
 
package/dist/index.cjs.js CHANGED
@@ -86,6 +86,8 @@ async function readPixelsAsync(gl, x, y, width, height, format, type, dest) {
86
86
  async function getBufferSubDataAsync(gl, target, buffer, srcByteOffset, dstBuffer, dstOffset, length) {
87
87
  const sync = gl.fenceSync(gl.SYNC_GPU_COMMANDS_COMPLETE, 0);
88
88
  gl.flush();
89
+ if (!sync)
90
+ return;
89
91
  const res = await clientWaitAsync(gl, sync);
90
92
  gl.deleteSync(sync);
91
93
  if (res !== gl.WAIT_FAILED) {
@@ -1031,7 +1033,7 @@ const createTFLiteSIMDModule = (__Module) => {
1031
1033
  }
1032
1034
 
1033
1035
  function getBinaryPromise() {
1034
- if (!wasmBinary && (ENVIRONMENT_IS_WEB )) {
1036
+ if (!wasmBinary && (ENVIRONMENT_IS_WEB)) {
1035
1037
  if (typeof fetch == 'function') {
1036
1038
  return fetch(wasmBinaryFile, { credentials: 'same-origin' })
1037
1039
  .then(function (response) {
@@ -1259,7 +1261,7 @@ const createTFLiteSIMDModule = (__Module) => {
1259
1261
  for (var i = 0; i < str.length; ++i) {
1260
1262
  HEAP8[buffer++ >> 0] = str.charCodeAt(i);
1261
1263
  }
1262
- if (!dontAddNull) HEAP8[buffer >> 0] = 0;
1264
+ HEAP8[buffer >> 0] = 0;
1263
1265
  }
1264
1266
 
1265
1267
  function _environ_get(__environ, environ_buf) {
@@ -1538,8 +1540,8 @@ const createTFLiteSIMDModule = (__Module) => {
1538
1540
  return __Module.ready;
1539
1541
  };
1540
1542
 
1541
- const version = "0.1.3" ;
1542
- const packageName = "@stream-io/video-filters-web" ;
1543
+ const version = "0.1.5";
1544
+ const packageName = "@stream-io/video-filters-web";
1543
1545
 
1544
1546
  // @ts-expect-error - module is not declared
1545
1547
  // This is a WebAssembly module compiled from the TensorFlow Lite C++ library.