bunja 2.0.0-alpha.6 → 2.0.0-alpha.8

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/deno.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@disjukr/bunja",
3
- "version": "2.0.0-alpha.6",
3
+ "version": "2.0.0-alpha.7",
4
4
  "license": "Zlib",
5
5
  "exports": {
6
6
  ".": "./bunja.ts",
package/dist/react.cjs CHANGED
@@ -38,18 +38,11 @@ function useBunja(bunja, scopeValuePairs) {
38
38
  (0, react.useEffect)(require_bunja.delayUnmount(mount), deps);
39
39
  return value;
40
40
  }
41
- /**
42
- * @deprecated use `scopeValuePairs` parameter directly in `useBunja` instead.
43
- */
44
- function inject(scopeValuePairs) {
45
- return scopeValuePairs;
46
- }
47
41
 
48
42
  //#endregion
49
43
  exports.BunjaStoreContext = BunjaStoreContext;
50
44
  exports.BunjaStoreProvider = BunjaStoreProvider;
51
45
  exports.bindScope = bindScope;
52
46
  exports.createScopeFromContext = createScopeFromContext;
53
- exports.inject = inject;
54
47
  exports.scopeContextMap = scopeContextMap;
55
48
  exports.useBunja = useBunja;
package/dist/react.d.cts CHANGED
@@ -10,9 +10,5 @@ declare const scopeContextMap: Map<Scope<unknown>, Context<unknown>>;
10
10
  declare function bindScope<T>(scope: Scope<T>, context: Context<T>): void;
11
11
  declare function createScopeFromContext<T>(context: Context<T>, hash?: HashFn<T>): Scope<T>;
12
12
  declare function useBunja<T>(bunja: Bunja<T>, scopeValuePairs?: ScopeValuePair<any>[]): T;
13
- /**
14
- * @deprecated use `scopeValuePairs` parameter directly in `useBunja` instead.
15
- */
16
- declare function inject(scopeValuePairs: ScopeValuePair<any>[]): ScopeValuePair<any>[];
17
13
  //#endregion
18
- export { BunjaStoreContext, BunjaStoreProvider, bindScope, createScopeFromContext, inject, scopeContextMap, useBunja };
14
+ export { BunjaStoreContext, BunjaStoreProvider, bindScope, createScopeFromContext, scopeContextMap, useBunja };
package/dist/react.d.ts CHANGED
@@ -10,9 +10,5 @@ declare const scopeContextMap: Map<Scope<unknown>, Context<unknown>>;
10
10
  declare function bindScope<T>(scope: Scope<T>, context: Context<T>): void;
11
11
  declare function createScopeFromContext<T>(context: Context<T>, hash?: HashFn<T>): Scope<T>;
12
12
  declare function useBunja<T>(bunja: Bunja<T>, scopeValuePairs?: ScopeValuePair<any>[]): T;
13
- /**
14
- * @deprecated use `scopeValuePairs` parameter directly in `useBunja` instead.
15
- */
16
- declare function inject(scopeValuePairs: ScopeValuePair<any>[]): ScopeValuePair<any>[];
17
13
  //#endregion
18
- export { BunjaStoreContext, BunjaStoreProvider, bindScope, createScopeFromContext, inject, scopeContextMap, useBunja };
14
+ export { BunjaStoreContext, BunjaStoreProvider, bindScope, createScopeFromContext, scopeContextMap, useBunja };
package/dist/react.js CHANGED
@@ -37,12 +37,6 @@ function useBunja(bunja, scopeValuePairs) {
37
37
  useEffect(delayUnmount(mount), deps);
38
38
  return value;
39
39
  }
40
- /**
41
- * @deprecated use `scopeValuePairs` parameter directly in `useBunja` instead.
42
- */
43
- function inject(scopeValuePairs) {
44
- return scopeValuePairs;
45
- }
46
40
 
47
41
  //#endregion
48
- export { BunjaStoreContext, BunjaStoreProvider, bindScope, createScopeFromContext, inject, scopeContextMap, useBunja };
42
+ export { BunjaStoreContext, BunjaStoreProvider, bindScope, createScopeFromContext, scopeContextMap, useBunja };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bunja",
3
3
  "type": "module",
4
- "version": "2.0.0-alpha.6",
4
+ "version": "2.0.0-alpha.8",
5
5
  "description": "State Lifetime Manager",
6
6
  "main": "dist/bunja.cjs",
7
7
  "module": "dist/bunja.js",
package/react.ts CHANGED
@@ -68,12 +68,3 @@ export function useBunja<T>(
68
68
  useEffect(delayUnmount(mount), deps);
69
69
  return value;
70
70
  }
71
-
72
- /**
73
- * @deprecated use `scopeValuePairs` parameter directly in `useBunja` instead.
74
- */
75
- export function inject(
76
- scopeValuePairs: ScopeValuePair<any>[],
77
- ): ScopeValuePair<any>[] {
78
- return scopeValuePairs;
79
- }