Commit Graph

249 Commits

Author SHA1 Message Date
github-actions[bot] 63c1308d11 chore(release): version packages (#11714)
Co-authored-by: shadcn <m@shadcn.com>
2026-08-31 13:54:21 +04:00
shadcn 352f2094bd feat(registry): add health monitoring (#11616)
* feat(registry): add health monitoring

* fix(registry): cache health directory route

* fix(registry): harden health state transitions
2026-08-25 15:49:59 +04:00
shadcn b9938d9463 fix(ci): bump @changesets/cli for npm 12 publish detection (#11613) 2026-08-24 16:02:51 +04:00
github-actions[bot] 1773ecfeeb chore(release): version packages (#11567)
Co-authored-by: shadcn <m@shadcn.com>
2026-08-21 21:27:21 +04:00
github-actions[bot] d4fc45b1fb chore(release): version packages (#11503)
Co-authored-by: shadcn <m@shadcn.com>
2026-08-13 22:43:17 +04:00
Devon Govett a85299a9ed feat: Add HoverCard and update ContextMenu in aria base (#11379)
Co-authored-by: shadcn <m@shadcn.com>
2026-08-12 19:18:35 +04:00
github-actions[bot] efac598707 chore(release): version packages (#11462)
Co-authored-by: shadcn <m@shadcn.com>
2026-08-12 00:38:09 +04:00
shadcn 401d10b818 feat(helpers): human-in-the-loop mocking for the AI SDK (#11484)
* feat(helpers): add human-in-the-loop mocking

* feat(helpers): adopt useChat message generics and finalize human-in-the-loop

* chore(helpers): tighten changesets

* refactor(registry): use named message type aliases with createChat

* docs(changelog): add helpers human-in-the-loop entry

* docs: add changelog
2026-08-12 00:34:51 +04:00
Nicolas Bouvrette deda4df80f feat(shadcn): add SOCKS proxy support (#10453)
* fix(shadcn): replace node-fetch with undici

Removes the transitive node-domexception deprecation warning triggered
on install by node-fetch -> fetch-blob. Uses Node's global fetch with
undici.ProxyAgent as the dispatcher when https_proxy is set, preserving
existing proxy support.

Also declares the implicit Node version requirement (>=20.18.1, matching
undici@7's engines field) now that Node 20 is entering maintenance EOL.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: changeset

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* fix(shadcn): expand proxy env-var support via EnvHttpProxyAgent

Switch the registry fetcher from undici.ProxyAgent (single-URI) to
undici.EnvHttpProxyAgent, which honors HTTPS_PROXY, HTTP_PROXY,
NO_PROXY (and lowercase variants). Previously only https_proxy
lowercase was respected.

Extracts the dispatcher selection into createProxyDispatcher in
packages/shadcn/src/registry/proxy.ts, with unit tests covering
all env-var permutations and an integration test that spins up a
local CONNECT-tunneling proxy to verify end-to-end routing and
NO_PROXY bypass.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: update changeset

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* feat(shadcn): add SOCKS and PAC proxy support

Extends the registry's proxy capabilities beyond HTTP/HTTPS to cover
the standard proxy mechanisms users encounter:

- SOCKS4/SOCKS5 via ALL_PROXY=socks5://... (curl convention).
  Implementation uses the `socks` package wired into a custom undici
  Agent's `connect` factory, so SOCKS routing flows through the same
  fetch dispatcher pipeline as HTTP/HTTPS.

- PAC files via PAC_URL, with full PROXY/SOCKS/DIRECT directive
  support. PacDispatcher lazily fetches and compiles the PAC script
  using `pac-resolver` (running PAC JavaScript in a QuickJS WASM
  sandbox via `quickjs-wasi`), then resolves and routes per request.

Detection and routing priority is PAC > SOCKS > HTTP, matching the
specificity of each mechanism (PAC can return mixed directives
per request; SOCKS and HTTP are per-process configurations).

Coverage:
- 14 new unit tests (env-var detection, priority, edge cases)
- 7 new integration tests using a hand-rolled SOCKS5 server, a
  CONNECT-tunneling HTTP proxy, and a PAC file server — verifying
  end-to-end routing for each mechanism plus per-host PAC directives.

A local pac-resolver.d.ts stub mirrors the v9 surface we use,
because pac-resolver@9 ships its types only via the `exports` map
which the repo's classic `moduleResolution: node` doesn't read.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* chore: update changeset for SOCKS and PAC support

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* test(shadcn): tighten proxy integration tests per review

- Replace the dead "proxy-direct" response body in the test proxy's
  request handler with a 502 reply. The request callback path was
  never exercised (undici only sends CONNECT to the proxy), so the
  unreachable JSON body was confusing dead code. Lock the new
  CONNECT-only contract in with an explicit test.

- Tighten the NO_PROXY-non-match assertion from `.toHaveLength(1)` +
  `.toBe("CONNECT")` to `.toEqual([{ url: originHost, method: "CONNECT" }])`,
  matching the parallel HTTP_PROXY test. The looser version would
  miss bugs where the dispatcher CONNECTed to the wrong host (e.g.,
  the proxy's own address instead of the origin's) — the strict
  version catches that bug class.

Both changes per @pomeh's review feedback.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>

* refactor(shadcn): rescope proxy support to SOCKS only

Per review feedback, split the proxy work: this branch now lands SOCKS
support alone and PAC moves to a follow-up PR.

Removes the PacDispatcher, the PAC directive parser, the PAC_URL env
handling and the pac-resolver type stub, along with the pac-resolver and
quickjs-wasi dependencies (the latter being ~3 MB of WASM). The socks
dependency and the entire SOCKS code path are unchanged, as is
fetchWithProxy's cross-origin redirect hardening.

ALL_PROXY remains SOCKS-only: a non-socks scheme falls through to the
explicit HTTP_PROXY / HTTPS_PROXY variables rather than being absorbed.

Changeset bumped from patch to minor.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011YT4UiAoMUVeF9xaVm9ufi

---------

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: shadcn <m@shadcn.com>
2026-08-10 15:23:51 +04:00
Kevin Van Cott 6261bd89f7 feat: update data table docs to TanStack Table v9 (#11399)
* feat(v4): update data table docs and examples to tanstack table v9

- Migrate all data-table demos, dashboard-01 blocks, and the tasks
  example to the TanStack Table v9 stable API (tableFeatures, useTable,
  createColumnHelper)
- Add a shared data-table-features.ts module to the tasks example
- Rewrite the base/radix/aria data-table.mdx guides for v9 and update
  table.mdx links
- Remove the orphaned components/cards/payments.tsx (the live payments
  card no longer uses TanStack Table)
- Pin the frozen v3 dashboard-01 registry payloads to react-table v8 so
  legacy CLI installs keep working now that v9 is npm latest
- Fix pre-existing docs bugs (base preview styleName, radix frontmatter
  base, aria getFlatHeaders missing .map)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(v4): register built-in filter/sort fns and use FlexRender component

In v9 the built-in filter and sort functions are tree-shaken like
everything else: a column's default filterFn of 'auto' resolves through
the filterFns registry on the features object, so an unregistered
includesString made the demo filter inputs silently no-op. Register
filterFns/sortFns in every table with filter/sort UI and document the
requirement in the data-table guides.

Also replace flexRender() call sites with the v9 FlexRender component:
table.FlexRender where the table instance is in scope, the imported
FlexRender in the dnd-kit blocks whose DraggableRow renders cells
outside it.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* clean up comments for best practices

---------

Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
Co-authored-by: shadcn <m@shadcn.com>
2026-08-06 21:09:43 +04:00
github-actions[bot] b1c580c637 chore(release): version packages (#11374)
Co-authored-by: shadcn <m@shadcn.com>
2026-08-05 23:11:16 +04:00
shadcn 3e54530e31 feat: questionnaire (#11414)
* feat(questionnaire): add core package and tests

* feat(questionnaire): add registry UI, examples, and docs

* chore(questionnaire): prepare release

* fix(questionnaire): align release examples and docs
2026-08-05 23:08:44 +04:00
github-actions[bot] cb2bcd88d9 chore(release): version packages (#11350)
Co-authored-by: shadcn <m@shadcn.com>
2026-07-31 17:57:34 +04:00
shadcn 5203f537d1 test(v4): bump next to 16.3 canary for Turbopack memory eviction (#11328)
Evaluating 16.3's dev memory eviction: footprint after browsing 14 docs routes drops 32GB -> 15GB and page nav 3.6-16s -> sub-2s vs 16.2.7. Canary, not for merge until stable.
2026-07-29 16:31:23 +04:00
github-actions[bot] 2a2deaac41 chore(release): version packages (#11306)
Co-authored-by: shadcn <m@shadcn.com>
2026-07-27 22:31:02 +04:00
github-actions[bot] 234633c555 chore(release): version packages (#11286)
Co-authored-by: shadcn <m@shadcn.com>
2026-07-25 22:04:50 +04:00
github-actions[bot] 9caf1d1bc4 chore(release): version packages (#11267)
Co-authored-by: shadcn <m@shadcn.com>
2026-07-23 20:01:13 +04:00
github-actions[bot] 3f47b9113a chore(release): version packages (#11244)
Co-authored-by: shadcn <m@shadcn.com>
2026-07-22 15:05:55 +04:00
github-actions[bot] c9850bf087 chore(release): version packages (#11192)
Co-authored-by: shadcn <m@shadcn.com>
2026-07-17 19:22:38 +04:00
shadcn 2b89d67e19 feat: aria (#11208)
* initialize react-aria base

* update imports

* accordion

* checkbox

* radiogroup

* switch

* button

* progress

* collapsible

* toggle / togglegroup

* tabs

* slider

* badge

* fix ts

* buttongroup

* popover

* dialog

* alertdialog

* sheet

* tooltip

* separator

* select

* update preview

* dropdown menu

* build registry

* update examples

* format

* Combobox

* sidebar

* updates

* breadcrumb

* update registry

* update progress

* fix

* fix dropdown menu styles

* fix

* common utility for overlay placement

* hide base tab if it doesn't exist

* update registry

* contextmenu

* direction

* spinner

* scroll area

* rebuild registry

* update examples

* port updates from base

* add preview-02

* Add missing files

* avatar

* remove hover-card

* Command

* Calendar + DatePicker

* Table and DataTable

* updates

* Fix sidebar docs

* fix accordion animation

* update docs

* fixup

* Add composition section to docs

* fix styles

* fixes

* fix dropdown submenus

* Update react-aria-components

* update new styles

* update registry

* bump dependencies

* port latest changes to react-aria base

* update example style

* fixes

* feat(registry): add aniui to registry directory (#11113)

* docs: polish component documentation (#11162)

* fix(docs): preserve sidebar scroll position

* style(docs): increase surface radii

* docs(components): promote example sections

* fix(docs): redirect typography pages to typeset

* fix(docs): preserve duplicate sidebar link position (#11163)

* fix(docs): restore sidebar scroll before hydration (#11166)

* feat: @shadcn/helpers (#11168)

* feat(helpers): add scripted chat adapters

* build(helpers): add release plumbing

* docs(helpers): refine ai-sdk and tanstack-ai guides

* refactor(helpers): rename script types to chat

* docs: update ai-sdk intro

* docs: add changeset

* ci(release): use Node 24 for npm publishing (#11169)

* chore(release): version packages (#11170)

Co-authored-by: shadcn <m@shadcn.com>

* feat(aria): add aria component base

* fix(v4): resolve typecheck errors

* fix(aria): compile render prop styles

* fix: style

* docs(aria): promote example sections

* fix(aria): address registry review findings

* chore(aria): refresh registry metadata and docs

* fix(aria): align component conventions

* chore(v4): stop tracking aria generated styles

* fix(aria): align docs and shared state behavior

* refactor(aria): use native placement and state hooks

* refactor(aria): scope component state selectors

* fix(aria): scan generated aria styles

* style(aria): sort classes after variant cleanup

* fix(aria): remove unused command dependency

* fix(aria): isolate base-specific style hooks

* feat(aria): use Base UI drawer

* fix(aria): open breadcrumb dropdown menu

Use the react-aria Button as the MenuTrigger child so the press
responder wires up. A plain native button never received it, so the
dropdown never opened.

* fix

* fix(aria): address release blockers

* fix(aria): open tooltips without delay

* fix(aria): restore sidebar submenu styles

* fix(aria): use native state selectors

* fix(aria): wire tooltip triggers

* chore(aria): prepare release metadata

* docs(aria): announce React Aria support

---------

Co-authored-by: Devon Govett <devongovett@gmail.com>
Co-authored-by: Anish <39819327+anishlp7@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-07-17 19:20:21 +04:00
shadcn 0ec4a7ffbf feat: @shadcn/helpers (#11168)
* feat(helpers): add scripted chat adapters

* build(helpers): add release plumbing

* docs(helpers): refine ai-sdk and tanstack-ai guides

* refactor(helpers): rename script types to chat

* docs: update ai-sdk intro

* docs: add changeset
2026-07-14 20:08:51 +04:00
shadcn d0fae52822 fix 2026-07-03 16:27:55 +04:00
github-actions[bot] 2ef6388ca1 chore(release): version packages (#11083)
* chore(release): version packages

* fix

---------

Co-authored-by: shadcn <m@shadcn.com>
2026-07-03 16:20:38 +04:00
shadcn dbf9c5ebc4 chore(deps): bump base-ui to 1.6.0 (#11059) 2026-06-30 10:33:51 +04:00
github-actions[bot] 8055a12f46 chore(release): version packages (#11024)
Co-authored-by: shadcn <m@shadcn.com>
2026-06-26 21:25:48 +04:00
shadcn 18fcf0f766 feat: @shadcn/react (#11022)
* feat(@shadcn/react): add message-scroller package

Add the @shadcn/react headless primitives package with MessageScroller
scroll anchoring, streaming follow, history prepend, and jump-to-message
behavior. Includes geometry helpers, use-render utility, and unit,
browser, and perf tests.

* feat(registry): add chat components

Add MessageScroller, Message, Bubble, Attachment, and Marker registry
sources for base and radix, style variants, preview-03 chat blocks,
and registry index wiring.

* feat(v4): integrate chat components into docs site

Wire chat components into the v4 app with docs routes, example preview
pages, message part renderers, markdown support, registry build updates,
and supporting lib utilities.

* feat(examples): add chat component demos

Add base and radix example demos for MessageScroller, Message, Bubble,
Attachment, Marker, scroll-fade, and shimmer.

* docs: add chat component documentation

Add component and utility docs for the chat component set, update docs
navigation, and add the June 2026 chat components changelog entry.

* chore: regenerate registry JSON output

Rebuild public registry artifacts for all style variants with the new
chat components.

* chore(release): add @shadcn/react publish and CI pipeline

Add Changesets prerelease workflow, browser test job, RELEASING docs,
and monorepo wiring for publishing @shadcn/react independently from
the shadcn CLI.

* docs: fix display of component preview on mobile

* fix

* fix

* docs: add message scroller docs

* style: format

* fix
2026-06-26 21:19:31 +04:00
github-actions[bot] c520191cd4 chore(release): version packages (#10949)
Co-authored-by: shadcn <m@shadcn.com>
2026-06-26 11:15:28 +04:00
shadcn 8692cd4cc1 fix: hookform zod errors (#11007) 2026-06-24 21:30:16 +04:00
shadcn e3f98d49e4 chore: update turborepo (#11005) 2026-06-24 20:30:09 +04:00
shadcn 549852bffc chore: update fumadocs (#11004) 2026-06-24 17:52:21 +04:00
dependabot[bot] e03df56fcf chore(deps): bump vitest from 2.1.9 to 3.2.6 (#10898)
Bumps [vitest](https://github.com/vitest-dev/vitest/tree/HEAD/packages/vitest) from 2.1.9 to 3.2.6.
- [Release notes](https://github.com/vitest-dev/vitest/releases)
- [Changelog](https://github.com/vitest-dev/vitest/blob/main/docs/releases.md)
- [Commits](https://github.com/vitest-dev/vitest/commits/v3.2.6/packages/vitest)

---
updated-dependencies:
- dependency-name: vitest
  dependency-version: 3.2.6
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: shadcn <m@shadcn.com>
2026-06-18 22:22:32 +04:00
shadcn 9197676b3d chore: replace node-fetch (#10905)
* chore: replace node-fetch

* fix(shadcn): surface network failure reason from fetch errors

* fix(shadcn): avoid Error.cause typings for older TS lib targets

* fix(shadcn): avoid stricter undici engine

* fix(shadcn): use undici 7 proxy agent
2026-06-15 14:08:41 +04:00
shadcn 1994caba0b perf: dev server (#10904)
* perf: dev server

* fix
2026-06-10 11:10:01 +04:00
github-actions[bot] 3f2ff18157 chore(release): version packages (#10873)
Co-authored-by: shadcn <m@shadcn.com>
2026-06-08 17:48:39 +04:00
Harshitha Sompura 7dfd933102 fix(cli): move msw to devDependencies (#10851)
* fix: move msw to devDependencies

* chore: update lockfile after moving msw to devDependencies

* chore: add changeset for msw devDependency fix

---------

Co-authored-by: shadcn <m@shadcn.com>
2026-06-05 21:01:37 +04:00
github-actions[bot] adac7cae1f chore(release): version packages (#10845)
Co-authored-by: shadcn <m@shadcn.com>
2026-06-01 14:58:03 +04:00
github-actions[bot] 460ad60d84 chore(release): version packages (#10835)
Co-authored-by: shadcn <m@shadcn.com>
2026-05-31 16:18:29 +04:00
github-actions[bot] 2baa86081d chore(release): version packages (#10791)
Co-authored-by: shadcn <m@shadcn.com>
2026-05-29 12:10:45 +04:00
github-actions[bot] e2fa0101e3 chore(release): version packages (#10789)
Co-authored-by: shadcn <m@shadcn.com>
2026-05-27 21:09:59 +04:00
shadcn 64afddefd9 chore(v4): update base-ui to 1.5.0 (#10783) 2026-05-27 15:27:43 +04:00
github-actions[bot] c824d6b78d chore(release): version packages (#10780)
Co-authored-by: shadcn <m@shadcn.com>
2026-05-26 22:58:26 +04:00
shadcn 4a4dc8eb0f Update pnpm release age settings (#10719)
* chore: update pnpm release age settings

* fix: declare pnpm 10 tool dependencies

* fix: align template pnpm versions
2026-05-22 20:10:00 +04:00
github-actions[bot] 072c27fcd5 chore(release): version packages (#10568)
Co-authored-by: shadcn <m@shadcn.com>
2026-05-21 17:57:06 +04:00
Fabian Hiller 7e4dac7f31 feat: add Formisch (form library) examples to docs (#10342)
* feat: add Formisch (form library) examples to docs

* docs: update Formisch docs with additional form methods and examples

* chore: update valibot dependency to version 1.4.0

* style(docs): format formisch imports

---------

Co-authored-by: shadcn <m@shadcn.com>
2026-05-20 15:18:41 +04:00
shadcn fc1ca40af4 fix(v4): revert next dependency bump (#10584) 2026-05-08 10:28:15 +04:00
shadcn 031387a471 deps: update next (#10581)
* deps: update next

* deps
2026-05-08 05:26:02 +04:00
github-actions[bot] 1137b24a97 chore(release): version packages (#10556)
Co-authored-by: shadcn <m@shadcn.com>
2026-05-05 16:56:17 +04:00
github-actions[bot] c2e1a5793f chore(release): version packages (#10517)
Co-authored-by: shadcn <m@shadcn.com>
2026-04-28 20:45:27 +04:00
github-actions[bot] 0126502236 chore(release): version packages (#10489)
Co-authored-by: shadcn <m@shadcn.com>
2026-04-25 14:39:56 +04:00
github-actions[bot] 7cbc7e8d53 chore(release): version packages 2026-04-21 12:26:54 +00:00