@remotion/gif 4.0.483 → 4.0.484

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.
@@ -35,6 +35,14 @@ exports.GifForDevelopment = (0, react_1.forwardRef)(({ src, width, height, onErr
35
35
  currentOnLoad.current = onLoad;
36
36
  currentOnError.current = onError;
37
37
  (0, react_1.useEffect)(() => {
38
+ var _a;
39
+ var _b;
40
+ const parsedGif = (_b = gif_cache_1.volatileGifCache.get(cacheKey)) !== null && _b !== void 0 ? _b : gif_cache_1.manuallyManagedGifCache.get(cacheKey);
41
+ if (parsedGif !== undefined) {
42
+ update(parsedGif);
43
+ (_a = currentOnLoad.current) === null || _a === void 0 ? void 0 : _a.call(currentOnLoad, parsedGif);
44
+ return;
45
+ }
38
46
  let done = false;
39
47
  let aborted = false;
40
48
  const { prom, cancel } = (0, react_tools_1.parseWithWorker)({
@@ -1249,6 +1249,12 @@ var GifForDevelopment = forwardRef2(({
1249
1249
  currentOnLoad.current = onLoad;
1250
1250
  currentOnError.current = onError;
1251
1251
  useEffect3(() => {
1252
+ const parsedGif = volatileGifCache.get(cacheKey) ?? manuallyManagedGifCache.get(cacheKey);
1253
+ if (parsedGif !== undefined) {
1254
+ update(parsedGif);
1255
+ currentOnLoad.current?.(parsedGif);
1256
+ return;
1257
+ }
1252
1258
  let done = false;
1253
1259
  let aborted = false;
1254
1260
  const { prom, cancel } = parseWithWorker({
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/gif"
4
4
  },
5
5
  "name": "@remotion/gif",
6
- "version": "4.0.483",
6
+ "version": "4.0.484",
7
7
  "description": "Embed GIFs in a Remotion video",
8
8
  "bugs": {
9
9
  "url": "https://github.com/remotion-dev/remotion/issues"
@@ -30,7 +30,7 @@
30
30
  }
31
31
  },
32
32
  "dependencies": {
33
- "remotion": "4.0.483"
33
+ "remotion": "4.0.484"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@testing-library/react": "16.1.0",
@@ -38,7 +38,7 @@
38
38
  "react": "19.2.3",
39
39
  "react-dom": "19.2.3",
40
40
  "webpack": "5.105.0",
41
- "@remotion/eslint-config-internal": "4.0.483",
41
+ "@remotion/eslint-config-internal": "4.0.484",
42
42
  "eslint": "9.19.0",
43
43
  "@typescript/native-preview": "7.0.0-dev.20260217.1"
44
44
  },