@afterpack/next 0.2.5 → 0.2.6
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/README.md +2 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -95,7 +95,8 @@ Without a key, AfterPack runs on your machine with the full pipeline at any pres
|
|
|
95
95
|
[`AFTERPACK_KEY`](https://www.afterpack.dev/docs/config#key) in your environment and the same plugin
|
|
96
96
|
builds in AfterPack's cloud instead, which adds per-region
|
|
97
97
|
[directives](https://www.afterpack.dev/docs/directives) and two hardening transforms you can turn
|
|
98
|
-
on: self-integrity
|
|
98
|
+
on: self-integrity, which detects edits to its own check table only, not edits
|
|
99
|
+
elsewhere in your code, and comparison hardening. Keep the key out of `next.config.ts`: the
|
|
99
100
|
plugin rejects it there. See [AfterPack Pro](https://www.afterpack.dev/docs/pro).
|
|
100
101
|
|
|
101
102
|
## Links
|
package/dist/index.cjs
CHANGED
|
@@ -120,7 +120,7 @@ async function runAfterpackHook(input) {
|
|
|
120
120
|
}
|
|
121
121
|
function warnIfBuildIdPinned(buildId, diagnosticsLevel) {
|
|
122
122
|
if (diagnosticsLevel === "none") return;
|
|
123
|
-
if (!/^[0-9a-
|
|
123
|
+
if (!/^[0-9a-z_-]{16,}$/i.test(buildId)) console.warn(`[${LABEL}] this build's id "${buildId}" is not a random Next id, so \`static/${buildId}/_buildManifest.js\` and \`_ssgManifest.js\` keep one immutable URL across releases while their bytes change. AfterPack cannot rename the build id — Next writes into static/${buildId}/ after the build hook runs. Leave \`generateBuildId\` unset so Next randomizes it per build, or bump it every release.`);
|
|
124
124
|
}
|
|
125
125
|
|
|
126
126
|
//#endregion
|
package/dist/index.js
CHANGED
|
@@ -97,7 +97,7 @@ async function runAfterpackHook(input) {
|
|
|
97
97
|
}
|
|
98
98
|
function warnIfBuildIdPinned(buildId, diagnosticsLevel) {
|
|
99
99
|
if (diagnosticsLevel === "none") return;
|
|
100
|
-
if (!/^[0-9a-
|
|
100
|
+
if (!/^[0-9a-z_-]{16,}$/i.test(buildId)) console.warn(`[${LABEL}] this build's id "${buildId}" is not a random Next id, so \`static/${buildId}/_buildManifest.js\` and \`_ssgManifest.js\` keep one immutable URL across releases while their bytes change. AfterPack cannot rename the build id — Next writes into static/${buildId}/ after the build hook runs. Leave \`generateBuildId\` unset so Next randomizes it per build, or bump it every release.`);
|
|
101
101
|
}
|
|
102
102
|
|
|
103
103
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@afterpack/next",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Next.js integration for AfterPack: obfuscate the client JavaScript of a Next.js build inside next build",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"next": ">=15.4.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@afterpack/core": "~0.2.
|
|
32
|
-
"@afterpack/integration-utils": "0.2.
|
|
31
|
+
"@afterpack/core": "~0.2.7",
|
|
32
|
+
"@afterpack/integration-utils": "0.2.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@biomejs/biome": "2.4.4",
|