react-sortable-hoc
Advanced tools
Comparing version 1.3.1 to 1.4.0
@@ -5,13 +5,13 @@ # Change Log | ||
<a name="1.3.1"></a> | ||
<a name="1.4.0"></a> | ||
## [1.3.1](https://github.com/clauderic/react-sortable-hoc/compare/v1.3.0...v1.3.1) (2019-01-09) | ||
# [1.4.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.3.0...v1.4.0) (2019-01-10) | ||
### Bug Fixes | ||
- Fix CommonJS and UMD builds, `babel-plugin-transform-async-to-promises` was injecting non-transpiled ES6 into the final bundle (`const`) ([#474](https://github.com/clauderic/react-sortable-hoc/issues/474)) | ||
- Fix CommonJS and UMD builds by using Rollup and Babel to generate the bundles ([#474](https://github.com/clauderic/react-sortable-hoc/issues/474)) | ||
<a name="1.3.0"></a> | ||
## [1.3.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.2.0...v1.3.0) (2019-01-08) | ||
# [1.3.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.2.0...v1.3.0) (2019-01-08) | ||
@@ -24,3 +24,3 @@ ### Bug Fixes | ||
## [1.2.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.1.0...v1.2.0) (2019-01-08) | ||
# [1.2.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.1.0...v1.2.0) (2019-01-08) | ||
@@ -33,3 +33,3 @@ ### Features | ||
## [1.1.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.0.0...v1.1.0) (2019-01-07) | ||
# [1.1.0](https://github.com/clauderic/react-sortable-hoc/compare/v1.0.0...v1.1.0) (2019-01-07) | ||
@@ -42,3 +42,3 @@ ### Features | ||
## [1.0.0](https://github.com/clauderic/react-sortable-hoc/compare/v0.8.4...v1.0.0) (2019-01-07) | ||
# [1.0.0](https://github.com/clauderic/react-sortable-hoc/compare/v0.8.4...v1.0.0) (2019-01-07) | ||
@@ -49,11 +49,11 @@ ### BREAKING CHANGES | ||
## 0.8.4 | ||
# 0.8.4 | ||
- Fix a bug when you use SortableHandle and distance prop [#447](https://github.com/clauderic/react-sortable-hoc/pull/447) | ||
## 0.8.3 | ||
# 0.8.3 | ||
- Fix: TouchEvent is undefined in certain browsers, such as Safari [#382](https://github.com/clauderic/react-sortable-hoc/issues/382) | ||
## 0.8.1 | ||
# 0.8.1 | ||
@@ -63,19 +63,19 @@ - Fix scrolling issues on mobile with anchor tag elements [#380](https://github.com/clauderic/react-sortable-hoc/pull/380) | ||
## 0.8.0 | ||
# 0.8.0 | ||
- Allow `getContainer` to return a promise. This is useful when the container node is rendered by a parent component, since `componentDidMount` fires backwards (from child to parent) [#155](https://github.com/clauderic/react-sortable-hoc/pull/155/) | ||
## 0.7.4 | ||
# 0.7.4 | ||
- Fix typo in getLockPixelOffset helper | ||
## 0.7.3 | ||
# 0.7.3 | ||
- Fix issues with distance and pressThreshold props on mobile [#378](https://github.com/clauderic/react-sortable-hoc/pull/378) | ||
## 0.7.2 | ||
# 0.7.2 | ||
- Fix issues with TypeScript type definitions | ||
## 0.7.1 | ||
# 0.7.1 | ||
@@ -85,3 +85,3 @@ - Provide TypeScript type definitions out of the box [#377](https://github.com/clauderic/react-sortable-hoc/pull/377) | ||
## 0.7.0 | ||
# 0.7.0 | ||
@@ -92,39 +92,39 @@ - [Breaking change] Removed lodash dependency. For users wishing to support Internet Explorer, a [polyfill](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/find#Polyfill) for Array.prototype.find will be required | ||
## 0.6.8 | ||
# 0.6.8 | ||
Update react and react-dom peerdependency requirements for React 16+ [#283](https://github.com/clauderic/react-sortable-hoc/pull/283). Thanks [@jnsdls](https://github.com/jnsdls)! | ||
## 0.6.7 | ||
# 0.6.7 | ||
Fixes issues with Jest Snapshot testing trying to serialize the `window` object and running out of memory [#249](https://github.com/clauderic/react-sortable-hoc/issues/249). Thanks [@cameronmcefee](https://github.com/cameronmcefee)! | ||
## 0.6.6 | ||
# 0.6.6 | ||
Fixes an issue with Internet Explorer 11 introduced in `0.6.5` [#248](https://github.com/clauderic/react-sortable-hoc/pull/248). Thanks [@humiston](https://github.com/humiston)! | ||
## 0.6.5 | ||
# 0.6.5 | ||
Fixes the position of the sortable helper when the page is scrolled [#213](https://github.com/clauderic/react-sortable-hoc/pull/213) | ||
## 0.6.4 | ||
# 0.6.4 | ||
Fix: when cloning the element that is being sorted, we no longer update the value of cloned file inputs [#232](https://github.com/clauderic/react-sortable-hoc/pull/232) | ||
## 0.6.3 | ||
# 0.6.3 | ||
Fixes issues caused by a disabled SortableElement being moved when `distance` is set to a value other than `0` | ||
## 0.6.2 | ||
# 0.6.2 | ||
Use `prop-types` package for PropType validation for compatibility with React ^15.5 | ||
## 0.6.1 | ||
# 0.6.1 | ||
Tweak: default to `pointerEvents: none` on sortable helper, this way the underlying view can still be scrolled using the trackpad/mousewheel while sorting [#160](https://github.com/clauderic/react-sortable-hoc/pull/160) | ||
## 0.6.0 | ||
# 0.6.0 | ||
Feature: added `pressThreshold` prop to make `pressDelay` fault tolerant [#159](https://github.com/clauderic/react-sortable-hoc/pull/159) | ||
## 0.5.0 | ||
# 0.5.0 | ||
@@ -134,39 +134,39 @@ Tweak: `button` elements are now included in the default `shouldCancelStart` implementation [#142](https://github.com/clauderic/react-sortable-hoc/pull/142). | ||
## 0.4.12 | ||
# 0.4.12 | ||
Fix: This release fixes some issues caused by the `onSortEnd` callback being invoked before `setState` [#82](https://github.com/clauderic/react-sortable-hoc/issues/82). | ||
## 0.4.10 | ||
# 0.4.10 | ||
Fix: This version fixes issues with nested `SortableContainer` elements using drag handles from also dragging their parent [#112](https://github.com/clauderic/react-sortable-hoc/issues/112), #127(https://github.com/clauderic/react-sortable-hoc/pull/127). Thanks [@DeadHeadRussell](https://github.com/DeadHeadRussell)! | ||
## 0.4.9 | ||
# 0.4.9 | ||
Fix: This release fixes a bug introduced in `0.4.8` caused by calling the `forEach` method directly on a NodeList, which is undefined in a number of browsers [#125](https://github.com/clauderic/react-sortable-hoc/issues/125) | ||
## 0.4.8 | ||
# 0.4.8 | ||
Fix: Added logic to ensure that `select`, `input` and `textarea` fields in `SortableElement` always retain their `value` when the element is cloned (this happens when sorting begins) [#122](https://github.com/clauderic/react-sortable-hoc/issues/122) [#123](https://github.com/clauderic/react-sortable-hoc/pull/123). Thanks [@tomasztomys](https://github.com/tomasztomys)! | ||
## 0.4.7 | ||
# 0.4.7 | ||
Fix: This release fixes a bug in Firefox caused by active anchor tags preventing mousemove events from being fired [#118](https://github.com/clauderic/react-sortable-hoc/issues/118) | ||
## 0.4.5 | ||
# 0.4.5 | ||
Fix: getHelperDimensions height was not being used (Thanks [@SMenigat](https://github.com/SMenigat)!) | ||
## 0.4.4 | ||
# 0.4.4 | ||
Tweak: cherry-picking lodash methods instead of importing the entire bundle (slipped by in a PR, thanks for pointing this out [@arackaf](https://github.com/arackaf)!) | ||
## 0.4.3 | ||
# 0.4.3 | ||
Fixes an edge-case bug in Firefox where window.getComputedStyle() returns null inside an iframe with `display: none` [#106](https://github.com/clauderic/react-sortable-hoc/pull/106). Thanks [@funnel-mark](https://github.com/funnel-mark)! | ||
## 0.4.2 | ||
# 0.4.2 | ||
Fixes an issue when attempting to sort items while rapidly moving the mouse. By setting an immediate timer, we move the cancel event to the tail of the timer queue, and ensure that it is fired after the pressTimer [#80](https://github.com/clauderic/react-sortable-hoc/pull/80). Thanks [@v0lkan](https://github.com/v0lkan)! | ||
## 0.4.0 | ||
# 0.4.0 | ||
@@ -176,15 +176,15 @@ - Fix a timing issue in Chrome caused by setTimeout [#71](https://github.com/clauderic/react-sortable-hoc/pull/71) | ||
## 0.3.0 | ||
# 0.3.0 | ||
Added grid support for elements of equal widths / heights [#4](https://github.com/clauderic/react-sortable-hoc/issues/4) [#86](https://github.com/clauderic/react-sortable-hoc/pull/86). Huge shout-out to [@richmeij](https://github.com/richmeij) for making this happen! | ||
## 0.2.0 | ||
# 0.2.0 | ||
Add a `getHelperDimensions` prop to control SortableHelper size [#83](https://github.com/clauderic/react-sortable-hoc/issues/83). Thanks [@nervetattoo](https://github.com/nervetattoo)! | ||
## 0.1.1 | ||
# 0.1.1 | ||
Added `touchCancel` listener to properly handle canceled touches [#73](https://github.com/clauderic/react-sortable-hoc/pull/73) | ||
## 0.1.0 | ||
# 0.1.0 | ||
@@ -194,15 +194,15 @@ - Force `box-sizing: border-box` on sortable helper [#67](https://github.com/clauderic/react-sortable-hoc/issues/67) | ||
## 0.0.11 | ||
# 0.0.11 | ||
Utilize babel-plugin-transform-runtime to utilize `babelHelpers` without them being required in application code [#45](https://github.com/clauderic/react-sortable-hoc/issues/45) | ||
## 0.0.10 | ||
# 0.0.10 | ||
The `arrayMove` helper no longer mutates the array, it now returns a new array [#61](https://github.com/clauderic/react-sortable-hoc/issues/61) | ||
## 0.0.9 | ||
# 0.0.9 | ||
Server-side rendering bugfix: safeguard against `document` being undefined [#59](https://github.com/clauderic/react-sortable-hoc/pull/59) | ||
## 0.0.8 | ||
# 0.0.8 | ||
@@ -213,9 +213,9 @@ - Added `distance` prop ([#35](https://github.com/clauderic/react-sortable-hoc/issues/35)) | ||
## 0.0.7 | ||
# 0.0.7 | ||
Fixes server-side rendering (window undefined) ([#39](https://github.com/clauderic/react-sortable-hoc/issues/39)) | ||
## 0.0.6 | ||
# 0.0.6 | ||
- Added support for a custom container ([#37](https://github.com/clauderic/react-sortable-hoc/issues/37)) | ||
- Fix changing disable property while receiving props ([#34](https://github.com/clauderic/react-sortable-hoc/issues/34)) |
{ | ||
"name": "react-sortable-hoc", | ||
"version": "1.3.1", | ||
"version": "1.4.0", | ||
"description": "Set of higher-order components to turn any list into a sortable, touch-friendly, animated list", | ||
@@ -12,6 +12,7 @@ "author": { | ||
"source": "src/index.js", | ||
"main": "dist/index.js", | ||
"umd:main": "dist/index.umd.js", | ||
"module": "dist/index.es.js", | ||
"jsnext:main": "dist/index.es.js", | ||
"main": "dist/react-sortable-hoc.js", | ||
"umd:main": "dist/react-sortable-hoc.umd.js", | ||
"browser": "dist/react-sortable-hoc.umd.js", | ||
"module": "dist/react-sortable-hoc.esm.js", | ||
"jsnext:main": "dist/react-sortable-hoc.esm.js", | ||
"types": "types/index.d.ts", | ||
@@ -42,3 +43,3 @@ "license": "MIT", | ||
"start": "start-storybook -p 9001 -c .storybook", | ||
"build": "microbundle --name SortableHOC --no-compress --jsx React.createElement", | ||
"build": "rollup -c", | ||
"test": "eslint src/** --ext .js --quiet", | ||
@@ -53,3 +54,4 @@ "release": "standard-version --no-verify" | ||
"dependencies": { | ||
"invariant": "^2.2.1", | ||
"@babel/runtime": "^7.2.0", | ||
"invariant": "^2.2.4", | ||
"prop-types": "^15.5.7" | ||
@@ -63,2 +65,6 @@ }, | ||
"@babel/core": "^7.2.2", | ||
"@babel/plugin-proposal-class-properties": "^7.2.3", | ||
"@babel/plugin-transform-runtime": "^7.2.0", | ||
"@babel/preset-env": "^7.2.3", | ||
"@babel/preset-react": "^7.0.0", | ||
"@storybook/addon-options": "^4.1.4", | ||
@@ -68,2 +74,3 @@ "@storybook/react": "^4.1.4", | ||
"babel-loader": "^8.0.5", | ||
"babel-plugin-transform-async-to-promises": "^0.8.4", | ||
"classnames": "^2.2.5", | ||
@@ -77,3 +84,2 @@ "css-loader": "^2.1.0", | ||
"lodash": "^4.12.0", | ||
"microbundle": "^0.9.0", | ||
"node-sass": "^4.11.0", | ||
@@ -92,2 +98,8 @@ "postcss": "^7.0.7", | ||
"react-virtualized": "^9.2.2", | ||
"rollup": "^1.0.0", | ||
"rollup-plugin-babel": "^4.2.0", | ||
"rollup-plugin-commonjs": "^9.2.0", | ||
"rollup-plugin-filesize": "^6.0.0", | ||
"rollup-plugin-node-resolve": "^4.0.0", | ||
"rollup-plugin-uglify": "^6.0.0", | ||
"sass-loader": "^7.1.0", | ||
@@ -94,0 +106,0 @@ "standard-version": "^4.4.0", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
652314
5
40
16
3640
1
2
1
+ Added@babel/runtime@^7.2.0
+ Added@babel/runtime@7.25.6(transitive)
+ Addedregenerator-runtime@0.14.1(transitive)
Updatedinvariant@^2.2.4