Socket
Socket
Sign inDemoInstall

@netlify/plugin-nextjs

Package Overview
Dependencies
Maintainers
23
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@netlify/plugin-nextjs - npm Package Compare versions

Comparing version 5.2.2 to 5.3.0

dist/esm-chunks/chunk-5QSXBV7L.js

2

dist/build/advanced-api-routes.js

@@ -9,3 +9,3 @@

__require
} from "../esm-chunks/chunk-5JVNISGM.js";
} from "../esm-chunks/chunk-OEQOKJGE.js";

@@ -12,0 +12,0 @@ // src/build/advanced-api-routes.ts

@@ -7,3 +7,3 @@

import "../esm-chunks/chunk-5JVNISGM.js";
import "../esm-chunks/chunk-OEQOKJGE.js";

@@ -10,0 +10,0 @@ // src/build/cache.ts

@@ -9,13 +9,13 @@

require_out
} from "../../esm-chunks/chunk-VZNKO4OO.js";
} from "../../esm-chunks/chunk-FHR56UHE.js";
import {
wrapTracer
} from "../../esm-chunks/chunk-PDPDW32D.js";
} from "../../esm-chunks/chunk-5QSXBV7L.js";
import {
init_esm,
trace
} from "../../esm-chunks/chunk-Y3K5Q6FP.js";
} from "../../esm-chunks/chunk-GNGHTHMQ.js";
import {
__toESM
} from "../../esm-chunks/chunk-5JVNISGM.js";
} from "../../esm-chunks/chunk-OEQOKJGE.js";

@@ -22,0 +22,0 @@ // src/build/content/prerendered.ts

@@ -9,16 +9,16 @@

require_out
} from "../../esm-chunks/chunk-VZNKO4OO.js";
} from "../../esm-chunks/chunk-FHR56UHE.js";
import {
wrapTracer
} from "../../esm-chunks/chunk-PDPDW32D.js";
} from "../../esm-chunks/chunk-5QSXBV7L.js";
import {
init_esm,
trace
} from "../../esm-chunks/chunk-Y3K5Q6FP.js";
} from "../../esm-chunks/chunk-GNGHTHMQ.js";
import {
require_semver
} from "../../esm-chunks/chunk-PJG75HGC.js";
} from "../../esm-chunks/chunk-EFGWM7RS.js";
import {
__toESM
} from "../../esm-chunks/chunk-5JVNISGM.js";
} from "../../esm-chunks/chunk-OEQOKJGE.js";

@@ -29,2 +29,3 @@ // src/build/content/server.ts

import {
access,
cp,

@@ -36,11 +37,11 @@ mkdir,

symlink,
writeFile,
access
writeFile
} from "node:fs/promises";
import { createRequire } from "node:module";
import { dirname, join, resolve, sep } from "node:path";
import { sep as posixSep, join as posixJoin } from "node:path/posix";
import { join as posixJoin, sep as posixSep } from "node:path/posix";
var import_fast_glob = __toESM(require_out(), 1);
var import_semver = __toESM(require_semver(), 1);
import { RUN_CONFIG } from "../../run/constants.js";
import { logger } from "../../run/systemlog.cjs";
import { verifyNextVersion } from "../verification.js";

@@ -232,3 +233,3 @@ var tracer = wrapTracer(trace.getTracer("Next runtime"));

if (!definition.dataRoute?.endsWith("/default.rsc")) {
console.log(`Unable to read cache tags for: ${path}`);
logger.log(`Unable to read cache tags for: ${path}`);
}

@@ -235,0 +236,0 @@ }

@@ -9,13 +9,13 @@

require_out
} from "../../esm-chunks/chunk-VZNKO4OO.js";
} from "../../esm-chunks/chunk-FHR56UHE.js";
import {
wrapTracer
} from "../../esm-chunks/chunk-PDPDW32D.js";
} from "../../esm-chunks/chunk-5QSXBV7L.js";
import {
init_esm,
trace
} from "../../esm-chunks/chunk-Y3K5Q6FP.js";
} from "../../esm-chunks/chunk-GNGHTHMQ.js";
import {
__toESM
} from "../../esm-chunks/chunk-5JVNISGM.js";
} from "../../esm-chunks/chunk-OEQOKJGE.js";

@@ -22,0 +22,0 @@ // src/build/content/static.ts

@@ -9,7 +9,7 @@

require_out
} from "../../esm-chunks/chunk-VZNKO4OO.js";
} from "../../esm-chunks/chunk-FHR56UHE.js";
import {
__commonJS,
__toESM
} from "../../esm-chunks/chunk-5JVNISGM.js";
} from "../../esm-chunks/chunk-OEQOKJGE.js";

@@ -16,0 +16,0 @@ // node_modules/path-to-regexp/dist/index.js

@@ -9,13 +9,13 @@

require_out
} from "../../esm-chunks/chunk-VZNKO4OO.js";
} from "../../esm-chunks/chunk-FHR56UHE.js";
import {
wrapTracer
} from "../../esm-chunks/chunk-PDPDW32D.js";
} from "../../esm-chunks/chunk-5QSXBV7L.js";
import {
init_esm,
trace
} from "../../esm-chunks/chunk-Y3K5Q6FP.js";
} from "../../esm-chunks/chunk-GNGHTHMQ.js";
import {
__toESM
} from "../../esm-chunks/chunk-5JVNISGM.js";
} from "../../esm-chunks/chunk-OEQOKJGE.js";

@@ -22,0 +22,0 @@ // src/build/functions/server.ts

@@ -10,3 +10,3 @@

__toESM
} from "../esm-chunks/chunk-5JVNISGM.js";
} from "../esm-chunks/chunk-OEQOKJGE.js";

@@ -243,6 +243,4 @@ // node_modules/picomatch/lib/constants.js

const idx = input.lastIndexOf(char, lastIdx);
if (idx === -1)
return input;
if (input[idx - 1] === "\\")
return exports.escapeLast(input, char, idx - 1);
if (idx === -1) return input;
if (input[idx - 1] === "\\") return exports.escapeLast(input, char, idx - 1);
return `${input.slice(0, idx)}\\${input.slice(idx)}`;

@@ -414,4 +412,3 @@ };

token = { value: "", depth: 0, isGlob: false };
if (finished === true)
continue;
if (finished === true) continue;
if (prev === CHAR_DOT && index === start + 1) {

@@ -452,4 +449,3 @@ start += 2;

if (code === CHAR_ASTERISK) {
if (prev === CHAR_ASTERISK)
isGlobstar = token.isGlobstar = true;
if (prev === CHAR_ASTERISK) isGlobstar = token.isGlobstar = true;
isGlob = token.isGlob = true;

@@ -547,4 +543,3 @@ finished = true;

if (opts.unescape === true) {
if (glob)
glob = utils.removeBackslashes(glob);
if (glob) glob = utils.removeBackslashes(glob);
if (base && backslashes === true) {

@@ -758,4 +753,3 @@ base = utils.removeBackslashes(base);

}
if (tok.value || tok.output)
append(tok);
if (tok.value || tok.output) append(tok);
if (prev && prev.type === "text" && tok.type === "text") {

@@ -1075,4 +1069,3 @@ prev.output = (prev.output || prev.value) + tok.value;

if (state.braces > 0 && prev.type === "dot") {
if (prev.value === ".")
prev.output = DOT_LITERAL;
if (prev.value === ".") prev.output = DOT_LITERAL;
const brace = braces[braces.length - 1];

@@ -1289,4 +1282,3 @@ prev.type = "dots";

while (state.brackets > 0) {
if (opts.strictBrackets === true)
throw new SyntaxError(syntaxError("closing", "]"));
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "]"));
state.output = utils.escapeLast(state.output, "[");

@@ -1296,4 +1288,3 @@ decrement("brackets");

while (state.parens > 0) {
if (opts.strictBrackets === true)
throw new SyntaxError(syntaxError("closing", ")"));
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", ")"));
state.output = utils.escapeLast(state.output, "(");

@@ -1303,4 +1294,3 @@ decrement("parens");

while (state.braces > 0) {
if (opts.strictBrackets === true)
throw new SyntaxError(syntaxError("closing", "}"));
if (opts.strictBrackets === true) throw new SyntaxError(syntaxError("closing", "}"));
state.output = utils.escapeLast(state.output, "{");

@@ -1351,4 +1341,3 @@ decrement("braces");

const globstar = (opts2) => {
if (opts2.noglobstar === true)
return star;
if (opts2.noglobstar === true) return star;
return `(${capture}(?:(?!${START_ANCHOR}${opts2.dot ? DOTS_SLASH : DOT_LITERAL}).)*?)`;

@@ -1376,7 +1365,5 @@ };

const match = /^(.*?)\.(\w+)$/.exec(str);
if (!match)
return;
if (!match) return;
const source2 = create(match[1]);
if (!source2)
return;
if (!source2) return;
return source2 + DOT_LITERAL + match[2];

@@ -1412,4 +1399,3 @@ }

const state2 = isMatch(str);
if (state2)
return state2;
if (state2) return state2;
}

@@ -1491,4 +1477,3 @@ return false;

picomatch.parse = (pattern, options) => {
if (Array.isArray(pattern))
return pattern.map((p) => picomatch.parse(p, options));
if (Array.isArray(pattern)) return pattern.map((p) => picomatch.parse(p, options));
return parse(pattern, { ...options, fastpaths: false });

@@ -1532,4 +1517,3 @@ };

} catch (err) {
if (options && options.debug === true)
throw err;
if (options && options.debug === true) throw err;
return /$^/;

@@ -1536,0 +1520,0 @@ }

@@ -7,5 +7,11 @@

import "../esm-chunks/chunk-5JVNISGM.js";
import {
require_semver
} from "../esm-chunks/chunk-EFGWM7RS.js";
import {
__toESM
} from "../esm-chunks/chunk-OEQOKJGE.js";
// src/build/plugin-context.ts
var import_semver = __toESM(require_semver(), 1);
import { existsSync, readFileSync } from "node:fs";

@@ -21,6 +27,7 @@ import { readFile } from "node:fs/promises";

var PluginContext = class {
utils;
featureFlags;
netlifyConfig;
pluginName;
pluginVersion;
utils;
constants;

@@ -106,3 +113,7 @@ packageJSON;

get useRegionalBlobs() {
return false;
if (!(this.featureFlags || {})["next-runtime-regional-blobs"]) {
return false;
}
const REQUIRED_BUILD_VERSION = ">=29.41.5";
return (0, import_semver.satisfies)(this.buildVersion, REQUIRED_BUILD_VERSION, { includePrerelease: true });
}

@@ -144,8 +155,9 @@ /**

constructor(options) {
this.constants = options.constants;
this.featureFlags = options.featureFlags;
this.netlifyConfig = options.netlifyConfig;
this.packageJSON = JSON.parse(readFileSync(join(PLUGIN_DIR, "package.json"), "utf-8"));
this.pluginName = this.packageJSON.name;
this.pluginVersion = this.packageJSON.version;
this.constants = options.constants;
this.utils = options.utils;
this.netlifyConfig = options.netlifyConfig;
}

@@ -152,0 +164,0 @@ /** Resolves a path correctly with mono repository awareness for .netlify directories mainly */

@@ -9,6 +9,6 @@

require_semver
} from "../esm-chunks/chunk-PJG75HGC.js";
} from "../esm-chunks/chunk-EFGWM7RS.js";
import {
__toESM
} from "../esm-chunks/chunk-5JVNISGM.js";
} from "../esm-chunks/chunk-OEQOKJGE.js";

@@ -15,0 +15,0 @@ // src/build/verification.ts

@@ -9,8 +9,8 @@

wrapTracer
} from "./esm-chunks/chunk-PDPDW32D.js";
} from "./esm-chunks/chunk-5QSXBV7L.js";
import {
init_esm,
trace
} from "./esm-chunks/chunk-Y3K5Q6FP.js";
import "./esm-chunks/chunk-5JVNISGM.js";
} from "./esm-chunks/chunk-GNGHTHMQ.js";
import "./esm-chunks/chunk-OEQOKJGE.js";

@@ -17,0 +17,0 @@ // src/index.ts

@@ -7,3 +7,3 @@

import "../esm-chunks/chunk-5JVNISGM.js";
import "../esm-chunks/chunk-OEQOKJGE.js";

@@ -10,0 +10,0 @@ // src/run/config.ts

@@ -7,3 +7,3 @@

import "../esm-chunks/chunk-5JVNISGM.js";
import "../esm-chunks/chunk-OEQOKJGE.js";

@@ -10,0 +10,0 @@ // src/run/constants.ts

@@ -7,3 +7,3 @@

import "../esm-chunks/chunk-5JVNISGM.js";
import "../esm-chunks/chunk-OEQOKJGE.js";

@@ -10,0 +10,0 @@ // src/run/headers.ts

@@ -7,3 +7,3 @@

import "../esm-chunks/chunk-5JVNISGM.js";
import "../esm-chunks/chunk-OEQOKJGE.js";

@@ -10,0 +10,0 @@ // src/run/revalidate.ts

@@ -7,3 +7,3 @@

import "../esm-chunks/chunk-5JVNISGM.js";
import "../esm-chunks/chunk-OEQOKJGE.js";

@@ -10,0 +10,0 @@ // src/shared/blobkey.ts

{
"name": "@netlify/plugin-nextjs",
"version": "5.2.2",
"version": "5.3.0",
"description": "Run Next.js seamlessly on Netlify",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc