@exodus/atoms
Advanced tools
Comparing version 7.3.2 to 7.3.3
@@ -6,2 +6,8 @@ # Change Log | ||
## [7.3.3](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@7.3.2...@exodus/atoms@7.3.3) (2024-05-17) | ||
### Bug Fixes | ||
- relax type for atom supplied to compute ([#6995](https://github.com/ExodusMovement/exodus-hydra/issues/6995)) ([929c5aa](https://github.com/ExodusMovement/exodus-hydra/commit/929c5aad1a2a3b05369068bdeeac7f5e84184696)) | ||
## [7.3.2](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@7.3.1...@exodus/atoms@7.3.2) (2024-05-09) | ||
@@ -8,0 +14,0 @@ |
import { Atom, ReadonlyAtom } from '../utils/types.js'; | ||
type Params<T, V> = { | ||
atom: Atom<T>; | ||
atom: Atom<T> | ReadonlyAtom<T>; | ||
selector: (value: T) => V; | ||
@@ -5,0 +5,0 @@ }; |
@@ -21,3 +21,3 @@ const compute = ({ atom, selector }) => { | ||
}; | ||
return { | ||
const computed = { | ||
...atom, | ||
@@ -28,3 +28,4 @@ get, | ||
}; | ||
return computed; | ||
}; | ||
export default compute; |
@@ -1,4 +0,4 @@ | ||
import { Atom, Port } from '../utils/types.js'; | ||
import { ReadonlyAtom, Port } from '../utils/types.js'; | ||
type Params<T> = { | ||
atom: Atom<T>; | ||
atom: ReadonlyAtom<T>; | ||
port: Port<T>; | ||
@@ -5,0 +5,0 @@ event: string; |
{ | ||
"name": "@exodus/atoms", | ||
"version": "7.3.2", | ||
"version": "7.3.3", | ||
"description": "Abstraction for encapsulating a piece of data behind a simple unified interface: get, set, observe", | ||
@@ -48,3 +48,3 @@ "type": "module", | ||
}, | ||
"gitHead": "d826264da11cdb907877d8796d882f8e488abcea" | ||
"gitHead": "9e3d2a8f5856af1ccfe3b851608d433ba1313e97" | ||
} |
64439
1003