@crowdedkingdoms/construct 0.3.6-dev.1 → 0.3.7-test.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crowdedkingdoms/construct",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.7-test.1",
|
|
4
4
|
"description": "The Construct framework: the Crowded Kingdoms game platform layer (hosted sign-in, World Stores, voice/webcam/chat, Crowdy Studio dock, app and grid mods, grid programs) and engine loop, shared by the-construct starter and the games built on it. Ships TypeScript source for Vite.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"./grid/*": "./src/grid/*.ts"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
|
-
"@crowdedkingdoms/crowdyjs": ">=18.0.4-dev.0 <19 || >=18.1.0-dev.0 <19",
|
|
49
|
-
"@crowdedkingdoms/crowdy-dsh": ">=0.4.0-dev.0 <1 || >=0.4.1-dev.0 <1 || >=0.4.2-dev.0 <1 || >=0.4.3-dev.0 <1 || >=0.4.4-dev.0 <1"
|
|
48
|
+
"@crowdedkingdoms/crowdyjs": ">=18.0.4-dev.0 <19 || >=18.1.0-dev.0 <19 || >=18.2.0-dev.0 <19",
|
|
49
|
+
"@crowdedkingdoms/crowdy-dsh": ">=0.4.0-dev.0 <1 || >=0.4.1-dev.0 <1 || >=0.4.2-dev.0 <1 || >=0.4.3-dev.0 <1 || >=0.4.4-dev.0 <1 || >=0.4.5-dev.0 <1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependenciesMeta": {
|
|
52
52
|
"@crowdedkingdoms/crowdy-dsh": {
|
|
@@ -71,6 +71,13 @@ describe('chunkStoreConfig', () => {
|
|
|
71
71
|
expect(store.voxelTypeAt(STORED, 8, 0, 8)).toBe(4);
|
|
72
72
|
expect(store.voxelStateAt(STORED, 8, 0, 8)).toBe('AA==');
|
|
73
73
|
expect(store.voxelTypeAt(STORED, 2, 0, 2)).toBe(0);
|
|
74
|
+
|
|
75
|
+
// Moving on loads the next cube, which returns this chunk again (CrowdyJS 18.2.0 keeps it).
|
|
76
|
+
await store.ensureAround({ x: 3, y: 0, z: 4 }, 1);
|
|
77
|
+
expect(client.chunks.byDistance).toHaveBeenCalledTimes(2);
|
|
78
|
+
expect(store.voxelTypeAt(STORED, 6, 1, 7)).toBe(1);
|
|
79
|
+
expect(store.voxelTypeAt(STORED, 2, 0, 2)).toBe(0);
|
|
80
|
+
expect(client.chunks.get).toHaveBeenCalledTimes(1);
|
|
74
81
|
});
|
|
75
82
|
|
|
76
83
|
it('shows only the stored grid when the store does not hydrate (the construct before 0.3.6)', async () => {
|