atom.io 0.29.2 → 0.29.3
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/data/dist/index.js +1 -1
- package/dist/{chunk-J4B56MM5.js → chunk-HH7WBSVS.js} +1 -1
- package/dist/{chunk-IBTHB2PI.js → chunk-IZXKJOQQ.js} +1 -0
- package/internal/dist/index.js +2 -2
- package/json/dist/index.js +2 -2
- package/package.json +6 -6
- package/realtime-react/dist/index.js +1 -1
- package/realtime-react/src/use-single-effect.ts +1 -1
- package/realtime-server/dist/index.js +1 -1
- package/realtime-testing/dist/index.js +1 -1
package/data/dist/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Junction } from '../../dist/chunk-
|
|
1
|
+
import { Junction } from '../../dist/chunk-IZXKJOQQ.js';
|
|
2
2
|
import '../../dist/chunk-XWL6SNVU.js';
|
|
3
3
|
import { createStandaloneSelector, findInStore, IMPLICIT, withdraw, growMoleculeInStore, NotFoundError, initFamilyMemberInStore, getFromStore, setIntoStore, seekInStore, getJsonToken, disposeFromStore, createMutableAtomFamily, createRegularAtomFamily, createMoleculeFamily, newest, makeMoleculeInStore, isChildStore, createRegularAtom, createSelectorFamily, createReadonlySelectorFamily, getJsonFamily } from 'atom.io/internal';
|
|
4
4
|
import { stringifyJson } from 'atom.io/json';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Junction } from './chunk-
|
|
1
|
+
import { Junction } from './chunk-IZXKJOQQ.js';
|
|
2
2
|
import { stringifyJson, parseJson, selectJson, selectJsonFamily } from 'atom.io/json';
|
|
3
3
|
import { AtomIOLogger } from 'atom.io';
|
|
4
4
|
import { getJoin, findRelations } from 'atom.io/data';
|
|
@@ -144,6 +144,7 @@ var Junction = class {
|
|
|
144
144
|
const content = rest[1] ?? typeof rest[0] === `string` ? void 0 : rest[0];
|
|
145
145
|
a = typeof a === `string` ? a : a[this.a];
|
|
146
146
|
switch (this.cardinality) {
|
|
147
|
+
// biome-ignore lint/suspicious/noFallthroughSwitchClause: perfect here
|
|
147
148
|
case `1:1`: {
|
|
148
149
|
const bPrev = this.getRelatedKey(a);
|
|
149
150
|
if (bPrev && bPrev !== b) this.delete(bPrev, a);
|
package/internal/dist/index.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Future, IMPLICIT, LazyMap, Molecule, NotFoundError, StatefulSubject, Store, Subject, TRANSACTION_PHASES, Tracker, abortTransaction, actUponStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, cacheValue, clearStore, closeOperation, counterfeit, createAtomFamily, createMoleculeFamily, createMutableAtom, createMutableAtomFamily, createReadonlySelector, createReadonlySelectorFamily, createRegularAtom, createRegularAtomFamily, createSelectorFamily, createStandaloneAtom, createStandaloneSelector, createTimeline, createTransaction, createWritableSelector, deposit, disposeAtom, disposeFromStore, disposeMolecule, disposeSelector, eldest, evictCachedValue, findInStore, getContinuityKey, getEnvironmentData, getEpochNumberOfAction, getEpochNumberOfContinuity, getFromStore, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getUpdateFamily, getUpdateToken, growMoleculeInStore, ingestAtomUpdate, ingestCreationEvent, ingestDisposalEvent, ingestMoleculeCreationEvent, ingestMoleculeDisposalEvent, ingestSelectorUpdate, ingestTransactionUpdate, initFamilyMemberInStore, isAtomDefault, isAtomKey, isChildStore, isDone, isReadonlySelectorKey, isRootStore, isSelectorKey, isStateKey, isTransceiver, makeMoleculeInStore, markAtomAsDefault, markAtomAsNotDefault, markDone, newest, openOperation, prettyPrintTokenType, readCachedValue, readOrComputeValue, recallState, registerSelector, seekInStore, setAtomOrSelector, setEpochNumberOfAction, setEpochNumberOfContinuity, setIntoStore, subscribeInStore, subscribeToRootAtoms, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceAllSelectorAtoms, traceSelectorAtoms, updateSelectorAtoms, withdraw } from '../../dist/chunk-
|
|
2
|
-
import '../../dist/chunk-
|
|
1
|
+
export { FAMILY_MEMBER_TOKEN_TYPES, FamilyTracker, Future, IMPLICIT, LazyMap, Molecule, NotFoundError, StatefulSubject, Store, Subject, TRANSACTION_PHASES, Tracker, abortTransaction, actUponStore, applyTransaction, arbitrary, assignTransactionToContinuity, become, buildTransaction, cacheValue, clearStore, closeOperation, counterfeit, createAtomFamily, createMoleculeFamily, createMutableAtom, createMutableAtomFamily, createReadonlySelector, createReadonlySelectorFamily, createRegularAtom, createRegularAtomFamily, createSelectorFamily, createStandaloneAtom, createStandaloneSelector, createTimeline, createTransaction, createWritableSelector, deposit, disposeAtom, disposeFromStore, disposeMolecule, disposeSelector, eldest, evictCachedValue, findInStore, getContinuityKey, getEnvironmentData, getEpochNumberOfAction, getEpochNumberOfContinuity, getFromStore, getJsonFamily, getJsonToken, getSelectorDependencyKeys, getUpdateFamily, getUpdateToken, growMoleculeInStore, ingestAtomUpdate, ingestCreationEvent, ingestDisposalEvent, ingestMoleculeCreationEvent, ingestMoleculeDisposalEvent, ingestSelectorUpdate, ingestTransactionUpdate, initFamilyMemberInStore, isAtomDefault, isAtomKey, isChildStore, isDone, isReadonlySelectorKey, isRootStore, isSelectorKey, isStateKey, isTransceiver, makeMoleculeInStore, markAtomAsDefault, markAtomAsNotDefault, markDone, newest, openOperation, prettyPrintTokenType, readCachedValue, readOrComputeValue, recallState, registerSelector, seekInStore, setAtomOrSelector, setEpochNumberOfAction, setEpochNumberOfContinuity, setIntoStore, subscribeInStore, subscribeToRootAtoms, subscribeToState, subscribeToTimeline, subscribeToTransaction, timeTravel, traceAllSelectorAtoms, traceSelectorAtoms, updateSelectorAtoms, withdraw } from '../../dist/chunk-HH7WBSVS.js';
|
|
2
|
+
import '../../dist/chunk-IZXKJOQQ.js';
|
|
3
3
|
import '../../dist/chunk-XWL6SNVU.js';
|
package/json/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { createWritableSelectorFamily } from '../../dist/chunk-
|
|
2
|
-
import '../../dist/chunk-
|
|
1
|
+
import { createWritableSelectorFamily } from '../../dist/chunk-HH7WBSVS.js';
|
|
2
|
+
import '../../dist/chunk-IZXKJOQQ.js';
|
|
3
3
|
import '../../dist/chunk-XWL6SNVU.js';
|
|
4
4
|
import { createStandaloneSelector, IMPLICIT, growMoleculeInStore, initFamilyMemberInStore, withdraw, seekInStore } from 'atom.io/internal';
|
|
5
5
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atom.io",
|
|
3
|
-
"version": "0.29.
|
|
3
|
+
"version": "0.29.3",
|
|
4
4
|
"description": "Composable and testable reactive data library.",
|
|
5
5
|
"homepage": "https://atom.io.fyi",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -57,10 +57,10 @@
|
|
|
57
57
|
"@types/estree": "1.0.5",
|
|
58
58
|
"@types/http-proxy": "1.17.15",
|
|
59
59
|
"@types/npmlog": "7.0.0",
|
|
60
|
-
"@types/react": "18.3.
|
|
60
|
+
"@types/react": "18.3.7",
|
|
61
61
|
"@types/tmp": "0.2.6",
|
|
62
|
-
"@typescript-eslint/parser": "8.
|
|
63
|
-
"@typescript-eslint/rule-tester": "8.
|
|
62
|
+
"@typescript-eslint/parser": "8.6.0",
|
|
63
|
+
"@typescript-eslint/rule-tester": "8.6.0",
|
|
64
64
|
"@vitest/coverage-v8": "2.1.1",
|
|
65
65
|
"@vitest/ui": "2.1.1",
|
|
66
66
|
"concurrently": "9.0.1",
|
|
@@ -79,10 +79,10 @@
|
|
|
79
79
|
"socket.io": "4.7.5",
|
|
80
80
|
"socket.io-client": "4.7.5",
|
|
81
81
|
"tmp": "0.2.3",
|
|
82
|
-
"tsup": "8.
|
|
82
|
+
"tsup": "8.3.0",
|
|
83
83
|
"tsx": "4.19.1",
|
|
84
84
|
"typescript": "5.6.2",
|
|
85
|
-
"vite": "5.4.
|
|
85
|
+
"vite": "5.4.6",
|
|
86
86
|
"vite-tsconfig-paths": "5.0.1",
|
|
87
87
|
"vitest": "2.1.1"
|
|
88
88
|
},
|
|
@@ -24,7 +24,7 @@ var RealtimeProvider = ({ children, socket }) => {
|
|
|
24
24
|
}, [socket, setMyId]);
|
|
25
25
|
return /* @__PURE__ */ jsx(RealtimeContext.Provider, { value: { socket, services }, children });
|
|
26
26
|
};
|
|
27
|
-
var { NODE_ENV } =
|
|
27
|
+
var { NODE_ENV } = globalThis.env ?? {};
|
|
28
28
|
var IN_DEV = NODE_ENV === `development`;
|
|
29
29
|
function noop() {
|
|
30
30
|
}
|
|
@@ -6,7 +6,7 @@ import { editRelationsInStore, join, findRelationsInStore } from 'atom.io/data';
|
|
|
6
6
|
import * as AtomIO from 'atom.io';
|
|
7
7
|
import { atomFamily, selectorFamily, atom } from 'atom.io';
|
|
8
8
|
import { roomIndex, usersInRooms } from 'atom.io/realtime';
|
|
9
|
-
import { spawn } from 'child_process';
|
|
9
|
+
import { spawn } from 'node:child_process';
|
|
10
10
|
|
|
11
11
|
// realtime-server/src/ipc-sockets/custom-socket.ts
|
|
12
12
|
var CustomSocket = class {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import '../../dist/chunk-XWL6SNVU.js';
|
|
2
|
-
import * as http from 'http';
|
|
2
|
+
import * as http from 'node:http';
|
|
3
3
|
import { render, prettyDOM } from '@testing-library/react';
|
|
4
4
|
import * as AtomIO from 'atom.io';
|
|
5
5
|
import { editRelationsInStore, findRelationsInStore } from 'atom.io/data';
|