ochre-sdk 1.0.29 → 1.0.30

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.
@@ -1108,7 +1108,8 @@ function parsePerson(rawPerson, options) {
1108
1108
  periods: parsePeriodList(rawPerson.periods, options),
1109
1109
  links: parseLinks(rawPerson.links, options),
1110
1110
  notes: parseNotes(rawPerson.notes, options),
1111
- properties: parseProperties(rawPerson.properties, options)
1111
+ properties: parseProperties(rawPerson.properties, options),
1112
+ bibliographies: parseBibliographyList(rawPerson.bibliographies, options)
1112
1113
  };
1113
1114
  }
1114
1115
  function parsePropertyVariable(rawPropertyVariable, options) {
@@ -528,6 +528,7 @@ type Person<T extends LanguageCodes = LanguageCodes, U extends ItemPayloadKind =
528
528
  links: ItemLinks<T>;
529
529
  notes: Array<Note<T>>;
530
530
  properties: Array<Property<T>>;
531
+ bibliographies: Array<Bibliography<T, "embedded">>;
531
532
  }>;
532
533
  /**
533
534
  * Period in OCHRE
@@ -561,7 +561,8 @@ const XMLPerson = v.object({
561
561
  periods: v.optional(v.object({ period: v.array(XMLPeriod) })),
562
562
  links: v.optional(v.lazy(() => XMLLink)),
563
563
  notes: v.optional(v.object({ note: v.array(XMLNote) })),
564
- properties: v.optional(v.object({ property: v.array(XMLProperty) }))
564
+ properties: v.optional(v.object({ property: v.array(XMLProperty) })),
565
+ bibliographies: v.optional(v.object({ bibliography: v.array(XMLBibliography) }))
565
566
  }, "XMLPerson: Shape error");
566
567
  const XMLPropertyValue = v.object({
567
568
  ...XMLBaseItem.entries,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ochre-sdk",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
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",
@@ -81,7 +81,7 @@
81
81
  "prettier": "^3.8.3",
82
82
  "tsdown": "^0.22.1",
83
83
  "typescript": "^6.0.3",
84
- "vitest": "^4.1.7"
84
+ "vitest": "^4.1.8"
85
85
  },
86
86
  "scripts": {
87
87
  "dev": "tsdown src/index.ts --watch",