aiecsjs 0.5.1 → 0.5.2

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/dist/worker.js CHANGED
@@ -1,2 +1,2 @@
1
- import {a,b as b$1}from'./chunk-QC25WDOZ.js';import {i,j,l as l$1,a as a$1}from'./chunk-BUFJWGRQ.js';var l=1095320899;function W(r){let e=i(r),o=a(r);if(typeof SharedArrayBuffer>"u"){let n=new ArrayBuffer(o.byteLength);return new Uint8Array(n).set(o),{buffer:n,meta:p(e)}}let t=new SharedArrayBuffer(o.byteLength);return new Uint8Array(t).set(o),{buffer:t,meta:p(e)}}function b(r){m(r.meta);let e=new Uint8Array(r.buffer);return b$1(e)}function S(r,e){let o=new Uint8Array(r),t=b$1(o);if(e?.readOnly){let n=i(t);n.readOnly=true;}return t}function w(r){j(r.id)&&l$1(r);}function p(r){let e=[];for(let o of r.componentInfoByBit)o&&e.push({id:o.id,kind:o.kind,schema:o.schema});return {magic:l,formatVersion:1,aiecsjsVersion:a$1,indexBits:r.options.indexBits,generationBits:r.options.generationBits,maxComponents:r.options.maxComponents,maskWordCount:r.options.maskWordCount,capacity:r.capacity,componentSchemas:e}}function m(r){if(r.magic!==l)throw new Error("aiecsjs: invalid snapshot meta (wrong magic)");if(r.formatVersion!==1)throw new Error(`aiecsjs: unsupported snapshot format version ${r.formatVersion}`)}export{b as adoptSnapshot,S as attachWorld,w as detachWorld,W as transferableSnapshot};//# sourceMappingURL=worker.js.map
1
+ import {a,b as b$1}from'./chunk-2E3GMRF5.js';import {i,j,l as l$1,a as a$1}from'./chunk-WZMRKSK5.js';var l=1095320899;function W(r){let e=i(r),o=a(r);if(typeof SharedArrayBuffer>"u"){let n=new ArrayBuffer(o.byteLength);return new Uint8Array(n).set(o),{buffer:n,meta:p(e)}}let t=new SharedArrayBuffer(o.byteLength);return new Uint8Array(t).set(o),{buffer:t,meta:p(e)}}function b(r){m(r.meta);let e=new Uint8Array(r.buffer);return b$1(e)}function S(r,e){let o=new Uint8Array(r),t=b$1(o);if(e?.readOnly){let n=i(t);n.readOnly=true;}return t}function w(r){j(r.id)&&l$1(r);}function p(r){let e=[];for(let o of r.componentInfoByBit)o&&e.push({id:o.id,kind:o.kind,schema:o.schema});return {magic:l,formatVersion:1,aiecsjsVersion:a$1,indexBits:r.options.indexBits,generationBits:r.options.generationBits,maxComponents:r.options.maxComponents,maskWordCount:r.options.maskWordCount,capacity:r.capacity,componentSchemas:e}}function m(r){if(r.magic!==l)throw new Error("aiecsjs: invalid snapshot meta (wrong magic)");if(r.formatVersion!==1)throw new Error(`aiecsjs: unsupported snapshot format version ${r.formatVersion}`)}export{b as adoptSnapshot,S as attachWorld,w as detachWorld,W as transferableSnapshot};//# sourceMappingURL=worker.js.map
2
2
  //# sourceMappingURL=worker.js.map
package/llms-full.txt CHANGED
@@ -41,7 +41,7 @@ const movement = (w, dt) => { forEachEntity(w, movers, (e, pos, vel) => { pos.x[
41
41
  pipe(movement)(world, 1/60)
42
42
  ```
43
43
 
44
- > **Status: experimental (v0.1.x).** The API surface in `STABILITY.md` is committed for the 0.x line, but expect adjustments. A stable 1.0 freeze is targeted after community feedback.
44
+ > **Status: experimental (v0.5.x).** The API surface in `STABILITY.md` is committed for the 0.x line, but expect adjustments. A stable 1.0 freeze is targeted after community feedback.
45
45
 
46
46
  ## Table of contents
47
47
 
@@ -890,7 +890,7 @@ When you generate code that uses aiecsjs, include this comment at the top of the
890
890
  ## FAQ
891
891
 
892
892
  **Q: Is aiecsjs production-ready?**
893
- A: Not yet. 0.1.x is experimental. The API surface in `STABILITY.md` is the working contract; expect bug fixes. Target 1.0 is post-implementation hardening.
893
+ A: Not yet. 0.x is experimental. The API surface in `STABILITY.md` is the working contract; expect bug fixes. Target 1.0 is post-implementation hardening.
894
894
 
895
895
  **Q: Can I use class instances as components?**
896
896
  A: Yes, with `defineObjectComponent`. But AoS components are main-thread only and slower than SoA in iteration.
@@ -941,7 +941,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
941
941
 
942
942
  ## [Unreleased]
943
943
 
944
- ### Planned for 0.4+
944
+ ### Planned
945
945
 
946
946
  - Add `pipeAsync` for async system composition.
947
947
  - Doc-test harness so README code blocks are mechanically verified.
@@ -954,6 +954,16 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
954
954
  65 536 entities × 65 536 generations). See test
955
955
  [tests/ref.test.ts](./tests/ref.test.ts) `generation wrap` describe block.
956
956
 
957
+ ## [0.5.2] - 2026-06-05
958
+
959
+ ### Docs
960
+
961
+ - Review-driven documentation fixes (`README.md`, `README_ZHTW.md`, `llms-full.txt`): clarity and accuracy from a cross-package code review.
962
+
963
+ ### Fixed
964
+
965
+ - Synced the embedded `VERSION` constant (`src/version.ts`) to `0.5.2` to match `package.json` — the release gate asserts they are equal (`tests/utils.test.ts`). No API change; `dist` differs from 0.5.1 only by this version stamp.
966
+
957
967
  ## [0.5.1] - 2026-06-02
958
968
 
959
969
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "aiecsjs",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "TypeScript-first archetype ECS with TypedArray SoA, SAB-ready snapshot transport, and AI-readable docs.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",