document-content-model 4.3.0 → 4.3.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.
@@ -7,7 +7,7 @@ const SCHEMA_FILE_NAMES = {
7
7
  ContentDocument: "content-document.schema.json"
8
8
  };
9
9
  function schemaUriFor(kind) {
10
- return `https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
11
11
  }
12
12
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
13
13
  function parseSchemaUri(uri) {
@@ -93,7 +93,7 @@ function documentFromJson(value) {
93
93
  if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
94
94
  const kind = kindForFileStem(parts.stem);
95
95
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
96
- if (majorVersionOf(parts.version) !== majorVersionOf("4.3.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.3.0");
96
+ if (majorVersionOf(parts.version) !== majorVersionOf("4.3.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.3.1");
97
97
  switch (kind) {
98
98
  case "DocumentPackage": return {
99
99
  kind,
package/dist/schema-io.js CHANGED
@@ -6,7 +6,7 @@ const SCHEMA_FILE_NAMES = {
6
6
  ContentDocument: "content-document.schema.json"
7
7
  };
8
8
  function schemaUriFor(kind) {
9
- return `https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/${SCHEMA_FILE_NAMES[kind]}`;
9
+ return `https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/${SCHEMA_FILE_NAMES[kind]}`;
10
10
  }
11
11
  const SCHEMA_URI_PATTERN = /^https:\/\/cdn\.jsdelivr\.net\/npm\/document-schema\.js@([^/]+)\/schemas\/(document-package|content-document|layout-document)\.schema\.json$/;
12
12
  function parseSchemaUri(uri) {
@@ -92,7 +92,7 @@ function documentFromJson(value) {
92
92
  if (parts.stem === "layout-document") throw new LayoutSchemaDemotedError(value.$schema);
93
93
  const kind = kindForFileStem(parts.stem);
94
94
  if (kind === void 0) throw new UnrecognizedDocumentSchemaError(value.$schema);
95
- if (majorVersionOf(parts.version) !== majorVersionOf("4.3.0")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.3.0");
95
+ if (majorVersionOf(parts.version) !== majorVersionOf("4.3.1")) throw new SchemaVersionMismatchError(value.$schema, parts.version, "4.3.1");
96
96
  switch (kind) {
97
97
  case "DocumentPackage": return {
98
98
  kind,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "document-content-model",
3
- "version": "4.3.0",
3
+ "version": "4.3.1",
4
4
  "description": "The canonical, format-agnostic content and document-package schemas shared by ooxml.js, odf.js, documents.js, pdf-codec, and markdown-codec, plus the structural transform between them -- no format-specific or I/O behaviour.",
5
5
  "type": "module",
6
6
  "repository": {
@@ -64,7 +64,7 @@
64
64
  },
65
65
  "devDependencies": {
66
66
  "@arethetypeswrong/cli": "^0.18.5",
67
- "@cloudflare/vitest-pool-workers": "^0.20.1",
67
+ "@cloudflare/vitest-pool-workers": "^0.21.2",
68
68
  "@commitlint/cli": "^21.2.1",
69
69
  "@commitlint/config-conventional": "^21.2.0",
70
70
  "@eslint/js": "^10.0.1",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/content-document.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/content-document.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -2857,7 +2857,7 @@
2857
2857
  ]
2858
2858
  },
2859
2859
  "document": {
2860
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/content-document.schema.json"
2860
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/content-document.schema.json"
2861
2861
  },
2862
2862
  "frame": {
2863
2863
  "$ref": "#/$defs/Box"
@@ -4132,7 +4132,7 @@
4132
4132
  ]
4133
4133
  },
4134
4134
  "document": {
4135
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/content-document.schema.json"
4135
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/content-document.schema.json"
4136
4136
  },
4137
4137
  "frame": {
4138
4138
  "$ref": "#/$defs/Box"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/document-package.schema.json",
3
+ "$id": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/document-package.schema.json",
4
4
  "oneOf": [
5
5
  {
6
6
  "type": "object",
@@ -1066,7 +1066,7 @@
1066
1066
  ]
1067
1067
  },
1068
1068
  "document": {
1069
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/content-document.schema.json"
1069
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/content-document.schema.json"
1070
1070
  },
1071
1071
  "frame": {
1072
1072
  "$ref": "#/$defs/Box"
@@ -2341,7 +2341,7 @@
2341
2341
  ]
2342
2342
  },
2343
2343
  "document": {
2344
- "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.0/schemas/content-document.schema.json"
2344
+ "$ref": "https://cdn.jsdelivr.net/npm/document-schema.js@4.3.1/schemas/content-document.schema.json"
2345
2345
  },
2346
2346
  "frame": {
2347
2347
  "$ref": "#/$defs/Box"