New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-sortable-tree

Package Overview
Dependencies
Maintainers
2
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-sortable-tree - npm Package Compare versions

Comparing version 2.6.2 to 2.7.1

15

CHANGELOG.md

@@ -5,2 +5,17 @@ # Change Log

<a name="2.7.1"></a>
## [2.7.1](https://github.com/frontend-collective/react-sortable-tree/compare/v2.7.0...v2.7.1) (2019-11-12)
<a name="2.7.0"></a>
# [2.7.0](https://github.com/frontend-collective/react-sortable-tree/compare/v2.6.2...v2.7.0) (2019-10-14)
### Features
* update react-dnd ([#531](https://github.com/frontend-collective/react-sortable-tree/issues/531)) ([c449524](https://github.com/frontend-collective/react-sortable-tree/commit/c449524))
<a name="2.6.2"></a>

@@ -7,0 +22,0 @@ ## [2.6.2](https://github.com/frontend-collective/react-sortable-tree/compare/v2.6.1...v2.6.2) (2019-03-21)

29

package.json
{
"name": "react-sortable-tree",
"version": "2.6.2",
"version": "2.7.1",
"description": "Drag-and-drop sortable component for nested data and hierarchies",

@@ -9,2 +9,3 @@ "scripts": {

"build": "rollup -c",
"buildOnly": "rollup -c",
"build:storybook": "npm run clean:storybook && build-storybook -o build/storybook",

@@ -17,3 +18,3 @@ "build:website": "npm run clean:website && parcel build website/index.html -d build --public-url /react-sortable-tree/",

"prettier": "prettier --write \"{src,example/src,stories}/**/*.{js,css,md}\"",
"prepublishOnly": "npm run lint && npm run test && npm run build",
"prepublishOnly": "npm run test && npm run build",
"release": "standard-version",

@@ -56,3 +57,9 @@ "test": "jest",

"moduleNameMapper": {
"\\.(css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js"
"\\.(css|jpg|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/__mocks__/fileMock.js",
"^dnd-core$": "dnd-core/dist/cjs",
"^react-dnd$": "react-dnd/dist/cjs",
"^react-dnd-html5-backend$": "react-dnd-html5-backend/dist/cjs",
"^react-dnd-touch-backend$": "react-dnd-touch-backend/dist/cjs",
"^react-dnd-test-backend$": "react-dnd-test-backend/dist/cjs",
"^react-dnd-test-utils$": "react-dnd-test-utils/dist/cjs"
}

@@ -69,4 +76,4 @@ },

"prop-types": "^15.6.1",
"react-dnd": "^7.3.0",
"react-dnd-html5-backend": "^7.0.1",
"react-dnd": "^9.3.4",
"react-dnd-html5-backend": "^9.3.4",
"react-lifecycles-compat": "^3.0.4",

@@ -95,7 +102,7 @@ "react-sortable-tree": "^2.6.0",

"babel-loader": "^8.0.4",
"codesandbox": "^1.2.10",
"codesandbox": "~2.1.10",
"coveralls": "^3.0.1",
"cross-env": "^5.1.6",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"eslint": "^5.9.0",

@@ -109,3 +116,3 @@ "eslint-config-airbnb": "^17.1.0",

"jest": "^23.1.0",
"jest-enzyme": "^7.0.1",
"jest-enzyme": "^7.1.1",
"parcel-bundler": "^1.11.0",

@@ -115,4 +122,4 @@ "prettier": "^1.13.3",

"react-addons-shallow-compare": "^15.6.2",
"react-dnd-test-backend": "^7.0.1",
"react-dnd-touch-backend": "^0.6.0",
"react-dnd-test-backend": "^9.3.4",
"react-dnd-touch-backend": "^9.3.4",
"react-dom": "^16.3.0",

@@ -119,0 +126,0 @@ "react-hot-loader": "^4.3.0",

@@ -77,3 +77,6 @@ <div align="center">

this.state = {
treeData: [{ title: 'Chicken', children: [{ title: 'Egg' }] }],
treeData: [
{ title: 'Chicken', children: [{ title: 'Egg' }] },
{ title: 'Fish', children: [{ title: 'fingerline'}] }
],
};

@@ -136,7 +139,7 @@ }

- [**`getTreeFromFlatData`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L972): Convert flat data (like that from a database) into nested tree data.
- [**`getFlatDataFromTree`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L939): Convert tree data back to flat data.
- [**`addNodeUnderParent`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L612): Add a node under the parent node at the given path.
- [**`removeNode`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L533): For a given path, get the node at that path, treeIndex, and the treeData with that node removed.
- [**`removeNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L505): For a given path, remove the node and return the treeData.
- [**`getTreeFromFlatData`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L979): Convert flat data (like that from a database) into nested tree data.
- [**`getFlatDataFromTree`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L946): Convert tree data back to flat data.
- [**`addNodeUnderParent`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L614): Add a node under the parent node at the given path.
- [**`removeNode`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L534): For a given path, get the node at that path, treeIndex, and the treeData with that node removed.
- [**`removeNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L506): For a given path, remove the node and return the treeData.
- [**`changeNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L409): Modify the node object at the given path.

@@ -149,7 +152,7 @@ - [**`map`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L359): Perform a change on every node in the tree.

- [**`toggleExpandedForAll`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L389): Expand or close every node in the tree.
- [**`getNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L572): Get the node at the input path.
- [**`insertNode`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L878): Insert the input node at the specified depth and minimumTreeIndex.
- [**`find`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1070): Find nodes matching a search query in the tree.
- [**`isDescendant`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1020): Check if a node is a descendant of another node.
- [**`getDepth`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1038): Get the longest path in the tree.
- [**`getNodeAtPath`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L573): Get the node at the input path.
- [**`insertNode`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L885): Insert the input node at the specified depth and minimumTreeIndex.
- [**`find`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1077): Find nodes matching a search query in the tree.
- [**`isDescendant`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1027): Check if a node is a descendant of another node.
- [**`getDepth`**](https://github.com/frontend-collective/react-sortable-tree/blob/master/src/utils/tree-data-utils.js#L1045): Get the longest path in the tree.

@@ -203,3 +206,3 @@ ## Themes

After cloning the repository and running `npm install` inside, you can use the following commands to develop and build the project.
After cloning the repository and running `yarn install` inside, you can use the following commands to develop and build the project.

@@ -209,13 +212,13 @@ ```sh

# It uses react-hot-loader so changes are reflected on save.
npm start
yarn start
# Start the storybook, which has several different examples to play with.
# Also hot-reloaded.
npm run storybook
yarn run storybook
# Runs the library tests
npm test
yarn test
# Lints the code with eslint
npm run lint
yarn run lint

@@ -225,3 +228,3 @@ # Lints and builds the code, placing the result in the dist directory.

# `npm link`-ed to this repository from another local project.
npm run build
yarn run build
```

@@ -228,0 +231,0 @@

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

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

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