@remotion/studio 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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @remotion/studio@4.0.148 build /Users/jonathanburger/remotion/packages/studio
3
- > bun bundle.ts
2
+ > @remotion/studio@4.0.149 build /Users/jonathanburger/remotion/packages/studio
3
+ > bun --env-file=../.env.bundle bundle.ts
4
4
 
@@ -0,0 +1,85 @@
1
+
2
+ > @remotion/studio@4.0.149 test /Users/jonathanburger/remotion/packages/studio
3
+ > bun test src
4
+
5
+ bun test v1.1.7 (07cefe63)
6
+ 
7
+ src/test/stringify-default-props.test.ts:
8
+ ✓ Should stringify default props correctly [1.64ms]
9
+ ✓ Should stringify default props correctly [1.24ms]
10
+ 
11
+ src/test/sequenced-timeline.test.ts:
12
+ ✓ Should calculate sequences correctly [3.46ms]
13
+ 
14
+ src/test/create-zod-values.test.ts:
15
+ ✓ Should be able to create a string [12.48ms]
16
+ ✓ Should be able to create a number [0.48ms]
17
+ ✓ Should be able to create an object [0.28ms]
18
+ ✓ Should be able to create an array [0.36ms]
19
+ ✓ Should be able to create a union [0.20ms]
20
+ ✓ Zod literal [0.09ms]
21
+ ✓ Should be able to create a discriminated union [0.50ms]
22
+ ✓ Zod instanceof [0.13ms]
23
+ ✓ Zod intersection [0.29ms]
24
+ ✓ Zod tuples [0.16ms]
25
+ ✓ Zod record [0.27ms]
26
+ ✓ Zod map [0.08ms]
27
+ ✓ Zod lazy [0.08ms]
28
+ ✓ Zod set [0.10ms]
29
+ ✓ Zod function [0.15ms]
30
+ ✓ Zod undefined [0.07ms]
31
+ ✓ Zod null [0.07ms]
32
+ ✓ Zod enum [0.06ms]
33
+ ✓ Zod nativeEnum [0.09ms]
34
+ ✓ Zod optional [0.07ms]
35
+ ✓ Zod nullable [0.07ms]
36
+ ✓ Zod undefined [0.07ms]
37
+ ✓ Zod catch [0.06ms]
38
+ ✓ Zod promise [0.11ms]
39
+ ✓ Zod transform [0.07ms]
40
+ ✓ Zod branded [0.10ms]
41
+ ✓ Zod lazy [0.41ms]
42
+ ✓ Zod coerce [0.37ms]
43
+ ✓ Zod strict [0.12ms]
44
+ ✓ Should create a color [0.09ms]
45
+ ✓ Should create a textarea [0.05ms]
46
+ 
47
+ src/test/folder-tree.test.ts:
48
+ ✓ Should create a good folder tree with 1 item inside and 1 item outside [1.66ms]
49
+ ✓ Should handle nested folders well [0.49ms]
50
+ ✓ Should throw if two folders with the same name [0.30ms]
51
+ 
52
+ src/test/big-timeline.test.ts:
53
+ ✓ Should calculate timeline as expected [6.91ms]
54
+ 
55
+ src/test/smooth-zoom.test.ts:
56
+ ✓ Smoothen zoom [0.04ms]
57
+ ✓ Unsmoothen zoom [0.04ms]
58
+ 
59
+ src/test/validate-gui-output-filename.test.ts:
60
+ ✓ Should catch dot after slash [2.97ms]
61
+ ✓ Should catch dot in front  [0.03ms]
62
+ 
63
+ src/test/timeline-sequence-layout.test.ts:
64
+ ✓ Should test timeline sequence layout without max media duration [0.31ms]
65
+ ✓ Should test timeline sequence layout with max media duration [0.05ms]
66
+ 
67
+ src/test/extract-zod-enums.test.ts:
68
+ ✓ Extract Zod enums [0.13ms]
69
+ ✓ Extract Zod enums #2 [0.42ms]
70
+ 
71
+ src/test/color-math.test.ts:
72
+ ✓ Color math [0.74ms]
73
+ 
74
+ src/test/format-time.test.ts:
75
+ ✓ Format time [0.24ms]
76
+ 
77
+ src/test/timeline.test.ts:
78
+ ✓ Should calculate timeline with no sequences [0.05ms]
79
+ ✓ Should calculate a basic timeline [0.14ms]
80
+ ✓ Should follow order of nesting [0.13ms]
81
+
82
+  51 pass
83
+  0 fail
84
+ 67 expect() calls
85
+ Ran 51 tests across 12 files. [119.00ms]
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 mainModule = await build({
4
17
  entrypoints: ['src/index.ts'],
@@ -7,9 +20,7 @@ const mainModule = await build({
7
20
  });
8
21
 
9
22
  const [file] = mainModule.outputs;
10
- const text = (await file.text())
11
- .replace(/jsxDEV/g, 'jsx')
12
- .replace(/react\/jsx-dev-runtime/g, 'react/jsx-runtime');
23
+ const text = await file.text();
13
24
 
14
25
  await Bun.write('dist/esm/index.mjs', text);
15
26
 
@@ -12,6 +12,6 @@ export declare const getInputBorderColor: ({ status, isFocused, isHovered, }: {
12
12
  status: 'error' | 'warning' | 'ok';
13
13
  isFocused: boolean;
14
14
  isHovered: boolean;
15
- }) => "hsla(0, 0%, 100%, 0.15)" | "#ff3232" | "#f1c40f" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)";
15
+ }) => "hsla(0, 0%, 100%, 0.15)" | "rgba(0, 0, 0, 0.6)" | "rgba(255, 255, 255, 0.05)" | "#ff3232" | "#f1c40f";
16
16
  export declare const RemotionInput: React.ForwardRefExoticComponent<Omit<Props, "ref"> & React.RefAttributes<HTMLInputElement>>;
17
17
  export {};