Skip to content

Releases: scriptex/react-accordion-ts

Updated metadata

20 Sep 06:10
709ea77
Compare
Choose a tag to compare

This release does not introduce any code changes. it updates only the README and the package.json files' metadata and details.

Add "open" props

01 Sep 09:12
Compare
Choose a tag to compare

In this release:

  1. The <Accordion /> component receives a new open prop (number - a zero based index) which is optional and specifies which item should be open on initial load.
  2. The <Panel /> component receives a new open prop (boolean) which is optional and specifies if the <Panel /> should be open on initial load.
  3. The already deprecated findDomNode from react-dom is no longer used. Instead the useRef API is used.
  4. The code linter is switched to ESLint from the already deprecated TSLint.
  5. The documentation was updated to reflect all props, their types and defaults.
  6. A better demo is available and can be found on a specific domain. Check the repository for more info.
  7. Some (probably( BREAKING CHANGES have been introduced:
  • the AccordionItem interface was renamed to AccordionPanel
  • there are no default exports anymore. One needs to import using import { Panel, Accordion } from 'react-accordion-ts'
  • the transition duration in the (optional) stylesheet has been reduced down to 300 milliseconds from 350

Updated dependencies

26 Aug 07:08
25aad74
Compare
Choose a tag to compare

This release updates all dependencies to their latest version.
The react and react-dom peer dependencies had their version ranges adjusted.

Fix "Invalid hook call" issue

15 Jan 14:45
Compare
Choose a tag to compare

This release fixes the way React is being used as a dependency: React and React DOM are no longer direct dependencies of this package, they are moved to devDependencies and peerDependencies. Also, the versions of React and React DOM have been unpinned.
This release fixes #388 .

Hooks API

06 Oct 14:25
cad3068
Compare
Choose a tag to compare

This release implements the Hooks API introduced in React v16.
The size of the module is smaller and it's speed is optimized.
The documentation has been updated.
A demo application (example usage) has been added.

New Year!

03 Jan 07:47
Compare
Choose a tag to compare

This release updates all dependencies

Update React, React DOM

30 Nov 07:56
Compare
Choose a tag to compare

This release updates dependencies and fixes some development issue with types.

First stable

09 Oct 10:48
Compare
Choose a tag to compare
0.1.0

Update npmignore