Skip to content

Commit 7f3cc25

Browse files
authored
Next wip dev deps (#1124)
* chore(dev-deps): to latest * chore(dev-deps): to latest * chore(dev-deps): to latest * chore(dev-deps): to latest * chore(dev-deps): to latest * chore(dev-deps): to latest * chore(dev-deps): to latest
1 parent 410461d commit 7f3cc25

19 files changed

Lines changed: 325 additions & 307 deletions

File tree

.agents/skills/shadcn/SKILL.md

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,8 @@ These rules are **always enforced**. Each links to a file with Incorrect/Correct
7777

7878
### CLI
7979

80-
- **Never decode or fetch preset codes manually.** Pass them directly to `npx shadcn@latest apply --preset <code>` for existing projects, or `npx shadcn@latest init --preset <code>` when initializing.
80+
- **Never decode preset codes or build preset URLs manually.** Use `npx shadcn@latest preset decode <code>`, `preset url <code>`, or `preset open <code>`. For project-aware preset detection, use `npx shadcn@latest preset resolve`.
81+
- **Apply preset codes directly with the CLI.** Use `npx shadcn@latest apply <code>` for existing projects, or `npx shadcn@latest init --preset <code>` when initializing.
8182

8283
## Key Patterns
8384

@@ -150,6 +151,7 @@ The injected project context contains these key fields:
150151
- **`resolvedPaths`** → exact file-system destinations for components, utils, hooks, etc.
151152
- **`framework`** → routing and file conventions (e.g. Next.js App Router vs Vite SPA).
152153
- **`packageManager`** → use this for any non-shadcn dependency installs (e.g. `pnpm add date-fns` vs `npm install date-fns`).
154+
- **`preset`** → resolved preset code and values for the current project. Use `npx shadcn@latest preset resolve --json` when you only need preset information.
153155

154156
See [cli.md — `info` command](./cli.md) for the full field reference.
155157

@@ -173,8 +175,11 @@ npx shadcn@latest docs button dialog select
173175
6. **Fix imports in third-party components** — After adding components from community registries (e.g. `@bundui`, `@magicui`), check the added non-UI files for hardcoded import paths like `@/components/ui/...`. These won't match the project's actual aliases. Use `npx shadcn@latest info` to get the correct `ui` alias (e.g. `@workspace/ui/components`) and rewrite the imports accordingly. The CLI rewrites imports for its own UI files, but third-party registry components may use default paths that don't match the project.
174176
7. **Review added components** — After adding a component or block from any registry, **always read the added files and verify they are correct**. Check for missing sub-components (e.g. `SelectItem` without `SelectGroup`), missing imports, incorrect composition, or violations of the [Critical Rules](#critical-rules). Also replace any icon imports with the project's `iconLibrary` from the project context (e.g. if the registry item uses `lucide-react` but the project uses `hugeicons`, swap the imports and icon names accordingly). Fix all issues before moving on.
175177
8. **Registry must be explicit** — When the user asks to add a block or component, **do not guess the registry**. If no registry is specified (e.g. user says "add a login block" without specifying `@shadcn`, `@tailark`, etc.), ask which registry to use. Never default to a registry on behalf of the user.
176-
9. **Switching presets** — Ask the user first: **overwrite**, **merge**, or **skip**?
177-
- **Overwrite**: `npx shadcn@latest apply --preset <code>`. Overwrites detected components, fonts, and CSS variables.
178+
9. **Switching presets** — Ask the user first: **overwrite**, **partial**, **merge**, or **skip**?
179+
- **Inspect current preset**: `npx shadcn@latest preset resolve`. Use `--json` when you need structured values.
180+
- **Inspect incoming preset**: `npx shadcn@latest preset decode <code>`. Use `preset url <code>` or `preset open <code>` to share or open the preset builder.
181+
- **Overwrite**: `npx shadcn@latest apply <code>`. Overwrites detected components, fonts, and CSS variables.
182+
- **Partial**: `npx shadcn@latest apply <code> --only theme,font`. Updates only the selected preset parts without reinstalling UI components. Supported values are `theme` and `font`; comma-separated combinations are allowed. `icon` is intentionally not supported, because icon changes may require full component reinstall and transforms.
178183
- **Merge**: `npx shadcn@latest init --preset <code> --force --no-reinstall`, then run `npx shadcn@latest info` to list installed components, then for each installed component use `--dry-run` and `--diff` to [smart merge](#updating-components) it individually.
179184
- **Skip**: `npx shadcn@latest init --preset <code> --force --no-reinstall`. Only updates config and CSS, leaves components as-is.
180185
- **Important**: Always run preset commands inside the user's project directory. `apply` only works in an existing project with a `components.json` file. The CLI automatically preserves the current base (`base` vs `radix`) from `components.json`. If you must use a scratch/temp directory (e.g. for `--dry-run` comparisons), pass `--base <current-base>` explicitly — preset codes do not encode the base.
@@ -207,8 +212,17 @@ npx shadcn@latest init --preset base-nova
207212
npx shadcn@latest init --defaults # shortcut: --template=next --preset=nova (base style implied)
208213

209214
# Apply a preset to an existing project.
210-
npx shadcn@latest apply --preset a2r6bw
211215
npx shadcn@latest apply a2r6bw
216+
npx shadcn@latest apply a2r6bw --only theme
217+
npx shadcn@latest apply a2r6bw --only font
218+
npx shadcn@latest apply a2r6bw --only theme,font
219+
220+
# Inspect preset codes and project preset state.
221+
npx shadcn@latest preset decode a2r6bw
222+
npx shadcn@latest preset url a2r6bw
223+
npx shadcn@latest preset open a2r6bw
224+
npx shadcn@latest preset resolve
225+
npx shadcn@latest preset resolve --json
212226

213227
# Add components.
214228
npx shadcn@latest add button card dialog

.gitignore

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
# hack for changeset releases
55
_release
66

7-
# Turbo pruned files
7+
# Turbo and turbo docker pruned files
8+
.turbo
89
.turbo-pruned
910

1011
# local env files (following nextjs convention)
@@ -22,9 +23,6 @@ next-env.d.ts
2223
nx-cloud.env
2324
.nx
2425

25-
# turbo
26-
.turbo
27-
2826
# temp files
2927
**/tmp/*
3028
!**/tmp/.gitkeep

.ncurc.cjs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const npmPreapprovedPackages = [
4040
'@valibot/*',
4141
'@standard-schema/*',
4242
'shadcn',
43-
'@logtape/logtape'
43+
'@logtape/*',
4444
];
4545

4646
module.exports = defineConfig({
@@ -70,6 +70,10 @@ module.exports = defineConfig({
7070
// duckdb-wasm depends on an older version of arrow
7171
'apache-arrow',
7272

73+
// Temp hack cause @orpc/client was published with a wrong version
74+
// and removed later... but still the latest version is 2.0.0
75+
'@orpc/client',
76+
7377
// prisma
7478
'prisma',
7579
'@prisma/client',

.yarnrc.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ nodeLinker: node-modules
1313
npmMinimalAgeGate: 2880
1414

1515
catalog:
16-
'@typescript/native-preview': 7.0.0-dev.20260503.1
16+
'@typescript/native-preview': 7.0.0-dev.20260504.1
1717

1818
npmPreapprovedPackages:
1919
- "@belgattitude/*"
@@ -23,6 +23,7 @@ npmPreapprovedPackages:
2323
- "@next/*"
2424
- "@azure/*"
2525
- prisma
26+
- postcss
2627
- "@prisma/*"
2728
- "@duckdb/*"
2829
- kysely
@@ -47,28 +48,19 @@ npmPreapprovedPackages:
4748
- "@better-auth/*"
4849
- "@typescript-eslint/*"
4950
- prettier
50-
- "@kubb/*"
51-
- remeda
52-
- "@redocly/*"
5351
- tsdown
5452
- rolldown-plugin-dts
5553
- rolldown
5654
- "@rolldown/*"
57-
- oas
58-
- dedent
59-
- unrun
6055
- zod
6156
- valibot
6257
- "@valibot/*"
6358
- "@standard-schema/*"
64-
- import-without-cache
65-
- ws
6659
- "@vitest/*"
6760
- "shadcn"
6861
- "@oxc-project/*"
6962
- "@typescript/*"
70-
- picomatch
71-
- '@logtape/logtape'
63+
- '@logtape/*'
7264
- '@napi-rs/*'
7365
- 'npm-check-updates'
7466

docs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"dependencies": {
3434
"@t3-oss/env-nextjs": "0.13.11",
3535
"clsx": "2.1.1",
36-
"next": "16.2.4",
36+
"next": "16.2.5",
3737
"nextra": "4.6.1",
3838
"nextra-theme-docs": "4.6.1",
3939
"react": "19.2.5",

examples/apps/fastify-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"@httpx/exception": "3.1.10",
4646
"@httpx/lru": "0.13.3",
4747
"@httpx/memo-intl": "1.4.10",
48-
"@httpx/plain-object": "2.1.9",
48+
"@httpx/plain-object": "2.1.10",
4949
"@httpx/treeu": "0.6.0",
5050
"close-with-grace": "2.5.0",
5151
"fastify": "5.8.5",

examples/apps/nextjs-app/docker/Dockerfile

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ RUN apt-get update \
1212
#&& apt-get install build-essential cmake curl unzip ca-certificates git jq --no-install-recommends -y \
1313
&& apt-get install git jq --no-install-recommends -y \
1414
&& rm -rf /var/cache/apt/* \
15+
&& rm -rf /var/lib/apt/lists/* \
1516
## Corepack won't be bundled in node 25+
1617
&& npm i -g corepack@${COREPACK_VERSION} && corepack enable
1718

@@ -100,13 +101,18 @@ ENV TZ=Etc/UTC
100101
ENV NODE_ENV=production
101102

102103
RUN apt-get update \
103-
&& apt-get install bash tzdata --no-install-recommends -y \
104-
&& rm -rf /var/cache/apt/*
104+
&& apt-get install tzdata ca-certificates --no-install-recommends -y \
105+
&& rm -rf /var/cache/apt/* \
106+
&& rm -rf /var/lib/apt/lists/*
105107
# If needed, we can enable corepack in the runner as well, but for now we don't need it \
106108
# since we're running the built server.js directly with node.
107109
# && npm i -g corepack@${COREPACK_VERSION} && corepack enable
108110

109111

112+
# For duckdb azure extension, we need to have the certs available in the runner image as well, so we link them to the expected location.
113+
# see https://github.com/duckdb/duckdb/discussions/9675
114+
RUN mkdir -p /etc/pki/tls/certs && ln -s /etc/ssl/certs/ca-certificates.crt /etc/pki/tls/certs/ca-bundle.crt
115+
110116
WORKDIR /app
111117

112118
# Set the correct permission for prerender cache

examples/apps/nextjs-app/docker/docker-compose.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
name: flowblade-example-nextjs
22
services:
33
app-debian:
4+
container_name: 'flowblade-nextjs-app'
45
build:
56
# Start from root of the monorepo
67
context: ../../../../
78
dockerfile: ./examples/apps/nextjs-app/docker/Dockerfile
9+
tags:
10+
- flowblade-nextjs-app:latest
811
restart: no
912
networks:
1013
- flowblade-net

examples/apps/nextjs-app/package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"typegen": "next typegen",
2323
"build-no-paths": "cross-env NEXT_BUILD_TSCONFIG=./tsconfig.no-paths.json next build",
2424
"build-standalone": "cross-env NEXT_BUILD_OUTPUT=standalone next build",
25-
"build-pruned": "yarn --top-level run turbo prune --scope=@examples/nextjs-app --docker --out-dir=./out/nextjs-app/",
25+
"build-pruned": "yarn --top-level run turbo prune --scope=@examples/nextjs-app --docker --out-dir=./.turbo-pruned/nextjs-app/",
2626
"bundle-analyze": "next experimental-analyze",
2727
"start": "next start",
2828
"clean": "rimraf ./.next ./coverage ./tsconfig.tsbuildinfo",
@@ -62,13 +62,13 @@
6262
"@httpx/lru": "0.13.3",
6363
"@httpx/md5": "1.0.3",
6464
"@httpx/memo-intl": "1.4.10",
65-
"@httpx/plain-object": "2.1.9",
65+
"@httpx/plain-object": "2.1.10",
6666
"@httpx/stable-hash": "0.4.0",
6767
"@httpx/treeu": "0.6.0",
6868
"@httpx/xcache": "0.5.1",
6969
"@logtape/logtape": "2.0.7",
70-
"@logtape/otel": "2.0.6",
71-
"@logtape/pretty": "2.0.6",
70+
"@logtape/otel": "2.0.7",
71+
"@logtape/pretty": "2.0.7",
7272
"@motherduck/wasm-client": "0.8.1",
7373
"@opentelemetry/api": "1.9.1",
7474
"@opentelemetry/api-logs": "0.216.0",
@@ -78,17 +78,17 @@
7878
"@opentelemetry/sdk-metrics": "2.7.1",
7979
"@opentelemetry/sdk-trace-base": "2.7.1",
8080
"@opentelemetry/semantic-conventions": "1.40.0",
81-
"@orpc/client": "1.14.0",
82-
"@orpc/server": "1.14.0",
81+
"@orpc/client": "1.14.1",
82+
"@orpc/server": "1.14.1",
8383
"@reduxjs/toolkit": "2.11.2",
84-
"@scalar/hono-api-reference": "0.10.13",
84+
"@scalar/hono-api-reference": "0.10.14",
8585
"@sentry/nextjs": "10.51.0",
8686
"@shikijs/transformers": "4.0.2",
8787
"@standard-community/standard-json": "0.3.5",
8888
"@standard-community/standard-openapi": "0.2.9",
8989
"@t3-oss/env-nextjs": "0.13.11",
9090
"@tanstack/react-form": "1.29.1",
91-
"@tanstack/react-query": "5.100.8",
91+
"@tanstack/react-query": "5.100.9",
9292
"@vercel/blob": "2.3.3",
9393
"@vercel/otel": "2.1.2",
9494
"ag-charts-community": "13.2.1",
@@ -100,15 +100,15 @@
100100
"class-variance-authority": "0.7.1",
101101
"clsx": "2.1.1",
102102
"hast-util-to-jsx-runtime": "2.3.6",
103-
"hono": "4.12.16",
103+
"hono": "4.12.18",
104104
"hono-openapi": "1.3.0",
105105
"json-schema-walker": "3.3.0",
106106
"ky": "2.0.2",
107107
"kysely": "0.28.17",
108108
"lodash": "4.18.1",
109109
"lucide-react": "1.14.0",
110110
"marked": "18.0.3",
111-
"next": "16.2.4",
111+
"next": "16.2.5",
112112
"pretty-bytes": "7.1.0",
113113
"primereact": "10.9.7",
114114
"quansync": "1.0.0",
@@ -123,7 +123,7 @@
123123
"tarn": "3.0.2",
124124
"tedious": "19.2.1",
125125
"type-fest": "5.6.0",
126-
"valibot": "1.3.1",
126+
"valibot": "1.4.0",
127127
"zod": "4.4.3"
128128
},
129129
"devDependencies": {
@@ -140,7 +140,7 @@
140140
"@kubb/react": "4.3.1",
141141
"@standard-schema/spec": "1.1.0",
142142
"@tailwindcss/postcss": "4.2.4",
143-
"@tanstack/react-query-devtools": "5.100.8",
143+
"@tanstack/react-query-devtools": "5.100.9",
144144
"@testing-library/dom": "10.4.1",
145145
"@testing-library/react": "16.3.2",
146146
"@testing-library/user-event": "14.6.1",
@@ -152,7 +152,7 @@
152152
"@typescript-eslint/eslint-plugin": "8.59.2",
153153
"@typescript-eslint/parser": "8.59.2",
154154
"@typescript/native-preview": "catalog:",
155-
"@valibot/to-json-schema": "1.6.0",
155+
"@valibot/to-json-schema": "1.7.0",
156156
"@vitejs/plugin-react": "6.0.1",
157157
"@vitest/coverage-v8": "4.1.5",
158158
"@vitest/ui": "4.1.5",
@@ -161,7 +161,7 @@
161161
"happy-dom": "20.9.0",
162162
"npm-run-all2": "8.0.4",
163163
"openapi-types": "12.1.3",
164-
"postcss": "8.5.13",
164+
"postcss": "8.5.14",
165165
"prettier": "3.8.3",
166166
"rimraf": "6.1.3",
167167
"tailwindcss": "4.2.4",

examples/apps/nextjs-app/turbo.jsonc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"tasks": {
55
"build": {
66
"env": ["NEXT_BUILD_*", "NEXT_PUBLIC_*", "SENTRY_*"],
7-
"outputs": [".next/**", "!.next/cache/**"],
7+
"outputs": [".next/**", "!.next/cache/**", "!.next/dev/**"],
88
// We rely on tsconfig path aliases to ease starting
99
// Only exception @flowblade/sqlduck that is used for env
1010
"dependsOn": ["@flowblade/sqlduck#build"]

0 commit comments

Comments
 (0)