hack-dance / island-ai

https://island.novy.work
MIT License
125 stars 11 forks source link

Conflicting package requirements #62

Closed gtomitsuka closed 3 months ago

gtomitsuka commented 4 months ago

Version 1.0.3 (latest) of package zod-stream has conflicting requirements for zod, which leads to warnings and may lead to more serious issues:

    "node_modules/zod-stream": {
      "version": "1.0.3",
      "license": "MIT",
      "dependencies": {
        "schema-stream": "^3.1.0",
        "zod-to-json-schema": "^3.22.3"
      },
      "peerDependencies": {
        "openai": ">=4.24.1",
        "zod": ">=3.22.4"
      }
    },
    "node_modules/zod-stream/node_modules/schema-stream": {
      "version": "3.1.0",
      "resolved": "https://registry.npmjs.org/schema-stream/-/schema-stream-3.1.0.tgz",
      "integrity": "sha512-R4PoSFJnMORRGJ5i5BTHRO2Ed3Lf2h8DMofHd5XBU4ZE0lEBCTGRqOXBurjTEO2QntPSYAhv93jLt8PFMqDEPw==",
      "dependencies": {
        "ramda": "^0.29.0"
      },
      "peerDependencies": {
        "zod": "3.22.4"
      }
    },
    "node_modules/zod-stream/node_modules/zod-to-json-schema": {
      "version": "3.23.0",
      "license": "ISC",
      "peerDependencies": {
        "zod": "^3.23.3"
      }
    },

zod-to-json-schema requires zod@^3.23.2 while schema-stream requires zod@3.22.4. I'd recommend publishing an updated version of schema-stream with zod@^3.23.2 as a dependency to avoid this issue.