jso-protector 0.4.9 → 0.4.11

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/CHANGELOG.md CHANGED
@@ -1,5 +1,38 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.11 - 2026-09-03
4
+
5
+ Anonymous runs now say what a free account is worth.
6
+
7
+ - Every anonymous run printed "Run `javascriptobfuscator login` to use your
8
+ plan". That sentence is addressed to someone who already has a plan, and it
9
+ only ever prints for someone who does not - so the one moment the CLI has a
10
+ new user's attention was spent on something they could not act on. It now
11
+ states the real numbers: anonymous runs are capped at 5 per hour, a free
12
+ account raises that to 100 per hour, with a link to create one.
13
+ - The difference was never invented for this release; it has always been in the
14
+ server's rate limiter (2/min + 5/hour keyless, 10/min + 100/hour signed in,
15
+ per IP). It had simply never been said out loud.
16
+ - Why it matters now: until 2026-09-03 the server's limiter keyed on the
17
+ Cloudflare edge address rather than the caller's, so a single client spread
18
+ across edge nodes almost never met the anonymous cap. With that fixed the cap
19
+ binds for the first time, and a run that exceeds it can wait up to an hour.
20
+ The 429 body names both ceilings too, instead of saying an account "raises
21
+ the limit substantially".
22
+
23
+ No API, option or output changes.
24
+
25
+ ## 0.4.10 - 2026-09-02
26
+
27
+ Examples README pointed at the wrong version.
28
+
29
+ - The examples guide told customers to `npm install --save-dev
30
+ javascriptobfuscator-com@0.4.7` while the package was two releases newer.
31
+ Because `examples/` ships inside the tarball, published 0.4.8 and 0.4.9
32
+ carried that stale instruction. It now installs the current version, and the
33
+ publish gate (`prepublishOnly`) now runs `verify:examples`, so a mismatched
34
+ README blocks the release instead of shipping and only failing CI afterward.
35
+
3
36
  ## 0.4.9 - 2026-09-01
4
37
 
5
38
  README only. No behaviour changes.
@@ -899,6 +899,10 @@ Usage:
899
899
  jso-protector --migrate-javascript-obfuscator javascript-obfuscator.json --output jso.config.json
900
900
  jso-protector --migrate-javascript-obfuscator javascript-obfuscator.config.cjs --output jso.config.json
901
901
  jso-protector --migrate-js-confuser js-confuser.config.cjs --output jso.config.json
902
+ jso-protector --init
903
+ javascriptobfuscator login Sign in once and save credentials for this machine
904
+ javascriptobfuscator logout Remove the saved credentials
905
+ Evidence and compliance reports (source-free; run after a protected build):
902
906
  jso-protector --ai-resistance-evidence dist-protected/jso-report.json --ai-resistance-evidence-output reports/ai-resistance-evidence.md
903
907
  jso-protector --source-map-evidence dist-protected/jso-manifest.json --source-map-evidence-output reports/source-map-evidence.md
904
908
  jso-protector --deployment-hygiene-evidence _temp/archive-hygiene.json --deployment-hygiene-output reports/deployment-hygiene.md
@@ -909,9 +913,7 @@ Usage:
909
913
  jso-protector --script-inventory-from-snapshot reports/runtime-inventory.json --script-inventory-output reports/payment-script-inventory.json
910
914
  jso-protector --payment-page-headers-from-har reports/checkout.har --payment-page-headers-baseline reports/payment-page-headers.baseline.json --payment-page-headers-output reports/payment-page-headers.json
911
915
  jso-protector --script-inventory-audit reports/payment-script-inventory.json --runtime-inventory-snapshot reports/runtime-inventory.json
912
- jso-protector --init
913
- javascriptobfuscator login Sign in once and save credentials for this machine
914
- javascriptobfuscator logout Remove the saved credentials
916
+
915
917
 
916
918
  Options:
917
919
  --config <file> Config file path. Supports JSON, CommonJS .cjs/.js, and ESM .mjs/.js files.
@@ -12323,10 +12325,27 @@ async function main(argv = process.argv.slice(2)) {
12323
12325
  assertReady(config);
12324
12326
  // Say plainly that this run is unauthenticated. Someone whose credentials
12325
12327
  // silently stopped resolving must not think they are on their paid plan.
12328
+ //
12329
+ // The second line used to read "Run `javascriptobfuscator login` to use your
12330
+ // plan", which is addressed to someone who ALREADY HAS a plan - and this
12331
+ // message only ever prints for someone who does not. It spent the one moment
12332
+ // we have their attention telling them nothing they could act on.
12333
+ //
12334
+ // A free account is worth naming precisely: the server gives a keyless run
12335
+ // 2 requests/minute and 5/hour per IP, and a signed-in one 10/minute and
12336
+ // 100/hour - twenty times the hourly ceiling, at no cost. Files are batched
12337
+ // up to 20 per request, so 5/hour is about five builds an hour: fine for a
12338
+ // look, tight for iterating.
12339
+ //
12340
+ // That ceiling only began binding for real on 2026-09-03. Before then the
12341
+ // limiter keyed on the Cloudflare edge ip rather than the visitor, so a
12342
+ // single client spread across edge nodes almost never met it.
12326
12343
  if (isAnonymousRun(config) && !args.json) {
12327
12344
  process.stderr.write(
12328
- "No credentials found - running on the free tier (up to 20 files, 200 KB per request, no VM protection)." + "\n" +
12329
- "Run `javascriptobfuscator login` to use your plan." + "\n\n");
12345
+ "No credentials found - running anonymously on the free tier (up to 20 files, 200 KB per request, no VM protection)." + "\n" +
12346
+ "Anonymous runs are capped at 5 per hour. A free account raises that to 100 per hour:" + "\n" +
12347
+ " https://javascriptobfuscator.com/register.aspx?src=cli-anon" + "\n" +
12348
+ "Already have an account? Run `javascriptobfuscator login`." + "\n\n");
12330
12349
  }
12331
12350
  if (!files.length) {
12332
12351
  throw new Error("No matching input files found.");
@@ -39,7 +39,7 @@ published as `javascriptobfuscator-com`; `jso-protector` is the former name and
39
39
  is deprecated but still updated:
40
40
 
41
41
  ```bash
42
- npm install --save-dev javascriptobfuscator-com@0.4.7
42
+ npm install --save-dev javascriptobfuscator-com@0.4.11
43
43
  ```
44
44
 
45
45
  Repository contributors can instead use the existing `file:../..` development
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jso-protector",
3
- "version": "0.4.9",
3
+ "version": "0.4.11",
4
4
  "description": "Obfuscate and protect JavaScript in your build or CI: dependency-free CLI, Node API, and webpack/Vite/Rollup/esbuild/Next.js/Metro plugins, with one-command migration from javascript-obfuscator and JS-Confuser configs.",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "author": "JavaScript Obfuscator",
@@ -225,7 +225,7 @@
225
225
  "smoke": "node ./bin/jso-protector.js --help && node ./bin/jso-protector.js --config ./jso.config.example.json --dry-run --json",
226
226
  "smoke:api": "node ./bin/jso-protector.js --config ./jso.config.example.json --json",
227
227
  "test": "node ./test/cli.test.js && node ./test/ai.test.js && node ./test/ai-precheck.test.js && node ./test/ai-script-governance.test.js && node ./test/data-exfiltration-guard.test.js && node ./test/compat-scan.test.js && node ./test/compliance.test.js && node ./test/evidence-forwarder.test.js && node ./test/config-schema.test.js && node ./test/countermeasures.test.js && node ./test/environment-integrity.test.js && node ./test/estimate.test.js && node ./test/github-action.test.js && node ./test/governance.test.js && node ./test/local-bridge.test.js && node ./test/managed-integrity.test.js && node ./test/named-sets.test.js && node ./test/release-signer.test.js && node ./test/scan-watermarks.test.js && node ./test/third-party-inventory.test.js && node ./test/watermark.test.js && node ./test/wire-format-vectors.test.js",
228
- "verify": "npm test && npm run verify:package && npm run verify:examples && npm run verify:publish-metadata && npm run verify:ci && npm run verify:polyglot && npm run verify:ai && npm run verify:verify-scripts-tracked && npm run verify:aspnet-bom && npm run verify:aspnet-compile && npm run verify:endrequest-guard && npm run verify:health-readiness && npm run verify:legacy-soap-security && npm run verify:online-demo-security && npm run verify:parser-engine && npm run verify:emit-validation && npm run verify:emit-validation-modern && npm run verify:runtime-defense-libraries && npm run verify:internal-links && npm run verify:seo && npm run verify:faq-visibility && npm run verify:artifact-claims && npm run verify:runtime-dashboard && npm run verify:payment-page && npm run verify:payment-activation && npm run verify:payment-row-completeness && npm run verify:account-recovery && npm run verify:registration && npm run verify:admin-auth && npm run verify:http-api-auth && npm run verify:request-body-limits && npm run verify:public-form-security && npm run verify:operational-logs && npm run verify:richtexteditor-surface && npm run verify:dashboard-resource-governance && npm run verify:dashboard-diagnostic-surface && npm run verify:web-integrity-policy && npm run verify:entitlements && npm run verify:enterprise-governance && npm run verify:database-migrations && npm run verify:source-secrets && npm run verify:ignored-shipping-secrets && npm run verify:winforms-runtime-floor && npm run verify:ai-billing && npm run verify:ai-key-security && npm run verify:ajax-transport && npm run verify:competitor-gap && npm run verify:parity-defect-sync && npm run verify:source-map-evidence && npm run verify:migration-review && npm run verify:identifier-cache-review && npm run verify:runtime-defense-review && npm run verify:vm-proof && npm run verify:deployment-hygiene && npm run verify:download-artifacts && npm run verify:download-examples && npm run verify:copy-discipline && npm run verify:github-action",
228
+ "verify": "npm test && npm run verify:package && npm run verify:examples && npm run verify:publish-metadata && npm run verify:ci && npm run verify:polyglot && npm run verify:ai && npm run verify:verify-scripts-tracked && npm run verify:aspnet-bom && npm run verify:aspnet-compile && npm run verify:endrequest-guard && npm run verify:health-readiness && npm run verify:legacy-soap-security && npm run verify:online-demo-security && npm run verify:parser-engine && npm run verify:emit-validation && npm run verify:emit-validation-modern && npm run verify:runtime-defense-libraries && npm run verify:internal-links && npm run verify:seo && npm run verify:faq-visibility && npm run verify:artifact-claims && npm run verify:runtime-dashboard && npm run verify:payment-page && npm run verify:payment-activation && npm run verify:payment-row-completeness && npm run verify:account-recovery && npm run verify:registration && npm run verify:admin-auth && npm run verify:http-api-auth && npm run verify:request-body-limits && npm run verify:public-form-security && npm run verify:operational-logs && npm run verify:richtexteditor-surface && npm run verify:dashboard-resource-governance && npm run verify:dashboard-diagnostic-surface && npm run verify:web-integrity-policy && npm run verify:entitlements && npm run verify:enterprise-governance && npm run verify:database-migrations && npm run verify:source-secrets && npm run verify:ignored-shipping-secrets && npm run verify:winforms-runtime-floor && npm run verify:ai-billing && npm run verify:ai-key-security && npm run verify:ajax-transport && npm run verify:competitor-gap && npm run verify:parity-defect-sync && npm run verify:source-map-evidence && npm run verify:migration-review && npm run verify:identifier-cache-review && npm run verify:runtime-defense-review && npm run verify:vm-proof && npm run verify:deployment-hygiene && npm run verify:download-artifacts && npm run verify:download-examples && npm run verify:copy-discipline && npm run verify:github-action && npm run verify:outbound-nofollow",
229
229
  "verify:release": "npm run verify && npm run verify:corpus-protect && npm run verify:corpus-runtime",
230
230
  "verify:verify-scripts-tracked": "node ../polyglot-smoke/check-verify-scripts-tracked.js",
231
231
  "verify:parity-defect-sync": "node ../polyglot-smoke/check-parity-defect-sync.js",
@@ -297,7 +297,8 @@
297
297
  "verify:polyglot": "node ../polyglot-smoke/smoke.js",
298
298
  "verify:ai": "node ../polyglot-smoke/ai-smoke.js",
299
299
  "verify:ai-live": "node ../polyglot-smoke/ai-smoke-live.js",
300
- "prepublishOnly": "node ./ci/verify-publish-metadata.js && npm run verify:package && npm run verify:ci && npm run verify:polyglot && npm run verify:ai"
300
+ "prepublishOnly": "node ./ci/verify-publish-metadata.js && npm run verify:package && npm run verify:examples && npm run verify:ci && npm run verify:polyglot && npm run verify:ai",
301
+ "verify:outbound-nofollow": "node ../polyglot-smoke/check-outbound-nofollow.js"
301
302
  },
302
303
  "engines": {
303
304
  "node": ">=18"