Commit graph

807 commits

Author SHA1 Message Date
alicesaidhi
0d3f1bd3aa
introduce tests for specific cases (#291) 2026-01-02 04:11:02 +01:00
Ukendio
74a97bc54e Add types for DEBUG parameter 2025-12-28 12:37:13 +01:00
Ukendio
d5c9abc57f Document delete flag in OnRemove hooks 2025-12-28 12:35:08 +01:00
Ukendio
e4b12f4a28 check cascaded deletion for structural changes within onremove hooks 2025-12-28 12:21:45 +01:00
Ukendio
5208aa7749 Fix tmp references 2025-12-28 11:41:45 +01:00
Ukendio
ef4d880b0a Add DEBUG mode with special assertions 2025-12-28 11:08:51 +01:00
Ukendio
e4d0fb447d Handle recursive race condition 2025-12-21 20:30:55 +01:00
Ukendio
aa63051db3 Optimize idr_r removal by 35% 2025-12-21 19:33:13 +01:00
Ukendio
3ebb2334da Should be able to delete every archetype that is iterated 2025-12-21 19:08:55 +01:00
Ukendio
f543c06462 Fix invalidated archetype before invoking onremove hooks 2025-12-21 17:04:48 +01:00
Ukendio
81792fe314 Revert to example 2025-12-19 07:13:29 +01:00
Ukendio
4db44476a9 Only delete archetypes when completely invalidated 2025-12-19 07:10:12 +01:00
Madison
007097b791 Correct Cleanup example: Change OnSet to OnAdd (#289)
* Correct Cleanup example: Change OnSet to OnAdd

`jecs.OnSet` no longer exists. This should be `jecs.OnAdd` instead, which does exist.

* Clarify OnAdd hook in cleanup.luau

Add comment to clarify OnAdd hook behavior
2025-12-16 22:33:48 +01:00
m10
df454c75a3 Add deleted flag to removed handler typings (#288)
* update types

* change "StatefulHook" to "HookWithData" and "StatelessHook" to "HookWithDeleted"

* Update deleted flag type
2025-12-16 22:33:48 +01:00
maeriil
fbc4f0f3aa Add types for (Cached)Query.has (#286)
* ts type update

* changed to hard tabs

* reverted back to old formatting for some

* more fixes

* only keep query has
2025-12-16 22:33:48 +01:00
Ukendio
b3d3a2bcdd Fix types 2025-12-16 22:30:05 +01:00
Ukendio
197a57b28b Fix docs 2025-12-16 22:22:26 +01:00
Ukendio
18b72149c7 Move benches under test 2025-11-30 09:05:29 +01:00
Ukendio
8e06781be6 Replace demo with advanced examples 2025-11-30 08:59:16 +01:00
Ukendio
553cb89b10 Clarify that you need to clone the repo 2025-11-30 08:23:51 +01:00
Ukendio
4583138570 Fix alias paths 2025-11-30 08:19:28 +01:00
Marcus
ee3aa35cc4
Delete package-lock.json 2025-11-30 08:14:28 +01:00
Ukendio
d86dff4bfe Cleanup repository 2025-11-30 08:13:31 +01:00
Ukendio
8ef122ccb4 Make bullet points 2025-11-30 08:12:36 +01:00
Ukendio
808f37aa10 Clarify the Get Started section 2025-11-30 08:10:38 +01:00
Ukendio
46ea49d4f4 Update README 2025-11-30 08:09:12 +01:00
Ukendio
fa81bc10b7 Remove obsolete files 2025-11-30 07:57:52 +01:00
Ukendio
b8c0cc0010 Replace docs site with luau files 2025-11-30 07:56:31 +01:00
Ukendio
4123fa01ad Fix aliased paths 2025-11-28 03:24:40 +01:00
Ukendio
c24b1d29fd Install luau via rokit 2025-11-28 03:22:24 +01:00
Ukendio
73fd3dd858 Add more tests and fix edge cases with pairs 2025-11-22 23:51:17 +01:00
Ukendio
be91369664 Update CI 2025-11-22 19:59:56 +01:00
Ukendio
7bc6935965 Track bulk operation pattern 2025-11-22 17:32:59 +01:00
Ukendio
4db046b925 escape for deletion 2025-11-22 16:26:13 +01:00
Ukendio
94f3eb0cc1 Fix linting issues 2025-11-21 03:25:59 +01:00
Ukendio
a255d25ada New solver and Query:has 2025-11-18 21:02:39 +01:00
Ukendio
07593a4b99 Removed some dead code
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-10-14 00:45:16 +02:00
Ukendio
3f47ea922e Simpler scheduler 2025-10-14 00:41:34 +02:00
Ukendio
57e653fa78 Update replication demo
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-10-04 19:06:27 +02:00
Ukendio
698854d11b Observers should handle non queried pairs in :with
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-09-29 23:05:50 +02:00
dai
9514fb758a
Fix line endings (#280)
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-09-22 14:08:38 +02:00
dai
e2ab3be3e5
Make optionals not required in bulk_insert (#281)
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run
* Allow any amount of undefined in bulk_insert

* Also handle unknown
2025-09-21 19:11:14 +02:00
dai
35cb0bca4e
Make World.contains a number->Entity typeguard (#279)
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run
2025-09-21 14:13:59 +02:00
Ukendio
7e1f43aff5 Fix without terms for ob::observer and also add bunch of tests
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-09-20 02:35:47 +02:00
Ukendio
690e9ec4d7 Add 0 term cached queries
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-09-18 13:15:05 +02:00
Ukendio
8ed8c2a0e0 Add granular testing
Some checks failed
analysis / Run Luau Analyze (push) Has been cancelled
deploy-docs / build (push) Has been cancelled
publish-npm / publish (push) Has been cancelled
unit-testing / Run Luau Tests (push) Has been cancelled
deploy-docs / Deploy (push) Has been cancelled
2025-09-16 11:14:13 +02:00
Ukendio
23bf021f01 Handle wildcard pairs in observers 2025-09-16 10:36:02 +02:00
Ukendio
4ed2fb7a40 observers should use filter_with
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run
2025-09-16 00:28:08 +02:00
Ukendio
e16e4a04e4 Enlist starting archetypes 2025-09-15 23:15:12 +02:00
Ukendio
456713c2d5 Change Observers to support cleanups and :with/without
Some checks are pending
analysis / Run Luau Analyze (push) Waiting to run
deploy-docs / build (push) Waiting to run
deploy-docs / Deploy (push) Blocked by required conditions
publish-npm / publish (push) Waiting to run
unit-testing / Run Luau Tests (push) Waiting to run
2025-09-15 16:42:48 +02:00