Skip to content

A town simulation in pale isometric line art, implemented with Ritmo ECS and PixiJs 3D

Ritmo 0.15.0: bump every package, Ops and Random from @typeonce/ritmo

SandroMaglioneb6c4fe848ef9
diff --git a/package.json b/package.json
index d53e7cf..02ef270 100644
--- a/package.json
+++ b/package.json
@@ -32,18 +32,18 @@
"engine:prepare": "node scripts/use-ritmo.ts"
},
"dependencies": {
- "@typeonce/ritmo": "0.9.0",
- "@typeonce/ritmo-browser": "0.9.0",
- "@typeonce/ritmo-math": "0.9.0",
- "@typeonce/ritmo-pixi": "0.9.0",
- "@typeonce/ritmo-render": "0.9.0",
+ "@typeonce/ritmo": "0.15.0",
+ "@typeonce/ritmo-browser": "0.15.0",
+ "@typeonce/ritmo-math": "0.15.0",
+ "@typeonce/ritmo-pixi": "0.15.0",
+ "@typeonce/ritmo-render": "0.15.0",
"effect": "4.0.3",
"pixi.js": "^8.22.0",
"three": "^0.186.1"
},
"devDependencies": {
- "@typeonce/oxlint-plugin-ritmo": "0.9.0",
- "@typeonce/ritmo-devtools": "0.9.0",
+ "@typeonce/oxlint-plugin-ritmo": "0.15.0",
+ "@typeonce/ritmo-devtools": "0.15.0",
"@types/node": "25.5.0",
"@types/three": "^0.186.0",
"oxlint": "1.87.0",
@@ -51,5 +51,5 @@
"typescript": "7.0.2",
"vite": "8.3.1"
},
- "ritmoRelease": "0.9.0"
+ "ritmoRelease": "0.15.0"
}
diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml
index a522809..639ce49 100644
--- a/pnpm-lock.yaml
+++ b/pnpm-lock.yaml
@@ -9,20 +9,20 @@ importers:
.:
dependencies:
'@typeonce/ritmo':
- specifier: 0.9.0
- version: 0.9.0([email protected])
+ specifier: 0.15.0
+ version: 0.15.0([email protected])
'@typeonce/ritmo-browser':
- specifier: 0.9.0
- version: 0.9.0([email protected])
+ specifier: 0.15.0
+ version: 0.15.0([email protected])
'@typeonce/ritmo-math':
- specifier: 0.9.0
- version: 0.9.0([email protected])
+ specifier: 0.15.0
+ version: 0.15.0([email protected])
'@typeonce/ritmo-pixi':
- specifier: 0.9.0
- version: 0.9.0([email protected])
+ specifier: 0.15.0
+ version: 0.15.0([email protected])
'@typeonce/ritmo-render':
- specifier: 0.9.0
- version: 0.9.0([email protected])
+ specifier: 0.15.0
+ version: 0.15.0([email protected])
effect:
specifier: 4.0.3
version: 4.0.3
@@ -34,11 +34,11 @@ importers:
version: 0.186.1
devDependencies:
'@typeonce/oxlint-plugin-ritmo':
- specifier: 0.9.0
- version: 0.9.0([email protected])
+ specifier: 0.15.0
+ version: 0.15.0([email protected])
'@typeonce/ritmo-devtools':
- specifier: 0.9.0
- version: 0.9.0([email protected])
+ specifier: 0.15.0
'@types/node':
specifier: 25.5.0
version: 25.5.0
@@ -283,35 +283,53 @@ packages:
'@tweenjs/[email protected]':
resolution: {integrity: sha512-vJmvvwFxYuGnF2axRtPYocag6Clbb5YS7kLL+SO/TeVFzHqDIWrNKYtcsPMibjDx9O+bu+psAy9NKfWklassUA==}
- '@typeonce/[email protected]':
- resolution: {integrity: sha512-MZf66alkTFUcmQ5X/+5DNXh5TsP9zFqd8m1RG0v5s+JVXp2nr1b00S83vE12/PJGBGqIMjWOJlVX65P6vTA3gg==}
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-jl95CkZmIR06XQcps4oK3oNm3s3hN59Rrm32a4PXfLB21NfwtbQnLum0SXMMiyZa0cf89CxdqQA9JNyC+R2tRQ==}
engines: {node: '>=20'}
peerDependencies:
oxlint: '>=1.86.0'
- '@typeonce/[email protected]':
- resolution: {integrity: sha512-EKALcrcs5QsOoZjO839HDAuOG+QzjNSRush2YOb5NbvB6b6JMyarRFIH4qwJCQRdWBdX+qMYkDOksDu8yCkD5A==}
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-IShraJAGwZpHxIVH3gQIrHTbvL0HDV7C4ZchUjoiCGmcAZyoW2m6QVY2eufS4t8ikaIkckL7cE0eTZ4Cf5fh5A==}
engines: {node: '>=20'}
- '@typeonce/[email protected]':
- resolution: {integrity: sha512-9Bj6wN3afeNkaEizHApXrcMODelwYdOUaf/TbMDBkPGkRKu6u8Kytc7rK1r1QxPbMOiilntb4WHOS1/s2E+mLA==}
- engines: {node: '>=20'}
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-Cu715s0m9hqo8ht3tY836Od5KbOIbnsor8Ihb+PMtdwkf+BWhyYDQZDm4/aWdVIuSlPk1Gwv/19L/WFhhrTHvw==}
+ engines: {node: '>=22.15'}
hasBin: true
+ peerDependencies:
+ oxlint: '>=1.86.0'
+ playwright: '>=1.40'
+ rolldown: '>=1.0.0-rc.12'
+ vite: '>=6'
+ peerDependenciesMeta:
+ oxlint:
+ optional: true
+ playwright:
+ optional: true
+ rolldown:
+ optional: true
+ vite:
+ optional: true
+
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-V5OOpqh5ohVsQ2hFruPPJI7yecAle7E2fjkfUaOMYE61rjH8Pi5Ju/0p67eLp5qWdz2dqXBo6yysaG2x+Ci9vw==}
+ engines: {node: '>=20'}
- '@typeonce/[email protected]':
- resolution: {integrity: sha512-JzlKMIQ5tRo875d/RguyJv2ArVCVIQVZL5D8acxFyXGWKKN2/tjp/F7KjQDMCi0bQ/iiM5w3k6+o53kn3S/Bcw==}
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-L0aLB74nChyMfW89fCHo60qkXXeJAMBMB3PmC2pguo3+fNQoahPcSAaiRiSk3Zv/0sBZZmeqSp+XDsKULj+mXw==}
engines: {node: '>=20'}
- '@typeonce/[email protected]':
- resolution: {integrity: sha512-a6eg/y8EOQx9h9R/dI//ivvzTMYGYkEFP3HAOoAvP/5pCe9iDwcYKnVIC3WNWEH8pkpatLzmq0vIskiQNKp01w==}
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-yNAcTlugB2PktBQXz4Y5QHfLN4s5+DYqbB1VBtMYkHqGAE0Hc/yumZnYT5Eccb2hWXAWyX1KYXFZtkwJfUKwyw==}
engines: {node: '>=20'}
- '@typeonce/[email protected]':
- resolution: {integrity: sha512-E44lPGnD4yNp0aPsuclILVTiAkQI4Dna+J12PDzZMajmyILZRPXarbQvWj/E9GiwaJf7wPxzTFODXGGDGKjK2w==}
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-4PoDu/LirkgCuZFUBBhXoIHxATTbFHnt+Rd0GdT0oNOCsEXynu7kLH2yy9Ulo+k9LnrQNIi8FUsMRaMHAqyj1g==}
engines: {node: '>=20'}
- '@typeonce/[email protected]':
- resolution: {integrity: sha512-OwpqEh2oAbUP+lDigEkNIrT2104mIaInjKdad9eHuy+VA3OjioX71XT8Bw3e37giGwfcCkkFaU4UvZx7sAg4bQ==}
+ '@typeonce/[email protected]':
+ resolution: {integrity: sha512-U0QDlCc0oovM9EPqP+MZwhxMMksztsWXKC7OS0WWnBZDxYN/H+OOUs1bQ7xlF8cwDJU9/jj7sMuYGSAXVEP5tQ==}
engines: {node: '>=20'}
peerDependencies:
typescript: '>=5.9'
@@ -805,42 +823,54 @@ snapshots:
'@tweenjs/[email protected]': {}
dependencies:
'@oxlint/plugins': 1.88.0
oxlint: 1.87.0
+ dependencies:
+ '@typeonce/ritmo': 0.15.0([email protected])
+ transitivePeerDependencies:
+ - typescript
+
dependencies:
- '@typeonce/ritmo': 0.9.0([email protected])
+ '@typeonce/ritmo': 0.15.0([email protected])
+ '@typeonce/ritmo-netcode': 0.15.0([email protected])
+ optionalDependencies:
+ oxlint: 1.87.0
+ playwright: 1.64.0
+ rolldown: 1.2.13
+ vite: 8.3.1(@types/[email protected])
transitivePeerDependencies:
- typescript
dependencies:
- '@typeonce/ritmo': 0.9.0([email protected])
+ '@typeonce/ritmo': 0.15.0([email protected])
transitivePeerDependencies:
- typescript
dependencies:
- '@typeonce/ritmo': 0.9.0([email protected])
+ '@typeonce/ritmo': 0.15.0([email protected])
transitivePeerDependencies:
- typescript
dependencies:
- '@typeonce/ritmo-render': 0.9.0([email protected])
+ '@typeonce/ritmo-render': 0.15.0([email protected])
transitivePeerDependencies:
- typescript
dependencies:
- '@typeonce/ritmo': 0.9.0([email protected])
+ '@typeonce/ritmo': 0.15.0([email protected])
transitivePeerDependencies:
- typescript
optionalDependencies:
typescript: 7.0.2
diff --git a/src/game/schedule.ts b/src/game/schedule.ts
index 3f8c08b..bcaa239 100644
--- a/src/game/schedule.ts
+++ b/src/game/schedule.ts
@@ -3,7 +3,7 @@
* renderer, so it runs headless too.
*/
import { Clock } from "@typeonce/ritmo"
-import * as Random from "@typeonce/ritmo-math/Random"
+import * as Random from "@typeonce/ritmo/Random"
import { amounts, defaultCharter, goodIds, step, TRADE_LOAD } from "./content/index.ts"
import { Game, Time } from "./schema.ts"
import { ApplyEdits } from "./systems/edits/index.ts"
diff --git a/src/game/systems/decay/decay.ts b/src/game/systems/decay/decay.ts
index c3dcac4..fde9c17 100644
--- a/src/game/systems/decay/decay.ts
+++ b/src/game/systems/decay/decay.ts
@@ -1,5 +1,5 @@
import { spoilExpectation } from "../../rules/decay.ts"
-import * as Random from "@typeonce/ritmo-math/Random"
+import * as Random from "@typeonce/ritmo/Random"
import { ruinDraft } from "../../world/archetypes.ts"
import { foods, goodIds, stepsOf } from "../../content/index.ts"
import { counted, placeName } from "../../world/places.ts"
diff --git a/src/game/systems/edits/apply-edits.ts b/src/game/systems/edits/apply-edits.ts
index 729eb49..276f22f 100644
--- a/src/game/systems/edits/apply-edits.ts
+++ b/src/game/systems/edits/apply-edits.ts
@@ -1,5 +1,5 @@
import { buildingDraft, houseDraft, houseStart, parkDraft, roadDraft, rockDraft, RoleParts, rolesOf, StartParts, startOf, treeDraft, waterDraft } from "../../world/archetypes.ts"
-import * as Random from "@typeonce/ritmo-math/Random"
+import * as Random from "@typeonce/ritmo/Random"
import { amounts, anA, builtCost, costText, goodIds, nextUpgrade, RESERVE_MAX, TAX_STEPS, stepsOf, total, upgradeAt, type Amounts, type Kind, type ParkPiece, type Upgrade } from "../../content/index.ts"
import { canPlace, cellsOf, GridBuilder, ownerAt, useAt } from "../../world/grid.ts"
import { inside } from "../../world/iso.ts"
diff --git a/src/game/systems/hazards/hazards.ts b/src/game/systems/hazards/hazards.ts
index e766962..a8bccd8 100644
--- a/src/game/systems/hazards/hazards.ts
+++ b/src/game/systems/hazards/hazards.ts
@@ -1,5 +1,5 @@
import { near, riskIncrements } from "../../rules/risks.ts"
-import * as Random from "@typeonce/ritmo-math/Random"
+import * as Random from "@typeonce/ritmo/Random"
import { appealAt } from "../../world/appeal.ts"
import { ruinDraft } from "../../world/archetypes.ts"
import { goodIds, risk, upgradeAt, type GoodId } from "../../content/index.ts"
diff --git a/src/game/systems/term/requests.ts b/src/game/systems/term/requests.ts
index c3ebcbc..856571d 100644
--- a/src/game/systems/term/requests.ts
+++ b/src/game/systems/term/requests.ts
@@ -1,6 +1,6 @@
import { shippedRules } from "../../rules/config.ts"
import { stepsOf, type GoodId } from "../../content/index.ts"
-import * as Random from "@typeonce/ritmo-math/Random"
+import * as Random from "@typeonce/ritmo/Random"
import { Building, Charter, Chronicle, Crown, Fate, Game, Rules, Inventory, Recipe, Rising, Rng, Site, Storage, Time, Treasury } from "../../schema.ts"
import { elapsed, termTicks, write } from "../shared.ts"
diff --git a/src/game/systems/work/plant.ts b/src/game/systems/work/plant.ts
index bb53424..14aac1e 100644
--- a/src/game/systems/work/plant.ts
+++ b/src/game/systems/work/plant.ts
@@ -1,4 +1,4 @@
-import * as Random from "@typeonce/ritmo-math/Random"
+import * as Random from "@typeonce/ritmo/Random"
import { fieldDraft, treeDraft } from "../../world/archetypes.ts"
import { around, key, useAt } from "../../world/grid.ts"
import { Field, FieldOf, Game, Rules, Grid, Paused, Planter, Recipe, Rising, Rng, Site, Staff, Status, Tile, Time, Tree, type Status as StatusValue } from "../../schema.ts"
diff --git a/src/game/systems/work/spread.ts b/src/game/systems/work/spread.ts
index 1c115a7..e994af2 100644
--- a/src/game/systems/work/spread.ts
+++ b/src/game/systems/work/spread.ts
@@ -1,6 +1,6 @@
import { every } from "../../content/index.ts"
import { wildTreeSpots, canSeedTree } from "../../rules/land.ts"
-import * as Random from "@typeonce/ritmo-math/Random"
+import * as Random from "@typeonce/ritmo/Random"
import { treeDraft } from "../../world/archetypes.ts"
import { Game, Rules, Grid, Rng, Tile, Time, Tree } from "../../schema.ts"
diff --git a/src/game/world/appeal.ts b/src/game/world/appeal.ts
index dccc2f6..078a9f9 100644
--- a/src/game/world/appeal.ts
+++ b/src/game/world/appeal.ts
@@ -1,4 +1,4 @@
-import { Ops } from "@typeonce/ritmo-math"
+import { Ops } from "@typeonce/ritmo"
import { shippedRules, type Rules } from "../rules/config.ts"
/**
* Desirability: how pleasant each cell is to live on. Buildings and the land