ochre-sdk 1.0.24 → 1.0.26

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.
@@ -1320,7 +1320,7 @@ function parseItem(rawData, options) {
1320
1320
  abbreviation: rawOchre.belongsTo
1321
1321
  };
1322
1322
  const metadata = parseMetadata(rawOchre, parserOptions, defaultLanguage);
1323
- const persistentUrl = parseHref(rawOchre.persistentUrl);
1323
+ const persistentUrl = rawOchre.persistentUrl ?? null;
1324
1324
  const item = parseTopLevelItem(rawOchre, category, parserOptions);
1325
1325
  if (category === "resource") {
1326
1326
  const rawResource = getSingleTopLevelRawItem("resource" in rawOchre ? rawOchre.resource : null, "resource");
@@ -12,7 +12,7 @@ const ITEM_PAGE_TOKEN = "item-page";
12
12
  const ENTRY_PAGE_TOKEN = "entry-page";
13
13
  const VARIANT_TOKEN = "variant";
14
14
  const HEADING_LEVEL_TOKEN = "heading-level";
15
- const RAW_MDX_BLOCK_DELIMITER = "```***```";
15
+ const RAW_MDX_BLOCK_DELIMITER = "``md``";
16
16
  const RAW_MDX_BLOCK_PLACEHOLDER_PREFIX = "\0raw-mdx-block:";
17
17
  const RAW_MDX_BLOCK_PLACEHOLDER_SUFFIX = "\0";
18
18
  const MDX_QUOTED_ATTRIBUTE_ESCAPE_REGEX = /[\n\r"]/;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.24",
3
+ "version": "1.0.26",
4
4
  "type": "module",
5
5
  "license": "MIT",
6
6
  "description": "Node.js library for working with OCHRE (Online Cultural and Historical Research Environment) data",
@@ -67,7 +67,7 @@
67
67
  }
68
68
  },
69
69
  "dependencies": {
70
- "date-fns": "^4.3.0",
70
+ "date-fns": "^4.4.0",
71
71
  "fast-equals": "^6.0.0",
72
72
  "fast-xml-parser": "^5.8.0",
73
73
  "valibot": "^1.4.1"
@@ -76,10 +76,10 @@
76
76
  "@antfu/eslint-config": "^9.0.0",
77
77
  "@types/node": "^24.12.4",
78
78
  "bumpp": "^11.1.0",
79
- "eslint": "^10.4.0",
80
- "knip": "^6.14.2",
79
+ "eslint": "^10.4.1",
80
+ "knip": "^6.15.0",
81
81
  "prettier": "^3.8.3",
82
- "tsdown": "^0.22.0",
82
+ "tsdown": "^0.22.1",
83
83
  "typescript": "^6.0.3",
84
84
  "vitest": "^4.1.7"
85
85
  },