@stream-io/video-filters-web 0.1.4 → 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,13 @@
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
+
5
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)
6
13
 
7
14
 
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) {
@@ -1538,7 +1540,7 @@ const createTFLiteSIMDModule = (__Module) => {
1538
1540
  return __Module.ready;
1539
1541
  };
1540
1542
 
1541
- const version = "0.1.4";
1543
+ const version = "0.1.5";
1542
1544
  const packageName = "@stream-io/video-filters-web";
1543
1545
 
1544
1546
  // @ts-expect-error - module is not declared