atom.io 0.10.0 → 0.10.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.
|
@@ -11,13 +11,13 @@ export const emitUpdate = <T>(
|
|
|
11
11
|
): void => {
|
|
12
12
|
const { key } = state
|
|
13
13
|
const { logger } = store
|
|
14
|
-
logger
|
|
14
|
+
logger.info(
|
|
15
15
|
`📢 ${state.type} "${key}" went (`,
|
|
16
16
|
update.oldValue,
|
|
17
17
|
`->`,
|
|
18
18
|
update.newValue,
|
|
19
19
|
`)`,
|
|
20
20
|
)
|
|
21
|
-
logger
|
|
21
|
+
logger.info(`📢 notifying subscribers:`, state.subject.subscribers)
|
|
22
22
|
state.subject.next(update)
|
|
23
23
|
}
|
|
@@ -107,19 +107,19 @@ export class Store {
|
|
|
107
107
|
),
|
|
108
108
|
]
|
|
109
109
|
public logger: Logger = {
|
|
110
|
-
error: (
|
|
110
|
+
error: (...messages: unknown[]) => {
|
|
111
111
|
for (const logger of this.loggers) {
|
|
112
|
-
logger.error(
|
|
112
|
+
logger.error(...messages)
|
|
113
113
|
}
|
|
114
114
|
},
|
|
115
|
-
info: (
|
|
115
|
+
info: (...messages: unknown[]) => {
|
|
116
116
|
for (const logger of this.loggers) {
|
|
117
|
-
logger.info(
|
|
117
|
+
logger.info(...messages)
|
|
118
118
|
}
|
|
119
119
|
},
|
|
120
|
-
warn: (
|
|
120
|
+
warn: (...messages: unknown[]) => {
|
|
121
121
|
for (const logger of this.loggers) {
|
|
122
|
-
logger.warn(
|
|
122
|
+
logger.warn(...messages)
|
|
123
123
|
}
|
|
124
124
|
},
|
|
125
125
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atom.io",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Composable and testable reactive data library.",
|
|
5
5
|
"homepage": "https://atom.io.fyi",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
"url": "git+https://github.com/jeremybanka/wayforge.git",
|
|
15
15
|
"directory": "packages/atom.io"
|
|
16
16
|
},
|
|
17
|
-
"dependencies": {},
|
|
18
17
|
"peerDependencies": {
|
|
19
18
|
"@floating-ui/react": ">=0.25.0",
|
|
20
19
|
"@floating-ui/react-dom": ">=2.0.0",
|
|
@@ -50,15 +49,20 @@
|
|
|
50
49
|
"devDependencies": {
|
|
51
50
|
"@emotion/react": "11.11.1",
|
|
52
51
|
"@testing-library/react": "14.1.2",
|
|
52
|
+
"@types/http-proxy": "1.17.14",
|
|
53
53
|
"@types/npmlog": "4.1.6",
|
|
54
54
|
"@types/react": "18.2.37",
|
|
55
55
|
"@types/tmp": "0.2.6",
|
|
56
56
|
"@vitest/coverage-v8": "0.34.6",
|
|
57
57
|
"concurrently": "8.2.2",
|
|
58
|
+
"drizzle-kit": "0.20.4",
|
|
59
|
+
"drizzle-orm": "0.29.0",
|
|
58
60
|
"eslint": "8.54.0",
|
|
59
61
|
"framer-motion": "10.16.5",
|
|
60
62
|
"happy-dom": "12.10.3",
|
|
63
|
+
"http-proxy": "1.18.1",
|
|
61
64
|
"npmlog": "7.0.1",
|
|
65
|
+
"postgres": "3.4.3",
|
|
62
66
|
"preact": "10.19.2",
|
|
63
67
|
"react": "18.2.0",
|
|
64
68
|
"react-dom": "18.2.0",
|
|
@@ -199,7 +203,7 @@
|
|
|
199
203
|
}
|
|
200
204
|
},
|
|
201
205
|
"scripts": {
|
|
202
|
-
"
|
|
206
|
+
"manifest": "tsx __scripts__/manifest-build.node",
|
|
203
207
|
"build": "concurrently \"npm:build:*\"",
|
|
204
208
|
"build:main": "tsup",
|
|
205
209
|
"build:data": "cd data && tsup",
|
|
@@ -217,7 +221,7 @@
|
|
|
217
221
|
"lint:eslint": "eslint .",
|
|
218
222
|
"lint": "npm run lint:biome && npm run lint:eslint",
|
|
219
223
|
"test": "vitest",
|
|
220
|
-
"test:once": "npm run test:
|
|
221
|
-
"test:
|
|
224
|
+
"test:once": "npm run test:manifest && cross-env IMPORT=dist vitest run",
|
|
225
|
+
"test:manifest": "tsx __scripts__/manifest-test.node"
|
|
222
226
|
}
|
|
223
227
|
}
|