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

Version Packages #125

Merged
merged 1 commit into from
Jan 16, 2023
Merged

Version Packages #125

merged 1 commit into from
Jan 16, 2023

Conversation

github-actions[bot]
Copy link
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@collapsed/core@4.0.0

Major Changes

@collapsed/react@4.0.0

Major Changes

Patch Changes

  • Updated dependencies [1ee93e8]
    • @collapsed/core@4.0.0

2.0.0

Complete rewrite using React hooks!

  • Ends support for React versions < 16.8.x
  • Library now exports a custom hook in lieu of a render prop component
  • Adds support for unmounting the contents of the Collapse element when closed
import React from 'react'
import useCollapse from 'react-collapsed'

function Demo() {
  const { getCollapseProps, getToggleProps, isOpen } = useCollapse()

  return (
    <>
      <button {...getToggleProps()}>{isOpen ? 'Collapse' : 'Expand'}</button>
      <section {...getCollapseProps()}>Collapsed content 🙈</section>
    </>
  )
}

1.0.0

Bumped to full release! :)

  • duration, easing, and delay now support taking an object with in and out keys to configure differing in-and-out transitions

0.2.0

Breaking Changes

  • getCollapsibleProps => getCollapseProps. Renamed since it's easier to spell 😅

Other

  • Slew of Flow bug fixes
  • Improved documentation

0.1.3

  • ESLINT wasn't working properly - fixed this
  • Added files key to package.json to improve NPM load

example@1.0.1

Patch Changes

  • Updated dependencies [1ee93e8]
    • @collapsed/react@4.0.0

@roginfarrer roginfarrer merged commit 81d9bb3 into main Jan 16, 2023
@roginfarrer roginfarrer deleted the changeset-release/main branch January 16, 2023 01:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant