Skip to content

Commit

Permalink
Version Packages (next)
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Oct 27, 2022
1 parent b11083d commit 86b31bd
Show file tree
Hide file tree
Showing 10 changed files with 71 additions and 13 deletions.
4 changes: 4 additions & 0 deletions .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"changesets": [
"afraid-bats-matter",
"breezy-points-decide",
"bright-ghosts-nail",
"eleven-pianos-cry",
"eleven-socks-design",
Expand All @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion apps/demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion apps/vanilla-demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
28 changes: 28 additions & 0 deletions packages/miniplex-core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion packages/miniplex-core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
14 changes: 14 additions & 0 deletions packages/miniplex-react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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: `<Archetype>` has been changed to match the new query capabilities of the core library's `world.archetype` function. All of these are now valid:

```tsx
<Archetype query="position" />
<Archetype query={["position", "velocity"]} />
<Archetype query={{ all: ["position", "velocity"], none: ["dead"] }} />
```

## 2.0.0-next.10

### Patch Changes
Expand Down
4 changes: 2 additions & 2 deletions packages/miniplex-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
},
Expand Down
12 changes: 12 additions & 0 deletions packages/miniplex/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
6 changes: 3 additions & 3 deletions packages/miniplex/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"
Expand Down
10 changes: 5 additions & 5 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 86b31bd

Please sign in to comment.