@lightprotocol/stateless.js 0.23.0-beta.1 → 0.23.0-beta.3

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.
@@ -375,19 +375,29 @@ declare enum VERSION {
375
375
  V1 = "V1",
376
376
  V2 = "V2"
377
377
  }
378
- /**
379
- /**
380
- * @internal
381
- * Feature flags. Only use if you know what you are doing.
382
- */
383
378
  declare const featureFlags: {
384
379
  version: VERSION;
385
380
  isV2: () => boolean;
386
381
  /**
387
382
  * Beta flag for interface methods (not yet deployed on mainnet).
388
- * Runtime only - check LIGHT_PROTOCOL_BETA env var.
383
+ * Checks programmatic override first, then env var LIGHT_PROTOCOL_BETA.
389
384
  */
390
385
  isBeta: () => boolean;
386
+ /**
387
+ * Enable beta features programmatically.
388
+ * Call this once at app initialization to unlock interface methods.
389
+ *
390
+ * @example
391
+ * ```typescript
392
+ * import { featureFlags } from '@lightprotocol/stateless.js';
393
+ * featureFlags.enableBeta();
394
+ * ```
395
+ */
396
+ enableBeta: () => void;
397
+ /**
398
+ * Disable beta features programmatically.
399
+ */
400
+ disableBeta: () => void;
391
401
  };
392
402
  /**
393
403
  * Error message for beta-gated interface methods.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightprotocol/stateless.js",
3
- "version": "0.23.0-beta.1",
3
+ "version": "0.23.0-beta.3",
4
4
  "description": "JavaScript API for Light & ZK Compression",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/node/index.cjs",