From b2750173bdb34291c2e2c04963d0e256de3775e6 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Thu, 27 Oct 2022 08:45:12 +0200 Subject: [PATCH] Version Packages (next) (#208) Co-authored-by: github-actions[bot] --- .changeset/pre.json | 4 ++++ apps/demo/package.json | 2 +- apps/vanilla-demo/package.json | 2 +- packages/miniplex-core/CHANGELOG.md | 28 ++++++++++++++++++++++++++++ packages/miniplex-core/package.json | 2 +- packages/miniplex-react/CHANGELOG.md | 14 ++++++++++++++ packages/miniplex-react/package.json | 4 ++-- packages/miniplex/CHANGELOG.md | 12 ++++++++++++ packages/miniplex/package.json | 6 +++--- pnpm-lock.yaml | 10 +++++----- 10 files changed, 71 insertions(+), 13 deletions(-) diff --git a/.changeset/pre.json b/.changeset/pre.json index 370e658f..b02abb5f 100644 --- a/.changeset/pre.json +++ b/.changeset/pre.json @@ -13,6 +13,7 @@ }, "changesets": [ "afraid-bats-matter", + "breezy-points-decide", "bright-ghosts-nail", "eleven-pianos-cry", "eleven-socks-design", @@ -24,13 +25,16 @@ "gorgeous-pets-grab", "great-rats-attend", "grumpy-knives-perform", + "healthy-dragons-think", "heavy-swans-argue", "itchy-lobsters-protect", "lazy-ties-raise", "lovely-terms-occur", "modern-gifts-taste", + "nice-ties-smile", "orange-hats-wink", "plenty-peas-bake", + "quiet-bats-fetch", "short-fans-lick", "shy-cycles-decide", "swift-radios-decide", diff --git a/apps/demo/package.json b/apps/demo/package.json index 27940049..2501914d 100644 --- a/apps/demo/package.json +++ b/apps/demo/package.json @@ -16,7 +16,7 @@ "add": "^2.0.6", "material-composer": "^0.2.6", "material-composer-r3f": "^0.2.5", - "miniplex": "workspace:2.0.0-next.10", + "miniplex": "workspace:2.0.0-next.11", "postprocessing": "^6.29.0", "r3f-perf": "^6.5.0", "randomish": "^0.1.6", diff --git a/apps/vanilla-demo/package.json b/apps/vanilla-demo/package.json index a3806844..22263029 100644 --- a/apps/vanilla-demo/package.json +++ b/apps/vanilla-demo/package.json @@ -15,7 +15,7 @@ }, "dependencies": { "fp-ts": "^2.13.0", - "miniplex": "workspace:2.0.0-next.10", + "miniplex": "workspace:2.0.0-next.11", "randomish": "^0.1.6", "three": "^0.145.0" } diff --git a/packages/miniplex-core/CHANGELOG.md b/packages/miniplex-core/CHANGELOG.md index 8b4b2dea..66acf5ca 100644 --- a/packages/miniplex-core/CHANGELOG.md +++ b/packages/miniplex-core/CHANGELOG.md @@ -1,5 +1,33 @@ # miniplex +## 2.0.0-next.11 + +### Patch Changes + +- b11083d: Aaaaah, another rewrite of the core library! `@miniplex/core` kept the same lightweight core, but the `World` is now much more aware of archetypes and what kind of entities they represent. This was done to allow for better introspection and to fix some remaining issues like [#204](https://github.com/hmans/miniplex/issues/204)]. + + The `WithRequiredKeys` type has been renamed to `WithComponents`. + + `world.archetype()` now allows two forms: + + ```ts + world.archetype("position", "velocity") + world.archetype({ all: ["position", "velocity"] }) + ``` + + The second form involves a query object that can also have `any` and `none` keys: + + ```ts + world.archetype({ + all: ["position", "velocity"], + none: ["dead"] + }) + ``` + + **Breaking Change:** `bucket.derive()` has been removed. It was cool and fun and cute, but also a little too generic to be useful. Similar to Miniplex 1.0, there is only the _world_ and a series of _archetypes_ now. (But both share the same lightweight `Bucket` base class that can also be used standalone.) + +- 43f9cae: Upgraded to a newer `@hmans/event` that uses `.add` and `.remove` instead of `.addListener` and `.removeListener`. + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/miniplex-core/package.json b/packages/miniplex-core/package.json index 03a524de..0dcd7744 100644 --- a/packages/miniplex-core/package.json +++ b/packages/miniplex-core/package.json @@ -15,7 +15,7 @@ "state-management" ], "sideEffects": false, - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "main": "dist/miniplex-core.cjs.js", "module": "dist/miniplex-core.esm.js", "types": "dist/miniplex-core.cjs.d.ts", diff --git a/packages/miniplex-react/CHANGELOG.md b/packages/miniplex-react/CHANGELOG.md index b8c49964..432e3efc 100644 --- a/packages/miniplex-react/CHANGELOG.md +++ b/packages/miniplex-react/CHANGELOG.md @@ -1,5 +1,19 @@ # Changelog +## 2.0.0-next.11 + +### Patch Changes + +- a886264: `createComponents` has been renamed to `createReactAPI` and is now the default export of both `@miniplex/react` and `miniplex/react`, in order to allow the user to pick a less terrible name. :-) +- 43f9cae: Upgraded to a newer `@hmans/event` that uses `.add` and `.remove` instead of `.addListener` and `.removeListener`. +- b11083d: `` has been changed to match the new query capabilities of the core library's `world.archetype` function. All of these are now valid: + + ```tsx + + + + ``` + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/miniplex-react/package.json b/packages/miniplex-react/package.json index 484602f0..84190d74 100644 --- a/packages/miniplex-react/package.json +++ b/packages/miniplex-react/package.json @@ -17,7 +17,7 @@ "hooks" ], "sideEffects": false, - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "main": "dist/miniplex-react.cjs.js", "module": "dist/miniplex-react.esm.js", "types": "dist/miniplex-react.cjs.d.ts", @@ -28,7 +28,7 @@ ], "license": "MIT", "devDependencies": { - "@miniplex/core": "2.0.0-next.10", + "@miniplex/core": "2.0.0-next.11", "react": "^18.2.0", "react-dom": "^18.2.0" }, diff --git a/packages/miniplex/CHANGELOG.md b/packages/miniplex/CHANGELOG.md index 49dec151..1f32eb18 100644 --- a/packages/miniplex/CHANGELOG.md +++ b/packages/miniplex/CHANGELOG.md @@ -1,5 +1,17 @@ # miniplex +## 2.0.0-next.11 + +### Patch Changes + +- a886264: `createComponents` has been renamed to `createReactAPI` and is now the default export of both `@miniplex/react` and `miniplex/react`, in order to allow the user to pick a less terrible name. :-) +- Updated dependencies [a886264] +- Updated dependencies [b11083d] +- Updated dependencies [43f9cae] +- Updated dependencies [b11083d] + - @miniplex/react@2.0.0-next.11 + - @miniplex/core@2.0.0-next.11 + ## 2.0.0-next.10 ### Patch Changes diff --git a/packages/miniplex/package.json b/packages/miniplex/package.json index b2f03bf4..4998e6a4 100644 --- a/packages/miniplex/package.json +++ b/packages/miniplex/package.json @@ -15,7 +15,7 @@ "state-management" ], "sideEffects": false, - "version": "2.0.0-next.10", + "version": "2.0.0-next.11", "main": "dist/miniplex.cjs.js", "module": "dist/miniplex.esm.js", "types": "dist/miniplex.cjs.d.ts", @@ -37,8 +37,8 @@ "react-dom": "^18.2.0" }, "dependencies": { - "@miniplex/core": "2.0.0-next.10", - "@miniplex/react": "2.0.0-next.10" + "@miniplex/core": "2.0.0-next.11", + "@miniplex/react": "2.0.0-next.11" }, "peerDependencies": { "react": ">=16.8" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 4b7a1369..155be6d9 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -61,7 +61,7 @@ importers: add: ^2.0.6 material-composer: ^0.2.6 material-composer-r3f: ^0.2.5 - miniplex: workspace:2.0.0-next.10 + miniplex: workspace:2.0.0-next.11 postprocessing: ^6.29.0 r3f-perf: ^6.5.0 randomish: ^0.1.6 @@ -109,7 +109,7 @@ importers: specifiers: '@types/three': ^0.144.0 fp-ts: ^2.13.0 - miniplex: workspace:2.0.0-next.10 + miniplex: workspace:2.0.0-next.11 randomish: ^0.1.6 three: ^0.145.0 typescript: ^4.6.4 @@ -126,8 +126,8 @@ importers: packages/miniplex: specifiers: - '@miniplex/core': 2.0.0-next.10 - '@miniplex/react': 2.0.0-next.10 + '@miniplex/core': 2.0.0-next.11 + '@miniplex/react': 2.0.0-next.11 react: ^18.2.0 react-dom: ^18.2.0 dependencies: @@ -154,7 +154,7 @@ importers: specifiers: '@hmans/use-const': ^0.0.1 '@hmans/use-rerender': ^0.0.2 - '@miniplex/core': 2.0.0-next.10 + '@miniplex/core': 2.0.0-next.11 react: ^18.2.0 react-dom: ^18.2.0 react-merge-refs: ^1.1.0