@octanejs/rxjs 0.1.30 → 0.1.32

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.
Files changed (2) hide show
  1. package/package.json +5 -5
  2. package/src/bind.ts +2 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octanejs/rxjs",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "engines": {
@@ -38,19 +38,19 @@
38
38
  "@rx-state/core": "0.1.4"
39
39
  },
40
40
  "peerDependencies": {
41
- "rxjs": "^7.8.2",
42
- "octane": "0.1.51"
41
+ "octane": "^0.1.51 || ^0.2.0",
42
+ "rxjs": "^7.8.2"
43
43
  },
44
44
  "devDependencies": {
45
45
  "@react-rxjs/core": "0.10.8",
46
46
  "@react-rxjs/utils": "0.9.7",
47
- "@tsrx/react": "^0.2.61",
47
+ "@tsrx/react": "^0.2.63",
48
48
  "esbuild": "^0.28.1",
49
49
  "react": "^19.2.7",
50
50
  "react-dom": "^19.2.7",
51
51
  "rxjs": "^7.8.2",
52
52
  "vitest": "^4.1.10",
53
- "octane": "0.1.51"
53
+ "octane": "0.2.3"
54
54
  },
55
55
  "scripts": {
56
56
  "test": "vitest run"
package/src/bind.ts CHANGED
@@ -27,6 +27,8 @@ export function bind(source: unknown, defaultValue?: unknown): readonly [unknown
27
27
  const bound = hasDefault
28
28
  ? state(source as (...args: unknown[]) => Observable<unknown>, defaultValue)
29
29
  : state(source as (...args: unknown[]) => Observable<unknown>);
30
+ // The manual provider adapter appends the call-site slot after every
31
+ // authored argument, so a factory's final Symbol remains user data.
30
32
  const useBound = (...runtimeArgs: unknown[]) => {
31
33
  const [args, slot] = splitSlot(runtimeArgs);
32
34
  return useStateObservable(bound(...args), slot, args);