Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-accessible-accordion

Package Overview
Dependencies
Maintainers
4
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-accessible-accordion - npm Package Compare versions

Comparing version 2.3.0 to 2.3.1

webpack.config.js

100

CHANGELOG.md

@@ -6,2 +6,22 @@ # Changelog

## Next
### Fixed
* Fix rollup config after version bump - https://gist.github.com/Rich-Harris/d472c50732dab03efeb37472b08a3f32
## [[v2.3.1]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.3.1)
### Fixed
* Add `dist` folder to list of Flow ignores, so Flow doesn’t error after a build.
* Issue with babel helpers. Just reverted commit 6f9f2c324a6fad4a35a84307241f4f710407f242 for now.
### Changed
* Removed a couple of old npm scripts from the days before we introduced rollup to the build
pipeline.
* Upgraded a bunch of devDependencies, including Webpack which required a bit of a config refactor.
## [[v2.3.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.3.0)

@@ -11,4 +31,4 @@

* Refactored to use `unstated` for state-management instead of `mobx` + `mobx-react`, cutting the
size of the bundle by approximately 60% 🎉.
* Refactored to use `unstated` for state-management instead of `mobx` + `mobx-react`, cutting the
size of the bundle by approximately 60% 🎉.

@@ -19,3 +39,3 @@ ## [[v2.2.1]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.2.1)

* Fixes mixed up filenames in the README
* Fixes mixed up filenames in the README

@@ -26,5 +46,5 @@ ## [[v2.2.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.2.0)

* Demo styles added to the bundle as two optional files:
* `minimal-example.css`: 'Minimal' theme - hide/show the AccordionBody component
* `fancy-example.css`: 'Fancy' theme - boilerplate styles for all components, as seen on our demo
* Demo styles added to the bundle as two optional files:
* `minimal-example.css`: 'Minimal' theme - hide/show the AccordionBody component
* `fancy-example.css`: 'Fancy' theme - boilerplate styles for all components, as seen on our demo

@@ -35,11 +55,11 @@ ## [[v2.1.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.1.0)

* Publish flow types.
* Publish flow types.
### Changed
* Update all React components to accept arbitrary HTMLDivElement props (eg. 'lang', 'role' etc).
* Upgrade all dev-dependencies except the eslint configs.
* Replace snapshot tests with explicit assertions in AccordionItemBody and AccordionItemTitle.
* Add specific assertions to tests in accordionStore.
* Minor syntax change in AccordionItemBody
* Update all React components to accept arbitrary HTMLDivElement props (eg. 'lang', 'role' etc).
* Upgrade all dev-dependencies except the eslint configs.
* Replace snapshot tests with explicit assertions in AccordionItemBody and AccordionItemTitle.
* Add specific assertions to tests in accordionStore.
* Minor syntax change in AccordionItemBody

@@ -54,16 +74,16 @@ ## [[v2.0.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v2.0.0)

* Exports `resetNextId` (https://github.com/springload/react-accessible-accordion/issues/41).
* Exports `resetNextId` (https://github.com/springload/react-accessible-accordion/issues/41).
### Fixed
* Defect where controlled components' props were overridden by React.Children.map (https://github.com/springload/react-accessible-accordion/issues/33).
* Defect where accordion crashed with unexpected `children` types (https://github.com/springload/react-accessible-accordion/issues/45).
* Defect where React Accessible Accordion's components could not be extended.
* Defect where the `children` of `Accordion` or `AccordionItem` could not be arbitrary.
* Defect where `AccordionItem` had to be a child of `Accordion` (as opposed to to an arbitrary-level descendant).
* Defect where `AccordionItemBody` and `AccordionItemTitle` had to be children of `AccordionItem` (as opposed to arbitrary-level descendants).
* Defect where controlled components' props were overridden by React.Children.map (https://github.com/springload/react-accessible-accordion/issues/33).
* Defect where accordion crashed with unexpected `children` types (https://github.com/springload/react-accessible-accordion/issues/45).
* Defect where React Accessible Accordion's components could not be extended.
* Defect where the `children` of `Accordion` or `AccordionItem` could not be arbitrary.
* Defect where `AccordionItem` had to be a child of `Accordion` (as opposed to to an arbitrary-level descendant).
* Defect where `AccordionItemBody` and `AccordionItemTitle` had to be children of `AccordionItem` (as opposed to arbitrary-level descendants).
### Removed:
* 🚨 Breaking change 🚨 `activeItems` property is no longer supported.
* 🚨 Breaking change 🚨 `activeItems` property is no longer supported.

@@ -93,8 +113,8 @@ Control at the `Accordion` level (via the `activeItems` prop) and `AccordionItem` level (via the `expanded` prop) fought against one another, and choosing which control mechanism to give preference to would have been an arbitrary decision - and whichever way we went, we would have had test cases which demonstrated unusual/unpredictable behaviour. The `activeItems` mechanism was the obvious one to remove - it was arguably the "less React-y way", and we considered it more of a convenience than a feature. Crucially though, it fought too hard against the new architecture of the library, and keeping it would have prevented us enabling lots of other new features or resolving some of the issues that our users had raised.

* Renders predictable `id` attributes.(https://github.com/springload/react-accessible-accordion/pull/29)
* Renders predictable `id` attributes.(https://github.com/springload/react-accessible-accordion/pull/29)
## [[v1.0.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v1.0.0)
* Replace prop-types implementation with flow-types (https://github.com/springload/react-accessible-accordion/pull/22)
Thanks @ryami333 for the great contribution
* Replace prop-types implementation with flow-types (https://github.com/springload/react-accessible-accordion/pull/22)
Thanks @ryami333 for the great contribution

@@ -105,33 +125,33 @@ NB: This version is backward compatible. It's just bumping to 1.0 to represent maturity rather than API changes.

* Improved accessibility support (Following https://github.com/springload/react-accessible-accordion/pull/19)
* Adds possibility to programmatically open items(https://github.com/springload/react-accessible-accordion/pull/13)
Thanks @epotockiy for the contribution
* Improved accessibility status on demo page
* Documentation about accessibility for this component
* Improved accessibility support (Following https://github.com/springload/react-accessible-accordion/pull/19)
* Adds possibility to programmatically open items(https://github.com/springload/react-accessible-accordion/pull/13)
Thanks @epotockiy for the contribution
* Improved accessibility status on demo page
* Documentation about accessibility for this component
## [[v0.5.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.5.0)
* Possibility to add a CSS class to hidden blocks (Following https://github.com/springload/react-accessible-accordion/pull/16)
* Githooks are executable (https://github.com/springload/react-accessible-accordion/pull/15)
* Bump to Node 8 / NPM 5
* Possibility to add a CSS class to hidden blocks (Following https://github.com/springload/react-accessible-accordion/pull/16)
* Githooks are executable (https://github.com/springload/react-accessible-accordion/pull/15)
* Bump to Node 8 / NPM 5
## [[v0.4.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.4.0)
* Supports React 15.5+
* Supports React 15.5+
## [[v0.3.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.3.0)
* No warnings when you have only one item in the accordion
* No warnings when you have only one item in the accordion
## [[v0.2.0]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.2.0)
* Possibility to have extra blocks in AccordionItem
* Possibility to have extra blocks in AccordionItem
## [[v0.1.2]](https://github.com/springload/react-accessible-accordion/releases/tag/v0.1.2)
* Accordion mode / Collapse mode
* Possibility to pre expand items
* 100% coverage with unit tests
* Possibility to customise CSS.
* Clean CSS for the demo/github page.
* Accordion mode / Collapse mode
* Possibility to pre expand items
* 100% coverage with unit tests
* Possibility to customise CSS.
* Clean CSS for the demo/github page.

@@ -142,3 +162,3 @@ ## [[vx.y.z]](https://github.com/springload/Quicktube.js/releases/tag/x.y.z) Template from http://keepachangelog.com/

* Something was added to the API / a new feature was introduced.
* Something was added to the API / a new feature was introduced.

@@ -145,0 +165,0 @@ ### Changed

36

package.json
{
"name": "react-accessible-accordion",
"version": "2.3.0",
"version": "2.3.1",
"description": "Accessible Accordion component for React",

@@ -14,4 +14,2 @@ "main": "dist/umd/index.js",

"lint": "eslint .",
"js": "babel -d dist src",
"js:watch": "npm run js -- --watch",
"build:css": "cp src/css/*.css dist",

@@ -23,4 +21,4 @@ "build:clean": "rm -rf dist/*",

"start": "npm run js:watch",
"start-demo": "webpack-dev-server --config ./webpack/webpack.config.demo.js",
"pages": "rm -rf pages && cp -R demo pages && webpack --config=./webpack/webpack.config.pages.js",
"start-demo": "webpack-dev-server --mode=development",
"pages": "rm -rf pages && webpack --mode=production --progress",
"deploy": "npm run pages && ./bin/deploy.sh",

@@ -95,4 +93,4 @@ "prettier": "prettier **/*.js --write",

"babel-eslint": "^8.2.2",
"babel-loader": "^7.1.2",
"babel-plugin-external-helpers": "^6.22.0",
"babel-jest": "^22.4.3",
"babel-loader": "^7.1.4",
"babel-polyfill": "^6.26.0",

@@ -103,6 +101,6 @@ "babel-preset-es2015": "^6.24.1",

"coveralls": "^3.0.0",
"css-loader": "^0.28.9",
"css-loader": "^0.28.11",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint": "^4.18.1",
"eslint": "^4.19.1",
"eslint-config-airbnb": "^15.1.0",

@@ -115,6 +113,7 @@ "eslint-config-prettier": "^2.9.0",

"eslint-plugin-react": "^7.4.0",
"flow-bin": "^0.66.0",
"flow-bin": "^0.69.0",
"flow-copy-source": "^1.3.0",
"jest": "^22.4.0",
"prettier": "^1.10.2",
"html-webpack-plugin": "^3.2.0",
"jest": "^22.4.3",
"prettier": "^1.12.0",
"raf": "^3.4.0",

@@ -124,11 +123,12 @@ "react": "^16.2.0",

"react-test-renderer": "^16.2.0",
"rollup": "^0.56.2",
"rollup": "^0.57.1",
"rollup-plugin-babel": "^3.0.3",
"rollup-plugin-commonjs": "^8.3.0",
"rollup-plugin-commonjs": "^9.1.0",
"rollup-plugin-eslint": "^4.0.0",
"rollup-plugin-node-resolve": "^3.0.3",
"rollup-plugin-node-resolve": "^3.3.0",
"rollup-plugin-replace": "^2.0.0",
"style-loader": "^0.20.2",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1"
"style-loader": "^0.20.3",
"webpack": "^4.5.0",
"webpack-cli": "^2.0.14",
"webpack-dev-server": "^3.1.3"
},

@@ -135,0 +135,0 @@ "dependencies": {

@@ -13,3 +13,3 @@ import resolve from 'rollup-plugin-node-resolve';

output: [
{ file: pkg.main, format: 'umd' },
{ file: pkg.main, format: 'umd', name: 'reactAccessibleAccordion' },
{ file: pkg['jsnext:main'], format: 'es' },

@@ -25,6 +25,3 @@ ],

eslint(),
babel({
plugins: ['external-helpers'],
externalHelpers: true,
}),
babel(),
commonjs(),

@@ -31,0 +28,0 @@ replace({

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc