@exodus/atoms 8.1.0 → 8.1.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 CHANGED
@@ -3,6 +3,12 @@
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
+ ## [8.1.1](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@8.1.0...@exodus/atoms@8.1.1) (2024-09-09)
7
+
8
+ ### Bug Fixes
9
+
10
+ - **atoms:** actively clear cache upon reset ([#8709](https://github.com/ExodusMovement/exodus-hydra/issues/8709)) ([d159c00](https://github.com/ExodusMovement/exodus-hydra/commit/d159c0020519379a4b477a52b82494b6f93c704e))
11
+
6
12
  ## [8.1.0](https://github.com/ExodusMovement/exodus-hydra/compare/@exodus/atoms@8.0.0...@exodus/atoms@8.1.0) (2024-08-10)
7
13
 
8
14
  ### Features
@@ -50,6 +50,7 @@ const enhanceAtom = (params) => {
50
50
  const reset = async () => {
51
51
  try {
52
52
  await atom.reset();
53
+ await cacheAtom.reset();
53
54
  }
54
55
  catch (error) {
55
56
  logger.warn('Failed to write to atom, is it a readonly atom? Clearing cache...', error);
package/lib/index.d.ts CHANGED
@@ -22,4 +22,4 @@ export { default as withStorageCache } from './enhancers/with-storage-cache.js';
22
22
  export { default as waitUntil } from './effects/wait-until.js';
23
23
  export { default as enforceObservableRules } from './enforce-rules.js';
24
24
  export { default as fromEventEmitter } from './event-emitter.js';
25
- export { Atom, ReadonlyAtom, Listener, Unsubscribe } from './utils/types.js';
25
+ export type { Atom, ReadonlyAtom, Listener, Unsubscribe } from './utils/types.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@exodus/atoms",
3
- "version": "8.1.0",
3
+ "version": "8.1.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",
@@ -9,8 +9,8 @@
9
9
  "scripts": {
10
10
  "build": "run -T tsc --build tsconfig.build.json",
11
11
  "clean": "run -T tsc --build --clean",
12
- "test": "run -T jest",
13
- "lint": "run -T eslint . --ignore-path ../../.gitignore",
12
+ "test": "run -T exodus-test --jest --esbuild",
13
+ "lint": "run -T eslint .",
14
14
  "lint:fix": "yarn lint --fix",
15
15
  "prepublishOnly": "yarn run -T build --scope @exodus/atoms"
16
16
  },
@@ -28,7 +28,6 @@
28
28
  "url": "https://github.com/ExodusMovement/exodus-hydra/issues?q=is%3Aissue+is%3Aopen+label%3Aatoms"
29
29
  },
30
30
  "dependencies": {
31
- "@exodus/basic-utils": "^2.5.2",
32
31
  "@exodus/storage-interface": "^1.0.0",
33
32
  "delay": "^5.0.0",
34
33
  "eventemitter3": "^4.0.7",
@@ -41,12 +40,12 @@
41
40
  },
42
41
  "devDependencies": {
43
42
  "@exodus/atom-tests": "^1.0.0",
44
- "@exodus/storage-memory": "^2.1.1",
43
+ "@exodus/storage-memory": "^2.2.0",
45
44
  "@types/jest": "^29.5.11",
46
45
  "@types/json-stringify-safe": "^5.0.3",
47
46
  "@types/lodash": "^4.14.200",
48
47
  "@types/minimalistic-assert": "^1.0.2",
49
48
  "events": "^3.3.0"
50
49
  },
51
- "gitHead": "b1c2b04c40dfc00630a26f3f5f9a9fab1a9dce91"
50
+ "gitHead": "d64de7579b06afe91fbded3d1f7eb29950f82e5a"
52
51
  }