optolith-database-schema 0.34.17 → 0.35.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
@@ -2,6 +2,17 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [commit-and-tag-version](https://github.com/absolute-version/commit-and-tag-version) for commit guidelines.
4
4
 
5
+ ## [0.35.0](https://github.com/elyukai/optolith-database-schema/compare/v0.34.17...v0.35.0) (2026-03-13)
6
+
7
+
8
+ ### ⚠ BREAKING CHANGES
9
+
10
+ * only allow numeric cost for jewelry
11
+
12
+ ### Features
13
+
14
+ * only allow numeric cost for jewelry ([a83b27e](https://github.com/elyukai/optolith-database-schema/commit/a83b27e802efb026bbd2fc75ee70a41df2c56c36))
15
+
5
16
  ## [0.34.17](https://github.com/elyukai/optolith-database-schema/compare/v0.34.16...v0.34.17) (2026-03-12)
6
17
 
7
18
 
package/gen/types.d.ts CHANGED
@@ -21676,7 +21676,7 @@ export interface Jewelry {
21676
21676
  /**
21677
21677
  * The cost in silverthalers.
21678
21678
  */
21679
- cost: JewelryMaterialDifference<Cost>
21679
+ cost: JewelryMaterialDifference<number>
21680
21680
 
21681
21681
  /**
21682
21682
  * The weight in kg.
@@ -1,13 +1,15 @@
1
1
  import * as DB from "tsondb/schema/dsl";
2
2
  import { src } from "../../source/_PublicationRef.js";
3
- import { Complexity, Cost, DefaultItemTranslations, StructurePoints, Weight } from "./_Item.js";
3
+ import { Complexity, DefaultItemTranslations, StructurePoints, Weight } from "./_Item.js";
4
4
  export const Jewelry = DB.Entity(import.meta.url, {
5
5
  name: "Jewelry",
6
6
  namePlural: "Jewelries",
7
7
  type: () => DB.Object({
8
8
  cost: DB.Required({
9
9
  comment: "The cost in silverthalers.",
10
- type: DB.GenIncludeIdentifier(JewelryMaterialDifference, [DB.IncludeIdentifier(Cost)]),
10
+ type: DB.GenIncludeIdentifier(JewelryMaterialDifference, [
11
+ DB.Float({ minimum: { value: 0, isExclusive: true } }),
12
+ ]),
11
13
  }),
12
14
  weight: DB.Required({
13
15
  comment: "The weight in kg.",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "optolith-database-schema",
3
- "version": "0.34.17",
3
+ "version": "0.35.0",
4
4
  "description": "Definitions and utilities for the flat-file database of Optolith, a character creation tool for the Pen and Paper RPG “The Dark Eye 5”, and its external integrations into other software.",
5
5
  "keywords": [
6
6
  "tde",