ecsjs 1.4.0-beta.6 → 1.4.0
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/CHANGELOG.md +9 -19
- package/README.md +1 -0
- package/package.json +9 -9
package/CHANGELOG.md
CHANGED
|
@@ -1,36 +1,26 @@
|
|
|
1
|
-
# 1.4.0
|
|
1
|
+
# 1.4.0
|
|
2
2
|
|
|
3
|
+
- Added entity id reclaiming to [EntityMap](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html)
|
|
4
|
+
- Destroyed entity IDs are now reused to maintain density and avoid ID exhaustion.
|
|
5
|
+
|
|
6
|
+
- Added [entityValues](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html#entityvalues) method to the [EntityMap](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html) class
|
|
7
|
+
- Returns an array of all component data associated with the keyComponent
|
|
8
|
+
|
|
3
9
|
- Hardened component registration and error handling
|
|
4
10
|
- `ecs.register()` now throws `ComponentAlreadyRegistered` if a component is already registered.
|
|
5
11
|
- `ecs.register()` now throws `ComponentTypeKeyMissing` for anonymous classes (classes with no name).
|
|
6
12
|
- Standardized `has`, `hasAll`, and `hasAny` to throw `ComponentNotRegistered` when any of the specified component(s) are not registered.
|
|
7
13
|
|
|
8
|
-
# 1.4.0-beta.5
|
|
9
|
-
|
|
10
|
-
- Added entity id reclaiming to [EntityMap](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html)
|
|
11
|
-
- Destroyed entity IDs are now reused to maintain density and avoid ID exhaustion.
|
|
12
|
-
|
|
13
14
|
- Improved [EntityMap.parse](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html#parse)
|
|
14
15
|
- Correctly restores internal state including `nextId` and `freeIds`.
|
|
15
16
|
|
|
16
|
-
- Improved code documentation for `EntityMap` and `ComponentQuery`.
|
|
17
|
-
|
|
18
|
-
# 1.4.0-beta.4
|
|
19
|
-
|
|
20
17
|
- Improved code documentation
|
|
21
|
-
- Improved ecs.printTable argument handling
|
|
22
|
-
- Added chaining to ecs.printTable
|
|
23
18
|
|
|
24
|
-
|
|
19
|
+
- Improved ecs.printTable argument handling and `this` chaining
|
|
25
20
|
|
|
26
21
|
- Added docs/cheetsheet.md to npm package
|
|
27
|
-
- Added CHANGELOG.md to npm package
|
|
28
|
-
- Added missing type doc info in types.ts
|
|
29
22
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
- Added [entityValues](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html#entityvalues) method to the [EntityMap](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html) class
|
|
33
|
-
- Returns an array of all component data associated with the keyComponent
|
|
23
|
+
- Added CHANGELOG.md to npm package
|
|
34
24
|
|
|
35
25
|
- Deprecated [first](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html#first) method in the [EntityMap](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html) class
|
|
36
26
|
Use [firstEntity](https://ecsjs.gitlab.io/ecs/classes/EntityMap.html#firstentity) instead
|
package/README.md
CHANGED
|
@@ -2,6 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
[](https://gitlab.com/ecsjs/ecs/-/pipelines)
|
|
4
4
|
[](https://www.npmjs.org/package/ecsjs)
|
|
5
|
+
[](https://www.jsdelivr.com/package/npm/ecsjs?version=1.4.0-beta.6)
|
|
5
6
|
[](https://npmjs.org/package/ecsjs "View this project on NPM")
|
|
6
7
|
|
|
7
8
|
[](https://www.buymeacoffee.com/peterf)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"title": "ECS JS",
|
|
3
3
|
"name": "ecsjs",
|
|
4
|
-
"version": "1.4.0
|
|
4
|
+
"version": "1.4.0",
|
|
5
5
|
"description": "An entity component system library for JavaScript",
|
|
6
6
|
"author": "2013+ pflannery (https://gitlab.com/pflannery)",
|
|
7
7
|
"license": "GNU GPL v3",
|
|
@@ -38,18 +38,18 @@
|
|
|
38
38
|
],
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/mocha": "10.0.10",
|
|
41
|
-
"@types/node": "22.19.
|
|
41
|
+
"@types/node": "22.19.15",
|
|
42
42
|
"@types/source-map-support": "0.5.10",
|
|
43
|
-
"c8": "
|
|
44
|
-
"esbuild": "0.27.
|
|
45
|
-
"js-build-tasks": "1.0.0-rc.
|
|
43
|
+
"c8": "11.0.0",
|
|
44
|
+
"esbuild": "0.27.4",
|
|
45
|
+
"js-build-tasks": "1.0.0-rc.20",
|
|
46
46
|
"mocha": "11.7.5",
|
|
47
|
-
"mocha-ui-esm": "1.0.0
|
|
48
|
-
"ts-mockito": "2.6.1",
|
|
47
|
+
"mocha-ui-esm": "1.0.0",
|
|
49
48
|
"rimraf": "6.1.3",
|
|
50
49
|
"source-map-support": "0.5.21",
|
|
51
|
-
"
|
|
52
|
-
"
|
|
50
|
+
"ts-mockito": "2.6.1",
|
|
51
|
+
"typedoc": "0.28.18",
|
|
52
|
+
"typescript": "6.0.2"
|
|
53
53
|
},
|
|
54
54
|
"scripts": {
|
|
55
55
|
"compile": "task",
|