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

Fix duckdb support for nextjs in standalone mode #352

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .changeset/flat-feet-clap.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"@flowblade/source-duckdb": patch
---

Update duckdb-neo to latest alpha to fix issues with nextjs in standalone mode.


You must update duckdb/node-api to latest 1.1.3-alpha.12, see
https://github.com/duckdb/duckdb-node-neo/pull/127

This file was deleted.

2 changes: 1 addition & 1 deletion benchmark/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"devDependencies": {
"@belgattitude/eslint-config-bases": "6.21.0",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.12.0",
"@types/node": "22.13.1",
"@typescript-eslint/eslint-plugin": "8.23.0",
"@typescript-eslint/parser": "8.23.0",
"autocannon": "8.0.0",
Expand Down
2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"@belgattitude/eslint-config-bases": "6.21.0",
"@tailwindcss/postcss": "4.0.3",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.12.0",
"@types/node": "22.13.1",
"@types/react": "19.0.8",
"@types/react-dom": "19.0.3",
"@typescript-eslint/eslint-plugin": "8.23.0",
Expand Down
30 changes: 15 additions & 15 deletions examples/apps/fastify-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,24 +27,24 @@
"fix-staged": "lint-staged --allow-empty"
},
"dependencies": {
"@duckdb/node-api": "1.1.3-alpha.11",
"@duckdb/node-api": "1.1.3-alpha.12",
"@examples/db-sqlserver": "workspace:^",
"@fastify/autoload": "6.0.3",
"@fastify/autoload": "6.1.0",
"@fastify/compress": "8.0.1",
"@fastify/sensible": "6.0.2",
"@fastify/sensible": "6.0.3",
"@fastify/swagger": "9.4.2",
"@fastify/swagger-ui": "5.2.1",
"@fastify/type-provider-typebox": "5.1.0",
"@flowblade/core": "workspace:^",
"@flowblade/source-duckdb": "workspace:^",
"@flowblade/source-kysely": "workspace:^",
"@flowblade/sql-tag": "workspace:^",
"@httpx/assert": "0.15.1",
"@httpx/dsn-parser": "1.8.5",
"@httpx/exception": "3.0.11",
"@httpx/memo-intl": "1.2.0",
"@httpx/plain-object": "2.0.5",
"@httpx/treeu": "0.4.11",
"@httpx/assert": "0.15.2",
"@httpx/dsn-parser": "1.8.6",
"@httpx/exception": "3.0.12",
"@httpx/memo-intl": "1.2.2",
"@httpx/plain-object": "2.0.6",
"@httpx/treeu": "0.4.12",
"@sinclair/typebox": "0.34.15",
"close-with-grace": "2.2.0",
"fastify": "5.2.1",
Expand All @@ -59,11 +59,11 @@
"devDependencies": {
"@belgattitude/eslint-config-bases": "6.21.0",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.12.0",
"@typescript-eslint/eslint-plugin": "8.22.0",
"@typescript-eslint/parser": "8.22.0",
"@vitest/coverage-v8": "3.0.4",
"@vitest/ui": "3.0.4",
"@types/node": "22.13.1",
"@typescript-eslint/eslint-plugin": "8.23.0",
"@typescript-eslint/parser": "8.23.0",
"@vitest/coverage-v8": "3.0.5",
"@vitest/ui": "3.0.5",
"cross-env": "7.0.3",
"dotenv-expand": "12.0.1",
"dotenv-flow": "4.1.0",
Expand All @@ -74,7 +74,7 @@
"tsx": "4.19.2",
"typescript": "5.7.3",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.4"
"vitest": "3.0.5"
},
"engines": {
"node": ">=20.11.0"
Expand Down
52 changes: 26 additions & 26 deletions examples/apps/nextjs-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,22 +34,22 @@
"codegen-api": "tsx ./scripts/generate-openapi-local.ts"
},
"dependencies": {
"@duckdb/node-api": "1.1.3-alpha.11",
"@duckdb/node-api": "1.1.3-alpha.12",
"@examples/db-sqlserver": "workspace:^",
"@flowblade/core": "workspace:^",
"@flowblade/source-duckdb": "workspace:^",
"@flowblade/source-kysely": "workspace:^",
"@flowblade/sql-tag": "workspace:^",
"@flowblade/sql-tag-format": "workspace:^",
"@hono/node-server": "1.13.7",
"@hono/node-server": "1.13.8",
"@hono/swagger-ui": "0.5.0",
"@httpx/assert": "0.15.1",
"@httpx/dsn-parser": "1.8.5",
"@httpx/exception": "3.0.11",
"@httpx/lru": "0.4.0",
"@httpx/memo-intl": "1.2.0",
"@httpx/plain-object": "2.0.5",
"@httpx/treeu": "0.4.11",
"@httpx/assert": "0.15.2",
"@httpx/dsn-parser": "1.8.6",
"@httpx/exception": "3.0.12",
"@httpx/lru": "0.5.0",
"@httpx/memo-intl": "1.2.2",
"@httpx/plain-object": "2.0.6",
"@httpx/treeu": "0.4.12",
"@opentelemetry/api": "1.9.0",
"@opentelemetry/api-logs": "0.57.1",
"@opentelemetry/instrumentation": "0.57.1",
Expand All @@ -58,14 +58,14 @@
"@opentelemetry/sdk-metrics": "1.30.1",
"@opentelemetry/sdk-trace-base": "1.30.1",
"@reduxjs/toolkit": "2.5.1",
"@sentry/nextjs": "8.52.1",
"@shikijs/transformers": "2.2.0",
"@sentry/nextjs": "8.54.0",
"@shikijs/transformers": "2.3.0",
"@t3-oss/env-nextjs": "0.12.0",
"@tanstack/react-query": "5.65.1",
"@tanstack/react-query": "5.66.0",
"@vercel/otel": "1.10.1",
"clsx": "2.1.1",
"hast-util-to-jsx-runtime": "2.3.2",
"hono": "4.6.19",
"hono": "4.6.20",
"hono-zod-openapi": "0.5.0",
"ky": "1.7.4",
"kysely": "0.27.5",
Expand All @@ -78,9 +78,9 @@
"react-dom": "19.0.0",
"react-error-boundary": "5.0.0",
"react-redux": "9.2.0",
"shiki": "2.2.0",
"shiki": "2.3.0",
"sql-formatter": "15.4.10",
"tailwind-merge": "2.6.0",
"tailwind-merge": "3.0.1",
"tarn": "3.0.2",
"tedious": "19.0.0",
"type-fest": "4.33.0",
Expand All @@ -92,36 +92,36 @@
"@faker-js/faker": "9.4.0",
"@next/bundle-analyzer": "15.1.6",
"@spotlightjs/spotlight": "2.10.3",
"@tailwindcss/postcss": "4.0.1",
"@tanstack/react-query-devtools": "5.65.1",
"@tailwindcss/postcss": "4.0.3",
"@tanstack/react-query-devtools": "5.66.0",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.12.0",
"@types/node": "22.13.1",
"@types/react": "19.0.8",
"@types/react-dom": "19.0.3",
"@typescript-eslint/eslint-plugin": "8.22.0",
"@typescript-eslint/parser": "8.22.0",
"@typescript-eslint/eslint-plugin": "8.23.0",
"@typescript-eslint/parser": "8.23.0",
"@valibot/to-json-schema": "1.0.0-beta.5",
"@vitejs/plugin-react-swc": "3.7.2",
"@vitest/coverage-v8": "3.0.4",
"@vitest/ui": "3.0.4",
"@vitest/coverage-v8": "3.0.5",
"@vitest/ui": "3.0.5",
"cross-env": "7.0.3",
"dotenv-expand": "12.0.1",
"dotenv-flow": "4.1.0",
"dotenv-flow-cli": "1.1.1",
"eslint": "8.57.1",
"eslint-config-next": "15.1.6",
"happy-dom": "16.7.3",
"happy-dom": "16.8.1",
"npm-run-all2": "7.0.2",
"openapi-typescript": "7.6.0",
"openapi-typescript": "7.6.1",
"postcss": "8.5.1",
"prettier": "3.4.2",
"rimraf": "6.0.1",
"tailwindcss": "4.0.1",
"tailwindcss": "4.0.3",
"tinyrainbow": "2.0.0",
"tsx": "4.19.2",
"typescript": "5.7.3",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.4",
"vitest": "3.0.5",
"webpack": "5.97.1"
}
}
18 changes: 9 additions & 9 deletions examples/shared/db-sqlserver/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@
"@faker-js/faker": "9.4.0",
"@flowblade/core": "workspace:^",
"@flowblade/sql-tag": "workspace:^",
"@httpx/assert": "0.15.1",
"@prisma/client": "6.3.0",
"@httpx/assert": "0.15.2",
"@prisma/client": "6.3.1",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.12.0",
"@typescript-eslint/eslint-plugin": "8.22.0",
"@typescript-eslint/parser": "8.22.0",
"@vitest/coverage-v8": "3.0.4",
"@vitest/ui": "3.0.4",
"@types/node": "22.13.1",
"@typescript-eslint/eslint-plugin": "8.23.0",
"@typescript-eslint/parser": "8.23.0",
"@vitest/coverage-v8": "3.0.5",
"@vitest/ui": "3.0.5",
"cross-env": "7.0.3",
"dotenv-expand": "12.0.1",
"dotenv-flow": "4.1.0",
Expand All @@ -83,7 +83,7 @@
"kysely": "0.27.5",
"npm-run-all2": "7.0.2",
"prettier": "3.4.2",
"prisma": "6.3.0",
"prisma": "6.3.1",
"prisma-kysely": "1.8.0",
"prisma-markdown": "1.0.9",
"regexp.escape": "2.0.1",
Expand All @@ -93,7 +93,7 @@
"tsx": "4.19.2",
"typescript": "5.7.3",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.4"
"vitest": "3.0.5"
},
"prisma": {
"seed": "tsx ./scripts/run-prisma-seeds.ts"
Expand Down
16 changes: 8 additions & 8 deletions examples/shared/duckb-openfoodfact/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@
},
"devDependencies": {
"@belgattitude/eslint-config-bases": "6.21.0",
"@duckdb/node-api": "1.1.3-alpha.11",
"@duckdb/node-api": "1.1.3-alpha.12",
"@faker-js/faker": "9.4.0",
"@flowblade/core": "workspace:^",
"@flowblade/source-duckdb": "workspace:^",
"@flowblade/sql-tag": "workspace:^",
"@flowblade/sql-tag-format": "workspace:^",
"@httpx/assert": "0.15.1",
"@httpx/assert": "0.15.2",
"@total-typescript/ts-reset": "0.6.1",
"@types/node": "22.12.0",
"@typescript-eslint/eslint-plugin": "8.22.0",
"@typescript-eslint/parser": "8.22.0",
"@vitest/coverage-v8": "3.0.4",
"@vitest/ui": "3.0.4",
"@types/node": "22.13.1",
"@typescript-eslint/eslint-plugin": "8.23.0",
"@typescript-eslint/parser": "8.23.0",
"@vitest/coverage-v8": "3.0.5",
"@vitest/ui": "3.0.5",
"boxen": "8.0.1",
"cross-env": "7.0.3",
"dotenv-expand": "12.0.1",
Expand All @@ -65,7 +65,7 @@
"tsx": "4.19.2",
"typescript": "5.7.3",
"vite-tsconfig-paths": "5.1.4",
"vitest": "3.0.4",
"vitest": "3.0.5",
"yocto-spinner": "0.2.0"
}
}
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@
"typescript": "5.7.3"
},
"resolutions": {
"esbuild": "^0.24.2",
"@duckdb/node-bindings@npm:1.1.3-alpha.11": "patch:@duckdb/node-bindings@npm%3A1.1.3-alpha.11#~/.yarn/patches/@duckdb-node-bindings-npm-1.1.3-alpha.11-df3db83de0.patch"
"esbuild": "^0.24.2"
},
"resolutions-help": {
"esbuild": "Generally is safe to keep only the latest version (vite, vitest, tsup...)"
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
"ci-coverage-upload": "../../.github/scripts/download/codecov -F flowblade-core --dir ./coverage"
},
"dependencies": {
"@httpx/plain-object": "^2.0.5",
"@httpx/plain-object": "^2.0.6",
"typescript-result": "^3.1.1"
},
"devDependencies": {
Expand All @@ -88,7 +88,7 @@
"prettier": "3.4.2",
"publint": "0.3.2",
"rimraf": "6.0.1",
"rollup": "4.34.1",
"rollup": "4.34.2",
"size-limit": "11.1.6",
"tsup": "8.3.6",
"tsx": "4.19.2",
Expand Down
6 changes: 3 additions & 3 deletions packages/source-duckdb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,15 @@
"ci-coverage-upload": "../../.github/scripts/download/codecov -F flowblade-source-duckdb --dir ./coverage"
},
"peerDependencies": {
"@duckdb/node-api": "^1.1.3-alpha.11",
"@duckdb/node-api": "^1.1.3-alpha.12",
"@flowblade/core": "workspace:^",
"@flowblade/sql-tag": "workspace:^"
},
"devDependencies": {
"@arethetypeswrong/cli": "0.17.3",
"@belgattitude/eslint-config-bases": "6.21.0",
"@codspeed/vitest-plugin": "4.0.0",
"@duckdb/node-api": "1.1.3-alpha.11",
"@duckdb/node-api": "1.1.3-alpha.12",
"@edge-runtime/vm": "5.0.0",
"@faker-js/faker": "9.4.0",
"@flowblade/core": "workspace:^",
Expand All @@ -95,7 +95,7 @@
"prettier": "3.4.2",
"publint": "0.3.2",
"rimraf": "6.0.1",
"rollup": "4.34.1",
"rollup": "4.34.2",
"size-limit": "11.1.6",
"sql-template-tag": "5.2.1",
"tsup": "8.3.6",
Expand Down
12 changes: 6 additions & 6 deletions packages/source-kysely/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@
"ci-coverage-upload": "../../.github/scripts/download/codecov -F flowblade-source-kysely --dir ./coverage"
},
"dependencies": {
"@httpx/assert": "^0.15.1",
"@httpx/dsn-parser": "^1.8.5",
"@httpx/plain-object": "^2.0.5",
"@httpx/assert": "^0.15.2",
"@httpx/dsn-parser": "^1.8.6",
"@httpx/plain-object": "^2.0.6",
"type-fest": "^4.33.0",
"valibot": "^1.0.0-beta.14"
},
Expand All @@ -100,7 +100,7 @@
"@codspeed/vitest-plugin": "4.0.0",
"@edge-runtime/vm": "5.0.0",
"@faker-js/faker": "9.4.0",
"@prisma/client": "6.3.0",
"@prisma/client": "6.3.1",
"@size-limit/file": "11.1.6",
"@size-limit/webpack": "11.1.6",
"@vitest/coverage-istanbul": "3.0.5",
Expand All @@ -115,11 +115,11 @@
"kysely": "0.27.5",
"npm-run-all2": "7.0.2",
"prettier": "3.4.2",
"prisma": "6.3.0",
"prisma": "6.3.1",
"prisma-kysely": "1.8.0",
"publint": "0.3.2",
"rimraf": "6.0.1",
"rollup": "4.34.1",
"rollup": "4.34.2",
"size-limit": "11.1.6",
"tarn": "3.0.2",
"tedious": "19.0.0",
Expand Down
Loading