@optolith/database-schema 0.110.1 → 0.111.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.
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
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.111.1](https://github.com/Optolith/database-schema/compare/v0.111.0...v0.111.1) (2026-10-18)
|
|
6
|
+
|
|
7
|
+
## [0.111.0](https://github.com/Optolith/database-schema/compare/v0.110.1...v0.111.0) (2026-10-18)
|
|
8
|
+
|
|
9
|
+
### ⚠ BREAKING CHANGES
|
|
10
|
+
|
|
11
|
+
* some poison do not specify ingestion or effect types
|
|
12
|
+
|
|
13
|
+
### Bug Fixes
|
|
14
|
+
|
|
15
|
+
* some poison do not specify ingestion or effect types ([b0087e3](https://github.com/Optolith/database-schema/commit/b0087e3bca1a065db1aad2a35abd5c9e05d66bf9))
|
|
16
|
+
|
|
5
17
|
## [0.110.1](https://github.com/Optolith/database-schema/compare/v0.110.0...v0.110.1) (2026-10-18)
|
|
6
18
|
|
|
7
19
|
### Features
|
package/gen/types.d.ts
CHANGED
|
@@ -6321,7 +6321,7 @@ export interface IntoxicantTranslation {
|
|
|
6321
6321
|
/**
|
|
6322
6322
|
* How to ingest the intoxicant.
|
|
6323
6323
|
*/
|
|
6324
|
-
ingestion
|
|
6324
|
+
ingestion?: string
|
|
6325
6325
|
|
|
6326
6326
|
/**
|
|
6327
6327
|
* The intoxicants side effects that always happen, no matter whether the intoxicant has the default or the reduced effect.
|
|
@@ -6464,7 +6464,7 @@ export interface PlantPoison {
|
|
|
6464
6464
|
/**
|
|
6465
6465
|
* Effect type(s) of a plant poison.
|
|
6466
6466
|
*/
|
|
6467
|
-
effect_types
|
|
6467
|
+
effect_types?: EffectType[]
|
|
6468
6468
|
|
|
6469
6469
|
/**
|
|
6470
6470
|
* The poison’s level.
|
package/lib/cache/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReadonlyTSONDB } from "tsondb/readonly";
|
|
2
2
|
import type { TSONDBTypes } from "../main.ts";
|
|
3
3
|
import { type ActivatableSelectOptionsCache, type ResolvedSelectOption, type ResolvedSelectOptionIdentifier } from "./activatableSelectOptions.ts";
|
|
4
4
|
import { type AncestorBloodAdvantagesCache } from "./ancestorBloodAdvantages.ts";
|
|
@@ -22,4 +22,4 @@ export type { ActivatableSelectOptionsCache, AncestorBloodAdvantagesCache, Magic
|
|
|
22
22
|
* @param idMap An object containing identifiers of specific entries in the database that are used for creating the cache.
|
|
23
23
|
* @returns The created cache object.
|
|
24
24
|
*/
|
|
25
|
-
export declare const createCache: (db:
|
|
25
|
+
export declare const createCache: (db: ReadonlyTSONDB<TSONDBTypes>) => Cache;
|
package/lib/cache/internal.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { ReadonlyTSONDB } from "tsondb/readonly";
|
|
2
2
|
import type { Settings } from "../../gen/types.js";
|
|
3
3
|
import type { TSONDBTypes } from "../main.ts";
|
|
4
|
-
export type CacheBuilder<T = unknown, Args extends unknown[] = []> = (db:
|
|
4
|
+
export type CacheBuilder<T = unknown, Args extends unknown[] = []> = (db: ReadonlyTSONDB<TSONDBTypes>, settings: Settings, ...args: Args) => T;
|
|
@@ -208,7 +208,7 @@ export declare const Poison: DB.Entity<"Poison", {
|
|
|
208
208
|
}>, false>;
|
|
209
209
|
}>, []>>, false>;
|
|
210
210
|
translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantTranslation", {
|
|
211
|
-
ingestion: DB.MemberDecl<DB.String,
|
|
211
|
+
ingestion: DB.MemberDecl<DB.String, false>;
|
|
212
212
|
side_effect: DB.MemberDecl<DB.String, false>;
|
|
213
213
|
overdose: DB.MemberDecl<DB.String, false>;
|
|
214
214
|
special: DB.MemberDecl<DB.String, false>;
|
|
@@ -233,7 +233,7 @@ export declare const Poison: DB.Entity<"Poison", {
|
|
|
233
233
|
Beneficial: DB.EnumCase<null>;
|
|
234
234
|
Defensive: DB.EnumCase<null>;
|
|
235
235
|
Supernatural: DB.EnumCase<null>;
|
|
236
|
-
}, []>>>,
|
|
236
|
+
}, []>>>, false>;
|
|
237
237
|
level: DB.MemberDecl<DB.Integer, true>;
|
|
238
238
|
intoxicant: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Intoxicant", DB.Object<{
|
|
239
239
|
legality: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"IntoxicantLegality", DB.Object<{
|
|
@@ -265,7 +265,7 @@ export declare const Poison: DB.Entity<"Poison", {
|
|
|
265
265
|
}>, false>;
|
|
266
266
|
}>, []>>, false>;
|
|
267
267
|
translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantTranslation", {
|
|
268
|
-
ingestion: DB.MemberDecl<DB.String,
|
|
268
|
+
ingestion: DB.MemberDecl<DB.String, false>;
|
|
269
269
|
side_effect: DB.MemberDecl<DB.String, false>;
|
|
270
270
|
overdose: DB.MemberDecl<DB.String, false>;
|
|
271
271
|
special: DB.MemberDecl<DB.String, false>;
|
|
@@ -659,7 +659,7 @@ export declare const AlchemicalPoison: DB.TypeAlias<"AlchemicalPoison", DB.Objec
|
|
|
659
659
|
}>, false>;
|
|
660
660
|
}>, []>>, false>;
|
|
661
661
|
translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantTranslation", {
|
|
662
|
-
ingestion: DB.MemberDecl<DB.String,
|
|
662
|
+
ingestion: DB.MemberDecl<DB.String, false>;
|
|
663
663
|
side_effect: DB.MemberDecl<DB.String, false>;
|
|
664
664
|
overdose: DB.MemberDecl<DB.String, false>;
|
|
665
665
|
special: DB.MemberDecl<DB.String, false>;
|
|
@@ -683,7 +683,7 @@ export declare const PlantPoison: DB.TypeAlias<"PlantPoison", DB.Object<{
|
|
|
683
683
|
Beneficial: DB.EnumCase<null>;
|
|
684
684
|
Defensive: DB.EnumCase<null>;
|
|
685
685
|
Supernatural: DB.EnumCase<null>;
|
|
686
|
-
}, []>>>,
|
|
686
|
+
}, []>>>, false>;
|
|
687
687
|
level: DB.MemberDecl<DB.Integer, true>;
|
|
688
688
|
intoxicant: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"Intoxicant", DB.Object<{
|
|
689
689
|
legality: DB.MemberDecl<DB.IncludeIdentifier<[], DB.TypeAlias<"IntoxicantLegality", DB.Object<{
|
|
@@ -715,7 +715,7 @@ export declare const PlantPoison: DB.TypeAlias<"PlantPoison", DB.Object<{
|
|
|
715
715
|
}>, false>;
|
|
716
716
|
}>, []>>, false>;
|
|
717
717
|
translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantTranslation", {
|
|
718
|
-
ingestion: DB.MemberDecl<DB.String,
|
|
718
|
+
ingestion: DB.MemberDecl<DB.String, false>;
|
|
719
719
|
side_effect: DB.MemberDecl<DB.String, false>;
|
|
720
720
|
overdose: DB.MemberDecl<DB.String, false>;
|
|
721
721
|
special: DB.MemberDecl<DB.String, false>;
|
|
@@ -772,7 +772,7 @@ export declare const Intoxicant: DB.TypeAlias<"Intoxicant", DB.Object<{
|
|
|
772
772
|
}>, false>;
|
|
773
773
|
}>, []>>, false>;
|
|
774
774
|
translations: DB.MemberDecl<DB.NestedEntityMap<"IntoxicantTranslation", {
|
|
775
|
-
ingestion: DB.MemberDecl<DB.String,
|
|
775
|
+
ingestion: DB.MemberDecl<DB.String, false>;
|
|
776
776
|
side_effect: DB.MemberDecl<DB.String, false>;
|
|
777
777
|
overdose: DB.MemberDecl<DB.String, false>;
|
|
778
778
|
special: DB.MemberDecl<DB.String, false>;
|
|
@@ -313,7 +313,7 @@ export const MineralPoison = DB.TypeAlias(import.meta.url, {
|
|
|
313
313
|
export const PlantPoison = DB.TypeAlias(import.meta.url, {
|
|
314
314
|
name: "PlantPoison",
|
|
315
315
|
type: () => DB.Object({
|
|
316
|
-
effect_types: DB.
|
|
316
|
+
effect_types: DB.Optional({
|
|
317
317
|
comment: "Effect type(s) of a plant poison.",
|
|
318
318
|
type: DB.Array(DB.IncludeIdentifier(EffectType), { minItems: 1, uniqueItems: true }),
|
|
319
319
|
}),
|
|
@@ -378,7 +378,7 @@ export const Intoxicant = DB.TypeAlias(import.meta.url, {
|
|
|
378
378
|
type: DB.IncludeIdentifier(IntoxicantAddiction),
|
|
379
379
|
}),
|
|
380
380
|
translations: NestedTranslationMap(DB.Required, "Intoxicant", DB.Object({
|
|
381
|
-
ingestion: DB.
|
|
381
|
+
ingestion: DB.Optional({
|
|
382
382
|
comment: "How to ingest the intoxicant.",
|
|
383
383
|
type: DB.String({ minLength: 1, markdown: "block" }),
|
|
384
384
|
}),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@optolith/database-schema",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.111.1",
|
|
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",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"license": "MPL-2.0",
|
|
40
40
|
"dependencies": {
|
|
41
41
|
"@elyukai/utils": "^0.3.6",
|
|
42
|
-
"tsondb": "^0.23.
|
|
42
|
+
"tsondb": "^0.23.2"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@elyukai/oxc-config": "^0.1.0",
|