@loro-dev/flock 2.0.0 → 2.0.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.
package/dist/index.d.mts CHANGED
@@ -118,9 +118,20 @@ declare class Flock {
118
118
  setPeerId(peerId: Uint8Array): void;
119
119
  private putWithMetaInternal;
120
120
  private putWithMetaWithHooks;
121
+ /**
122
+ * Put a value into the flock. If the given entry already exists, this insert will be skipped.
123
+ * @param key
124
+ * @param value
125
+ * @param now
126
+ */
121
127
  put(key: KeyPart[], value: Value, now?: number): void;
122
128
  putWithMeta(key: KeyPart[], value: Value, options?: PutWithMetaOptions): void | Promise<void>;
123
129
  set(key: KeyPart[], value: Value, now?: number): void;
130
+ /**
131
+ * Delete a value from the flock. If the given entry does not exist, this delete will be skipped.
132
+ * @param key
133
+ * @param now
134
+ */
124
135
  delete(key: KeyPart[], now?: number): void;
125
136
  get(key: KeyPart[]): Value | undefined;
126
137
  merge(other: Flock): void;
package/dist/index.d.ts CHANGED
@@ -118,9 +118,20 @@ declare class Flock {
118
118
  setPeerId(peerId: Uint8Array): void;
119
119
  private putWithMetaInternal;
120
120
  private putWithMetaWithHooks;
121
+ /**
122
+ * Put a value into the flock. If the given entry already exists, this insert will be skipped.
123
+ * @param key
124
+ * @param value
125
+ * @param now
126
+ */
121
127
  put(key: KeyPart[], value: Value, now?: number): void;
122
128
  putWithMeta(key: KeyPart[], value: Value, options?: PutWithMetaOptions): void | Promise<void>;
123
129
  set(key: KeyPart[], value: Value, now?: number): void;
130
+ /**
131
+ * Delete a value from the flock. If the given entry does not exist, this delete will be skipped.
132
+ * @param key
133
+ * @param now
134
+ */
124
135
  delete(key: KeyPart[], now?: number): void;
125
136
  get(key: KeyPart[]): Value | undefined;
126
137
  merge(other: Flock): void;