memorio 3.0.1 → 4.0.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "memorio",
3
3
  "code": "memorio",
4
- "version": "3.0.1",
4
+ "version": "4.0.0",
5
5
  "description": "Memorio, State + Observer, Store and iDB for an easy life - Cross-platform compatible",
6
6
  "main": "./index.cjs",
7
7
  "browser": "./index.cjs",
@@ -22,6 +22,7 @@
22
22
  }
23
23
  ],
24
24
  "keywords": [
25
+ "memorio",
25
26
  "state",
26
27
  "observer",
27
28
  "store",
@@ -43,6 +44,9 @@
43
44
  "url": "https://www.patreon.com/passariello"
44
45
  }
45
46
  ],
47
+ "workspaces": [
48
+ "tests"
49
+ ],
46
50
  "engines": {
47
51
  "node": ">=18.0.0"
48
52
  },
@@ -62,6 +66,11 @@
62
66
  "optional": true
63
67
  }
64
68
  },
69
+ "overrides": {
70
+ "indent-string": "npm:@socketregistry/indent-string@^1",
71
+ "object-assign": "npm:@socketregistry/object-assign@^1",
72
+ "safer-buffer": "npm:@socketregistry/safer-buffer@^1"
73
+ },
65
74
  "exports": {
66
75
  ".": {
67
76
  "import": "./index.js",
@@ -25,6 +25,12 @@ interface _memorio {
25
25
  _tracking?: boolean
26
26
  _trackedPaths?: Set<string>
27
27
  _locked?: boolean
28
+ // Platform detection
29
+ isBrowser: () => boolean
30
+ isNode: () => boolean
31
+ isDeno: () => boolean
32
+ isEdge: () => boolean
33
+ getCapabilities: (...args: unknown[]) => any
28
34
  // Platform properties
29
35
  _platform?: string
30
36
  _capabilities?: any