remotion 4.0.149 → 4.0.150

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/bundle.ts CHANGED
@@ -1,4 +1,17 @@
1
- import {build} from 'bun';
1
+ import {build, revision} from 'bun';
2
+
3
+ if (process.env.NODE_ENV !== 'production') {
4
+ throw new Error('This script must be run using NODE_ENV=production');
5
+ }
6
+
7
+ if (!revision.startsWith('07ce')) {
8
+ // eslint-disable-next-line no-console
9
+ console.warn('warn: Remotion currently uses a fork of Bun to bundle.');
10
+ // eslint-disable-next-line no-console
11
+ console.log(
12
+ 'You dont currently run the fork, this could lead to duplicate key warnings in React.',
13
+ );
14
+ }
2
15
 
3
16
  const output = await build({
4
17
  entrypoints: ['src/index.ts'],
@@ -8,10 +21,7 @@ const output = await build({
8
21
  });
9
22
 
10
23
  const [file] = output.outputs;
11
- const text = (await file.text())
12
- .replace(/jsxDEV/g, 'jsx')
13
- .replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
14
-
24
+ const text = await file.text();
15
25
  await Bun.write('dist/esm/index.mjs', text);
16
26
 
17
27
  const versionOutput = await build({
@@ -3,4 +3,4 @@
3
3
  * @see [Documentation](https://remotion.dev/docs/version)
4
4
  * @returns {string} The current version of the remotion package
5
5
  */
6
- export declare const VERSION = "4.0.149";
6
+ export declare const VERSION = "4.0.150";
@@ -7,4 +7,4 @@ exports.VERSION = void 0;
7
7
  * @see [Documentation](https://remotion.dev/docs/version)
8
8
  * @returns {string} The current version of the remotion package
9
9
  */
10
- exports.VERSION = '4.0.149';
10
+ exports.VERSION = '4.0.150';
@@ -45,6 +45,7 @@ export type OffthreadVideoProps = {
45
45
  toneMapped?: boolean;
46
46
  pauseWhenBuffering?: boolean;
47
47
  loopVolumeCurveBehavior?: LoopVolumeCurveBehavior;
48
+ delayRenderTimeoutInMilliseconds?: number;
48
49
  /**
49
50
  * @deprecated For internal use only
50
51
  */
@@ -43,7 +43,7 @@ var NativeLayersProvider = ({
43
43
  return jsx(NativeLayersContext.Provider, {
44
44
  value: context,
45
45
  children
46
- }, undefined, false, undefined, this);
46
+ });
47
47
  };
48
48
 
49
49
  // src/Clipper.tsx
@@ -120,7 +120,7 @@ var IsPlayerContextProvider = ({
120
120
  return jsx2(IsPlayerContext.Provider, {
121
121
  value: true,
122
122
  children
123
- }, undefined, false, undefined, this);
123
+ });
124
124
  };
125
125
  var useIsPlayer = () => {
126
126
  return useContext2(IsPlayerContext);
@@ -132,7 +132,7 @@ function truthy(value) {
132
132
  }
133
133
 
134
134
  // src/version.ts
135
- var VERSION = "4.0.149";
135
+ var VERSION = "4.0.150";
136
136
 
137
137
  // src/multiple-versions-warning.ts
138
138
  var checkMultipleRemotionVersions = () => {
@@ -210,7 +210,7 @@ var AbsoluteFillRefForwarding = (props, ref) => {
210
210
  ref,
211
211
  style: actualStyle,
212
212
  ...other
213
- }, undefined, false, undefined, this);
213
+ });
214
214
  };
215
215
  var AbsoluteFill = forwardRef(AbsoluteFillRefForwarding);
216
216
 
@@ -267,8 +267,8 @@ var SequenceManagerProvider = ({ children }) => {
267
267
  children: jsx4(SequenceVisibilityToggleContext.Provider, {
268
268
  value: hiddenContext,
269
269
  children
270
- }, undefined, false, undefined, this)
271
- }, undefined, false, undefined, this);
270
+ })
271
+ });
272
272
  };
273
273
 
274
274
  // src/nonce.ts
@@ -421,7 +421,7 @@ var EditorPropsProvider = ({ children }) => {
421
421
  return jsx5(EditorPropsContext.Provider, {
422
422
  value: ctx,
423
423
  children
424
- }, undefined, false, undefined, this);
424
+ });
425
425
  };
426
426
 
427
427
  // src/static-file.ts
@@ -847,7 +847,7 @@ var ResolveCompositionConfig = ({ children }) => {
847
847
  return jsx6(ResolveCompositionContext.Provider, {
848
848
  value: resolvedConfigsIncludingStaticOnes,
849
849
  children
850
- }, undefined, false, undefined, this);
850
+ });
851
851
  };
852
852
  var useResolvedVideoConfig = (preferredCompositionId) => {
853
853
  const context = useContext5(ResolveCompositionContext);
@@ -1014,7 +1014,7 @@ var CanUseRemotionHooksProvider = ({ children }) => {
1014
1014
  return jsx7(CanUseRemotionHooks.Provider, {
1015
1015
  value: true,
1016
1016
  children
1017
- }, undefined, false, undefined, this);
1017
+ });
1018
1018
  };
1019
1019
 
1020
1020
  // src/use-unsafe-video-config.ts
@@ -1144,7 +1144,7 @@ var Freeze = ({
1144
1144
  return jsx8(TimelineContext.Provider, {
1145
1145
  value: timelineValue,
1146
1146
  children
1147
- }, undefined, false, undefined, this);
1147
+ });
1148
1148
  };
1149
1149
 
1150
1150
  // src/Sequence.tsx
@@ -1284,8 +1284,8 @@ var RegularSequenceRefForwardingFunction = ({
1284
1284
  style: defaultStyle,
1285
1285
  className: other.className,
1286
1286
  children: content
1287
- }, undefined, false, undefined, this)
1288
- }, undefined, false, undefined, this);
1287
+ })
1288
+ });
1289
1289
  };
1290
1290
  var RegularSequence = forwardRef2(RegularSequenceRefForwardingFunction);
1291
1291
  var PremountedSequenceRefForwardingFunction = (props, ref) => {
@@ -1318,8 +1318,8 @@ var PremountedSequenceRefForwardingFunction = (props, ref) => {
1318
1318
  _remotionInternalPremountDisplay: premountFor,
1319
1319
  _remotionInternalIsPremounting: premountingActive,
1320
1320
  ...otherProps
1321
- }, undefined, false, undefined, this)
1322
- }, undefined, false, undefined, this);
1321
+ })
1322
+ });
1323
1323
  };
1324
1324
  var PremountedSequence = forwardRef2(PremountedSequenceRefForwardingFunction);
1325
1325
  var SequenceRefForwardingFunction = (props, ref) => {
@@ -1327,12 +1327,12 @@ var SequenceRefForwardingFunction = (props, ref) => {
1327
1327
  return jsx9(PremountedSequence, {
1328
1328
  ...props,
1329
1329
  ref
1330
- }, undefined, false, undefined, this);
1330
+ });
1331
1331
  }
1332
1332
  return jsx9(RegularSequence, {
1333
1333
  ...props,
1334
1334
  ref
1335
- }, undefined, false, undefined, this);
1335
+ });
1336
1336
  };
1337
1337
  var Sequence = forwardRef2(SequenceRefForwardingFunction);
1338
1338
  // src/audio/Audio.tsx
@@ -1454,8 +1454,8 @@ var Loop = ({ durationInFrames, times = Infinity, children, name, ...props }) =>
1454
1454
  layout: props.layout,
1455
1455
  style,
1456
1456
  children
1457
- }, undefined, false, undefined, this)
1458
- }, undefined, false, undefined, this);
1457
+ })
1458
+ });
1459
1459
  };
1460
1460
  Loop.useLoop = useLoop;
1461
1461
 
@@ -1488,7 +1488,7 @@ var PrefetchProvider = ({ children }) => {
1488
1488
  return jsx11(PreloadContext.Provider, {
1489
1489
  value: _preloads,
1490
1490
  children
1491
- }, undefined, false, undefined, this);
1491
+ });
1492
1492
  };
1493
1493
 
1494
1494
  // src/prefetch.ts
@@ -1715,7 +1715,7 @@ var DurationsContextProvider = ({ children }) => {
1715
1715
  return jsx12(DurationsContext.Provider, {
1716
1716
  value,
1717
1717
  children
1718
- }, undefined, false, undefined, this);
1718
+ });
1719
1719
  };
1720
1720
 
1721
1721
  // src/audio/AudioForPreview.tsx
@@ -1820,7 +1820,7 @@ var BufferingProvider = ({ children }) => {
1820
1820
  return jsx13(BufferingContextReact.Provider, {
1821
1821
  value: bufferManager,
1822
1822
  children
1823
- }, undefined, false, undefined, this);
1823
+ });
1824
1824
  };
1825
1825
 
1826
1826
  // src/use-buffer-state.ts
@@ -2546,7 +2546,8 @@ useRef as useRef4,
2546
2546
  useState as useState10
2547
2547
  } from "react";
2548
2548
  import {
2549
- jsx as jsx14
2549
+ jsx as jsx14,
2550
+ jsxs
2550
2551
  } from "react/jsx-runtime";
2551
2552
  var EMPTY_AUDIO = "data:audio/mp3;base64,/+MYxAAJcAV8AAgAABn//////+/gQ5BAMA+D4Pg+BAQBAEAwD4Pg+D4EBAEAQDAPg++hYBH///hUFQVBUFREDQNHmf///////+MYxBUGkAGIMAAAAP/29Xt6lUxBTUUzLjEwMFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV/+MYxDUAAANIAAAAAFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVV";
2552
2553
  var compareProps = (obj1, obj2) => {
@@ -2697,7 +2698,7 @@ var SharedAudioContextProvider = ({ children, numberOfAudioTags, component }) =>
2697
2698
  resetAudio();
2698
2699
  };
2699
2700
  }, [component, resetAudio]);
2700
- return jsx14(SharedAudioContext.Provider, {
2701
+ return jsxs(SharedAudioContext.Provider, {
2701
2702
  value,
2702
2703
  children: [
2703
2704
  refs.map(({ id, ref }) => {
@@ -2705,11 +2706,11 @@ var SharedAudioContextProvider = ({ children, numberOfAudioTags, component }) =>
2705
2706
  ref,
2706
2707
  preload: "metadata",
2707
2708
  src: EMPTY_AUDIO
2708
- }, id, false, undefined, this);
2709
+ }, id);
2709
2710
  }),
2710
2711
  children
2711
2712
  ]
2712
- }, undefined, true, undefined, this);
2713
+ });
2713
2714
  };
2714
2715
  var useSharedAudio = (aud, audioId) => {
2715
2716
  const ctx = useContext19(SharedAudioContext);
@@ -2868,7 +2869,7 @@ var AudioForDevelopmentForwardRefFunction = (props, ref) => {
2868
2869
  ref: audioRef,
2869
2870
  preload: "metadata",
2870
2871
  ...propsToPass
2871
- }, undefined, false, undefined, this);
2872
+ });
2872
2873
  };
2873
2874
  var AudioForPreview = forwardRef3(AudioForDevelopmentForwardRefFunction);
2874
2875
 
@@ -2933,7 +2934,7 @@ var RenderAssetManagerProvider = ({ children }) => {
2933
2934
  return jsx16(RenderAssetManager.Provider, {
2934
2935
  value: contextValue,
2935
2936
  children
2936
- }, undefined, false, undefined, this);
2937
+ });
2937
2938
  };
2938
2939
 
2939
2940
  // src/delay-render.ts
@@ -3130,7 +3131,7 @@ var AudioForRenderingRefForwardingFunction = (props, ref) => {
3130
3131
  return jsx17("audio", {
3131
3132
  ref: audioRef,
3132
3133
  ...nativeProps
3133
- }, undefined, false, undefined, this);
3134
+ });
3134
3135
  };
3135
3136
  var AudioForRendering = forwardRef4(AudioForRenderingRefForwardingFunction);
3136
3137
 
@@ -3184,8 +3185,8 @@ var AudioRefForwardingFunction = (props, ref) => {
3184
3185
  ...propsOtherThanLoop,
3185
3186
  ref,
3186
3187
  _remotionInternalNativeLoopPassed: true
3187
- }, undefined, false, undefined, this)
3188
- }, undefined, false, undefined, this);
3188
+ })
3189
+ });
3189
3190
  }
3190
3191
  if (typeof startFrom !== "undefined" || typeof endAt !== "undefined") {
3191
3192
  validateStartFromProps(startFrom, endAt);
@@ -3202,8 +3203,8 @@ var AudioRefForwardingFunction = (props, ref) => {
3202
3203
  pauseWhenBuffering: pauseWhenBuffering ?? false,
3203
3204
  ...otherProps,
3204
3205
  ref
3205
- }, undefined, false, undefined, this)
3206
- }, undefined, false, undefined, this);
3206
+ })
3207
+ });
3207
3208
  }
3208
3209
  validateMediaProps(props, "Audio");
3209
3210
  if (environment.isRendering) {
@@ -3213,7 +3214,7 @@ var AudioRefForwardingFunction = (props, ref) => {
3213
3214
  ref,
3214
3215
  onError,
3215
3216
  _remotionInternalNeedsDurationCalculation: Boolean(loop3)
3216
- }, undefined, false, undefined, this);
3217
+ });
3217
3218
  }
3218
3219
  return jsx18(AudioForPreview, {
3219
3220
  _remotionInternalNativeLoopPassed: props._remotionInternalNativeLoopPassed ?? false,
@@ -3226,7 +3227,7 @@ var AudioRefForwardingFunction = (props, ref) => {
3226
3227
  pauseWhenBuffering: pauseWhenBuffering ?? false,
3227
3228
  _remotionInternalNeedsDurationCalculation: Boolean(loop3),
3228
3229
  showInTimeline: showInTimeline ?? true
3229
- }, undefined, false, undefined, this);
3230
+ });
3230
3231
  };
3231
3232
  var Audio = forwardRef5(AudioRefForwardingFunction);
3232
3233
  addSequenceStackTraces(Audio);
@@ -3285,12 +3286,13 @@ var Folder = ({
3285
3286
  return jsx19(FolderContext.Provider, {
3286
3287
  value,
3287
3288
  children
3288
- }, undefined, false, undefined, this);
3289
+ });
3289
3290
  };
3290
3291
 
3291
3292
  // src/loading-indicator.tsx
3292
3293
  import {
3293
- jsx as jsx20
3294
+ jsx as jsx20,
3295
+ jsxs as jsxs2
3294
3296
  } from "react/jsx-runtime";
3295
3297
  var rotate = {
3296
3298
  transform: `rotate(90deg)`
@@ -3306,7 +3308,7 @@ var container = {
3306
3308
  alignItems: "center"
3307
3309
  };
3308
3310
  var Loading = () => {
3309
- return jsx20(AbsoluteFill, {
3311
+ return jsxs2(AbsoluteFill, {
3310
3312
  style: container,
3311
3313
  id: "remotion-comp-loading",
3312
3314
  children: [
@@ -3326,7 +3328,7 @@ var Loading = () => {
3326
3328
  animation-fill-mode: forwards;
3327
3329
  }
3328
3330
  `
3329
- }, undefined, false, undefined, this),
3331
+ }),
3330
3332
  jsx20("svg", {
3331
3333
  width: ICON_SIZE,
3332
3334
  height: ICON_SIZE,
@@ -3338,18 +3340,18 @@ var Loading = () => {
3338
3340
  strokeWidth: "100",
3339
3341
  strokeLinejoin: "round",
3340
3342
  d: "M 2 172 a 196 100 0 0 0 195 5 A 196 240 0 0 0 100 2.259 A 196 240 0 0 0 2 172 z"
3341
- }, undefined, false, undefined, this)
3342
- }, undefined, false, undefined, this),
3343
- jsx20("p", {
3343
+ })
3344
+ }),
3345
+ jsxs2("p", {
3344
3346
  style: label,
3345
3347
  children: [
3346
3348
  "Resolving ",
3347
3349
  "<Suspense>",
3348
3350
  "..."
3349
3351
  ]
3350
- }, undefined, true, undefined, this)
3352
+ })
3351
3353
  ]
3352
- }, undefined, true, undefined, this);
3354
+ });
3353
3355
  };
3354
3356
 
3355
3357
  // src/portal-node.ts
@@ -3436,7 +3438,7 @@ var ClipComposition = ({ children }) => {
3436
3438
  return jsx21(AbsoluteFill, {
3437
3439
  style,
3438
3440
  children
3439
- }, undefined, false, undefined, this);
3441
+ });
3440
3442
  };
3441
3443
  var Fallback = () => {
3442
3444
  useEffect17(() => {
@@ -3517,13 +3519,13 @@ var Composition = ({
3517
3519
  return createPortal(jsx21(ClipComposition, {
3518
3520
  children: jsx21(CanUseRemotionHooksProvider, {
3519
3521
  children: jsx21(Suspense, {
3520
- fallback: jsx21(Loading, {}, undefined, false, undefined, this),
3522
+ fallback: jsx21(Loading, {}),
3521
3523
  children: jsx21(Comp, {
3522
3524
  ...resolved.result.props ?? {}
3523
- }, undefined, false, undefined, this)
3524
- }, undefined, false, undefined, this)
3525
- }, undefined, false, undefined, this)
3526
- }, undefined, false, undefined, this), portalNode());
3525
+ })
3526
+ })
3527
+ })
3528
+ }), portalNode());
3527
3529
  }
3528
3530
  if (environment.isRendering && video && video.component === lazy) {
3529
3531
  const Comp = lazy;
@@ -3532,12 +3534,12 @@ var Composition = ({
3532
3534
  }
3533
3535
  return createPortal(jsx21(CanUseRemotionHooksProvider, {
3534
3536
  children: jsx21(Suspense, {
3535
- fallback: jsx21(Fallback, {}, undefined, false, undefined, this),
3537
+ fallback: jsx21(Fallback, {}),
3536
3538
  children: jsx21(Comp, {
3537
3539
  ...resolved.result.props ?? {}
3538
- }, undefined, false, undefined, this)
3539
- }, undefined, false, undefined, this)
3540
- }, undefined, false, undefined, this), portalNode());
3540
+ })
3541
+ })
3542
+ }), portalNode());
3541
3543
  }
3542
3544
  return null;
3543
3545
  };
@@ -3635,11 +3637,11 @@ var CompositionManagerProvider = ({ children, numberOfAudioTags }) => {
3635
3637
  numberOfAudioTags,
3636
3638
  component: composition?.component ?? null,
3637
3639
  children
3638
- }, undefined, false, undefined, this)
3639
- }, undefined, false, undefined, this)
3640
- }, undefined, false, undefined, this)
3641
- }, undefined, false, undefined, this)
3642
- }, undefined, false, undefined, this);
3640
+ })
3641
+ })
3642
+ })
3643
+ })
3644
+ });
3643
3645
  };
3644
3646
  // src/bezier.ts
3645
3647
  var a = function(aA1, aA2) {
@@ -3887,7 +3889,7 @@ var IFrameRefForwarding = ({
3887
3889
  ref,
3888
3890
  onError: didGetError,
3889
3891
  onLoad: didLoad
3890
- }, undefined, false, undefined, this);
3892
+ });
3891
3893
  };
3892
3894
  var IFrame = forwardRef6(IFrameRefForwarding);
3893
3895
  // src/Img.tsx
@@ -4008,7 +4010,7 @@ var ImgRefForwarding = ({
4008
4010
  ref: imageRef,
4009
4011
  src: actualSrc,
4010
4012
  onError: didGetError
4011
- }, undefined, false, undefined, this);
4013
+ });
4012
4014
  };
4013
4015
  var Img = forwardRef7(ImgRefForwarding);
4014
4016
  // src/default-css.ts
@@ -4205,15 +4207,15 @@ var RemotionRoot = ({ children, numberOfAudioTags }) => {
4205
4207
  children: jsx25(DurationsContextProvider, {
4206
4208
  children: jsx25(BufferingProvider, {
4207
4209
  children
4208
- }, undefined, false, undefined, this)
4209
- }, undefined, false, undefined, this)
4210
- }, undefined, false, undefined, this)
4211
- }, undefined, false, undefined, this)
4212
- }, undefined, false, undefined, this)
4213
- }, undefined, false, undefined, this)
4214
- }, undefined, false, undefined, this)
4215
- }, undefined, false, undefined, this)
4216
- }, undefined, false, undefined, this);
4210
+ })
4211
+ })
4212
+ })
4213
+ })
4214
+ })
4215
+ })
4216
+ })
4217
+ })
4218
+ });
4217
4219
  };
4218
4220
 
4219
4221
  // src/setup-env-variables.ts
@@ -4223,12 +4225,12 @@ var getEnvVariables = () => {
4223
4225
  if (!param) {
4224
4226
  return {};
4225
4227
  }
4226
- return { ...JSON.parse(param), NODE_ENV: "development" };
4228
+ return { ...JSON.parse(param), NODE_ENV: "production" };
4227
4229
  }
4228
4230
  if (false) {
4229
4231
  }
4230
4232
  return {
4231
- NODE_ENV: "development"
4233
+ NODE_ENV: "production"
4232
4234
  };
4233
4235
  };
4234
4236
  var setupEnvVariables = () => {
@@ -4403,18 +4405,18 @@ var RemotionContextProvider = (props2) => {
4403
4405
  children: jsx26(BufferingContextReact.Provider, {
4404
4406
  value: contexts.bufferManagerContext,
4405
4407
  children
4406
- }, undefined, false, undefined, this)
4407
- }, undefined, false, undefined, this)
4408
- }, undefined, false, undefined, this)
4409
- }, undefined, false, undefined, this)
4410
- }, undefined, false, undefined, this)
4411
- }, undefined, false, undefined, this)
4412
- }, undefined, false, undefined, this)
4413
- }, undefined, false, undefined, this)
4414
- }, undefined, false, undefined, this)
4415
- }, undefined, false, undefined, this)
4416
- }, undefined, false, undefined, this)
4417
- }, undefined, false, undefined, this);
4408
+ })
4409
+ })
4410
+ })
4411
+ })
4412
+ })
4413
+ })
4414
+ })
4415
+ })
4416
+ })
4417
+ })
4418
+ })
4419
+ });
4418
4420
  };
4419
4421
 
4420
4422
  // src/internals.ts
@@ -4878,13 +4880,13 @@ var IsInsideSeriesContainer = ({ children }) => {
4878
4880
  return jsx27(IsInsideSeriesContext.Provider, {
4879
4881
  value: true,
4880
4882
  children
4881
- }, undefined, false, undefined, this);
4883
+ });
4882
4884
  };
4883
4885
  var IsNotInsideSeriesProvider = ({ children }) => {
4884
4886
  return jsx27(IsInsideSeriesContext.Provider, {
4885
4887
  value: false,
4886
4888
  children
4887
- }, undefined, false, undefined, this);
4889
+ });
4888
4890
  };
4889
4891
  var useRequireToBeInsideSeries = () => {
4890
4892
  const isInsideSeries = React25.useContext(IsInsideSeriesContext);
@@ -4901,7 +4903,7 @@ var SeriesSequenceRefForwardingFunction = ({ children }, _ref) => {
4901
4903
  useRequireToBeInsideSeries();
4902
4904
  return jsx28(IsNotInsideSeriesProvider, {
4903
4905
  children
4904
- }, undefined, false, undefined, this);
4906
+ });
4905
4907
  };
4906
4908
  var SeriesSequence = forwardRef8(SeriesSequenceRefForwardingFunction);
4907
4909
  var Series = (props2) => {
@@ -4956,7 +4958,7 @@ var Series = (props2) => {
4956
4958
  ...passedProps,
4957
4959
  ref: castedChild.ref,
4958
4960
  children: child
4959
- }, undefined, false, undefined, this);
4961
+ });
4960
4962
  });
4961
4963
  }, [props2.children]);
4962
4964
  if (ENABLE_V5_BREAKING_CHANGES) {
@@ -4964,12 +4966,12 @@ var Series = (props2) => {
4964
4966
  children: jsx28(Sequence, {
4965
4967
  ...props2,
4966
4968
  children: childrenValue
4967
- }, undefined, false, undefined, this)
4968
- }, undefined, false, undefined, this);
4969
+ })
4970
+ });
4969
4971
  }
4970
4972
  return jsx28(IsInsideSeriesContainer, {
4971
4973
  children: childrenValue
4972
- }, undefined, false, undefined, this);
4974
+ });
4973
4975
  };
4974
4976
  Series.Sequence = SeriesSequence;
4975
4977
  addSequenceStackTraces(SeriesSequence);
@@ -5348,7 +5350,7 @@ var OffthreadVideoForRendering = ({
5348
5350
  className,
5349
5351
  ...props2,
5350
5352
  onError: onErr
5351
- }, undefined, false, undefined, this);
5353
+ });
5352
5354
  };
5353
5355
 
5354
5356
  // src/video/VideoForPreview.tsx
@@ -5506,7 +5508,7 @@ var VideoForDevelopmentRefForwardingFunction = (props2, ref) => {
5506
5508
  loop: _remotionInternalNativeLoopPassed,
5507
5509
  style: actualStyle,
5508
5510
  ...nativeProps
5509
- }, undefined, false, undefined, this);
5511
+ });
5510
5512
  };
5511
5513
  var VideoForPreview = forwardRef9(VideoForDevelopmentRefForwardingFunction);
5512
5514
 
@@ -5547,14 +5549,14 @@ var OffthreadVideo = (props2) => {
5547
5549
  children: jsx31(OffthreadVideo, {
5548
5550
  pauseWhenBuffering: pauseWhenBuffering ?? false,
5549
5551
  ...otherProps
5550
- }, undefined, false, undefined, this)
5551
- }, undefined, false, undefined, this);
5552
+ })
5553
+ });
5552
5554
  }
5553
5555
  validateMediaProps(props2, "Video");
5554
5556
  if (environment.isRendering) {
5555
5557
  return jsx31(OffthreadVideoForRendering, {
5556
5558
  ...otherProps
5557
- }, undefined, false, undefined, this);
5559
+ });
5558
5560
  }
5559
5561
  const { transparent, toneMapped, ...withoutTransparent } = otherProps;
5560
5562
  return jsx31(VideoForPreview, {
@@ -5565,7 +5567,7 @@ var OffthreadVideo = (props2) => {
5565
5567
  pauseWhenBuffering: pauseWhenBuffering ?? false,
5566
5568
  showInTimeline: showInTimeline ?? true,
5567
5569
  ...withoutTransparent
5568
- }, undefined, false, undefined, this);
5570
+ });
5569
5571
  };
5570
5572
  // src/video/Video.tsx
5571
5573
  import {forwardRef as forwardRef11, useCallback as useCallback13, useContext as useContext29} from "react";
@@ -5858,7 +5860,7 @@ var VideoForRenderingForwardFunction = ({
5858
5860
  ref: videoRef,
5859
5861
  ...props2,
5860
5862
  onError
5861
- }, undefined, false, undefined, this);
5863
+ });
5862
5864
  };
5863
5865
  var VideoForRendering = forwardRef10(VideoForRenderingForwardFunction);
5864
5866
 
@@ -5907,8 +5909,8 @@ var VideoForwardingFunction = (props2, ref) => {
5907
5909
  ...propsOtherThanLoop,
5908
5910
  ref,
5909
5911
  _remotionInternalNativeLoopPassed: true
5910
- }, undefined, false, undefined, this)
5911
- }, undefined, false, undefined, this);
5912
+ })
5913
+ });
5912
5914
  }
5913
5915
  if (typeof startFrom !== "undefined" || typeof endAt !== "undefined") {
5914
5916
  validateStartFromProps(startFrom, endAt);
@@ -5924,8 +5926,8 @@ var VideoForwardingFunction = (props2, ref) => {
5924
5926
  pauseWhenBuffering: pauseWhenBuffering ?? false,
5925
5927
  ...otherProps,
5926
5928
  ref
5927
- }, undefined, false, undefined, this)
5928
- }, undefined, false, undefined, this);
5929
+ })
5930
+ });
5929
5931
  }
5930
5932
  validateMediaProps(props2, "Video");
5931
5933
  if (environment.isRendering) {
@@ -5933,7 +5935,7 @@ var VideoForwardingFunction = (props2, ref) => {
5933
5935
  onDuration,
5934
5936
  ...otherProps,
5935
5937
  ref
5936
- }, undefined, false, undefined, this);
5938
+ });
5937
5939
  }
5938
5940
  return jsx33(VideoForPreview, {
5939
5941
  onlyWarnForMediaSeekingError: false,
@@ -5944,7 +5946,7 @@ var VideoForwardingFunction = (props2, ref) => {
5944
5946
  _remotionInternalStack: stack ?? null,
5945
5947
  _remotionInternalNativeLoopPassed: _remotionInternalNativeLoopPassed ?? false,
5946
5948
  showInTimeline: showInTimeline ?? true
5947
- }, undefined, false, undefined, this);
5949
+ });
5948
5950
  };
5949
5951
  var Video = forwardRef11(VideoForwardingFunction);
5950
5952
  addSequenceStackTraces(Video);
@@ -1,5 +1,5 @@
1
1
  // src/version.ts
2
- var VERSION = "4.0.149";
2
+ var VERSION = "4.0.150";
3
3
  export {
4
4
  VERSION
5
5
  };
@@ -19,7 +19,7 @@ export const VERSION = '${version}';
19
19
  fs.writeFileSync(path.resolve(process.cwd(), 'src/version.ts'), src);
20
20
 
21
21
  cp.execSync('pnpm build');
22
- cp.execSync('bunx tsc -d');
22
+ cp.execSync('bun x tsc -d');
23
23
 
24
24
  const distFile = fs.readFileSync('dist/esm/version.mjs', 'utf-8');
25
25
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "4.0.149",
3
+ "version": "4.0.150",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/cjs/index.js",
6
6
  "types": "dist/cjs/index.d.ts",
@@ -82,6 +82,6 @@
82
82
  "formatting": "prettier src --check",
83
83
  "lint": "eslint src --ext ts,tsx",
84
84
  "test": "vitest --run",
85
- "build": "bun bundle.ts"
85
+ "build": "bun --env-file=../.env.bundle bundle.ts"
86
86
  }
87
87
  }