atom.io 0.19.4 → 0.20.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/data/dist/index.js +1 -1
- package/data/src/dict.ts +1 -1
- package/data/src/join.ts +1 -1
- package/data/src/struct-family.ts +1 -1
- package/data/src/struct.ts +5 -3
- package/internal/dist/index.cjs +127 -92
- package/internal/dist/index.d.ts +13 -9
- package/internal/dist/index.js +127 -92
- package/internal/src/atom/index.ts +1 -1
- package/internal/src/caching.ts +13 -9
- package/internal/src/families/create-atom-family.ts +1 -1
- package/internal/src/families/find-in-store.ts +2 -2
- package/internal/src/families/index.ts +1 -1
- package/internal/src/future.ts +52 -15
- package/internal/src/index.ts +2 -2
- package/internal/src/mutable/create-mutable-atom-family.ts +2 -3
- package/internal/src/mutable/create-mutable-atom.ts +3 -3
- package/internal/src/mutable/get-update-token.ts +1 -0
- package/internal/src/selector/delete-selector.ts +1 -1
- package/internal/src/selector/register-selector.ts +1 -1
- package/internal/src/store/deposit.ts +1 -1
- package/internal/src/store/store.ts +2 -2
- package/internal/src/store/withdraw-new-family-member.ts +1 -1
- package/internal/src/store/withdraw.ts +2 -3
- package/internal/src/subscribe/subscribe-to-state.ts +1 -0
- package/internal/src/subscribe/subscribe-to-timeline.ts +1 -0
- package/internal/src/subscribe/subscribe-to-transaction.ts +2 -1
- package/internal/src/timeline/add-atom-to-timeline.ts +2 -2
- package/internal/src/timeline/create-timeline.ts +1 -1
- package/internal/src/transaction/act-upon-store.ts +1 -1
- package/internal/src/transaction/apply-transaction.ts +1 -1
- package/internal/src/transaction/build-transaction.ts +2 -2
- package/internal/src/transaction/create-transaction.ts +2 -2
- package/internal/src/transaction/index.ts +1 -1
- package/internal/src/transaction/is-root-store.ts +1 -1
- package/introspection/src/attach-atom-index.ts +1 -1
- package/introspection/src/attach-introspection-states.ts +2 -2
- package/introspection/src/attach-selector-index.ts +1 -1
- package/introspection/src/attach-timeline-family.ts +2 -2
- package/introspection/src/attach-timeline-index.ts +1 -1
- package/introspection/src/attach-transaction-index.ts +2 -2
- package/introspection/src/attach-transaction-logs.ts +2 -2
- package/json/dist/index.cjs +35 -33
- package/json/dist/index.d.ts +5 -5
- package/json/src/index.ts +2 -3
- package/json/src/select-json-family.ts +1 -1
- package/json/src/select-json.ts +1 -2
- package/package.json +15 -15
- package/react/src/use-tl.ts +1 -1
- package/react-devtools/dist/index.cjs +99 -99
- package/react-devtools/dist/index.d.ts +2 -2
- package/react-devtools/dist/index.js +77 -77
- package/react-devtools/src/AtomIODevtools.tsx +2 -2
- package/react-devtools/src/TransactionIndex.tsx +2 -2
- package/react-devtools/src/Updates.tsx +1 -1
- package/react-devtools/src/index.ts +1 -1
- package/realtime/src/realtime-continuity.ts +1 -1
- package/realtime-client/dist/index.js +1 -1
- package/realtime-client/src/pull-atom-family-member.ts +1 -1
- package/realtime-client/src/pull-atom.ts +1 -1
- package/realtime-client/src/pull-mutable-atom-family-member.ts +2 -2
- package/realtime-client/src/sync-continuity.ts +1 -1
- package/realtime-react/dist/index.js +1 -1
- package/realtime-react/src/use-realtime-service.ts +1 -0
- package/realtime-react/src/use-sync-continuity.ts +2 -1
- package/realtime-server/dist/index.cjs +98 -98
- package/realtime-server/dist/index.d.ts +14 -14
- package/realtime-server/dist/index.js +100 -100
- package/realtime-server/src/index.ts +5 -5
- package/realtime-server/src/ipc-sockets/parent-socket.ts +3 -3
- package/realtime-server/src/realtime-action-receiver.ts +1 -1
- package/realtime-server/src/realtime-continuity-synchronizer.ts +2 -3
- package/realtime-server/src/realtime-family-provider.ts +1 -1
- package/realtime-server/src/realtime-mutable-family-provider.ts +1 -1
- package/realtime-server/src/realtime-mutable-provider.ts +2 -2
- package/realtime-server/src/realtime-server-stores/realtime-continuity-store.ts +2 -2
- package/realtime-server/src/realtime-server-stores/server-room-external-actions.ts +1 -1
- package/realtime-server/src/realtime-server-stores/server-room-external-store.ts +1 -0
- package/realtime-server/src/realtime-state-provider.ts +1 -1
- package/realtime-server/src/realtime-state-synchronizer.ts +1 -1
- package/realtime-testing/dist/index.js +2 -2
- package/realtime-testing/src/setup-realtime-test.tsx +3 -2
- package/src/atom.ts +1 -1
- package/src/find-state.ts +1 -1
- package/src/index.ts +1 -0
- package/src/selector.ts +1 -1
- package/src/silo.ts +4 -4
- package/src/subscribe.ts +2 -2
- package/src/timeline.ts +1 -1
- package/src/transaction.ts +3 -3
- package/transceivers/set-rtx/src/set-rtx.ts +1 -1
- package/dist/{chunk-ATKDGVTV.js → chunk-2AIFLP2B.js} +0 -0
- package/dist/{chunk-CC7IF7QF.js → chunk-3V3VWQ7X.js} +6 -6
- /package/dist/{chunk-MSCJWACE.js → chunk-SMZRGPN6.js} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { myUsernameState } from '../../dist/chunk-O47EQUM6.js';
|
|
2
|
-
import { editRelationsInStore } from '../../dist/chunk-
|
|
2
|
+
import { editRelationsInStore } from '../../dist/chunk-SMZRGPN6.js';
|
|
3
3
|
import '../../dist/chunk-FTONNX2R.js';
|
|
4
|
-
import { recordToEntries } from '../../dist/chunk-
|
|
4
|
+
import { recordToEntries } from '../../dist/chunk-3V3VWQ7X.js';
|
|
5
5
|
import '../../dist/chunk-BWWVY5O5.js';
|
|
6
6
|
import { __spreadProps, __spreadValues } from '../../dist/chunk-F2X4B4VY.js';
|
|
7
7
|
import * as http from 'http';
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import * as http from "node:http"
|
|
2
2
|
|
|
3
|
-
import { prettyDOM, render } from "@testing-library/react"
|
|
4
3
|
import type { RenderResult } from "@testing-library/react"
|
|
4
|
+
import { prettyDOM, render } from "@testing-library/react"
|
|
5
5
|
import * as AtomIO from "atom.io"
|
|
6
6
|
import {
|
|
7
|
-
IMPLICIT,
|
|
8
7
|
clearStore,
|
|
9
8
|
findInStore,
|
|
10
9
|
getFromStore,
|
|
10
|
+
IMPLICIT,
|
|
11
11
|
setIntoStore,
|
|
12
12
|
} from "atom.io/internal"
|
|
13
13
|
import * as AR from "atom.io/react"
|
|
@@ -21,6 +21,7 @@ import type { Socket as ClientSocket } from "socket.io-client"
|
|
|
21
21
|
import { io } from "socket.io-client"
|
|
22
22
|
|
|
23
23
|
import { recordToEntries } from "~/packages/anvl/src/object"
|
|
24
|
+
|
|
24
25
|
import { editRelationsInStore } from "../../data/src/join"
|
|
25
26
|
import { myUsernameState } from "../../realtime-client/src/realtime-client-stores"
|
|
26
27
|
|
package/src/atom.ts
CHANGED
package/src/find-state.ts
CHANGED
|
@@ -13,7 +13,7 @@ import type {
|
|
|
13
13
|
WritableToken,
|
|
14
14
|
} from "atom.io"
|
|
15
15
|
import type { Transceiver } from "atom.io/internal"
|
|
16
|
-
import {
|
|
16
|
+
import { findInStore, IMPLICIT } from "atom.io/internal"
|
|
17
17
|
import type { Json } from "atom.io/json"
|
|
18
18
|
|
|
19
19
|
export function findState<
|
package/src/index.ts
CHANGED
package/src/selector.ts
CHANGED
package/src/silo.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Transceiver } from "atom.io/internal"
|
|
2
2
|
import {
|
|
3
|
-
Store,
|
|
4
3
|
createAtomFamily,
|
|
5
4
|
createSelectorFamily,
|
|
6
5
|
createStandaloneAtom,
|
|
@@ -10,23 +9,24 @@ import {
|
|
|
10
9
|
findInStore,
|
|
11
10
|
getFromStore,
|
|
12
11
|
setIntoStore,
|
|
12
|
+
Store,
|
|
13
13
|
timeTravel,
|
|
14
14
|
} from "atom.io/internal"
|
|
15
15
|
import type { Json } from "atom.io/json"
|
|
16
16
|
|
|
17
17
|
import type {
|
|
18
18
|
AtomToken,
|
|
19
|
+
findState,
|
|
20
|
+
getState,
|
|
19
21
|
MutableAtomFamily,
|
|
20
22
|
MutableAtomFamilyOptions,
|
|
21
23
|
MutableAtomOptions,
|
|
22
24
|
MutableAtomToken,
|
|
25
|
+
redo,
|
|
23
26
|
RegularAtomFamily,
|
|
24
27
|
RegularAtomFamilyOptions,
|
|
25
28
|
RegularAtomOptions,
|
|
26
29
|
RegularAtomToken,
|
|
27
|
-
findState,
|
|
28
|
-
getState,
|
|
29
|
-
redo,
|
|
30
30
|
setState,
|
|
31
31
|
timeline,
|
|
32
32
|
undo,
|
package/src/subscribe.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Store } from "atom.io/internal"
|
|
2
2
|
import {
|
|
3
|
-
IMPLICIT,
|
|
4
3
|
arbitrary,
|
|
4
|
+
IMPLICIT,
|
|
5
5
|
subscribeToState,
|
|
6
6
|
subscribeToTimeline,
|
|
7
7
|
subscribeToTransaction,
|
|
@@ -9,13 +9,13 @@ import {
|
|
|
9
9
|
|
|
10
10
|
import type {
|
|
11
11
|
FamilyMetadata,
|
|
12
|
+
Func,
|
|
12
13
|
ReadableToken,
|
|
13
14
|
TimelineManageable,
|
|
14
15
|
TimelineToken,
|
|
15
16
|
TimelineUpdate,
|
|
16
17
|
TransactionToken,
|
|
17
18
|
TransactionUpdate,
|
|
18
|
-
Func,
|
|
19
19
|
} from "."
|
|
20
20
|
|
|
21
21
|
export type StateUpdate<T> = { newValue: T; oldValue: T }
|
package/src/timeline.ts
CHANGED
|
@@ -4,7 +4,7 @@ import type {
|
|
|
4
4
|
TimelineSelectorUpdate,
|
|
5
5
|
TimelineTransactionUpdate,
|
|
6
6
|
} from "atom.io/internal"
|
|
7
|
-
import {
|
|
7
|
+
import { createTimeline, IMPLICIT, timeTravel } from "atom.io/internal"
|
|
8
8
|
|
|
9
9
|
import type { AtomFamilyToken, AtomToken } from "."
|
|
10
10
|
|
package/src/transaction.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import type { EnvironmentData } from "atom.io/internal"
|
|
2
2
|
import {
|
|
3
|
-
IMPLICIT,
|
|
4
3
|
actUponStore,
|
|
5
4
|
arbitrary,
|
|
6
5
|
createTransaction,
|
|
6
|
+
IMPLICIT,
|
|
7
7
|
} from "atom.io/internal"
|
|
8
8
|
|
|
9
9
|
import type {
|
|
10
|
+
findState,
|
|
11
|
+
Func,
|
|
10
12
|
KeyedStateUpdate,
|
|
11
13
|
ReadonlySelectorToken,
|
|
12
14
|
WritableToken,
|
|
13
|
-
findState,
|
|
14
|
-
Func,
|
|
15
15
|
} from "."
|
|
16
16
|
|
|
17
17
|
export type TransactionToken<F extends Func> = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Lineage, Transceiver, TransceiverMode } from "atom.io/internal"
|
|
2
2
|
import { Subject } from "atom.io/internal"
|
|
3
|
-
import type { Json,
|
|
3
|
+
import type { Json, primitive, Stringified } from "atom.io/json"
|
|
4
4
|
import { parseJson, stringifyJson } from "atom.io/json"
|
|
5
5
|
|
|
6
6
|
export type SetUpdate =
|
|
File without changes
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
+
// ../anvl/src/array/index.ts
|
|
2
|
+
var isArray = (isType) => (input) => Array.isArray(input) && input.every((item) => isType(item));
|
|
3
|
+
var map = (f) => (a) => a.map(f);
|
|
4
|
+
var every = (f = Boolean) => (a) => a.every(f);
|
|
5
|
+
var allTrue = every((x) => x === true);
|
|
6
|
+
|
|
1
7
|
// ../anvl/src/function/pipe.ts
|
|
2
8
|
function pipe(a, ab, bc, cd, de, ef, fg, gh, hi) {
|
|
3
9
|
switch (arguments.length) {
|
|
@@ -46,12 +52,6 @@ var fallback = (fn, fallbackValue) => {
|
|
|
46
52
|
}
|
|
47
53
|
};
|
|
48
54
|
|
|
49
|
-
// ../anvl/src/array/index.ts
|
|
50
|
-
var isArray = (isType) => (input) => Array.isArray(input) && input.every((item) => isType(item));
|
|
51
|
-
var map = (f) => (a) => a.map(f);
|
|
52
|
-
var every = (f = Boolean) => (a) => a.every(f);
|
|
53
|
-
var allTrue = every((x) => x === true);
|
|
54
|
-
|
|
55
55
|
// ../anvl/src/nullish/index.ts
|
|
56
56
|
var isUndefined = (input) => input === void 0;
|
|
57
57
|
var ifDefined = (validate) => (input) => isUndefined(input) || validate(input);
|
|
File without changes
|