@atlaskit/collab-provider 9.27.0 → 9.28.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/CHANGELOG.md +12 -0
- package/dist/cjs/document/document-service.js +3 -1
- package/dist/cjs/version-wrapper.js +1 -1
- package/dist/es2019/document/document-service.js +3 -1
- package/dist/es2019/version-wrapper.js +1 -1
- package/dist/esm/document/document-service.js +3 -1
- package/dist/esm/version-wrapper.js +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/collab-provider
|
|
2
2
|
|
|
3
|
+
## 9.28.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#93363](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93363) [`34e245273af4`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/34e245273af4) - uplift update document slo measurement
|
|
8
|
+
|
|
9
|
+
## 9.27.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- [#93689](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/93689) [`5ba5d2b4a9ac`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/5ba5d2b4a9ac) - Updating adf-schema version to 35.10.0
|
|
14
|
+
|
|
3
15
|
## 9.27.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -477,7 +477,9 @@ var DocumentService = exports.DocumentService = /*#__PURE__*/function () {
|
|
|
477
477
|
(0, _defineProperty2.default)(this, "updateDocumentAnalytics", function (doc, version) {
|
|
478
478
|
var updatedVersion = _this.getCurrentPmVersion();
|
|
479
479
|
var isDocContentValid = _this.validatePMJSONDocument(doc);
|
|
480
|
-
if
|
|
480
|
+
// ESS-5023: only emit error event if updated client version is still behind server version
|
|
481
|
+
// client version could become higher than server version due to user editing or plugin adding steps
|
|
482
|
+
if (updatedVersion < version) {
|
|
481
483
|
var _doc$content, _this$analyticsHelper19;
|
|
482
484
|
var _error = new _customErrors.UpdateDocumentError('Failed to update the document', {
|
|
483
485
|
newVersion: 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 = "9.
|
|
8
|
+
var version = exports.version = "9.28.0";
|
|
9
9
|
var nextMajorVersion = exports.nextMajorVersion = function nextMajorVersion() {
|
|
10
10
|
return [Number(version.split('.')[0]) + 1, 0, 0].join('.');
|
|
11
11
|
};
|
|
@@ -389,7 +389,9 @@ export class DocumentService {
|
|
|
389
389
|
_defineProperty(this, "updateDocumentAnalytics", (doc, version) => {
|
|
390
390
|
const updatedVersion = this.getCurrentPmVersion();
|
|
391
391
|
const isDocContentValid = this.validatePMJSONDocument(doc);
|
|
392
|
-
if
|
|
392
|
+
// ESS-5023: only emit error event if updated client version is still behind server version
|
|
393
|
+
// client version could become higher than server version due to user editing or plugin adding steps
|
|
394
|
+
if (updatedVersion < version) {
|
|
393
395
|
var _doc$content, _this$analyticsHelper19;
|
|
394
396
|
const error = new UpdateDocumentError('Failed to update the document', {
|
|
395
397
|
newVersion: version,
|
|
@@ -470,7 +470,9 @@ export var DocumentService = /*#__PURE__*/function () {
|
|
|
470
470
|
_defineProperty(this, "updateDocumentAnalytics", function (doc, version) {
|
|
471
471
|
var updatedVersion = _this.getCurrentPmVersion();
|
|
472
472
|
var isDocContentValid = _this.validatePMJSONDocument(doc);
|
|
473
|
-
if
|
|
473
|
+
// ESS-5023: only emit error event if updated client version is still behind server version
|
|
474
|
+
// client version could become higher than server version due to user editing or plugin adding steps
|
|
475
|
+
if (updatedVersion < version) {
|
|
474
476
|
var _doc$content, _this$analyticsHelper19;
|
|
475
477
|
var _error = new UpdateDocumentError('Failed to update the document', {
|
|
476
478
|
newVersion: version,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/collab-provider",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.28.0",
|
|
4
4
|
"description": "A provider for collaborative editing.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
}
|
|
67
67
|
},
|
|
68
68
|
"devDependencies": {
|
|
69
|
-
"@atlaskit/adf-schema": "^35.
|
|
69
|
+
"@atlaskit/adf-schema": "^35.10.0",
|
|
70
70
|
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
71
71
|
"@atlassian/feature-flags-test-utils": "^0.2.0",
|
|
72
72
|
"typescript": "~5.4.2"
|