@exodus/atoms 7.6.0 → 7.6.1
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/CHANGELOG.md +4 -0
- package/lib/enhancers/dedupe.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,10 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [7.6.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@7.6.0...@exodus/atoms@7.6.1) (2024-07-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @exodus/atoms
|
|
9
|
+
|
|
6
10
|
## [7.6.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@7.5.1...@exodus/atoms@7.6.0) (2024-07-05)
|
|
7
11
|
|
|
8
12
|
### Features
|
package/lib/enhancers/dedupe.js
CHANGED
|
@@ -4,7 +4,7 @@ const { isEqual } = lodash;
|
|
|
4
4
|
const dedupe = (atom) => {
|
|
5
5
|
const set = (value) => {
|
|
6
6
|
if (value === undefined)
|
|
7
|
-
return atom.
|
|
7
|
+
return atom.reset();
|
|
8
8
|
return atom.set(async (previous) => {
|
|
9
9
|
const newValue = isSetter(value) ? await value(previous) : value;
|
|
10
10
|
return isEqual(previous, newValue) ? previous : newValue;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@exodus/atoms",
|
|
3
|
-
"version": "7.6.
|
|
3
|
+
"version": "7.6.1",
|
|
4
4
|
"description": "Abstraction for encapsulating a piece of data behind a simple unified interface: get, set, observe",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"@types/minimalistic-assert": "^1.0.2",
|
|
50
50
|
"events": "^3.3.0"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "4d0f338fc17d176f1293b54fc881914c62f0cfce"
|
|
53
53
|
}
|