Commit graph

813 commits

Author SHA1 Message Date
Ukendio
3dab729df8 Add docs for the preregister functions 2026-01-03 17:33:47 +01:00
Ukendio
f463cc9229 Add some documentation to the exported functions 2026-01-03 17:27:36 +01:00
PepeElToro41
1e7d957a5b
Fix entities with pairs of non delete policies
* fix world_delete clearing archetype entities before proper cleanup

* make changes
2026-01-02 07:55:59 +01:00
Magic
e494c35b78
Automatically build a rbxm of documentation for Studio users (#287)
* 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

* Build studio docs

* Fix the nightly.link

* Make the nightly.link work for the main Jecs repo, rename the workflow

* Add alias resolution

* Artifacts expire, run the action every month

* Add deleted flag to removed handler typings (#288)

* update types

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

* Update deleted flag type

---------

Co-authored-by: maeriil <104389763+maeriil@users.noreply.github.com>
Co-authored-by: m10 <165406716+mrkboy10@users.noreply.github.com>
Co-authored-by: Marcus <ukendio@gmail.com>
2026-01-02 06:41:05 +01:00
Ukendio
64f8750f3c Add missing delete parameter in types for OnRemove 2026-01-02 06:38:16 +01:00
Ukendio
7f3946736b Fix desired id being overriden 2026-01-02 06:32:59 +01:00
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