From 3da61e65c54d73a108fab3431c61e9f2ee1b7fd2 Mon Sep 17 00:00:00 2001 From: forgejo-actions <+forgejo-actions@users.noreply.github.com> Date: Mon, 14 Apr 2025 00:11:18 +0000 Subject: [PATCH] Sync to upstream Jecs 0.5.5-nightly.20250414T001100Z --- jecs/build.txt | 4 ++-- jecs/jecs.luau | 2 +- jecs/pesde-rbx.toml | 2 +- jecs/pesde.toml | 2 +- jecs/test.txt | 2 +- jecs/test_fulllog.txt | 21 +++++++++------------ jecs/wally.toml | 2 +- 7 files changed, 16 insertions(+), 19 deletions(-) diff --git a/jecs/build.txt b/jecs/build.txt index 15b7408..a79bfff 100644 --- a/jecs/build.txt +++ b/jecs/build.txt @@ -1,2 +1,2 @@ -modified = ["addons/observers.luau", ".luaurc", "CHANGELOG.md", "jecs.luau"] -version = "0.5.5-nightly.20250413T001101Z" +modified = ["jecs.luau"] +version = "0.5.5-nightly.20250414T001100Z" diff --git a/jecs/jecs.luau b/jecs/jecs.luau index d4da4ed..ce9e63d 100644 --- a/jecs/jecs.luau +++ b/jecs/jecs.luau @@ -1260,7 +1260,7 @@ local function world_delete(world: ecs_world_t, entity: i53) local tr = idr_r_archetype.records[rel] local tr_count = idr_r_archetype.counts[rel] local types = idr_r_archetype.types - for i = tr, tr_count - 1 do + for i = tr, tr_count do ids[types[tr]] = true end local n = #entities diff --git a/jecs/pesde-rbx.toml b/jecs/pesde-rbx.toml index f93026b..490ef69 100644 --- a/jecs/pesde-rbx.toml +++ b/jecs/pesde-rbx.toml @@ -3,7 +3,7 @@ includes = ["init.luau", "pesde.toml", "README.md", "CHANGELOG.md", "LICENSE", " license = "MIT" name = "marked/jecs_nightly" repository = "https://git.devmarked.win/marked/jecs-nightly" -version = "0.5.5-nightly.20250413T001101Z" +version = "0.5.5-nightly.20250414T001100Z" [indices] default = "https://github.com/pesde-pkg/index" diff --git a/jecs/pesde.toml b/jecs/pesde.toml index 6b1846b..ac85098 100644 --- a/jecs/pesde.toml +++ b/jecs/pesde.toml @@ -3,7 +3,7 @@ includes = ["init.luau", "pesde.toml", "README.md", "CHANGELOG.md", "LICENSE", " license = "MIT" name = "marked/jecs_nightly" repository = "https://git.devmarked.win/marked/jecs-nightly" -version = "0.5.5-nightly.20250413T001101Z" +version = "0.5.5-nightly.20250414T001100Z" [indices] default = "https://github.com/pesde-pkg/index" diff --git a/jecs/test.txt b/jecs/test.txt index 60eabdb..dc7e91c 100644 --- a/jecs/test.txt +++ b/jecs/test.txt @@ -1,2 +1,2 @@ passed = true -timestamp = "20250413T001103Z" +timestamp = "20250414T001102Z" diff --git a/jecs/test_fulllog.txt b/jecs/test_fulllog.txt index 9a47c03..b2c94a9 100644 --- a/jecs/test_fulllog.txt +++ b/jecs/test_fulllog.txt @@ -1,8 +1,6 @@ -----idempotent -1_2 -7.4 us  2 kB│ delete children of entity -9.5 us  1 kB│ remove friends of entity -352 ns  0  B│ simple deletion of entity +7.3 us  3 kB│ delete children of entity +8.7 us  1 kB│ remove friends of entity +345 ns  0  B│ simple deletion of entity world:add() PASS│ idempotent PASS│ archetype move @@ -23,7 +21,9 @@ PASS│ should not exist after delete world:delete() -PASS│ invoke OnRemove hooks +PASS│ remove pair when relationship is deleted +PASS│ invoke OnRemove hook on all components of deleted entity +PASS│ invoke OnRemove hook on relationship if target was deleted PASS│ delete recycled entity id used as component PASS│ bug: Empty entity does not respect cleanup policy PASS│ should allow deleting components @@ -52,6 +52,8 @@ PASS│ multiple iter PASS│ tag PASS│ pairs +PASS│ iterate wildcard pairs in cached query +PASS│ iterate wildcard pairs in uncached query PASS│ query single component PASS│ query missing component PASS│ query more than 8 components @@ -110,10 +112,5 @@ PASS│ #2 PASS│ #3 -world:delete() invokes OnRemove hook -PASS│ #1 -PASS│ #2 -PASS│ #3 - -68/68 test cases passed in 29.621 ms. +69/69 test cases passed in 31.108 ms. 0 fails diff --git a/jecs/wally.toml b/jecs/wally.toml index 982c9a3..c73b22a 100644 --- a/jecs/wally.toml +++ b/jecs/wally.toml @@ -5,4 +5,4 @@ license = "MIT" name = "mark-marks/jecs-nightly" realm = "shared" registry = "https://github.com/UpliftGames/wally-index" -version = "0.5.5-nightly.20250413T001101Z" +version = "0.5.5-nightly.20250414T001100Z"