Releases: pmndrs/koota
v0.1.12 - Cloak and Dagger
Quick bug fix release to fix my oopsie. Last one of the day... I hope!
What's Changed
Full Changelog: v0.1.11...v0.1.12
v0.1.11 - Come Around
The last couple releases revealed some long standing bugs nestled deep inside of core. Tests are now updated to root them out along with fixes. Happy coding everyone.
What's Changed
- 🐛 core: fix entities sometimes not being destroyed properly by @krispya in #41
- 🐛 core: entity get works with multi-generation entities again by @krispya in #42
- 🐛 core: fix updateEach failing when it has a mix of tracked and untracked traits by @krispya in #43
Full Changelog: v0.1.10...v0.1.11
v0.1.10 - Sunday Night in Chicago
This is a quick maintenance release. The dist folders were getting polluted and I thought it might be causing bugs.
What's Changed
Full Changelog: v0.1.9...v0.1.10
v0.1.9 - Spatter/Splatter
The star update for this release is updateEach
will now automatically turn on change detection when a trait is subscribed to with onChange
or tracked with a query using the Changed
modifier. You no longer need to manually configure the loop for useTrait
to work!
What's Changed
- ✨ core: auto change detection for updateEach by @krispya #38
- 🏷️ core: wildcard string typed as
'*'
by @iwoplaza in #34 - 🐛 core:
entity.get
always returnsundefined
for missing trait. by @iwoplaza in #33
Full Changelog: v0.1.8...v0.1.9
v0.1.8 - Lemon Day
Highlights here are updating useTrait
to take undefined
or null
as its target so it can be used conditionally and then various fixes to types and internal edge cases. You'll notice Or
is properly exported now!
What's Changed
- 🐛 core: onChange properly registers traits being tracked by @krispya in #24
- 🐛 core: export Or modifier by @krispya in #26
- ✨ core: entity set can take a callback with previous state passed in by @krispya in #27
- ✨ react: useTrait allows conditional targets by @krispya in #28
- 🏷️ core: fix relation types by @krispya in #29
- fix: Wildcard relation is a valid RelationTarget. by @iwoplaza in #32
New Contributors
Full Changelog: v0.1.7...v0.1.8
v0.1.7 - Satellite Anthem Icarus
A small maintenance release that fixes bugs with useTrait
and action memoization.
What's Changed
- 🐛 react: fix useTrait re-render issue with effects by @Ctrlmonster in #21
- 🐛 core: multiple actions per world work again
Full Changelog: v0.1.6...v0.1.7
v0.1.6 - Lovers Melt
This update includes breaking changes to the React API.
We did some reshuffling to make working with React easier. Less code for more impact, and smarter separate of concerns. The docs and examples have been updated to reflect the changes! Also I am trying to submit all my changes as PRs now so hopefully logs will be more automatic in the future.
What's Changed
- useObserve renamed to useTrait
- useTraitEffect has been added to the React package
- useEntityRef has been removed
- createActions moved to core
- useActions now takes actions returned by createActions, the same pattern as Zustand
- ✨ react: useWorld uses a default world if there is no provider by @krispya in #18
- 📝 update React docs by @krispya in #19
Full Changelog: v0.1.5...v0.1.6
v0.1.5
This is another small release to fix some critical React bugs.
useObserve
now tracks add and remove along with change.useObserve
no longer calls a hook conditionally, breaking React rules.useQueryFirst
was added which works likeuseQuery
except it only returns the first entity.- Revade example updated with new animations and game play features.
v0.1.4
v0.1.2
This release mostly is testing if some changes fixes some standing type issues with the build. It also includes a new game example.
What's Changed
- fix: typo by @aykutkardas in #14
- Add Revade example
- Destroying an entity now throws an error if the entity does not exist to catch bugs
- Attempting to fix some type issues with the build
New Contributors
- @aykutkardas made their first contribution in #14
Full Changelog: v0.1.1...v0.1.2