This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
⚠️⚠️⚠️⚠️⚠️⚠️
main is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, run changeset pre exit on main.
⚠️⚠️⚠️⚠️⚠️⚠️
Releases
miniplex@2.0.0-next.18
Patch Changes
Updated dependencies [531f4ae]
Updated dependencies [531f4ae]
Updated dependencies [c6abd0b]
Updated dependencies [531f4ae]
Updated dependencies [78745ab]
@miniplex/react@2.0.0-next.18
@miniplex/core@2.0.0-next.18
@miniplex/bucket@2.0.0-next.18
Patch Changes
531f4ae: @miniplex/bucket has been simplified to only contain the Bucket class (and the most simple version of it, too.)
@miniplex/core@2.0.0-next.18
Patch Changes
531f4ae: Breaking Change: The friendlier, cozier 1.0 API is back. You now create archetypes once again through world.archetype:
/* Component name form */
world.archetype("name")
world.archetype("name", "age")
/* Query form (allows for without checks) */
world.archetype({ with: ["age"], without: ["height"] })
Warning This will only be evaluated whenever the entity is added to the archetype from its source, and every time components are added to or removed from it, but not when any of the actual component values change.
where produces a short-lived iterator that allows a system to only operate on a subset of entities, without creating a new archetype, which in some situations will be much more efficient than creating value-based archetypes and keeping them updated:
const withAge = world.archetype("age")
for (const entity of withAge.where((e) => e.age > 18)) {
/* Do something with entity */
}
c6abd0b: Added .with(...components) and .without(...components) functions to all entity buckets.
This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.
⚠️⚠️⚠️⚠️⚠️⚠️
main
is currently in pre mode so this branch has prereleases rather than normal releases. If you want to exit prereleases, runchangeset pre exit
onmain
.⚠️⚠️⚠️⚠️⚠️⚠️
Releases
miniplex@2.0.0-next.18
Patch Changes
@miniplex/bucket@2.0.0-next.18
Patch Changes
@miniplex/bucket
has been simplified to only contain theBucket
class (and the most simple version of it, too.)@miniplex/core@2.0.0-next.18
Patch Changes
531f4ae: Breaking Change: The friendlier, cozier 1.0 API is back. You now create archetypes once again through
world.archetype
:These can now be nested:
archetype
also takes a function predicate:where
produces a short-lived iterator that allows a system to only operate on a subset of entities, without creating a new archetype, which in some situations will be much more efficient than creating value-based archetypes and keeping them updated:c6abd0b: Added
.with(...components)
and.without(...components)
functions to all entity buckets.Updated dependencies [531f4ae]
@miniplex/react@2.0.0-next.18
Patch Changes
531f4ae:
createReactAPI
no longer returnsuseEntities
. Please use the globally exporteduseEntities
instead.531f4ae: The
<Archetype>
component is back:78745ab: The
value
prop of<Component>
has been changed (back) todata
, to match the 1.0 API.