github chakra-ui/chakra-ui @chakra-ui/react-env@1.1.0

latest releases: @chakra-ui/react@3.1.1, @chakra-ui/cli@3.1.1, @chakra-ui/react@3.1.0...
3 years ago

Minor Changes

  • #4991
    6095eaf9a
    Thanks @segunadebayo! - Update build system
    we use from a custom babel cli setup to
    preconstruct.

    The previous build system transpiles the code in src directory to dist/esm
    and dist/cjs keeping the same file structure. The new build system merges
    all files in src and transpiles to a single esm and cjs file.

    Potential Breaking Change: The side effect of this is that, if you
    imported any function, component or hook using the undocumented approach
    like
    import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click",
    you'll notice that the this doesn't work anymore.

    Here's how to resolve it:

    // Won't work 🎇
    import { useOutsideClick } from "@chakra-ui/hooks/dist/use-outside-click"
    
    // Works ✅
    import { useOutsideClick } from "@chakra-ui/hooks"

    If this affected your project, we recommend that you import hooks, functions
    or components the way it's shown in the documentation. This will help keep
    your project future-proof.

Patch Changes

  • Updated dependencies
    [6095eaf9a]:
    • @chakra-ui/utils@1.9.0

Don't miss a new chakra-ui release

NewReleases is sending notifications on new releases.