Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new structure #2622

Merged
merged 1 commit into from
Jan 6, 2025
Merged

new structure #2622

merged 1 commit into from
Jan 6, 2025

Conversation

aymericdelab
Copy link
Collaborator

@aymericdelab aymericdelab commented Jan 6, 2025

Summary by CodeRabbit

  • Project Configuration
    • Removed Git submodule configuration for "eliza"
    • Removed .tool-versions file with Scarb and Dojo version specifications
    • Added new package.json for the Eternum client project with comprehensive development scripts and dependencies

Copy link

vercel bot commented Jan 6, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
eternum ❌ Failed (Inspect) Jan 6, 2025 2:26pm
eternum-docs ❌ Failed (Inspect) Jan 6, 2025 2:26pm
eternum-landing ❌ Failed (Inspect) Jan 6, 2025 2:26pm

Copy link
Contributor

coderabbitai bot commented Jan 6, 2025

Walkthrough

The pull request involves removing a Git submodule and a tool versions configuration file, and introducing a new package.json for the eternum-client project. The changes indicate a restructuring of the project's dependency management and development environment configuration. The new package.json sets up a comprehensive development setup for a React-based application with various dependencies for state management, UI components, and 3D rendering.

Changes

File Change Summary
.gitmodules Removed submodule configuration for "eliza" repository
.tool-versions Removed version specifications for scarb (2.8.4) and dojo (1.0.5)
client/apps/game/package.json New file added with project configuration, scripts, dependencies, and development tools for eternum-client

Sequence Diagram

graph TD
    A[Developer] -->|New Project Setup| B[package.json]
    B -->|Defines| C[Project Metadata]
    B -->|Configures| D[Development Scripts]
    B -->|Specifies| E[Dependencies]
    B -->|Includes| F[Dev Dependencies]
Loading

Poem

🐰 A rabbit's tale of code's new trail,
Submodules fade, new configs prevail
Package.json springs to life with might
Dependencies dancing, a developer's delight!
Eternum client, ready to soar
🚀 Coding magic forevermore!


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR. (Beta)
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🧹 Nitpick comments (3)
client/apps/game/package.json (3)

2-4: Consider updating the version number.

The version is set to "0.0.0" which typically indicates an initial setup. Consider setting an appropriate version number that reflects the project's maturity and follows semantic versioning principles.


5-14: Add lint scripts to package.json.

ESLint dependencies are present but there are no lint scripts defined. Consider adding the following scripts:

   "scripts": {
     "dev": "vite",
     "build": "tsc && vite build",
     "preview": "vite preview",
     "test": "vitest run",
     "test:watch": "vitest",
     "test:ui": "vitest --ui",
     "coverage": "vitest run --coverage",
-    "generate-pwa-assets": "pwa-assets-generator"
+    "generate-pwa-assets": "pwa-assets-generator",
+    "lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
+    "lint:fix": "eslint . --ext ts,tsx --fix"
   },

76-76: Consolidate SVG plugins.

Two SVG-related Vite plugins are included:

  • @svgr/rollup
  • vite-plugin-svgr

Consider using only vite-plugin-svgr as it's specifically designed for Vite.

   "devDependencies": {
-    "@svgr/rollup": "^8.1.0",
     // ... other dependencies ...

Also applies to: 103-103

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between b60d9c3 and ce1243f.

⛔ Files ignored due to path filters (200)
  • client/apps/docs/public/03.png is excluded by !**/*.png
  • client/apps/docs/public/bridge.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/archery.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/bank.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/barracks.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/farm.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/fishing_village.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/forge.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/fragment_mine.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/hyperstructure.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/lumber_mill.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/market.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/mine.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/stable.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/storehouse.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/wonder.png is excluded by !**/*.png
  • client/apps/docs/public/buildings/workers_hut.png is excluded by !**/*.png
  • client/apps/docs/public/controller.png is excluded by !**/*.png
  • client/apps/docs/public/eternum_documentation.png is excluded by !**/*.png
  • client/apps/docs/public/eternum_new_logo.svg is excluded by !**/*.svg
  • client/apps/docs/public/eternum_words_logo.svg is excluded by !**/*.svg
  • client/apps/docs/public/gifs/bridge-in.gif is excluded by !**/*.gif
  • client/apps/docs/public/gifs/bridge-out-final.gif is excluded by !**/*.gif
  • client/apps/docs/public/gifs/bridge-out-start.gif is excluded by !**/*.gif
  • client/apps/docs/public/gifs/final-bridge-in.gif is excluded by !**/*.gif
  • client/apps/docs/public/logos/BuiltDojo.svg is excluded by !**/*.svg
  • client/apps/docs/public/logos/Cartridge.png is excluded by !**/*.png
  • client/apps/docs/public/logos/Dojo.svg is excluded by !**/*.svg
  • client/apps/docs/public/logos/RealmsWorld.png is excluded by !**/*.png
  • client/apps/docs/public/logos/Starknet.png is excluded by !**/*.png
  • client/apps/docs/public/map.png is excluded by !**/*.png
  • client/apps/docs/public/og-image.png is excluded by !**/*.png
  • client/apps/docs/public/resources/1.png is excluded by !**/*.png
  • client/apps/docs/public/resources/10.png is excluded by !**/*.png
  • client/apps/docs/public/resources/11.png is excluded by !**/*.png
  • client/apps/docs/public/resources/12.png is excluded by !**/*.png
  • client/apps/docs/public/resources/13.png is excluded by !**/*.png
  • client/apps/docs/public/resources/14.png is excluded by !**/*.png
  • client/apps/docs/public/resources/15.png is excluded by !**/*.png
  • client/apps/docs/public/resources/16.png is excluded by !**/*.png
  • client/apps/docs/public/resources/17.png is excluded by !**/*.png
  • client/apps/docs/public/resources/18.png is excluded by !**/*.png
  • client/apps/docs/public/resources/19.png is excluded by !**/*.png
  • client/apps/docs/public/resources/2.png is excluded by !**/*.png
  • client/apps/docs/public/resources/20.png is excluded by !**/*.png
  • client/apps/docs/public/resources/21.png is excluded by !**/*.png
  • client/apps/docs/public/resources/22.png is excluded by !**/*.png
  • client/apps/docs/public/resources/249.png is excluded by !**/*.png
  • client/apps/docs/public/resources/250.png is excluded by !**/*.png
  • client/apps/docs/public/resources/251.png is excluded by !**/*.png
  • client/apps/docs/public/resources/252.png is excluded by !**/*.png
  • client/apps/docs/public/resources/253.png is excluded by !**/*.png
  • client/apps/docs/public/resources/254.png is excluded by !**/*.png
  • client/apps/docs/public/resources/255.png is excluded by !**/*.png
  • client/apps/docs/public/resources/29.png is excluded by !**/*.png
  • client/apps/docs/public/resources/3.png is excluded by !**/*.png
  • client/apps/docs/public/resources/4.png is excluded by !**/*.png
  • client/apps/docs/public/resources/5.png is excluded by !**/*.png
  • client/apps/docs/public/resources/6.png is excluded by !**/*.png
  • client/apps/docs/public/resources/7.png is excluded by !**/*.png
  • client/apps/docs/public/resources/8.png is excluded by !**/*.png
  • client/apps/docs/public/resources/9.png is excluded by !**/*.png
  • client/apps/docs/public/ring_pass.png is excluded by !**/*.png
  • client/apps/game/public/cursor-cross.png is excluded by !**/*.png
  • client/apps/game/public/cursor.png is excluded by !**/*.png
  • client/apps/game/public/draco/draco_decoder.wasm is excluded by !**/*.wasm
  • client/apps/game/public/draco/gltf/draco_decoder.wasm is excluded by !**/*.wasm
  • client/apps/game/public/grab.png is excluded by !**/*.png
  • client/apps/game/public/hex-bg.png is excluded by !**/*.png
  • client/apps/game/public/images/Eternum-Mark-Black.png is excluded by !**/*.png
  • client/apps/game/public/images/apple-touch-icon-180x180.png is excluded by !**/*.png
  • client/apps/game/public/images/argent-x.svg is excluded by !**/*.svg
  • client/apps/game/public/images/avatars/01.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/02.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/03.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/04.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/05.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/06.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/07.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/08.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/09.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/10.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/11.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/12.png is excluded by !**/*.png
  • client/apps/game/public/images/avatars/mercenary.png is excluded by !**/*.png
  • client/apps/game/public/images/braavos.svg is excluded by !**/*.svg
  • client/apps/game/public/images/buildings/construction/archery.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/barracks.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/dragonhide.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/farm.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/fishing_village.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/forge.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/lumber_mill.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/market.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/mine.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/stable.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/storehouse.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/construction/workers_hut.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/archer-tower.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/army.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/banks.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/castle.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/castleOne.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/castleThree.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/castleTwo.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/castleZero.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/crane.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/discord.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/fragment-mine.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/guilds.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/house.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/hyperstructure.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/leaderboard.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/military.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/question-wood.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/question.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/realm.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/resources.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/rewards.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/scale.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/settings.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/silo.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/squire.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/sword.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/timeglass.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/trade.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/trophy.png is excluded by !**/*.png
  • client/apps/game/public/images/buildings/thumb/world-map.png is excluded by !**/*.png
  • client/apps/game/public/images/cover.png is excluded by !**/*.png
  • client/apps/game/public/images/covers/01.png is excluded by !**/*.png
  • client/apps/game/public/images/covers/02.png is excluded by !**/*.png
  • client/apps/game/public/images/covers/03.png is excluded by !**/*.png
  • client/apps/game/public/images/covers/04.png is excluded by !**/*.png
  • client/apps/game/public/images/covers/05.png is excluded by !**/*.png
  • client/apps/game/public/images/covers/06.png is excluded by !**/*.png
  • client/apps/game/public/images/covers/07.png is excluded by !**/*.png
  • client/apps/game/public/images/eternum-logo.svg is excluded by !**/*.svg
  • client/apps/game/public/images/eternum-logo_animated.png is excluded by !**/*.png
  • client/apps/game/public/images/eternum_logo.png is excluded by !**/*.png
  • client/apps/game/public/images/eternum_with_snake.png is excluded by !**/*.png
  • client/apps/game/public/images/eternumloader.png is excluded by !**/*.png
  • client/apps/game/public/images/favicon.ico is excluded by !**/*.ico
  • client/apps/game/public/images/icons/250.png is excluded by !**/*.png
  • client/apps/game/public/images/icons/251.png is excluded by !**/*.png
  • client/apps/game/public/images/icons/252.png is excluded by !**/*.png
  • client/apps/game/public/images/icons/attack.png is excluded by !**/*.png
  • client/apps/game/public/images/icons/claim.png is excluded by !**/*.png
  • client/apps/game/public/images/icons/leave-battle.png is excluded by !**/*.png
  • client/apps/game/public/images/icons/raid.png is excluded by !**/*.png
  • client/apps/game/public/images/icons/troop.png is excluded by !**/*.png
  • client/apps/game/public/images/maskable-icon-512x512.png is excluded by !**/*.png
  • client/apps/game/public/images/og-image.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/anger.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/brilliance.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/detection.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/enlightenment.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/fox.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/fury.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/giants.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/perfection.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/power.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/protection.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/rage.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/reflection.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/skill.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/titans.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/twins.png is excluded by !**/*.png
  • client/apps/game/public/images/orders/vitriol.png is excluded by !**/*.png
  • client/apps/game/public/images/oroborus.png is excluded by !**/*.png
  • client/apps/game/public/images/pwa-192x192.png is excluded by !**/*.png
  • client/apps/game/public/images/pwa-512x512.png is excluded by !**/*.png
  • client/apps/game/public/images/pwa-64x64.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/1.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/10.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/11.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/12.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/13.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/14.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/15.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/16.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/17.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/18.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/19.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/2.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/20.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/21.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/22.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/254.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/255.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/29.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/3.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/4.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/5.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/6.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/7.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/8.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/9.png is excluded by !**/*.png
  • client/apps/game/public/images/resources/coin.png is excluded by !**/*.png
  • client/apps/game/public/images/squire.png is excluded by !**/*.png
  • client/apps/game/public/map.svg is excluded by !**/*.svg
📒 Files selected for processing (3)
  • .gitmodules (0 hunks)
  • .tool-versions (0 hunks)
  • client/apps/game/package.json (1 hunks)
💤 Files with no reviewable changes (2)
  • .gitmodules
  • .tool-versions
⏰ Context from checks skipped due to timeout of 90000ms (17)
  • GitHub Check: test-various (test_ownership_systems)
  • GitHub Check: test-various (transport_test)
  • GitHub Check: test-various (guild_test)
  • GitHub Check: test-various (realm_test)
  • GitHub Check: test-various (trade_test)
  • GitHub Check: test-various (resource_bridge_test)
  • GitHub Check: test-various (map_test)
  • GitHub Check: test-various (bank_test)
  • GitHub Check: test-various (hyperstructure_test)
  • GitHub Check: test-various (config_test)
  • GitHub Check: test-various (resources_test)
  • GitHub Check: test-various (position_test)
  • GitHub Check: test-various (owner_test)
  • GitHub Check: test-various (combat_test)
  • GitHub Check: test-various (season_test)
  • GitHub Check: clippy
  • GitHub Check: Run pr agent on every pull request, respond to user comments
🔇 Additional comments (3)
client/apps/game/package.json (3)

36-38: Review Three.js version compatibility.

There are multiple Three.js related packages with different version constraints:

  • three: ^0.166.0
  • @react-three/fiber: ^8.16.1
  • @react-three/drei: ^9.101.0
  • three-stdlib: ^2.29.5

Ensure these versions are compatible to avoid runtime issues.

Let's check the peer dependencies of these packages:

Also applies to: 62-65

✅ Verification successful

Three.js version compatibility verified ✓

The current Three.js version (^0.166.0) satisfies all peer dependency requirements:

  • @react-three/fiber requires >=0.141
  • @react-three/drei requires >=0.137
  • three-stdlib requires >=0.128.0
🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check peer dependencies for Three.js related packages
for pkg in @react-three/fiber @react-three/drei three-stdlib; do
  echo "$pkg peer dependencies:"
  curl -s "https://registry.npmjs.org/$pkg" | jq -r '.versions | to_entries | .[-1].value.peerDependencies | select(.three != null) | .three'
done

Length of output: 910


15-17: Consider using version range for peer dependency.

The starknet peer dependency is locked to a specific version (6.11.0). Consider using a version range to allow for compatible updates and reduce potential version conflicts.

Let's verify if there are newer versions available and check for any breaking changes:


22-29: Ensure version consistency across @dojoengine packages.

All @dojoengine packages are using alpha versions (1.0.4-alpha.3.1.0), except for @dojoengine/recs which uses ^2.0.13. This version mismatch might cause compatibility issues.

Let's check for the latest stable versions:

Comment on lines +79 to +82
"@types/node": "^20.11.10",
"@types/react": "^18.2.74",
"@types/react-dom": "^18.2.21",
"@types/three": "^0.163.0",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codebase verification

Update @types/three to match runtime version

The @types/three@^0.163.0 is behind the runtime three@^0.166.0. Update it to @types/three@^0.166.0 to ensure type definitions cover all features.

🔗 Analysis chain

Verify TypeScript types versions.

Ensure that @types packages versions match their runtime counterparts:

  • @types/react for react@^18.2.0
  • @types/three for three@^0.166.0

Let's check the recommended types versions:

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Check latest @types versions for main packages
for pkg in react three; do
  echo "@types/$pkg compatible versions:"
  curl -s "https://registry.npmjs.org/@types%2F$pkg" | jq -r '.["dist-tags"].latest'
done

Length of output: 386


Script:

#!/bin/bash
# Check runtime package versions
cat client/apps/game/package.json | jq -r '.dependencies | .["react"], .["three"]'

Length of output: 101

@bob0005 bob0005 merged commit 1da5ffc into next Jan 6, 2025
17 of 29 checks passed
@bob0005 bob0005 deleted the new-structure branch January 6, 2025 14:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants