@atlaskit/editor-json-transformer 8.26.1 → 8.27.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 CHANGED
@@ -1,5 +1,12 @@
1
1
  # @atlaskit/editor-json-transformer
2
2
 
3
+ ## 8.27.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [`72f94befc61f2`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/72f94befc61f2) -
8
+ replace method-style signatures with function-style signatures
9
+
3
10
  ## 8.26.1
4
11
 
5
12
  ### Patch Changes
@@ -3,8 +3,8 @@ import { type SanitizeNodeOptions } from './sanitize/sanitize-node';
3
3
  import type { JSONDocNode, JSONNode } from './types';
4
4
  export type { JSONDocNode, JSONNode } from './types';
5
5
  interface Transformer<T> {
6
- encode(node: PMNode): T;
7
- parse(content: T): PMNode;
6
+ encode: (node: PMNode) => T;
7
+ parse: (content: T) => PMNode;
8
8
  }
9
9
  export declare enum SchemaStage {
10
10
  FINAL = "final",
@@ -3,8 +3,8 @@ import { type SanitizeNodeOptions } from './sanitize/sanitize-node';
3
3
  import type { JSONDocNode, JSONNode } from './types';
4
4
  export type { JSONDocNode, JSONNode } from './types';
5
5
  interface Transformer<T> {
6
- encode(node: PMNode): T;
7
- parse(content: T): PMNode;
6
+ encode: (node: PMNode) => T;
7
+ parse: (content: T) => PMNode;
8
8
  }
9
9
  export declare enum SchemaStage {
10
10
  FINAL = "final",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/editor-json-transformer",
3
- "version": "8.26.1",
3
+ "version": "8.27.0",
4
4
  "description": "JSON transformer",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/"