Skip to content
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

[Snyk] Upgrade flowbite-react from 0.4.11 to 0.10.2 #813

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ajile-in
Copy link
Contributor

@ajile-in ajile-in commented Nov 4, 2024

snyk-top-banner

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
  • 0.10.2 - 2024-10-01

    Patch Changes

    • #1190 25bb353 Thanks @ ddiasfront! - ### Datepicker Component Updates

      The Datepicker has been enhanced with several improvements:

      1. Controlled Inputs: Supports controlled inputs via value and defaultValue props, enabling programmatic date updates without manual clicks.
      2. State Management: Optimized internal state management using useMemo and useEffect.
      3. Documentation: Added sections in documentation for controlled usage and handling null values.
      4. Test Cases: Comprehensive unit tests added for date handling.
      5. Storybook: Improved stories, showcasing different states (controlled/uncontrolled).

      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: Expanded DatepickerProps.
      • DatepickerContext.tsx: Adjusted selectedDate type.
      • Decades.tsx, Months.tsx, Years.tsx: Updated logic to check for selectedDate.
    • #1484 38913e5 Thanks @ KRTirtho! - fix: autocomplete for string enums with dynamic value not working

    What's Changed

    New Contributors

    Full Changelog: https://github.com/themesberg/flowbite-react/compare/create-flowbite-react@1.0.8...flowbite-react@0.10.2

  • 0.10.1 - 2024-06-21

    Patch Changes

  • 0.10.0 - 2024-06-20

    Minor Changes

    Patch Changes

    What's Changed

    New Contributors

    Full Changelog: https://github.com/themesberg/flowbite-react/compare/flowbite-react@0.9.0...flowbite-react@0.10.0

  • 0.9.0 - 2024-04-16

    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

    • added Drawer component
    • added Mega menu component
  • 0.8.0 - 2024-04-04

    Minor Changes

    • #1344 bf1bdb0 Thanks @ SutuSebastian! - Rework build process using rollup and tsc

      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 than tsc, which is very slow.

      After evaluating various tools including tsup, tshy, and bun build, we chose rollup with the esbuild plugin for transpiling due to its performance and flexibility. We continue to use tsc solely for generating *.d.ts declaration files.

      Changes

      • added rollup + esbuild for transpiling files
        • all files in the cjs directory now have .cjs extension
        • all files in the esm directory now have .mjs extension
        • declaration file types (*.d.ts) have been moved from dist/esm to dist/types
      • changed the build output dir from lib to dist
      • created a facade layer for easier management of the content path as well as the plugin
      • fixed turbo repo dependency tree configs in order for apps/web to properly pipe and require the build output of packages/ui in certain script steps such as build and dev

      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

      /** @ type {import('tailwindcss').Config} */
      module.exports = {
        content: [
          // ...
          "node_modules/flowbite-react/lib/esm/**/*.js",
        ],
        plugins: [
          // ...
          require("flowbite/plugin"),
        ],
      };

      After

      const flowbite = require("flowbite-react/tailwind");

      /** @ type {import('tailwindcss').Config} */
      module.exports = {
      content: [
      // ...
      flowbite.content(),
      ],
      plugins: [
      // ...
      flowbite.plugin(),
      ],
      };

      Addresses Issues

      #1326, #1329, #1343

  • 0.7.8 - 2024-04-01

    Patch Changes

  • 0.7.7 - 2024-04-01

    Patch Changes

  • 0.7.6 - 2024-03-29
  • 0.7.5 - 2024-03-20
  • 0.7.4 - 2024-03-20
  • 0.7.3 - 2024-03-12
  • 0.7.2 - 2023-12-12
  • 0.7.1 - 2023-12-12
  • 0.7.1-beta - 2023-09-11
  • 0.7.0 - 2023-11-24
  • 0.7.0-beta.6 - 2023-11-26
  • 0.7.0-beta.5 - 2023-11-07
  • 0.7.0-beta.4 - 2023-10-20
  • 0.7.0-beta.3 - 2023-10-11
  • 0.7.0-beta.2 - 2023-10-10
  • 0.7.0-beta.1 - 2023-09-28
  • 0.7.0-beta - 2023-09-11
  • 0.6.4 - 2023-10-03
  • 0.6.3 - 2023-09-30
  • 0.6.2 - 2023-09-29
  • 0.6.1 - 2023-09-23
  • 0.6.1-beta - 2023-09-09
  • 0.6.0 - 2023-09-09
  • 0.6.0-beta - 2023-09-09
  • 0.5.0 - 2023-07-21
  • 0.4.11 - 2023-07-10
from flowbite-react GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

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:

Snyk has created this PR to upgrade flowbite-react from 0.4.11 to 0.10.2.

See this package in npm:
flowbite-react

See this project in Snyk:
https://app.snyk.io/org/ajile-in/project/e6665482-f51c-4382-b3d1-e7fe6e938991?utm_source=github&utm_medium=referral&page=upgrade-pr
Copy link

sonarqubecloud bot commented Nov 4, 2024

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants