@afterpack/next 0.1.0 → 0.2.0-rc.20260930T1421

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 CHANGED
@@ -66,11 +66,11 @@ other option is in the [configuration reference](https://www.afterpack.dev/docs/
66
66
  [protectionMap.enabled]: https://www.afterpack.dev/docs/config#protectionMap-enabled
67
67
  [build.autorun]: https://www.afterpack.dev/docs/config#build-autorun
68
68
 
69
- `/* @afterpack */` [directives](https://www.afterpack.dev/docs/directives) and a readable
70
- [Protection Map](https://www.afterpack.dev/docs/protection-map) both need
71
- `productionBrowserSourceMaps: true` in your Next config. The Protection Map is written to
72
- `.afterpack/`, which the plugin adds to your `.gitignore`. It contains your original source, so
73
- never deploy or commit it.
69
+ `/* @afterpack */` [directives](https://www.afterpack.dev/docs/directives) that raise protection for
70
+ a region are a [Pro](https://www.afterpack.dev/docs/pro) feature. They and a readable [Protection
71
+ Map](https://www.afterpack.dev/docs/protection-map) both need `productionBrowserSourceMaps: true` in
72
+ your Next config. The Protection Map is written to `.afterpack/`, which carries its own `.gitignore`
73
+ and self-ignores. It contains your original source, so never deploy or commit it.
74
74
 
75
75
  Options can also live in `afterpack.json` or in `AFTERPACK_*` environment variables. The options
76
76
  object wins over the environment, which wins over the file. An unknown or misspelled key fails the
@@ -89,11 +89,12 @@ browser would block the obfuscated chunks. The build stops with an error that sa
89
89
 
90
90
  ## Pro
91
91
 
92
- Without a key, AfterPack runs on your machine and applies basic protection. Set
92
+ Without a key, AfterPack runs on your machine with the full pipeline at any preset. Set
93
93
  [`AFTERPACK_KEY`](https://www.afterpack.dev/docs/config#key) in your environment and the same plugin
94
- sends the build to AfterPack's cloud, which applies much stronger protection. Keep the key out of
95
- `next.config.ts`: the plugin rejects it there. See [AfterPack
96
- Pro](https://www.afterpack.dev/docs/pro).
94
+ builds in AfterPack's cloud instead, which adds per-region
95
+ [directives](https://www.afterpack.dev/docs/directives) and two hardening transforms you can turn
96
+ on: self-integrity (anti-tamper) and comparison hardening. Keep the key out of `next.config.ts`: the
97
+ plugin rejects it there. See [AfterPack Pro](https://www.afterpack.dev/docs/pro).
97
98
 
98
99
  ## Links
99
100
 
package/dist/index.cjs CHANGED
@@ -104,7 +104,7 @@ async function runAfterpackHook(input) {
104
104
  client: (0, __afterpack_integration_utils.resolveClientIdentity)(require("url").pathToFileURL(__filename).href),
105
105
  telemetry: (0, __afterpack_integration_utils.createTelemetryReporter)(),
106
106
  label: LABEL,
107
- gitignoreDir: projectDir,
107
+ cwd: projectDir,
108
108
  startedAt,
109
109
  combinedProtectionMap: {
110
110
  buildDir: distDir,
package/dist/index.js CHANGED
@@ -81,7 +81,7 @@ async function runAfterpackHook(input) {
81
81
  client: resolveClientIdentity(import.meta.url),
82
82
  telemetry: createTelemetryReporter(),
83
83
  label: LABEL,
84
- gitignoreDir: projectDir,
84
+ cwd: projectDir,
85
85
  startedAt,
86
86
  combinedProtectionMap: {
87
87
  buildDir: distDir,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afterpack/next",
3
- "version": "0.1.0",
3
+ "version": "0.2.0-rc.20260930T1421",
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.1.0",
32
- "@afterpack/integration-utils": "0.1.0"
31
+ "@afterpack/core": "~0.2.0",
32
+ "@afterpack/integration-utils": "0.2.0-rc.20260930T1421"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@biomejs/biome": "2.4.4",