latticexyz / mud

MUD is a framework for building autonomous worlds
https://mud.dev
MIT License
696 stars 175 forks source link

feat(store,world): usable enum values from config #2807

Closed holic closed 2 months ago

holic commented 2 months ago

transforms enum input arrays into an object so they can be used in TS

closes #1957

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: 668b3d2245f6dce3e5a83356eb47cc8e32242dea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 24 packages | Name | Type | | ----------------------------- | ----- | | @latticexyz/store | Patch | | @latticexyz/world | Patch | | @latticexyz/cli | Patch | | @latticexyz/dev-tools | Patch | | @latticexyz/query | Patch | | @latticexyz/react | Patch | | @latticexyz/store-indexer | Patch | | @latticexyz/store-sync | Patch | | @latticexyz/world-modules | Patch | | mock-game-contracts | Patch | | @latticexyz/abi-ts | Patch | | @latticexyz/block-logs-stream | Patch | | @latticexyz/common | Patch | | @latticexyz/config | Patch | | create-mud | Patch | | @latticexyz/faucet | Patch | | @latticexyz/gas-report | Patch | | @latticexyz/protocol-parser | Patch | | @latticexyz/recs | Patch | | @latticexyz/schema-type | Patch | | @latticexyz/services | Patch | | solhint-config-mud | Patch | | solhint-plugin-mud | Patch | | @latticexyz/utils | Patch |

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

alvrs commented 2 months ago

i very much like the new feature but is there any way we could turn this into a non-breaking change? maybe as a new property on the output? there might be teams out there using the current structure