From 432a87767d7de382e4d5a39e88147a0071be3982 Mon Sep 17 00:00:00 2001 From: Christian Klotz Date: Wed, 9 Dec 2020 15:57:31 +0200 Subject: [PATCH 1/4] Bump document version Include coeditCompatibilityVersion --- schema/meta.schema.yaml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/schema/meta.schema.yaml b/schema/meta.schema.yaml index ae89894..a6caedf 100644 --- a/schema/meta.schema.yaml +++ b/schema/meta.schema.yaml @@ -40,10 +40,12 @@ properties: - 133 - 134 - 135 + - 136 fonts: type: array items: { type: string } compatibilityVersion: { const: 99 } + coeditCompatibilityVersion: { type: number } app: { $ref: ./enums/bundle-id.schema.yaml } autosaved: { $ref: ./utils/numerical-bool.schema.yaml } variant: { $ref: ./enums/sketch-variant.schema.yaml } @@ -55,6 +57,7 @@ properties: build: { type: integer } app: { $ref: ./enums/bundle-id.schema.yaml } compatibilityVersion: { type: number } + coeditCompatibilityVersion: { type: number } version: { type: number } variant: { $ref: ./enums/sketch-variant.schema.yaml } saveHistory: From 0464c6ba937f40665b380853c65b0e81b6160a03 Mon Sep 17 00:00:00 2001 From: Christian Klotz Date: Wed, 9 Dec 2020 15:58:43 +0200 Subject: [PATCH 2/4] Add changeset --- .changeset/fair-pumas-decide.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fair-pumas-decide.md diff --git a/.changeset/fair-pumas-decide.md b/.changeset/fair-pumas-decide.md new file mode 100644 index 0000000..1ef4869 --- /dev/null +++ b/.changeset/fair-pumas-decide.md @@ -0,0 +1,5 @@ +--- +'@sketch-hq/sketch-file-format': patch +--- + +Bump version and add coeditCompatibilityVersion From a5a805f471dbedf97943125e30d4626fb8b9c7f6 Mon Sep 17 00:00:00 2001 From: Christian Klotz Date: Wed, 9 Dec 2020 16:14:09 +0200 Subject: [PATCH 3/4] Make coeditCompatibilityVersion optional for history --- schema/meta.schema.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schema/meta.schema.yaml b/schema/meta.schema.yaml index a6caedf..395e9e3 100644 --- a/schema/meta.schema.yaml +++ b/schema/meta.schema.yaml @@ -51,6 +51,8 @@ properties: variant: { $ref: ./enums/sketch-variant.schema.yaml } created: type: object + optional: + - coeditCompatibilityVersion properties: commit: { type: string } appVersion: { type: string } From 594ff9c85fc72234f0258e94a0dbf41dcadf6609 Mon Sep 17 00:00:00 2001 From: Christian Klotz Date: Wed, 9 Dec 2020 16:32:40 +0200 Subject: [PATCH 4/4] Make coeditCompatibilityVersion optional MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Although it’s always stored for documents at version 135+ and required at runtime, earlier versions don’t have it and runtime will migrate it anyway. --- schema/meta.schema.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/schema/meta.schema.yaml b/schema/meta.schema.yaml index 395e9e3..506c9da 100644 --- a/schema/meta.schema.yaml +++ b/schema/meta.schema.yaml @@ -4,6 +4,8 @@ description: artboards appearing in the file, fonts used, the version of Sketch used to save the file etc. type: object +optional: + - coeditCompatibilityVersion properties: commit: { type: string } pagesAndArtboards: