@remotion/bundler 4.0.45 → 4.0.47
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/LICENSE.md +1 -1
- package/dist/fast-refresh/helpers.d.ts +1 -1
- package/dist/fast-refresh/helpers.js +13 -13
- package/dist/webpack-cache.d.ts +1 -1
- package/dist/webpack-cache.js +12 -12
- package/package.json +3 -3
package/LICENSE.md
CHANGED
|
@@ -38,4 +38,4 @@ Support is provided on a best-we-can-do basis via GitHub Issues and Discord.
|
|
|
38
38
|
|
|
39
39
|
You are required to obtain a company license to use Remotion if you are not within the group of entities eligible for a free license. This license will enable you to use Remotion for the allowed use cases specified in the free license, and give you access to prioritized support (read the [Support Policy](/docs/support)).
|
|
40
40
|
|
|
41
|
-
Visit [
|
|
41
|
+
Visit [remotion.pro](https://www.remotion.pro) for pricing and to buy a license.
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
*/
|
|
27
27
|
declare function registerExportsForReactRefresh(moduleExports: unknown, moduleID: unknown): void;
|
|
28
28
|
declare function isReactRefreshBoundary(moduleExports: unknown): boolean;
|
|
29
|
-
declare function shouldInvalidateReactRefreshBoundary(prevExports: unknown, nextExports: unknown): boolean;
|
|
30
29
|
declare function getRefreshBoundarySignature(moduleExports: unknown): any[];
|
|
30
|
+
declare function shouldInvalidateReactRefreshBoundary(prevExports: unknown, nextExports: unknown): boolean;
|
|
31
31
|
declare function scheduleUpdate(): void;
|
|
32
32
|
declare const _default: {
|
|
33
33
|
registerExportsForReactRefresh: typeof registerExportsForReactRefresh;
|
|
@@ -81,19 +81,6 @@ function isReactRefreshBoundary(moduleExports) {
|
|
|
81
81
|
}
|
|
82
82
|
return hasExports && areAllExportsComponents;
|
|
83
83
|
}
|
|
84
|
-
function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
|
|
85
|
-
const prevSignature = getRefreshBoundarySignature(prevExports);
|
|
86
|
-
const nextSignature = getRefreshBoundarySignature(nextExports);
|
|
87
|
-
if (prevSignature.length !== nextSignature.length) {
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
for (let i = 0; i < nextSignature.length; i++) {
|
|
91
|
-
if (prevSignature[i] !== nextSignature[i]) {
|
|
92
|
-
return true;
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
84
|
function getRefreshBoundarySignature(moduleExports) {
|
|
98
85
|
const signature = [];
|
|
99
86
|
signature.push(RefreshRuntime.getFamilyByType(moduleExports));
|
|
@@ -115,6 +102,19 @@ function getRefreshBoundarySignature(moduleExports) {
|
|
|
115
102
|
}
|
|
116
103
|
return signature;
|
|
117
104
|
}
|
|
105
|
+
function shouldInvalidateReactRefreshBoundary(prevExports, nextExports) {
|
|
106
|
+
const prevSignature = getRefreshBoundarySignature(prevExports);
|
|
107
|
+
const nextSignature = getRefreshBoundarySignature(nextExports);
|
|
108
|
+
if (prevSignature.length !== nextSignature.length) {
|
|
109
|
+
return true;
|
|
110
|
+
}
|
|
111
|
+
for (let i = 0; i < nextSignature.length; i++) {
|
|
112
|
+
if (prevSignature[i] !== nextSignature[i]) {
|
|
113
|
+
return true;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return false;
|
|
117
|
+
}
|
|
118
118
|
function scheduleUpdate() {
|
|
119
119
|
var _a, _b;
|
|
120
120
|
const execute = () => {
|
package/dist/webpack-cache.d.ts
CHANGED
|
@@ -7,8 +7,8 @@ declare global {
|
|
|
7
7
|
}
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
|
-
export declare const clearCache: (remotionRoot: string, env: Environment) => Promise<void>;
|
|
11
10
|
export declare const getWebpackCacheEnvDir: (environment: Environment) => string;
|
|
12
11
|
export declare const getWebpackCacheName: (environment: Environment, hash: string) => string;
|
|
12
|
+
export declare const clearCache: (remotionRoot: string, env: Environment) => Promise<void>;
|
|
13
13
|
export declare const cacheExists: (remotionRoot: string, environment: Environment, hash: string) => CacheState;
|
|
14
14
|
export {};
|
package/dist/webpack-cache.js
CHANGED
|
@@ -3,7 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.cacheExists = exports.
|
|
6
|
+
exports.cacheExists = exports.clearCache = exports.getWebpackCacheName = exports.getWebpackCacheEnvDir = void 0;
|
|
7
7
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
// Inlined from https://github.com/webpack/webpack/blob/4c2ee7a4ddb8db2362ca83b6c4190523387ba7ee/lib/config/defaults.js#L265
|
|
@@ -36,6 +36,17 @@ const getWebpackCacheDir = (remotionRoot) => {
|
|
|
36
36
|
}
|
|
37
37
|
return node_path_1.default.resolve(dir, 'node_modules/.cache/webpack');
|
|
38
38
|
};
|
|
39
|
+
const getPrefix = (environment) => {
|
|
40
|
+
return `remotion-v5-${environment}`;
|
|
41
|
+
};
|
|
42
|
+
const getWebpackCacheEnvDir = (environment) => {
|
|
43
|
+
return getPrefix(environment);
|
|
44
|
+
};
|
|
45
|
+
exports.getWebpackCacheEnvDir = getWebpackCacheEnvDir;
|
|
46
|
+
const getWebpackCacheName = (environment, hash) => {
|
|
47
|
+
return [(0, exports.getWebpackCacheEnvDir)(environment), hash].join(node_path_1.default.sep);
|
|
48
|
+
};
|
|
49
|
+
exports.getWebpackCacheName = getWebpackCacheName;
|
|
39
50
|
const remotionCacheLocationForEnv = (remotionRoot, environment) => {
|
|
40
51
|
return node_path_1.default.join(getWebpackCacheDir(remotionRoot), (0, exports.getWebpackCacheEnvDir)(environment));
|
|
41
52
|
};
|
|
@@ -48,17 +59,6 @@ const clearCache = (remotionRoot, env) => {
|
|
|
48
59
|
});
|
|
49
60
|
};
|
|
50
61
|
exports.clearCache = clearCache;
|
|
51
|
-
const getPrefix = (environment) => {
|
|
52
|
-
return `remotion-v5-${environment}`;
|
|
53
|
-
};
|
|
54
|
-
const getWebpackCacheEnvDir = (environment) => {
|
|
55
|
-
return getPrefix(environment);
|
|
56
|
-
};
|
|
57
|
-
exports.getWebpackCacheEnvDir = getWebpackCacheEnvDir;
|
|
58
|
-
const getWebpackCacheName = (environment, hash) => {
|
|
59
|
-
return [(0, exports.getWebpackCacheEnvDir)(environment), hash].join(node_path_1.default.sep);
|
|
60
|
-
};
|
|
61
|
-
exports.getWebpackCacheName = getWebpackCacheName;
|
|
62
62
|
const hasOtherCache = ({ remotionRoot, environment, }) => {
|
|
63
63
|
const cacheDir = node_fs_1.default.readdirSync(getWebpackCacheDir(remotionRoot));
|
|
64
64
|
if (cacheDir.find((c) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remotion/bundler",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.47",
|
|
4
4
|
"description": "Bundler for Remotion",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -23,14 +23,14 @@
|
|
|
23
23
|
"react-refresh": "0.9.0",
|
|
24
24
|
"style-loader": "2.0.0",
|
|
25
25
|
"webpack": "5.83.1",
|
|
26
|
-
"remotion": "4.0.
|
|
26
|
+
"remotion": "4.0.47"
|
|
27
27
|
},
|
|
28
28
|
"peerDependencies": {
|
|
29
29
|
"react": ">=16.8.0",
|
|
30
30
|
"react-dom": ">=16.8.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@jonny/eslint-config": "3.0.
|
|
33
|
+
"@jonny/eslint-config": "3.0.276",
|
|
34
34
|
"@types/node": "18.14.6",
|
|
35
35
|
"bun-types": "0.8.0",
|
|
36
36
|
"@types/react": "18.0.26",
|