Skip to content

A fast 2D and 3D game engine — TypeScript SDK, C++/WebAssembly core, visual editor. Ship one project to web, desktop, WeChat MiniGames, playable ads, and native Android / iOS.

chore: align v0.78.0 release verification contracts

yhh4b8866865e50
diff --git a/desktop b/desktop
index 1b7798fa5..4f4b5143b 160000
--- a/desktop
+++ b/desktop
@@ -1 +1 @@
-Subproject commit 1b7798fa528eb336795fe61bd078ea12eb5d0c7a
+Subproject commit 4f4b5143b32acea9bc7188aced03f67146bc61ee
diff --git a/docs/astro/src/data/apiStability.generated.json b/docs/astro/src/data/apiStability.generated.json
index 137c9270f..abc92b1c6 100644
--- a/docs/astro/src/data/apiStability.generated.json
+++ b/docs/astro/src/data/apiStability.generated.json
@@ -3,10 +3,10 @@
"counts": {
"public": 115,
"beta": 103,
- "experimental": 2169,
+ "experimental": 2170,
"deprecated": 3
},
- "total": 2387,
+ "total": 2388,
"subsystems": [
{
"id": "ecs",
diff --git a/sdk/src/asset/loaders/MaterialShaderAssetLoader.ts b/sdk/src/asset/loaders/MaterialShaderAssetLoader.ts
index 85ea01347..045b6ab12 100644
--- a/sdk/src/asset/loaders/MaterialShaderAssetLoader.ts
+++ b/sdk/src/asset/loaders/MaterialShaderAssetLoader.ts
@@ -21,7 +21,7 @@ export class MaterialShaderSource {
return handle;
}
- release(): void {
+ dispose(): void {
const handles = [...this.programs_.values()];
this.programs_.clear();
disposeAll(handles, handle => Material.releaseShader(handle));
@@ -44,5 +44,5 @@ export class MaterialShaderAssetLoader implements AssetLoader<MaterialShaderSour
return new MaterialShaderSource(path, source);
}
- unload(source: MaterialShaderSource): void { source.release(); }
+ unload(source: MaterialShaderSource): void { source.dispose(); }
}
diff --git a/sdk/tests/aot-app.test.ts b/sdk/tests/aot-app.test.ts
index 65cada70a..71b85f7aa 100644
--- a/sdk/tests/aot-app.test.ts
+++ b/sdk/tests/aot-app.test.ts
@@ -74,7 +74,8 @@ describe('an App told to run its compiled twins', () => {
try {
await app.tick(1/60);expect(held.alpha).toBeCloseTo(0.09);expect(app.compiledSystems.calls).toBe(1);
host.grow();expect(address(entities[0]!)).toBe(before);
- held.alpha=0.5;await app.tick(1/60);expect(held.alpha).toBeCloseTo(0.49);
+ held.alpha=0.5;app.world.set(entities[0]!,Fade,held as never);
+ await app.tick(1/60);expect(held.alpha).toBeCloseTo(0.49);
expect(app.compiledSystems.calls).toBe(2);expect(host.staticsIntact()).toBe(true);
}finally{app.quit({keepRenderer:true});}
});
diff --git a/sdk/tests/aot-dispatch.test.ts b/sdk/tests/aot-dispatch.test.ts
index b2125e94f..d06564cf5 100644
--- a/sdk/tests/aot-dispatch.test.ts
+++ b/sdk/tests/aot-dispatch.test.ts
@@ -134,7 +134,7 @@ describe('the scheduler and its compiled twin', () => {
b.world.set(second,b.Decay,{remaining:1,rate:0.1});b.runner.run(system);
expect(systems.calls).toBe(1);expect((b.world.get(first,b.Decay) as {remaining:number}).remaining).toBeCloseTo(0.9);
// A cached row table must become invalid when a live view gains a ref.
- (b.world.get(first,b.Decay) as {remaining:unknown}).remaining='@uuid:later';b.runner.run(system);
+ b.world.update(first,b.Decay,data=>{(data as unknown as {remaining:unknown}).remaining='@uuid:later';});b.runner.run(system);
expect(systems.calls).toBe(1);expect(seen.slice(2)).toEqual(['@uuid:later',0.9]);
expect(heap.staticsIntact()).toBe(true);
});
diff --git a/sdk/tests/component-asset-validation.test.ts b/sdk/tests/component-asset-validation.test.ts
index 2c6104e60..feec4aef4 100644
--- a/sdk/tests/component-asset-validation.test.ts
+++ b/sdk/tests/component-asset-validation.test.ts
@@ -54,8 +54,10 @@ describe('component asset validation reads current metadata',()=>{
const view=w.get(entity,comp),address=w.addressResolver(comp),epoch=w.scriptLayoutEpoch();
expect(view.texture).toBe('@uuid:first');expect(address(entity)).toBeUndefined();
(view as unknown as {texture:unknown}).texture=11;
+ w.set(entity,comp,view);
expect(address(entity)).toBeDefined();expect(w.scriptLayoutEpoch()).toBeGreaterThan(epoch);
(view as unknown as {texture:unknown}).texture='@uuid:second';
+ w.set(entity,comp,view);
expect(address(entity)).toBeUndefined();
for(let i=0;i<70;i++)w.insert(w.spawn(),comp,{texture:i,count:i});
expect(view.texture).toBe('@uuid:second');expect(view.count).toBe(7);
@@ -73,7 +75,7 @@ describe('component asset validation reads current metadata',()=>{
const comp=defineComponent('PooledMultipleAssetReferences',{first:0,second:0},{assetFields:[{field:'first',type:'texture'},{field:'second',type:'texture'}]}),w=new World(),entity=w.spawn();
w.insert(entity,comp,{first:'@uuid:first',second:'@uuid:second'} as never);
const data=w.get(entity,comp) as unknown as {first:unknown;second:unknown},address=w.addressResolver(comp);
- data.first=5;expect(address(entity)).toBeUndefined();expect(data.second).toBe('@uuid:second');
- data.second=7;expect(address(entity)).toBeDefined();
+ data.first=5;w.set(entity,comp,data as never);expect(address(entity)).toBeUndefined();expect(data.second).toBe('@uuid:second');
+ data.second=7;w.set(entity,comp,data as never);expect(address(entity)).toBeDefined();
});
});
diff --git a/sdk/tests/prefab-owned-data.test.ts b/sdk/tests/prefab-owned-data.test.ts
index 56afefd3c..22bfb0938 100644
--- a/sdk/tests/prefab-owned-data.test.ts
+++ b/sdk/tests/prefab-owned-data.test.ts
@@ -54,7 +54,7 @@ describe.skipIf(!HAS_WASM)('owned prefab records retain scene-loader behavior',
expect(world.get(first.root, Payload).target).toBe(first.entities.get(1));
expect(world.get(second.root, Payload).target).toBe(second.entities.get(1));
expect(world.get(first.root, Transform).position.x).toBe(7);
- world.get(first.root, Payload).payload.values.push(12);
+ world.update(first.root, Payload, data => { data.payload.values.push(12); });
expect(world.get(second.root, Payload).payload.values).toEqual([3, 4]);
expect(JSON.stringify({ prefab, overrides })).toBe(original);
} finally { for (const e of world.getAllEntities()) if (world.valid(e)) world.despawn(e); }
diff --git a/tools/goldenProjects.mjs b/tools/goldenProjects.mjs
index fa6ca5732..d1d039d7b 100644
--- a/tools/goldenProjects.mjs
+++ b/tools/goldenProjects.mjs
@@ -90,6 +90,8 @@ export const CENSUS_FLOOR = '0.60.0';
* that does not exist, and release notes are a different act. Theirs is ungated.
*/
export const SHIPPED = {
+ 'Material state can be applied as one complete snapshot':
+ { notCertifiable: 'an SDK mutation and ownership contract; sdk/tests/material.test.ts, material-texture-leases.test.ts and the material-live-textures editor check hold snapshots, lifetime and saved Play parity' },
// — 0.77.0 —
"Text input hints can follow the game's language":
{ notCertifiable: 'no golden project authors a localized placeholder yet; sdk/tests/ui-text-input-view.test.ts holds placeholder localization and invalidation' },
diff --git a/tools/lib/aotDuties.mjs b/tools/lib/aotDuties.mjs
index f1eb72528..1919036d1 100644
--- a/tools/lib/aotDuties.mjs
+++ b/tools/lib/aotDuties.mjs
@@ -47,10 +47,13 @@ export const DUTIES = [
// memory so this side writes the table, and a loading host packs its own
// and is told where the script pools are.
web: ['runtime.addresses.componentNamed', 'runtime.ctx.build'],
- native: ['world.scriptSpanOf', 'bindings.scriptRows'],
+ native: ['world.scriptSpanOf', 'bindings.scriptRows', 'world.addressResolver', 'world.hasPortableScriptAssetRefs'],
differential: {
web: [{ path: 'sdk/tests/aot-conformance.test.ts', probe: /twins\.trace\[f\]/ }],
- native: [{ path: 'tools/verify-native-conformance.mjs', probe: /disagrees at frame/ }],
+ native: [
+ { path: 'tools/verify-native-conformance.mjs', probe: /disagrees at frame/ },
+ { path: 'sdk/tests/aot-native-install.test.ts', probe: /interprets every matching row with a portable asset ref/ },
+ ],
},
},
{
@@ -204,6 +207,8 @@ export const DUTIES = [
* excuse is.
*/
export const BOOKKEEPING = {
+ 'assetQueries_.get': 'per-twin query declaration cache; no entity rows or resource receipts are held',
+ 'assetQueries_.set': 'refreshing query address resolvers when script layout metadata changes',
'plans.get': 'the per-system plan cache, which only this road has',
'plans.set': 'the per-system plan cache, which only this road has',
'plans.clear': 'dropping the plans on reset',