From 39aa560c9f041f7ca2472e22eca274b4939622d1 Mon Sep 17 00:00:00 2001 From: streamich Date: Tue, 28 Nov 2023 19:54:51 +0100 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=A4=96=20imrove=20CRDT=20exports?= =?UTF-8?q?=20from=20index=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/json-crdt-patch/index.ts | 1 + src/json-crdt/codec/indexed/binary/index.ts | 3 +++ src/json-crdt/codec/sidecar/binary/index.ts | 2 ++ src/json-crdt/codec/structural/binary/index.ts | 4 ++++ src/json-crdt/codec/structural/compact/index.ts | 3 +++ src/json-crdt/codec/structural/verbose/index.ts | 3 +++ src/json-crdt/index.ts | 2 ++ tsconfig.json | 7 +++++-- 8 files changed, 23 insertions(+), 2 deletions(-) create mode 100644 src/json-crdt/codec/indexed/binary/index.ts create mode 100644 src/json-crdt/codec/sidecar/binary/index.ts create mode 100644 src/json-crdt/codec/structural/binary/index.ts create mode 100644 src/json-crdt/codec/structural/compact/index.ts create mode 100644 src/json-crdt/codec/structural/verbose/index.ts diff --git a/src/json-crdt-patch/index.ts b/src/json-crdt-patch/index.ts index 5f8fd62ae4..cac23a2810 100644 --- a/src/json-crdt-patch/index.ts +++ b/src/json-crdt-patch/index.ts @@ -111,6 +111,7 @@ */ export * from './types'; +export * from './clock'; export * from './operations'; export * from './Patch'; export * from './PatchBuilder'; diff --git a/src/json-crdt/codec/indexed/binary/index.ts b/src/json-crdt/codec/indexed/binary/index.ts new file mode 100644 index 0000000000..95ace423f7 --- /dev/null +++ b/src/json-crdt/codec/indexed/binary/index.ts @@ -0,0 +1,3 @@ +export * from './types'; +export * from './Encoder'; +export * from './Decoder'; diff --git a/src/json-crdt/codec/sidecar/binary/index.ts b/src/json-crdt/codec/sidecar/binary/index.ts new file mode 100644 index 0000000000..337c46079c --- /dev/null +++ b/src/json-crdt/codec/sidecar/binary/index.ts @@ -0,0 +1,2 @@ +export * from './Encoder'; +export * from './Decoder'; diff --git a/src/json-crdt/codec/structural/binary/index.ts b/src/json-crdt/codec/structural/binary/index.ts new file mode 100644 index 0000000000..3bf5ef8d7e --- /dev/null +++ b/src/json-crdt/codec/structural/binary/index.ts @@ -0,0 +1,4 @@ +export * from './constants'; +export * from './Encoder'; +export * from './Decoder'; +export * from './ViewDecoder'; diff --git a/src/json-crdt/codec/structural/compact/index.ts b/src/json-crdt/codec/structural/compact/index.ts new file mode 100644 index 0000000000..95ace423f7 --- /dev/null +++ b/src/json-crdt/codec/structural/compact/index.ts @@ -0,0 +1,3 @@ +export * from './types'; +export * from './Encoder'; +export * from './Decoder'; diff --git a/src/json-crdt/codec/structural/verbose/index.ts b/src/json-crdt/codec/structural/verbose/index.ts new file mode 100644 index 0000000000..95ace423f7 --- /dev/null +++ b/src/json-crdt/codec/structural/verbose/index.ts @@ -0,0 +1,3 @@ +export * from './types'; +export * from './Encoder'; +export * from './Decoder'; diff --git a/src/json-crdt/index.ts b/src/json-crdt/index.ts index 9a53cede7d..aef4b139ce 100644 --- a/src/json-crdt/index.ts +++ b/src/json-crdt/index.ts @@ -1,3 +1,5 @@ export * from './nodes'; export * from './extensions/types'; export * from './model'; + +export * from '../json-crdt-patch'; diff --git a/tsconfig.json b/tsconfig.json index 360473d009..fbb26b92f5 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -42,8 +42,11 @@ "entryPoints": [ "src/binary-rx/index.ts", "src/json-crdt/index.ts", - "src/json-crdt-patch/index.ts", - "src/json-crdt-patch/clock/index.ts", + "src/json-crdt/codec/structural/binary/index.ts", + "src/json-crdt/codec/structural/compact/index.ts", + "src/json-crdt/codec/structural/verbose/index.ts", + "src/json-crdt/codec/indexed/binary/index.ts", + "src/json-crdt/codec/sidecar/binary/index.ts", "src/json-crdt-patch/codec/json/index.ts", "src/json-crdt-patch/codec/compact/index.ts", "src/json-crdt-patch/codec/binary/index.ts",