Commit graph

573 commits

Author SHA1 Message Date
Ukendio
51c8ae61c5 fix-links 2024-07-28 03:14:31 +02:00
Marcus
a3eb2cddc3
Improve docs (#90)
* Add method

* Remove unnecessary shadowed variable

* Separate pages
2024-07-28 03:06:09 +02:00
Marcus
49305f73dd
Add archetypes method (#89)
* Add method

* Remove unnecessary shadowed variable
2024-07-28 02:39:19 +02:00
Marcus
d46df8c0a0
Initial commit (#86) 2024-07-26 16:21:13 +02:00
Ukendio
2f0f817b08 Optimize remove 2024-07-26 16:15:12 +02:00
Ukendio
f9e0aa010c Fix api pages 2024-07-26 04:50:08 +02:00
Ukendio
1844b0cfd8 Amend test 2024-07-26 04:45:07 +02:00
Ukendio
059a3f9bed Fix world:remove 2024-07-26 04:36:30 +02:00
Ukendio
65984b6c65 Remove indices 2024-07-26 03:03:00 +02:00
Marcus
0f8f9348f5
Fix column pointers invalidated by upvalues (#88)
* Initial commit

* Add types to world:has()
2024-07-26 02:55:36 +02:00
Marcus
76d1ff91c0
Add has function (#85) 2024-07-23 04:44:56 +02:00
Ukendio
0292574b5f Merge branch 'main' of https://github.com/Ukendio/jecs 2024-07-15 20:32:11 +02:00
Ukendio
02548f2ac0 Fix typo 2024-07-15 20:31:51 +02:00
Ukendio
459e670ce9 Change casing 2024-07-15 20:29:06 +02:00
EncodedVenom
86f241eae4
Update ci.yaml (#82) 2024-07-15 19:10:56 +02:00
EncodedVenom
0ce38c9d93
Improve workflows and use dedicated install luau script for CI (#81)
* increment checkout version (v3 is deprecated)

* Use action instead to simplify CI

* inc version

* increment version

* Change script

* inc version

* Finalize the CI workflow stuff
2024-07-15 02:32:02 +02:00
EncodedVenom
de5b4d4a9e
Add timeout (#80) 2024-07-14 22:05:50 +02:00
Ukendio
1b6cdd4791 Should return noop 2024-07-14 08:34:50 +02:00
Ukendio
48cc4dc7d5 Properly type EmptyQuery 2024-07-14 08:30:20 +02:00
Ukendio
150afc46e4 Rename replace function 2024-07-14 07:30:13 +02:00
Ukendio
43a19f5328 FLAGS_ADD 2024-07-14 07:16:24 +02:00
Marcus
8a7b3de004
Revert mirror (#79) 2024-07-14 06:35:13 +02:00
Ukendio
85a970e9ff Less memory footprint 2024-07-14 05:38:44 +02:00
Ukendio
8bea43a9fc Merge branch 'main' of https://github.com/Ukendio/jecs 2024-07-14 03:13:56 +02:00
Marcus
134c41014c
Rework tests (#78)
* Return empty query when Without removes all archetypes

* Type replace callback as Any

* Add test with ChangeTracker

* Rename tests files

* Fix indentation

* Change CI
2024-07-14 02:45:49 +02:00
EncodedVenom
44780f7f7b
Add Continuous Integration (#76)
* First attempt at CI

* second attempt

* attempt 3

* attempt 4

* Try using git env

* Combine steps

* Rename

* Run last step at all costs

* (testing workflow to see if it passes when it should)

* Workflow dispatch

* Revert commit that made unit tests pass (intentional)
2024-07-14 02:43:40 +02:00
Marcus
9cd00aacb4
Add skip to testkit (#77)
* Return empty query when Without removes all archetypes

* Adds skip
2024-07-14 02:37:16 +02:00
Ukendio
fd71c1e486 Merge branch 'main' of https://github.com/Ukendio/jecs 2024-07-14 02:04:44 +02:00
EncodedVenom
4dcb66902d
Fix docs formatting (#75) 2024-07-14 01:13:03 +02:00
EncodedVenom
8e9225772b
Start Work on Documentation (#74)
* init bug / feat templates

* capital J for style

* PR templates

* Combine templates because github be like that

* Out with the old

* package and package lock files

* Deploy docs workflow

* Absolutely massive commit (docs)

* Delete cache and add to gitignore

* Goodbye cache
2024-07-14 01:06:50 +02:00
EncodedVenom
d76f343cb0
Add Issue and PR templates (#73)
* init bug / feat templates

* capital J for style

* PR templates

* Combine templates because github be like that
2024-07-13 04:57:53 +02:00
Marcus
45adef066d
Fixed regression in Without (#72)
* Return empty query when Without removes all archetypes

* Type replace callback as Any

* Add test with ChangeTracker
2024-07-13 04:32:31 +02:00
Ukendio
570b72c778 Return empty query when Without removes all archetypes 2024-07-13 04:11:48 +02:00
Ukendio
e486c11dc2 bump wally version 2024-07-09 23:36:14 +02:00
Ukendio
fb3b8a5f67 Extract logic from ensureComponentRecord 2024-07-08 23:31:13 +02:00
EncodedVenom
7d2cd6219b
Add world.clear to types (#68)
* Sync typescript types to 0.2.2

* semicolon

* Add world.clear to the types

* Add luau type for clear
2024-07-08 16:04:28 +02:00
EncodedVenom
6b8dde8fd3
Fix EmptyQuery to properly return an empty iterator (#70)
* Fix EmptyQuery to properly return an empty iterator

* Remove actualNoOperation and enforce style guide
2024-07-08 16:04:04 +02:00
EncodedVenom
706eded24f
Add null query unit tests (#69)
* Add null query unit test

* Add unit test

* Update unit tests

* Remove __iter from already tested case
2024-07-08 15:51:34 +02:00
EncodedVenom
a62475471f
Update default.project.json (#71) 2024-07-08 14:43:35 +02:00
EncodedVenom
97d6955da0
Sync typescript types (v0.2.2) (#65)
* Sync typescript types to 0.2.2

* semicolon
2024-07-07 22:29:30 +02:00
Ukendio
4e9aa2ced0 Remove init.luau from src in main 2024-07-07 05:36:14 +02:00
Ukendio
ec88b25503 Fix grammar 2024-07-07 05:17:12 +02:00
Ukendio
cead7ceafe Fix typings folder 2024-07-07 05:12:14 +02:00
Ukendio
d517ded636 Fix typings folder 2024-07-07 05:11:50 +02:00
Marcus
aa853de818
Release 0.2.2 (#64)
* Bump package versions

* Fix typo
2024-07-07 04:59:44 +02:00
Marcus
0fe23e151c
Add replace method to query (#46)
* Add replace function

* Add next method

* Remove tostring

* Fix EmptyQuery

* add replace method

* merge conflicts

* return self in without

* Make aliases relative

* Add test

* add to changelog
2024-07-07 04:53:17 +02:00
Ukendio
b73d7e12b7 Give aliases to jecs and testkit 2024-07-06 23:37:11 +02:00
Ukendio
60c6177815 Add luaurc 2024-07-06 23:30:14 +02:00
Marcus
c0e73273d1
Add backwards iteration (#61)
* Iterate backwards

* Should test for removing as well

* Add test

* Add faíling test

* Add to changelog
2024-07-06 16:36:00 +02:00
Marcus
6559c56d47
Initial commit (#63) 2024-07-06 16:21:44 +02:00