solid-start icon indicating copy to clipboard operation
solid-start copied to clipboard

fix(examples): with-drizzle using older drizzle-orm and drizzle-kit packages

Open ephemeralctl opened this issue 5 months ago • 1 comments

The with-drizzle example package is using an old version of drizzle-kit and drizzle-orm. As of writing, the current versions of these packages are as follows:

$ npm view drizzle-kit version
0.31.4
$ npm view drizzle-orm version
0.44.2

However, the package.json in this example has older versions of these dependencies:

{
  "name": "example-with-drizzle",
  "type": "module",
  "scripts": {
    "dev": "vinxi dev",
    "build": "vinxi build",
    "start": "vinxi start"
  },
  "devDependencies": {
    "@types/better-sqlite3": "^7.6.10",
    "@types/node": "^20.14.8",
    "drizzle-kit": "^0.22.7"
  },
  "dependencies": {
    "@solidjs/router": "^0.15.0",
    "@solidjs/start": "^1.1.0",
    "better-sqlite3": "^11.0.0",
    "drizzle-orm": "^0.31.2",
    "solid-js": "^1.9.5",
    "vinxi": "^0.5.7"
  },
  "engines": {
    "node": ">=20"
  }
}

I had created a solid-start example and started modifying it, then ran into a bug that was present only in an older version. If the package version was updated, I wouldn't've ran into this edge-case.

I would offer to update these dependencies myself, but I had a hard time figuring out how to update the lockfile, only updating the drizzle-kit and drizzle-orm dependencies without touching anything else (using nvm use v22.13 and pnpm install --frozen-lockfile and then pnpm up drizzle-kit drizzle-orm, wasn't updating the lockfile in examples, just got a bit confused)

ephemeralctl avatar Jul 10 '25 06:07 ephemeralctl