PicoES v1.0.0-alpha8
Pre-release
Pre-release
- An additional 1-3x performance boost all around
- This is mostly from the
has()
changes affecting query performance - Also from simpler
set()
logic
- This is mostly from the
- Cleaned up
Entity
interface- New
has()
with single-key check. This is a breaking change.- This decision was made based on performance, as well as very low usage of
has[Any/All]
in production. - It is more typical to combine
.has()
checks with&&
,||
, and!
operators - In the few cases of libraries - like PicoES itself, or something like an
EntitySet
in a real project - a simple.some()
or.every()
call will still work great for whichever custom case you need.
- This decision was made based on performance, as well as very low usage of
- Removed methods (
setRaw
,setWithFallback
,hasAny
,has[All]
, andremoveAll
) - Made some methods private (
cloneComponentTo
,removeAll
- moved todestroy
) - Added new
replace
based on oldsetRaw
- New
- Cleaned up tests (removed
assert
) - Updated documentation, fixed args, and updated examples