@atlaskit/adf-schema 35.12.0 → 35.12.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,11 @@
1
1
  # @atlaskit/adf-schema
2
2
 
3
+ ## 35.12.1
4
+
5
+ ### Patch Changes
6
+
7
+ - aea8879: NO-ISSUE Fixed a serialisation bug resulting in invalid ADF JSON in mention nodes
8
+
3
9
  ## 35.12.0
4
10
 
5
11
  ### Minor Changes
@@ -77,7 +77,7 @@ var mention = exports.mention = {
77
77
  }
78
78
  };
79
79
  var isOptional = function isOptional(key) {
80
- return ['userType'].indexOf(key) > -1;
80
+ return ['userType', 'localId'].indexOf(key) > -1;
81
81
  };
82
82
  var toJSON = exports.toJSON = function toJSON(node) {
83
83
  return {
@@ -70,7 +70,7 @@ export const mention = {
70
70
  }
71
71
  };
72
72
  const isOptional = key => {
73
- return ['userType'].indexOf(key) > -1;
73
+ return ['userType', 'localId'].indexOf(key) > -1;
74
74
  };
75
75
  export const toJSON = node => ({
76
76
  attrs: Object.keys(node.attrs).reduce((obj, key) => {
@@ -72,7 +72,7 @@ export var mention = {
72
72
  }
73
73
  };
74
74
  var isOptional = function isOptional(key) {
75
- return ['userType'].indexOf(key) > -1;
75
+ return ['userType', 'localId'].indexOf(key) > -1;
76
76
  };
77
77
  export var toJSON = function toJSON(node) {
78
78
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/adf-schema",
3
- "version": "35.12.0",
3
+ "version": "35.12.1",
4
4
  "description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"