Commit graph

484 commits

Author SHA1 Message Date
Ukendio
0064f24924 Merge branch 'main' of https://github.com/Ukendio/jecs
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-02-09 20:38:08 +01:00
Ketasaja
6ec0b0bb8b
Change entity type (#189) 2025-02-09 20:37:20 +01:00
Saber
1d1b7b099a
Update relationships.md (#184)
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
removed duplicate descrption for 'find first target of a relationship' and fixed the incorrect typescript (I hope) example of getting the parent of an entity
2025-02-07 11:01:54 +01:00
Clown
57fd564aa7
Add planck to addons page (#185) 2025-02-07 07:18:41 +01:00
Ukendio
1937529dcb Modify example 2025-02-05 22:26:12 +01:00
Saber
aac91bb8ff
Update relationships.md (#184)
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
removed duplicate descrption for 'find first target of a relationship' and fixed the incorrect typescript (I hope) example of getting the parent of an entity
2025-02-04 20:21:19 +01:00
EncodedVenom
f91ed9f24b
Bump analysis.yaml
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-02-02 19:06:11 -05:00
Ukendio
44534b7c81 Improve deletion 2025-02-01 13:07:55 +01:00
maeriil
5c19a3b595
Typescript Types for Archetypes
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
* resolves #182 - TS types for Archetypes

* description for archetype query

* updated archetype number type
2025-01-31 15:29:32 +01:00
Ukendio
cc7daa6a06 Cleanup codebase
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-01-29 08:28:08 +01:00
EncodedVenom
a39fc8d0a2
Merge pull request #181 from maeriil/ts-types-tag-fix
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
Typescript: Refine types to use proper values for tags commonly used in conjunction with pair
2025-01-20 21:15:32 -05:00
maeriil
a8570e89a7 fix ts types from Entity<unknown> to Tag for appropriate entities 2025-01-20 03:50:42 -05:00
Ukendio
b3ab540705 Merge addons
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-01-18 00:14:26 +01:00
Ukendio
61a7acae55 Update documentation 2025-01-18 00:13:34 +01:00
Magic
a9bb87745c
docs: Remove sapphire-jecs, add rubine (#180)
- Sapphire, therefore also sapphire-jecs, is going away soon. It's currently unmaintained and will be archived as soon as I can do some final updates to it.

+ Rubine is nearing it's full v0.1.0 release, being stable so far but lacking unit tests. In it's current state it's ready to be added to the addons page.
2025-01-17 23:30:26 +01:00
Ukendio
f66961fc9b Add documentation on caching to concepts
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-01-17 11:17:26 +01:00
Ukendio
0cb7558fbb Fix types on idr 2025-01-17 11:17:07 +01:00
Ukendio
a1a3e14a1a Bump 2025-01-17 10:42:24 +01:00
Intrinsic
5e3739036a
Fixed hooks invocation in the event of relationship target deletion. (#179)
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
* Fixed hooks invocation (case #3)

* Reverted world:component() to world:entity()

Co-authored-by: lolmanurfunny <77128366+lolmanurfunny@users.noreply.github.com>

* Removed whitespace

---------

Co-authored-by: lolmanurfunny <77128366+lolmanurfunny@users.noreply.github.com>
2025-01-17 01:46:14 +01:00
Magic
0296c4b2f9
fix 'jecs.World.new()' being inferred to return 'any' (#177) 2025-01-17 00:45:55 +01:00
Intrinsic
c354a29fb1
Fixed world:delete() not invoking OnRemove hooks. (#178)
* Fixed cached wildcard queries

* Fixed world:delete() not calling OnRemove hook

* Typo in hooks fix

* Fixed test case

* Fixed test case (again)

* Fixed test case (again 2x)

* Now it should work
2025-01-17 00:45:29 +01:00
Intrinsic
669c216387
Fixed cached wildcard queries (#176)
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-01-16 09:02:21 +01:00
Ukendio
52e03683db Update documentation
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-01-15 19:59:07 +01:00
Ukendio
753adf884d Bump 2025-01-15 19:24:14 +01:00
Ukendio
bc11bd9cff Merge unit testing 2025-01-15 13:11:22 +01:00
Ukendio
d85a8914d9 Fix names on workflow files 2025-01-15 13:10:05 +01:00
Marcus
fb372d7e09
Update unit-testing.yaml 2025-01-15 13:08:32 +01:00
Laud Boateng
bce46bc93f
Fix World Each to iterate multiple archetypes (#174)
* Add tests for entity-child relationships and removal in world queries, fixed world_each

* Correct test case

---------

Co-authored-by: Marcus <ukendio@gmail.com>
2025-01-15 13:03:28 +01:00
Ukendio
bacf056851 Optimize removal of children
Some checks are pending
Analysis / Run Luau Analyze (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Publish to NPM / publish (push) Waiting to run
Unit Testing / Run Luau Tests (push) Waiting to run
2025-01-14 22:11:45 +01:00
Ukendio
4392f94126 Merge branch 'main' of https://github.com/Ukendio/jecs
Some checks are pending
Analysis / Run Luau Analyze (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Publish to NPM / publish (push) Waiting to run
Unit Testing / Run Luau Tests (push) Waiting to run
2025-01-14 11:09:28 +01:00
Ukendio
6123946e11 Improve cached queries 2025-01-14 11:09:18 +01:00
vnnh
509048b9df
Fix table.move usage in query_cached (#173)
Some checks failed
Analysis / Run Luau Analyze (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Publish to NPM / publish (push) Has been cancelled
Unit Testing / Run Luau Tests (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
* Fix table.move usage in query_cached

* Add test case
2025-01-05 06:41:52 +01:00
EncodedVenom
aafafc90b2
chore: bump (testing npm action)
Some checks are pending
Analysis / Run Luau Analyze (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Publish to NPM / publish (push) Waiting to run
Unit Testing / Run Luau Tests (push) Waiting to run
2025-01-04 00:36:42 -05:00
EncodedVenom
302dedd538
chore: give a name to the publish npm action (I forgor sorry) 2025-01-04 00:29:30 -05:00
EncodedVenom
08c0d24f18
Create publish-npm.yml (#172) 2025-01-04 06:26:07 +01:00
juste
489366bb8e
Update ts declarations (#170)
Some checks failed
Analysis / Run Luau Analyze (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Unit Testing / Run Luau Tests (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
2025-01-02 10:39:29 +01:00
EncodedVenom
c8884c8eac
bump ver
Some checks failed
Analysis / Run Luau Analyze (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Unit Testing / Run Luau Tests (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
2024-12-27 14:20:06 -05:00
EncodedVenom
500c494812
Fix unit test 2024-12-27 14:09:39 -05:00
EncodedVenom
0243efe4ba
Remove pin on luau version 2024-12-27 14:05:10 -05:00
Ukendio
f8b3772bce Fix spelling error
Some checks are pending
Analysis / Run Luau Analyze (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Unit Testing / Run Luau Tests (push) Waiting to run
2024-12-27 04:50:15 +01:00
Ukendio
fad88419a3 Fix type errors 2024-12-27 04:34:17 +01:00
Ukendio
1c8a4967e3 Bump patch 2024-12-27 03:47:43 +01:00
Ukendio
b14e984c66 Fix shadowed variable 2024-12-27 03:47:02 +01:00
Ukendio
ed3b2ae35d Bump
Some checks are pending
Analysis / Run Luau Analyze (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Unit Testing / Run Luau Tests (push) Waiting to run
2024-12-26 07:05:20 +01:00
Ukendio
b2fc046ef0 Changed Pair type 2024-12-26 07:04:40 +01:00
Marcus
ec4fa3ff3e
Add cached queries (#166)
* Initial commit

* Add tests

* Dedup observers

* Handle filters on table creation

* Handle Archetype deletion

* Remove print

* Fix type errors

* Cleanup code

* Manually inline code

* Build terms for cached queries

* Specialized cached query iterator

* Remove shadowed variable

* Inverse statement

* Rework demo

* Fix metatable

* Use generalized iteration
2024-12-26 06:15:41 +01:00
Marcus
0f2e0eba76
Initial commit (#167)
Some checks are pending
Analysis / Run Luau Analyze (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Unit Testing / Run Luau Tests (push) Waiting to run
2024-12-26 01:06:14 +01:00
Marcus
eaafd27280
Add support for components in both positions of pairs (#164)
Some checks are pending
Analysis / Run Luau Analyze (push) Waiting to run
Deploy VitePress site to Pages / build (push) Waiting to run
Deploy VitePress site to Pages / Deploy (push) Blocked by required conditions
Unit Testing / Run Luau Tests (push) Waiting to run
* Add support for components in both positions of pairs

* Export type function

* Rework query types
2024-12-24 22:39:32 +01:00
Marcus
ee9bc6a775
Remove stylua (#163)
* Add support for components in both positions of pairs

* Remove stylua workflow!

* remove file
2024-12-24 22:38:25 +01:00
Ukendio
7c025a3782 Fix linting errors from debug.info
Some checks failed
Analysis / Run Luau Analyze (push) Has been cancelled
Deploy VitePress site to Pages / build (push) Has been cancelled
Styling / Run Stylua (push) Has been cancelled
Unit Testing / Run Luau Tests (push) Has been cancelled
Deploy VitePress site to Pages / Deploy (push) Has been cancelled
2024-12-21 22:08:46 +01:00