drizzle-cube 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1) hide show
  1. package/package.json +36 -25
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "drizzle-cube",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Drizzle ORM-first semantic layer with Cube.js compatibility. Type-safe analytics and dashboards with SQL injection protection.",
5
5
  "main": "./dist/server/index.js",
6
6
  "types": "./dist/server/index.d.ts",
@@ -58,17 +58,17 @@
58
58
  "LICENSE"
59
59
  ],
60
60
  "scripts": {
61
- "dev": "concurrently \"npm run dev:server\" \"npm run dev:client\" \"npm run dev:examples\" \"npm run dev:help\"",
62
- "dev:server": "vite build src/server --watch --mode development",
63
- "dev:client": "vite build src/client --watch --mode development",
64
- "dev:examples": "cd examples/hono-app && npm run dev",
65
- "dev:help": "cd help-site && npm run dev",
66
- "build": "npm run build:server && npm run build:client && npm run build:adapters && npm run build:help",
61
+ "dev": "concurrently \"npm run dev:server\" \"npm run dev:client\"",
62
+ "dev:server": "tsx watch dev/server/index.ts",
63
+ "dev:client": "cd dev/client && vite",
64
+ "dev:build": "concurrently \"npm run dev:build-server\" \"npm run dev:build-client\"",
65
+ "dev:build-server": "vite build src/server --watch --mode development",
66
+ "dev:build-client": "vite build src/client --watch --mode development",
67
+ "build": "npm run build:server && npm run build:client && npm run build:adapters",
67
68
  "build:server": "vite build --config vite.config.server.ts",
68
69
  "build:client": "vite build --config vite.config.client.ts",
69
70
  "analyze:client": "vite build --config vite.config.client.ts && open dist/client-bundle-stats.html",
70
71
  "build:adapters": "vite build --config vite.config.adapters.ts",
71
- "build:help": "cd help-site && npm run build",
72
72
  "test": "vitest run",
73
73
  "test:watch": "vitest --watch",
74
74
  "test:postgres": "vitest run",
@@ -80,7 +80,12 @@
80
80
  "typecheck": "tsc --noEmit",
81
81
  "lint": "eslint src/**/*.ts",
82
82
  "lint:fix": "eslint src/**/*.ts --fix",
83
- "prepublishOnly": "npm run build && npm run test && npm run typecheck"
83
+ "prepublishOnly": "npm run build && npm run test && npm run typecheck",
84
+ "dev:db:up": "cd dev && docker-compose up -d",
85
+ "dev:db:down": "cd dev && docker-compose down",
86
+ "dev:db:migrate": "cd dev && tsx scripts/migrate.ts",
87
+ "dev:db:seed": "cd dev && tsx scripts/seed.ts",
88
+ "dev:setup": "npm run dev:db:up && sleep 5 && npm run dev:db:migrate && npm run dev:db:seed"
84
89
  },
85
90
  "keywords": [
86
91
  "drizzle-orm",
@@ -112,22 +117,28 @@
112
117
  "peerDependencies": {
113
118
  "@neondatabase/serverless": "^1.0.1",
114
119
  "cors": "^2.8.5",
120
+ "d3": "^7.9.0",
115
121
  "drizzle-orm": "^0.44.4",
116
122
  "express": "^5.0.0",
117
123
  "fastify": "^5.0.0",
118
124
  "hono": "^4.0.0",
119
125
  "react": "^18.0.0",
120
- "react-dom": "^18.0.0"
126
+ "react-dom": "^18.0.0",
127
+ "react-grid-layout": "^1.4.0",
128
+ "recharts": "^2.8.0"
121
129
  },
122
130
  "peerDependenciesMeta": {
123
131
  "react": {
124
- "optional": false
132
+ "optional": true
125
133
  },
126
134
  "react-dom": {
127
- "optional": false
135
+ "optional": true
136
+ },
137
+ "react-grid-layout": {
138
+ "optional": true
128
139
  },
129
140
  "drizzle-orm": {
130
- "optional": false
141
+ "optional": true
131
142
  },
132
143
  "hono": {
133
144
  "optional": true
@@ -150,8 +161,13 @@
150
161
  },
151
162
  "devDependencies": {
152
163
  "@fastify/cors": "^11.1.0",
164
+ "@heroicons/react": "^2.2.0",
165
+ "@hono/node-server": "^1.19.0",
166
+ "@iconify-icons/tabler": "^1.2.95",
167
+ "@iconify/react": "^6.0.0",
153
168
  "@types/better-sqlite3": "^7.6.0",
154
169
  "@types/cors": "^2.8.17",
170
+ "@types/d3": "^7.4.3",
155
171
  "@types/express": "^5.0.0",
156
172
  "@types/node": "^20.0.0",
157
173
  "@types/react": "^18.0.0",
@@ -175,25 +191,20 @@
175
191
  "next": "^15.0.0",
176
192
  "postcss": "^8.5.6",
177
193
  "postgres": "^3.4.7",
194
+ "react-hook-form": "^7.47.0",
178
195
  "rollup-plugin-visualizer": "^6.0.3",
196
+ "sql-formatter": "^15.6.6",
179
197
  "supertest": "^7.0.0",
180
198
  "tailwindcss": "^3.4.15",
199
+ "tsx": "^4.20.5",
181
200
  "typescript": "^5.0.0",
182
201
  "vite": "^5.0.0",
183
202
  "vite-plugin-dts": "^4.0.0",
184
- "vitest": "^2.0.0"
203
+ "vitest": "^2.0.0",
204
+ "zod": "^3.22.0"
185
205
  },
186
206
  "dependencies": {
187
- "@heroicons/react": "^2.2.0",
188
- "@iconify-icons/tabler": "^1.2.95",
189
- "@iconify/react": "^6.0.0",
190
- "@types/d3": "^7.4.3",
191
- "d3": "^7.9.0",
192
- "react-grid-layout": "^1.4.0",
193
- "react-hook-form": "^7.47.0",
194
- "recharts": "^2.8.0",
195
- "sql-formatter": "^15.6.6",
196
- "yaml": "^2.8.1",
197
- "zod": "^3.22.0"
207
+ "@tanstack/react-query": "^5.85.5",
208
+ "react-router-dom": "^7.8.2"
198
209
  }
199
210
  }