@afterpack/rollup 0.1.0 → 0.2.0

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
@@ -57,11 +57,12 @@ other option is in the [configuration reference](https://www.afterpack.dev/docs/
57
57
  [protectionMap.enabled]: https://www.afterpack.dev/docs/config#protectionMap-enabled
58
58
  [build.autorun]: https://www.afterpack.dev/docs/config#build-autorun
59
59
 
60
- `/* @afterpack */` directives in a multi-module bundle need `output.sourcemap: true`. Without it,
61
- the plugin skips them and tells you.
60
+ `/* @afterpack */` [directives](https://www.afterpack.dev/docs/directives) that raise protection for
61
+ a region are a [Pro](https://www.afterpack.dev/docs/pro) feature. In a multi-module bundle they need
62
+ `output.sourcemap: true`. Without it, the plugin skips them and tells you.
62
63
 
63
64
  The [Protection Map](https://www.afterpack.dev/docs/protection-map) is written to `.afterpack/`,
64
- outside your output directory, and the plugin adds its local artifacts to your `.gitignore`. It
65
+ outside your output directory; that directory carries its own `.gitignore` and self-ignores. It
65
66
  contains your original source, so never publish or commit it.
66
67
 
67
68
  Options can also live in `afterpack.json` or in `AFTERPACK_*` environment variables. The options
@@ -70,11 +71,12 @@ build and names the right spelling.
70
71
 
71
72
  ## Pro
72
73
 
73
- Without a key, AfterPack runs on your machine and applies basic protection. Set
74
+ Without a key, AfterPack runs on your machine with the full pipeline at any preset. Set
74
75
  [`AFTERPACK_KEY`](https://www.afterpack.dev/docs/config#key) in your environment and the same plugin
75
- sends the build to AfterPack's cloud, which applies much stronger protection. Keep the key out of
76
- your Rollup config: the plugin rejects it there. See [AfterPack
77
- Pro](https://www.afterpack.dev/docs/pro).
76
+ builds in AfterPack's cloud instead, which adds per-region
77
+ [directives](https://www.afterpack.dev/docs/directives) and two hardening transforms you can turn
78
+ on: self-integrity (anti-tamper) and comparison hardening. Keep the key out of your Rollup config:
79
+ the plugin rejects it there. See [AfterPack Pro](https://www.afterpack.dev/docs/pro).
78
80
 
79
81
  ## Not supported here
80
82
 
@@ -88,7 +90,7 @@ Pro](https://www.afterpack.dev/docs/pro).
88
90
  - [Rollup setup guide](https://www.afterpack.dev/docs/frameworks/rollup)
89
91
  - [Presets and protection levels](https://www.afterpack.dev/docs/presets)
90
92
  - [How AfterPack compares to other obfuscators](https://www.afterpack.dev/docs/comparison)
91
- - [Keeping API keys shipped in a bundle out of plain sight](https://www.afterpack.dev/docs/use-cases/shipped-api-keys)
93
+ - [JavaScript obfuscation best practices](https://www.afterpack.dev/docs/best-practices)
92
94
 
93
95
  ## License
94
96
 
package/dist/index.cjs CHANGED
@@ -103,7 +103,7 @@ function afterpackRollup(options = {}) {
103
103
  client: (0, __afterpack_integration_utils.resolveClientIdentity)(require("url").pathToFileURL(__filename).href),
104
104
  telemetry: (0, __afterpack_integration_utils.createTelemetryReporter)(),
105
105
  label: "afterpack-rollup",
106
- gitignoreDir: cwd,
106
+ cwd,
107
107
  startedAt: startedBeforeBundleWalk,
108
108
  capturedByFile: capturedByFile.size > 0 ? capturedByFile : void 0,
109
109
  combinedProtectionMap: {
package/dist/index.js CHANGED
@@ -80,7 +80,7 @@ function afterpackRollup(options = {}) {
80
80
  client: resolveClientIdentity(import.meta.url),
81
81
  telemetry: createTelemetryReporter(),
82
82
  label: "afterpack-rollup",
83
- gitignoreDir: cwd,
83
+ cwd,
84
84
  startedAt: startedBeforeBundleWalk,
85
85
  capturedByFile: capturedByFile.size > 0 ? capturedByFile : void 0,
86
86
  combinedProtectionMap: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@afterpack/rollup",
3
- "version": "0.1.0",
3
+ "version": "0.2.0",
4
4
  "description": "Rollup plugin for AfterPack: obfuscate your JavaScript output during the Rollup build",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",
@@ -28,8 +28,8 @@
28
28
  "rollup": "^3.0.0 || ^4.0.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"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@biomejs/biome": "2.4.4",