@combos-fun/engine 0.1.19 → 0.1.21

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": "@combos-fun/engine",
3
- "version": "0.1.19",
3
+ "version": "0.1.21",
4
4
  "description": "ECS microkernel",
5
5
  "main": "index.js",
6
6
  "module": "dist/engine.esm.js",
@@ -43,13 +43,13 @@
43
43
  "lodash-es": "^4.17.21",
44
44
  "resource-loader": "^4.0.0-rc4",
45
45
  "sprite-timeline": "^1.10.2",
46
- "@combos-fun/inspector-decorator": "0.1.19"
46
+ "@combos-fun/inspector-decorator": "0.1.21"
47
47
  },
48
48
  "devDependencies": {
49
49
  "tsx": "^4.20.3"
50
50
  },
51
51
  "scripts": {
52
52
  "build": "node ../../scripts/build-package.mjs",
53
- "test": "node --import tsx --test test/normalizeResourceSrc.test.ts test/normalizeSpritesheetData.test.ts test/gameObject-tree.test.ts test/renderQuality.test.ts test/preferCompressedImage.test.ts"
53
+ "test": "node --import tsx --test test/normalizeResourceSrc.test.ts test/normalizeSpritesheetData.test.ts test/gameObject-tree.test.ts test/renderQuality.test.ts test/preferCompressedImage.test.ts test/resourceHostMessages.test.ts"
54
54
  }
55
55
  }
@@ -68,7 +68,7 @@ Lifecycle (all optional):
68
68
 
69
69
  Subclass `System`. Set `static systemName = 'MyFeatureSystem'`.
70
70
 
71
- When the package is built with `scripts/build-package.mjs`, each `System` class in `lib/` automatically receives `static packageName` and `static packageVersion` from `package.json` (via generated `lib/__combosPackageMeta.gen.ts`). These values are included in the iframe `combos-game:plugin-init-success` postMessage — do not set them manually in source.
71
+ When the package is built with `scripts/build-package.mjs`, each `System` class in `lib/` automatically receives `static packageName` and `static packageVersion` from `package.json`. Do not set them manually in source.
72
72
 
73
73
  Decorate with `@decorators.componentObserver({ MyFeature: ['power'] })`:
74
74
 
@@ -150,10 +150,6 @@ class MyRenderer3D extends Renderer3D {
150
150
 
151
151
  **Async loading pattern** (3D only): use the inherited `increaseAsyncId(id)` before async work and `validateAsyncId(id, asyncId)` after each `await` to cancel stale operations when the component is removed mid-load.
152
152
 
153
- ## Host `postMessage` type names
154
-
155
- Only `@combos-fun/engine` may invent `combos-game:*` types (`plugin-init-success`, `ready`, `set-playing`, `state-changed`). Every other plugin’s iframe / parent / `window` / `game.emit` host command uses the `combos-development-tool:` prefix — including features implemented outside `plugin-development-tool` (for example mute in `plugin-sound`). Do not add `combos-sound:*`, `combos-<plugin>:*`, or a new prefix.
156
-
157
153
  ## `combos-plugin.json` (manifest)
158
154
 
159
155
  Validate against `schemas/combos-plugin.schema.json`. Required fields: `name`, `pluginId`, `category`, `dimension`, `agentSkill`. For non-core packages, `category` ∈ {`rendering`, `physics`, `audio`, `input`, `ui`, `a11y`, `animation`, `devtool`, `other`} and `dimension` ∈ {`2d`, `3d`, `shared`}.