[Snyk] Upgrade flowbite-react from 0.4.11 to 0.10.2 #813
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Snyk has created this PR to upgrade flowbite-react from 0.4.11 to 0.10.2.
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.
The recommended version is 30 versions ahead of your current version.
The recommended version was released on a month ago.
Release notes
Package name: flowbite-react
Patch Changes
#1190
25bb353
Thanks @ ddiasfront! - ### Datepicker Component UpdatesThe Datepicker has been enhanced with several improvements:
value
anddefaultValue
props, enabling programmatic date updates without manual clicks.useMemo
anduseEffect
.null
values.Files Updated:
apps/web/content/docs/components/datepicker.mdx
: Added controlled usage section.Datepicker.spec.tsx
: Added unit tests.Datepicker.stories.tsx
: Enhanced story variants.Datepicker.tsx
: ExpandedDatepickerProps
.DatepickerContext.tsx
: AdjustedselectedDate
type.Decades.tsx
,Months.tsx
,Years.tsx
: Updated logic to check forselectedDate
.#1484
38913e5
Thanks @ KRTirtho! - fix: autocomplete for string enums with dynamic value not workingWhat's Changed
New Contributors
Full Changelog: https://github.com/themesberg/flowbite-react/compare/create-flowbite-react@1.0.8...flowbite-react@0.10.2
Patch Changes
a5d008e
Thanks @ SutuSebastian! - addAdonisJS
integration guideMinor Changes
26401bc
Thanks @ dhavalveera! - feat(components): add "Clipboard"Patch Changes
#1405
c8dba76
Thanks @ dhavalveera! - Renamed theTabs
attribute fromstyle
tovariant
to allow the use of thestyle
attribute, which was previously blocked.#1430
83a055a
Thanks @ SutuSebastian! - fix(ui): timeline - content - separateTimelineContent
base styles from horizontal/vertical styles#1428
b963b2c
Thanks @ SutuSebastian! - fix(ui): Toggle Switch - styles#1371
92cec6f
Thanks @ SutuSebastian! - Mega Menu - export all entities#1423
4350ffb
Thanks @ SutuSebastian! - update packages#1346
92f41fe
Thanks @ dhavalveera! - feat: addHR
componentWhat's Changed
examples
page by @ SutuSebastian in #1376HR
component by @ dhavalveera in #1346New Contributors
Full Changelog: https://github.com/themesberg/flowbite-react/compare/flowbite-react@0.9.0...flowbite-react@0.10.0
Introducing Drawer and Mega menu
Summary
Say hello to Drawer and Mega menu!
These long-awaited components from the vanilla Flowbite library have finally made their way to Flowbite React. Everything you need to get started - including full theme support, and the full set of examples to match the main Flowbite library - are ready at your fingertips.
Special thank you to @ dhavalveera for your work on Drawer!
Changes
Minor Changes
#1344
bf1bdb0
Thanks @ SutuSebastian! - Rework build process usingrollup
andtsc
Summary
In order to bring more performance to the build process of
flowbite-react
package, we have to consider transpiling the files using other tools rather thantsc
, which is very slow.After evaluating various tools including
tsup
,tshy
, andbun build
, we choserollup
with theesbuild
plugin for transpiling due to its performance and flexibility. We continue to usetsc
solely for generating*.d.ts
declaration files.Changes
rollup
+esbuild
for transpiling filescjs
directory now have.cjs
extensionesm
directory now have.mjs
extension*.d.ts
) have been moved fromdist/esm
todist/types
lib
todist
content
path as well as theplugin
apps/web
to properly pipe and require the build output ofpackages/ui
in certain script steps such asbuild
anddev
Breaking changes
tailwind.config.js
content
path:old:
"node_modules/flowbite-react/lib/esm/**/*.js"
new:
"node_modules/flowbite-react/dist/esm/**/*.mjs"
- (flowbite.content()
returns it)Before
After
/** @ type {import('tailwindcss').Config} */
module.exports = {
content: [
// ...
flowbite.content(),
],
plugins: [
// ...
flowbite.plugin(),
],
};
Addresses Issues
#1326, #1329, #1343
Patch Changes
8430004
Thanks @ SutuSebastian! - fix package.json types pathPatch Changes
b6ebb31
Thanks @ SutuSebastian! - fix build step, export types and improve DXImportant
Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.
For more information: