@opennextjs/cloudflare 1.20.3 → 1.20.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.
|
@@ -23,7 +23,7 @@ export declare class D1NextModeTagCache implements NextModeTagCache {
|
|
|
23
23
|
isStale(tags: string[], lastModified?: number): Promise<boolean>;
|
|
24
24
|
private getConfig;
|
|
25
25
|
protected getCacheKey(key: string): string;
|
|
26
|
-
protected getBuildId():
|
|
26
|
+
protected getBuildId(): any;
|
|
27
27
|
/**
|
|
28
28
|
* @returns request scoped in-memory cache for tag values, or undefined if ALS is not available.
|
|
29
29
|
*/
|
|
@@ -36,7 +36,7 @@ export declare class KVNextModeTagCache implements NextModeTagCache {
|
|
|
36
36
|
*/
|
|
37
37
|
private getKv;
|
|
38
38
|
protected getCacheKey(key: string): string;
|
|
39
|
-
protected getBuildId():
|
|
39
|
+
protected getBuildId(): any;
|
|
40
40
|
/**
|
|
41
41
|
* @returns request scoped in-memory cache for tag values, or undefined if ALS is not available.
|
|
42
42
|
*/
|
|
@@ -54,6 +54,8 @@ export async function getDeploymentMapping(buildOpts, config, workerEnvVars) {
|
|
|
54
54
|
if (!deploymentId) {
|
|
55
55
|
logger.error("Deployment ID should be set in the Next config when skew protection is enabled");
|
|
56
56
|
process.exit(1);
|
|
57
|
+
// helps TS narrow the type of deploymentId to string
|
|
58
|
+
return;
|
|
57
59
|
}
|
|
58
60
|
if (!envVars.CF_WORKER_NAME) {
|
|
59
61
|
logger.error("CF_WORKER_NAME should be set when skew protection is enabled");
|
|
@@ -5,7 +5,7 @@ export type WithWranglerArgs<T = unknown> = T & {
|
|
|
5
5
|
wranglerConfigPath: string | undefined;
|
|
6
6
|
env: string | undefined;
|
|
7
7
|
};
|
|
8
|
-
export declare const nextAppDir:
|
|
8
|
+
export declare const nextAppDir: any;
|
|
9
9
|
/**
|
|
10
10
|
* Print headers and warnings for the CLI.
|
|
11
11
|
*
|
|
@@ -46,7 +46,7 @@ export declare function retrieveCompiledConfig(): Promise<{
|
|
|
46
46
|
* @param buildDir Directory to use when building the application
|
|
47
47
|
* @returns Normalized options.
|
|
48
48
|
*/
|
|
49
|
-
export declare function getNormalizedOptions(config: OpenNextConfig, buildDir?:
|
|
49
|
+
export declare function getNormalizedOptions(config: OpenNextConfig, buildDir?: any): {
|
|
50
50
|
appBuildOutputPath: string;
|
|
51
51
|
appPackageJsonPath: string;
|
|
52
52
|
appPath: string;
|
package/dist/cli/index.js
CHANGED
|
@@ -8,8 +8,9 @@ import { addMigrateCommand } from "./commands/migrate.js";
|
|
|
8
8
|
import { addPopulateCacheCommand } from "./commands/populate-cache.js";
|
|
9
9
|
import { addPreviewCommand } from "./commands/preview.js";
|
|
10
10
|
import { addUploadCommand } from "./commands/upload.js";
|
|
11
|
+
const nodeProcess = process;
|
|
11
12
|
export function runCommand() {
|
|
12
|
-
const y = yargs(
|
|
13
|
+
const y = yargs(nodeProcess.argv.slice(2).filter((arg) => arg !== "--"))
|
|
13
14
|
.scriptName("opennextjs-cloudflare")
|
|
14
15
|
.parserConfiguration({ "unknown-options-as-args": true })
|
|
15
16
|
.strictCommands()
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opennextjs/cloudflare",
|
|
3
3
|
"description": "Cloudflare builder for next apps",
|
|
4
|
-
"version": "1.20.
|
|
4
|
+
"version": "1.20.5",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"opennextjs-cloudflare": "dist/cli/index.js"
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@ast-grep/napi": "^0.40.5",
|
|
46
46
|
"@dotenvx/dotenvx": "1.31.0",
|
|
47
|
-
"@opennextjs/aws": "4.1.
|
|
47
|
+
"@opennextjs/aws": "4.1.3",
|
|
48
48
|
"ci-info": "^4.2.0",
|
|
49
49
|
"cloudflare": "^4.4.1",
|
|
50
50
|
"comment-json": "^4.5.1",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"yargs": "^18.0.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@cloudflare/workers-types": "^
|
|
57
|
+
"@cloudflare/workers-types": "^5.20260820.1",
|
|
58
58
|
"@eslint/js": "^9.11.1",
|
|
59
59
|
"@tsconfig/strictest": "^2.0.5",
|
|
60
60
|
"@types/mock-fs": "^4.13.4",
|