@atlaskit/collab-provider 32.0.0 → 32.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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @atlaskit/collab-provider
2
2
 
3
+ ## 32.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`61e11fcb85fe8`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/61e11fcb85fe8) -
8
+ Remove the abandoned platform_editor_early_exit_return_draft experiment, preserving its disabled
9
+ behavior.
10
+
3
11
  ## 32.0.0
4
12
 
5
13
  ### Patch Changes
@@ -161,15 +161,6 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
161
161
  offlineReplaceStepsLength: (0, _getOfflineStepsLength.getOfflineReplaceStepsLength)(_this.documentService.getUnconfirmedSteps(), _this.documentService.getUnconfirmedStepsOrigins()),
162
162
  unconfirmedStepsLength: unconfirmedStepsLength
163
163
  }, _this.sessionId);
164
- } else if ((0, _isExperimentEnabled.isExperimentEnabled)('platform_editor_early_exit_return_draft')) {
165
- var _this$initialDraft2;
166
- // Conditionally run catchup based on CollabDraftMetadata.relevance
167
- // Only catch up when relevance is 'STALE' or absent
168
- // Skip catchup when relevance is 'LATEST' (draft is up-to-date)
169
- var relevance = (_this$initialDraft2 = _this.initialDraft) === null || _this$initialDraft2 === void 0 || (_this$initialDraft2 = _this$initialDraft2.metadata) === null || _this$initialDraft2 === void 0 ? void 0 : _this$initialDraft2.relevance;
170
- if (relevance === 'STALE' || relevance === undefined) {
171
- _this.documentService.throttledCatchupv2(_const.CatchupEventReason.PROCESS_STEPS);
172
- }
173
164
  }
174
165
  _this.participantsService.startInactiveRemover(_this.sessionId);
175
166
  if (_this.config.batchProps) {
@@ -538,10 +529,10 @@ var Provider = exports.Provider = /*#__PURE__*/function (_Emitter) {
538
529
  });
539
530
  if (this.isBufferingEnabled && this.initialDraft && !this.isProviderInitialized) {
540
531
  var _this$analyticsHelper6;
541
- var _this$initialDraft3 = this.initialDraft,
542
- document = _this$initialDraft3.document,
543
- version = _this$initialDraft3.version,
544
- metadata = _this$initialDraft3.metadata;
532
+ var _this$initialDraft2 = this.initialDraft,
533
+ document = _this$initialDraft2.document,
534
+ version = _this$initialDraft2.version,
535
+ metadata = _this$initialDraft2.metadata;
545
536
  this.updateDocumentAndMetadata({
546
537
  doc: document,
547
538
  version: version,
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.version = exports.nextMajorVersion = exports.name = void 0;
7
7
  var name = exports.name = "@atlaskit/collab-provider";
8
- var version = exports.version = "31.0.9";
8
+ var version = exports.version = "32.0.0";
9
9
  var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
10
10
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
11
11
  };
@@ -141,15 +141,6 @@ export class Provider extends Emitter {
141
141
  offlineReplaceStepsLength: getOfflineReplaceStepsLength(this.documentService.getUnconfirmedSteps(), this.documentService.getUnconfirmedStepsOrigins()),
142
142
  unconfirmedStepsLength: unconfirmedStepsLength
143
143
  }, this.sessionId);
144
- } else if (isExperimentEnabled('platform_editor_early_exit_return_draft')) {
145
- var _this$initialDraft, _this$initialDraft$me;
146
- // Conditionally run catchup based on CollabDraftMetadata.relevance
147
- // Only catch up when relevance is 'STALE' or absent
148
- // Skip catchup when relevance is 'LATEST' (draft is up-to-date)
149
- const relevance = (_this$initialDraft = this.initialDraft) === null || _this$initialDraft === void 0 ? void 0 : (_this$initialDraft$me = _this$initialDraft.metadata) === null || _this$initialDraft$me === void 0 ? void 0 : _this$initialDraft$me.relevance;
150
- if (relevance === 'STALE' || relevance === undefined) {
151
- this.documentService.throttledCatchupv2(CatchupEventReason.PROCESS_STEPS);
152
- }
153
144
  }
154
145
  this.participantsService.startInactiveRemover(this.sessionId);
155
146
  if (this.config.batchProps) {
@@ -1,5 +1,5 @@
1
1
  export const name = "@atlaskit/collab-provider";
2
- export const version = "31.0.9";
2
+ export const version = "32.0.0";
3
3
  export const nextMajorVersion = () => {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
@@ -155,15 +155,6 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
155
155
  offlineReplaceStepsLength: getOfflineReplaceStepsLength(_this.documentService.getUnconfirmedSteps(), _this.documentService.getUnconfirmedStepsOrigins()),
156
156
  unconfirmedStepsLength: unconfirmedStepsLength
157
157
  }, _this.sessionId);
158
- } else if (isExperimentEnabled('platform_editor_early_exit_return_draft')) {
159
- var _this$initialDraft2;
160
- // Conditionally run catchup based on CollabDraftMetadata.relevance
161
- // Only catch up when relevance is 'STALE' or absent
162
- // Skip catchup when relevance is 'LATEST' (draft is up-to-date)
163
- var relevance = (_this$initialDraft2 = _this.initialDraft) === null || _this$initialDraft2 === void 0 || (_this$initialDraft2 = _this$initialDraft2.metadata) === null || _this$initialDraft2 === void 0 ? void 0 : _this$initialDraft2.relevance;
164
- if (relevance === 'STALE' || relevance === undefined) {
165
- _this.documentService.throttledCatchupv2(CatchupEventReason.PROCESS_STEPS);
166
- }
167
158
  }
168
159
  _this.participantsService.startInactiveRemover(_this.sessionId);
169
160
  if (_this.config.batchProps) {
@@ -532,10 +523,10 @@ export var Provider = /*#__PURE__*/function (_Emitter) {
532
523
  });
533
524
  if (this.isBufferingEnabled && this.initialDraft && !this.isProviderInitialized) {
534
525
  var _this$analyticsHelper6;
535
- var _this$initialDraft3 = this.initialDraft,
536
- document = _this$initialDraft3.document,
537
- version = _this$initialDraft3.version,
538
- metadata = _this$initialDraft3.metadata;
526
+ var _this$initialDraft2 = this.initialDraft,
527
+ document = _this$initialDraft2.document,
528
+ version = _this$initialDraft2.version,
529
+ metadata = _this$initialDraft2.metadata;
539
530
  this.updateDocumentAndMetadata({
540
531
  doc: document,
541
532
  version: version,
@@ -1,5 +1,5 @@
1
1
  export var name = "@atlaskit/collab-provider";
2
- export var version = "31.0.9";
2
+ export var version = "32.0.0";
3
3
  export var nextMajorVersion = function nextMajorVersion() {
4
4
  return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
5
5
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/collab-provider",
3
- "version": "32.0.0",
3
+ "version": "32.0.1",
4
4
  "description": "A provider for collaborative editing.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"
@@ -75,6 +75,6 @@
75
75
  }
76
76
  },
77
77
  "peerDependencies": {
78
- "@atlaskit/editor-common": "^127.0.0"
78
+ "@atlaskit/editor-common": "^127.1.0"
79
79
  }
80
80
  }