latticexyz / mud

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

fix: preserve JsDoc on defineWorld output, bump @arktype/util #2815

Closed ssalbdivad closed 1 week ago

ssalbdivad commented 2 months ago

This preserves JSDoc annotations on defineWorld output using the new withJsDoc utility from @arktype/util per @holic's request.

It will preserve additional keys on the instantiated type, but will not preserve optionality on keys present on the JS Doc source type. Examples can be found here in the associated unit tests.

I also bumped @arktype/util and removed redundant locally defined utils. The only other change was evaluate was renamed to show, so I made that change wherever evaluate was referenced as well.

changeset-bot[bot] commented 2 months ago

🦋 Changeset detected

Latest commit: e9db3c47f7a485e476069e381bbf1e264f945792

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

This PR includes changesets to release 23 packages | Name | Type | | ----------------------------- | ----- | | @latticexyz/config | Patch | | @latticexyz/query | Patch | | @latticexyz/store | Patch | | @latticexyz/world | Patch | | @latticexyz/common | Patch | | @latticexyz/cli | Patch | | @latticexyz/protocol-parser | Patch | | @latticexyz/store-sync | Patch | | @latticexyz/world-modules | Patch | | @latticexyz/dev-tools | Patch | | @latticexyz/react | Patch | | @latticexyz/store-indexer | Patch | | mock-game-contracts | Patch | | @latticexyz/block-logs-stream | Patch | | @latticexyz/faucet | Patch | | @latticexyz/abi-ts | Patch | | create-mud | Patch | | @latticexyz/gas-report | Patch | | @latticexyz/recs | Patch | | @latticexyz/schema-type | 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