@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.
- package/.turbo/turbo-lint.log +1 -1
- package/.turbo/turbo-transpileBrowser.log +1 -1
- package/.turbo/turbo-transpileCjs.log +1 -1
- package/.turbo/turbo-transpileEsm.log +1 -1
- package/.turbo/turbo-transpileTypes.log +1 -1
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +12 -0
- package/build/browser/index.js +4 -4
- package/build/browser/index.js.map +1 -1
- package/build/cjs/index.cjs +4 -4
- package/build/cjs/index.cjs.map +1 -1
- package/build/cjs/index.d.cts +1 -1
- package/build/esm/index.js +4 -4
- package/build/esm/index.js.map +1 -1
- package/build/types/service/BaseYjsDocumentService.d.ts +1 -1
- package/build/types/service/BaseYjsDocumentService.d.ts.map +1 -1
- package/build/types/service/InMemoryDocumentService.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/service/BaseYjsDocumentService.ts +1 -2
- package/src/service/InMemoryDocumentService.ts +1 -3
package/.turbo/turbo-lint.log
CHANGED
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
|
package/build/browser/index.js
CHANGED
|
@@ -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
|
|
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:
|
|
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
|
|
1241
|
-
return this.createBaseInternalDoc(ref, metadata
|
|
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);
|