@blac/react 2.0.0-rc.3 → 2.0.0-rc.4

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/dist/index.d.cts CHANGED
@@ -20,7 +20,7 @@ declare class StateContainerRegistry {
20
20
  getOrCreate<T extends StateContainer<any>>(constructor: new (...args: any[]) => T, key?: string, ...args: any[]): T;
21
21
  /**
22
22
  * Release a reference to an instance
23
- * Disposes when ref count reaches zero (unless keepAlive)
23
+ * Disposes when ref count reaches zero (unless static keepAlive is true)
24
24
  */
25
25
  release<T extends StateContainer<any>>(constructor: new (...args: any[]) => T, key?: string, forceDispose?: boolean): void;
26
26
  /**
@@ -60,14 +60,10 @@ declare class StateContainerRegistry {
60
60
  interface StateContainerConfig {
61
61
  /** Container name for debugging */
62
62
  name?: string;
63
- /** Whether to keep container alive when no consumers */
64
- keepAlive?: boolean;
65
63
  /** Enable debug logging */
66
64
  debug?: boolean;
67
65
  /** Custom instance identifier */
68
66
  instanceId?: string;
69
- /** Whether this instance should be isolated (not shared) */
70
- isolated?: boolean;
71
67
  }
72
68
  /**
73
69
  * Listener function for state changes
@@ -133,7 +129,6 @@ declare abstract class StateContainer<S$1> {
133
129
  private _disposed;
134
130
  private readonly config;
135
131
  readonly name: string;
136
- readonly keepAlive: boolean;
137
132
  readonly debug: boolean;
138
133
  readonly instanceId: string;
139
134
  /**
package/dist/index.d.ts CHANGED
@@ -20,7 +20,7 @@ declare class StateContainerRegistry {
20
20
  getOrCreate<T extends StateContainer<any>>(constructor: new (...args: any[]) => T, key?: string, ...args: any[]): T;
21
21
  /**
22
22
  * Release a reference to an instance
23
- * Disposes when ref count reaches zero (unless keepAlive)
23
+ * Disposes when ref count reaches zero (unless static keepAlive is true)
24
24
  */
25
25
  release<T extends StateContainer<any>>(constructor: new (...args: any[]) => T, key?: string, forceDispose?: boolean): void;
26
26
  /**
@@ -60,14 +60,10 @@ declare class StateContainerRegistry {
60
60
  interface StateContainerConfig {
61
61
  /** Container name for debugging */
62
62
  name?: string;
63
- /** Whether to keep container alive when no consumers */
64
- keepAlive?: boolean;
65
63
  /** Enable debug logging */
66
64
  debug?: boolean;
67
65
  /** Custom instance identifier */
68
66
  instanceId?: string;
69
- /** Whether this instance should be isolated (not shared) */
70
- isolated?: boolean;
71
67
  }
72
68
  /**
73
69
  * Listener function for state changes
@@ -133,7 +129,6 @@ declare abstract class StateContainer<S$1> {
133
129
  private _disposed;
134
130
  private readonly config;
135
131
  readonly name: string;
136
- readonly keepAlive: boolean;
137
132
  readonly debug: boolean;
138
133
  readonly instanceId: string;
139
134
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blac/react",
3
- "version": "2.0.0-rc.3",
3
+ "version": "2.0.0-rc.4",
4
4
  "license": "MIT",
5
5
  "author": "Brendan Mullins <jsnanigans@gmail.com>",
6
6
  "main": "./dist/index.js",
@@ -36,7 +36,7 @@
36
36
  "peerDependencies": {
37
37
  "@types/react": "^18.0.0 || ^19.0.0",
38
38
  "react": "^18.0.0 || ^19.0.0",
39
- "@blac/core": "2.0.0-rc.3"
39
+ "@blac/core": "2.0.0-rc.4"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
42
  "@types/react": {
@@ -65,7 +65,7 @@
65
65
  "tsdown": "^0.15.7",
66
66
  "typescript": "^5.9.2",
67
67
  "vitest": "^3.2.4",
68
- "@blac/core": "2.0.0-rc.3"
68
+ "@blac/core": "2.0.0-rc.4"
69
69
  },
70
70
  "scripts": {
71
71
  "dev": "tsdown --watch",