tempest.games 0.2.68 → 0.2.70
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 +15 -0
- package/app/assets/index-BQfBw87O.js +66 -0
- package/app/index.html +1 -1
- package/bin/backend.bun.js +61 -33
- package/bin/backend.worker.game.bun.js +29 -7
- package/bin/backend.worker.tribunal.bun.js +133 -111
- package/bin/frontend.bun.js +29 -7
- package/package.json +7 -7
- package/app/assets/index-t5Kphr7m.js +0 -109
package/bin/frontend.bun.js
CHANGED
|
@@ -10173,7 +10173,9 @@ var markDone = (store, key) => {
|
|
|
10173
10173
|
}
|
|
10174
10174
|
store.operation.done.add(key);
|
|
10175
10175
|
};
|
|
10176
|
-
function dispatchOrDeferStateUpdate(target, state,
|
|
10176
|
+
function dispatchOrDeferStateUpdate(target, state, proto2, stateIsNewlyCreated, family) {
|
|
10177
|
+
const { oldValue, newValue } = proto2;
|
|
10178
|
+
const hasOldValue = `oldValue` in proto2;
|
|
10177
10179
|
const token = deposit(state);
|
|
10178
10180
|
if (stateIsNewlyCreated && family) {
|
|
10179
10181
|
state.subject.next({ newValue });
|
|
@@ -10206,10 +10208,14 @@ function dispatchOrDeferStateUpdate(target, state, { oldValue, newValue }, state
|
|
|
10206
10208
|
return;
|
|
10207
10209
|
}
|
|
10208
10210
|
const { key, subject, type: type2 } = state;
|
|
10209
|
-
|
|
10210
|
-
|
|
10211
|
-
|
|
10212
|
-
|
|
10211
|
+
let update;
|
|
10212
|
+
if (hasOldValue)
|
|
10213
|
+
update = {
|
|
10214
|
+
oldValue: isTransceiver(oldValue) ? oldValue.READONLY_VIEW : oldValue,
|
|
10215
|
+
newValue: isTransceiver(newValue) ? newValue.READONLY_VIEW : newValue
|
|
10216
|
+
};
|
|
10217
|
+
else
|
|
10218
|
+
update = { newValue: isTransceiver(newValue) ? newValue.READONLY_VIEW : newValue };
|
|
10213
10219
|
if (isRootStore(target)) {
|
|
10214
10220
|
switch (type2) {
|
|
10215
10221
|
case `mutable_atom`:
|
|
@@ -10245,13 +10251,29 @@ function dispatchOrDeferStateUpdate(target, state, { oldValue, newValue }, state
|
|
|
10245
10251
|
}
|
|
10246
10252
|
}
|
|
10247
10253
|
}
|
|
10254
|
+
var UNSET = Symbol(`UNSET`);
|
|
10248
10255
|
var setAtom = (target, atom, next2) => {
|
|
10249
|
-
|
|
10250
|
-
let newValue
|
|
10256
|
+
let oldValue;
|
|
10257
|
+
let newValue;
|
|
10258
|
+
if (isFn(next2)) {
|
|
10259
|
+
const prev = readOrComputeValue(target, atom, `mut`);
|
|
10260
|
+
oldValue = prev;
|
|
10261
|
+
newValue = next2(prev);
|
|
10262
|
+
} else {
|
|
10263
|
+
if (target.valueMap.has(atom.key))
|
|
10264
|
+
oldValue = readFromCache(target, atom, `mut`);
|
|
10265
|
+
else if (atom.type === `atom` && !isFn(atom.default))
|
|
10266
|
+
oldValue = atom.default;
|
|
10267
|
+
else
|
|
10268
|
+
oldValue = UNSET;
|
|
10269
|
+
newValue = next2;
|
|
10270
|
+
}
|
|
10251
10271
|
target.logger.info(`\u2B50`, `atom`, atom.key, `setting value`, newValue);
|
|
10252
10272
|
newValue = writeToCache(target, atom, newValue);
|
|
10253
10273
|
markDone(target, atom.key);
|
|
10254
10274
|
evictDownstreamFromAtom(target, atom);
|
|
10275
|
+
if (oldValue === UNSET)
|
|
10276
|
+
return { newValue };
|
|
10255
10277
|
return {
|
|
10256
10278
|
oldValue,
|
|
10257
10279
|
newValue
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tempest.games",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.70",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"drizzle-orm": "0.44.7",
|
|
37
37
|
"motion": "12.23.24",
|
|
38
38
|
"nanoid": "5.1.6",
|
|
39
|
-
"openai": "6.8.
|
|
39
|
+
"openai": "6.8.1",
|
|
40
40
|
"postgres": "3.4.7",
|
|
41
41
|
"react": "19.2.0",
|
|
42
42
|
"react-dom": "19.2.0",
|
|
@@ -45,9 +45,9 @@
|
|
|
45
45
|
"safegen": "0.8.1",
|
|
46
46
|
"socket.io": "4.8.1",
|
|
47
47
|
"socket.io-client": "4.8.1",
|
|
48
|
-
"atom.io": "0.44.
|
|
49
|
-
"
|
|
50
|
-
"
|
|
48
|
+
"atom.io": "0.44.2",
|
|
49
|
+
"safedeposit": "0.1.2",
|
|
50
|
+
"treetrunks": "0.1.5"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
53
|
"@react-email/components": "0.5.7",
|
|
@@ -68,10 +68,10 @@
|
|
|
68
68
|
"globals": "16.5.0",
|
|
69
69
|
"rimraf": "6.1.0",
|
|
70
70
|
"sass-embedded": "1.93.3",
|
|
71
|
-
"vite": "7.
|
|
71
|
+
"vite": "7.2.0",
|
|
72
72
|
"vite-tsconfig-paths": "5.1.4",
|
|
73
73
|
"vitest": "4.0.7",
|
|
74
|
-
"flightdeck": "0.2.
|
|
74
|
+
"flightdeck": "0.2.94",
|
|
75
75
|
"varmint": "0.5.10"
|
|
76
76
|
},
|
|
77
77
|
"scripts": {
|