Skip to content

Version Packages #1593

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

Merged
merged 1 commit into from
Jul 22, 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
35 changes: 0 additions & 35 deletions .changeset/tricky-planes-shake.md

This file was deleted.

36 changes: 36 additions & 0 deletions packages/ui/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Changelog

## 0.12.0

### Minor Changes

- [#1566](https://github.com/themesberg/flowbite-react/pull/1566) [`7b79b18`](https://github.com/themesberg/flowbite-react/commit/7b79b18e63bc1bf25250186a55c439a534b8a254) Thanks [@SutuSebastian](https://github.com/SutuSebastian)! - # Breaking changes

- removed `flowbite-react patch` CLI command

## Changes

- `flowbite-react/.gitignore`, `flowbite-react/config.json` self manages, regenerates and repairs
- new generated file `init.(jsx|tsx)` in `.flowbite-react/` directory that syncs up values from `config.json` that also are needed in React app runtime (similar to how a React context works)
- synced on CLI commands: `init`, `build`, `dev`, `register`
- If you have custom configuration in `.flowbite-react/config.json` (different `dark`/`prefix`/`version` values), you must render `<ThemeInit />` at the root level of your app to sync runtime with node config values
- notify users to include `<ThemeInit />` at the root level if custom `dark`, `prefix`, or `version` values are detected in the configuration file
- expose `flowbite-react/store` import path
- check if `flowbite-react` is installed when `npx flowbite-react@latest init`
- bump the version to latest if below `0.11.x`
- remove redundant `{ flag: "w" }` in `fs.writeFile`
- update `dark-mode.md` and `prefix.md` documentation to reflect the `<ThemeInit />` changes
- add Tailwind CSS version support in theme mode handling and fix dark theme toggle class in Tailwind CSS v4

## Migration Guide

1. Remove `flowbite-react patch` from your `package.json`

```diff
{
"scripts": {
- "postinstall": "flowbite-react patch"
}
}
```

2. Add `<ThemeInit />` (import from `.flowbite-react/init.(jsx|tsx)`) at the root level of your app if you have custom configuration in `.flowbite-react/config.json` (different `dark`/`prefix`/`version` values).

## 0.11.9

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/ui/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "flowbite-react",
"version": "0.11.9",
"version": "0.12.0",
"description": "Official React components built for Flowbite and Tailwind CSS",
"keywords": [
"design-system",
Expand Down