Releases: themesberg/flowbite-react
[email protected]
Patch Changes
- #1624
e2b007fThanks @SutuSebastian! - fix(wrapDefaultExport): handle complex multiline exports
[email protected]
Patch Changes
- #1621
c02a977Thanks @SutuSebastian! - fix: Error: spawn npm ENOENT
[email protected]
Patch Changes
- #1615
50ae2eeThanks @SutuSebastian! - fix(ui/cli/plugins):setup-plugin-bunalso detectBun.build
[email protected]
Patch Changes
-
#1612
941a075Thanks @SutuSebastian! - Fixnextjsplugin to work on all environmentsChanges
- fix(ui):
nextjsplugin to run properly onNODE_ENVenvironments:production,developmentandtest - log file writes in
dev
Breaking changes
withFlowbiteReactnow always returns async configuration (see: Async Configuration) so make sure to wrap any other HOC (higher-order-functions) such aswithContentlayerbecause most of them do not forward pass async config arguments (eg:phase, options)// ❌ not working export default withContentlayer(withFlowbiteReact(nextConfig)); // ✅ working export default withFlowbiteReact(withContentlayer(nextConfig));
- fix(ui):
[email protected]
Patch Changes
- #1608
e1b5bb1Thanks @SutuSebastian! - fix: (node:50743) [DEP0190] DeprecationWarning
[email protected]
Patch Changes
-
#1607
a89a098Thanks @SutuSebastian! - fix:Error: Cannot find module 'tailwindcss/plugin' -
#1605
262cde0Thanks @SutuSebastian! - Search for<ThemeInit />in the project and warn if it's not found instead of warning all the timeChanges
- during commands
buildanddevcheck files content for custom configuration and display a warning if<ThemeInit />is not found - switch tests in
src/cliandsrc/helpersfromvitest->bun:test
- during commands
[email protected]
Patch Changes
-
#1600
12d3290Thanks @SutuSebastian! - fix(ui/cli/setup-init): nextjs warningChanges
- rename
config->CONFIGexport in.flowbite-react/init.(jsx|tsx)
- rename
[email protected]
Patch Changes
-
#1596
ab26436Thanks @SutuSebastian! - refactor(setup-init): relax checks on React imports due to IDE formatters removing it if not necessary- filter out
import React from "react"from the AST when parsing current and new content
- filter out
[email protected]
Patch Changes
-
#1594
9017065Thanks @SutuSebastian! - fix(compareNodes): support:- different quote styles - with and without semicolons - trailing commas in objects and arrays- add tests
[email protected]
Minor Changes
-
#1566
7b79b18Thanks @SutuSebastian! - # Breaking changes- removed
flowbite-react patchCLI command
Changes
flowbite-react/.gitignore,flowbite-react/config.jsonself manages, regenerates and repairs- new generated file
init.(jsx|tsx)in.flowbite-react/directory that syncs up values fromconfig.jsonthat also are needed in React app runtime (similar to how a React context works)- synced on CLI commands:
init,build,dev,register
- synced on CLI commands:
- If you have custom configuration in
.flowbite-react/config.json(differentdark/prefix/versionvalues), 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 customdark,prefix, orversionvalues are detected in the configuration file
- notify users to include
- expose
flowbite-react/storeimport path - check if
flowbite-reactis installed whennpx flowbite-react@latest init- bump the version to latest if below
0.11.x
- bump the version to latest if below
- remove redundant
{ flag: "w" }infs.writeFile - update
dark-mode.mdandprefix.mddocumentation 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
-
Remove
flowbite-react patchfrom yourpackage.json{ "scripts": { - "postinstall": "flowbite-react patch" } } -
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(differentdark/prefix/versionvalues).
- removed