Skip to content

Commit 29496c4

Browse files
Version Packages (#1593)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 7b79b18 commit 29496c4

File tree

3 files changed

+37
-36
lines changed

3 files changed

+37
-36
lines changed

.changeset/tricky-planes-shake.md

Lines changed: 0 additions & 35 deletions
This file was deleted.

packages/ui/CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## 0.12.0
4+
5+
### Minor Changes
6+
7+
- [#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
8+
9+
- removed `flowbite-react patch` CLI command
10+
11+
## Changes
12+
13+
- `flowbite-react/.gitignore`, `flowbite-react/config.json` self manages, regenerates and repairs
14+
- 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)
15+
- synced on CLI commands: `init`, `build`, `dev`, `register`
16+
- 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
17+
- notify users to include `<ThemeInit />` at the root level if custom `dark`, `prefix`, or `version` values are detected in the configuration file
18+
- expose `flowbite-react/store` import path
19+
- check if `flowbite-react` is installed when `npx flowbite-react@latest init`
20+
- bump the version to latest if below `0.11.x`
21+
- remove redundant `{ flag: "w" }` in `fs.writeFile`
22+
- update `dark-mode.md` and `prefix.md` documentation to reflect the `<ThemeInit />` changes
23+
- add Tailwind CSS version support in theme mode handling and fix dark theme toggle class in Tailwind CSS v4
24+
25+
## Migration Guide
26+
27+
1. Remove `flowbite-react patch` from your `package.json`
28+
29+
```diff
30+
{
31+
"scripts": {
32+
- "postinstall": "flowbite-react patch"
33+
}
34+
}
35+
```
36+
37+
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).
38+
339
## 0.11.9
440

541
### Patch Changes

packages/ui/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "flowbite-react",
3-
"version": "0.11.9",
3+
"version": "0.12.0",
44
"description": "Official React components built for Flowbite and Tailwind CSS",
55
"keywords": [
66
"design-system",

0 commit comments

Comments
 (0)