Closed ponderingdemocritus closed 4 months ago
The recent changes enhance functionality and clarity across multiple packages and examples. Key updates include the introduction of new functions and hooks for improved entity synchronization, parameter renaming for better clarity, updated metadata prefixes, the addition of a namespace parameter, and version increments. These modifications collectively aim to boost maintainability and performance, ensuring a more robust system.
File / Directory | Change Summary |
---|---|
packages/state/src/recs/index.ts |
Added imports, renamed parameters, updated logic, introduced getEntitiesQuery and syncEntities functions, enhanced descriptions, and debugging. |
examples/react/react-app/src/App.tsx |
Imported new hooks and integrated useQuerySync for better component synchronization. |
examples/react/react-app/src/dojo/generated/contractComponents.ts |
Updated name attributes in metadata to include "dojo_starter-" prefix. |
examples/react/react-app/src/dojo/generated/generated.ts |
Added nameSpace parameter to setupWorld , spawn , and move functions for enhanced error handling. |
packages/torii-client/package.json |
Updated version to "0.7.10-alpha.0". |
packages/torii-wasm/package.json |
Updated version to "0.7.10-alpha.0". |
packages/utils-wasm/package.json |
Updated version to "0.7.10-alpha.0". |
packages/utils/package.json |
Updated version to "0.7.10-alpha.0" and peer dependency on starknet to "6.11.0". |
examples/react/react-app/package.json |
Updated starknet dependency to "6.11.0" and modified component generation paths. |
packages/core/bin/generateComponents.cjs |
Changed how modelName is initialized and introduced modelNameNoNamespace for better output formatting. |
packages/core/src/provider/DojoProvider.ts |
Added nameSpace parameter to execute , call , and callRaw methods to improve contract handling. |
scripts/build-examples.sh |
Removed command for building the Starknet React application, streamlining the build process. |
In the land of code so bright,
New functions spring, like morning light.
Entities now sync with grace,
Patterns match, all falls in place.
Namespaces join the grand ballet,
Version bumps lead the way.
🐇✨ In this code, we find delight!
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
useQuerySync
function to handle entity synchronization in React apps.getEntitiesQuery
function for fetching entities based on specified criteria.DirectionsAvailable
to enhance functionality.Bug Fixes
manifest.json
across multiple examples to reflect directory structure changes.Improvements
setupWorld
function to include anameSpace
parameter in function calls for improved error handling.Version Updates
package.json
files to "0.7.10-alpha.0".starknet
dependency to version6.11.0
in applicablepackage.json
files.Documentation
getSyncEntities
andgetEntities
functions.