diff --git a/CHANGELOG.md b/CHANGELOG.md index fe56f31..004bdfe 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,13 @@ All notable changes to `@neynar/ui` will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [1.0.5] - 2025-01-13 + +### Fixed +- **Button**: Added `"use client"` directive to fix crash when Button is used in Server Components that call `router.refresh()`. Base UI primitives require client-side rendering. + +--- + ## [1.0.4] - 2025-01-11 ### Fixed diff --git a/package.json b/package.json index 109c227..35cbb41 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@neynar/ui", - "version": "1.0.4", + "version": "1.0.5", "license": "MIT", "author": "Neynar Inc.", "description": "AI-first React component library for coding agents. LLM-optimized docs, sensible defaults, zero config. Built on shadcn patterns, Base UI, and Tailwind CSS v4.", diff --git a/src/components/ui/button.tsx b/src/components/ui/button.tsx index 01313f9..08d81f6 100644 --- a/src/components/ui/button.tsx +++ b/src/components/ui/button.tsx @@ -1,3 +1,5 @@ +"use client"; + import { Button as ButtonPrimitive } from "@base-ui/react/button"; import { cva, type VariantProps } from "class-variance-authority";