@palantir/pack.state.core 0.1.1 → 0.2.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.
@@ -1,4 +1,4 @@
1
1
 
2
- > @palantir/pack.state.core@0.1.1 lint /home/runner/work/pack/pack/packages/state/core
2
+ > @palantir/pack.state.core@0.2.0 lint /home/runner/work/pack/pack/packages/state/core
3
3
  > eslint ./src && dprint check --config $(find-up dprint.json) --allow-no-files
4
4
 
@@ -1,5 +1,5 @@
1
1
 
2
- > @palantir/pack.state.core@0.1.1 transpileBrowser /home/runner/work/pack/pack/packages/state/core
2
+ > @palantir/pack.state.core@0.2.0 transpileBrowser /home/runner/work/pack/pack/packages/state/core
3
3
  > monorepo-transpile -f esm -m bundle -t browser
4
4
 
5
5
  👍
@@ -1,5 +1,5 @@
1
1
 
2
- > @palantir/pack.state.core@0.1.1 transpileCjs /home/runner/work/pack/pack/packages/state/core
2
+ > @palantir/pack.state.core@0.2.0 transpileCjs /home/runner/work/pack/pack/packages/state/core
3
3
  > monorepo-transpile -f cjs -m bundle -t node
4
4
 
5
5
  👍
@@ -1,5 +1,5 @@
1
1
 
2
- > @palantir/pack.state.core@0.1.1 transpileEsm /home/runner/work/pack/pack/packages/state/core
2
+ > @palantir/pack.state.core@0.2.0 transpileEsm /home/runner/work/pack/pack/packages/state/core
3
3
  > monorepo-transpile -f esm -m bundle -t node
4
4
 
5
5
  👍
@@ -1,5 +1,5 @@
1
1
 
2
- > @palantir/pack.state.core@0.1.1 transpileTypes /home/runner/work/pack/pack/packages/state/core
2
+ > @palantir/pack.state.core@0.2.0 transpileTypes /home/runner/work/pack/pack/packages/state/core
3
3
  > monorepo-transpile -f esm -m types -t node
4
4
 
5
5
  👍
@@ -1,4 +1,4 @@
1
1
 
2
- > @palantir/pack.state.core@0.1.1 typecheck /home/runner/work/pack/pack/packages/state/core
2
+ > @palantir/pack.state.core@0.2.0 typecheck /home/runner/work/pack/pack/packages/state/core
3
3
  > tsc --noEmit --emitDeclarationOnly false
4
4
 
package/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @palantir/pack.state.core
2
2
 
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - dfeaeb0: Fix bug in core, where multiple yDocs could get created, causing the initial update to be dropped
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [dfeaeb0]
12
+ - @palantir/pack.document-schema.model-types@0.2.0
13
+ - @palantir/pack.core@0.2.0
14
+
3
15
  ## 0.1.1
4
16
 
5
17
  ### Patch Changes
@@ -530,7 +530,7 @@ var BaseYjsDocumentService = class {
530
530
  * Called when the last data subscription is closed for a document.
531
531
  * Implementation should clean up any resources related to data synchronization.
532
532
  */
533
- createBaseInternalDoc = (ref, metadata, yDoc) => {
533
+ createBaseInternalDoc = (ref, metadata) => {
534
534
  const schema = ref.schema;
535
535
  return {
536
536
  ref: new WeakRef(ref),
@@ -555,7 +555,7 @@ var BaseYjsDocumentService = class {
555
555
  docStateSubscribers: /* @__PURE__ */ new Set(),
556
556
  metadataSubscribers: /* @__PURE__ */ new Set(),
557
557
  recordSubscriptions: /* @__PURE__ */ new Map(),
558
- yDoc: yDoc || this.initializeYDoc(schema),
558
+ yDoc: this.initializeYDoc(schema),
559
559
  yDocUpdateHandler: void 0,
560
560
  yjsCollectionHandlers: /* @__PURE__ */ new Map()
561
561
  };
@@ -1237,8 +1237,8 @@ var InMemoryDocumentService = class extends BaseYjsDocumentService {
1237
1237
  }));
1238
1238
  this.config = config;
1239
1239
  }
1240
- createInternalDoc(ref, metadata, yDoc) {
1241
- return this.createBaseInternalDoc(ref, metadata, yDoc);
1240
+ createInternalDoc(ref, metadata) {
1241
+ return this.createBaseInternalDoc(ref, metadata);
1242
1242
  }
1243
1243
  get hasMetadataSubscriptions() {
1244
1244
  return Array.from(this.documents.values()).some((doc) => this.hasSubscriptions(doc) && doc.metadataSubscribers.size > 0);