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

react-children-utilities

Package Overview
Dependencies
Maintainers
1
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-children-utilities - npm Package Compare versions

Comparing version 2.5.2 to 2.5.3

3

lib/deepFilter.d.ts
import type { ReactNode } from 'react';
export declare type FilterFunction = (child: ReactNode, index?: number, children?: ReactNode[]) => boolean;
declare const deepFilter: (children: ReactNode, deepFilterFn: FilterFunction) => ReactNode[];
declare const deepFilter: (children: ReactNode, deepFilterFn: (child: ReactNode, index?: number | undefined, children?: ReactNode[] | undefined) => boolean) => ReactNode[];
export default deepFilter;
//# sourceMappingURL=deepFilter.d.ts.map
import type { ReactNode } from 'react';
export declare type FindFunction = (child: ReactNode, index?: number, children?: readonly ReactNode[]) => boolean;
declare const deepFind: (children: ReactNode, deepFindFn: FindFunction) => ReactNode | undefined;
declare const deepFind: (children: ReactNode, deepFindFn: (child: ReactNode, index?: number | undefined, children?: readonly ReactNode[] | undefined) => boolean) => ReactNode | undefined;
export default deepFind;
//# sourceMappingURL=deepFind.d.ts.map
import type { ReactNode } from 'react';
export declare type ForEachFunction = (child: ReactNode, index?: number) => void;
declare const deepForEach: (children: ReactNode, deepForEachFn: ForEachFunction) => void;
declare const deepForEach: (children: ReactNode, deepForEachFn: (child: ReactNode, index?: number | undefined) => void) => void;
export default deepForEach;
//# sourceMappingURL=deepForEach.d.ts.map
import type { ReactNode } from 'react';
export declare type MapFunction = (child: ReactNode, index?: number, children?: readonly ReactNode[]) => ReactNode;
declare const deepMap: (children: ReactNode, deepMapFn: MapFunction) => ReactNode[];
declare const deepMap: (children: ReactNode, deepMapFn: (child: ReactNode, index?: number | undefined, children?: readonly ReactNode[] | undefined) => ReactNode) => ReactNode[];
export default deepMap;
//# sourceMappingURL=deepMap.d.ts.map
import type { ReactNode } from 'react';
declare type FilterFunction = (child: ReactNode, index?: number, children?: ReactNode[]) => boolean;
declare const filter: (children: ReactNode, filterFn: FilterFunction) => ReactNode[];
declare const filter: (children: ReactNode, filterFn: (child: ReactNode, index?: number | undefined, children?: ReactNode[] | undefined) => boolean) => ReactNode[];
export default filter;
//# sourceMappingURL=filter.d.ts.map
{
"name": "react-children-utilities",
"version": "2.5.2",
"version": "2.5.3",
"description": "Recursive and extended utils for React children opaque data structure",

@@ -18,9 +18,9 @@ "keywords": [

"contributors": [
"yosef langer (https://github.com/vasilevich)",
"mrm007 (https://github.com/mrm007)",
"Brian Bartholomew (https://github.com/bcbrian)",
"Daniel Pinyol (https://github.com/dpinol)",
"iyegoroff (https://github.com/iyegoroff)",
"Mark Allen (https://github.com/TSMMark)",
"mrm007 (https://github.com/mrm007)",
"Ryosuke IWANAGA (https://github.com/riywo)",
"Daniel Pinyol (https://github.com/dpinol)",
"Brian Bartholomew (https://github.com/bcbrian)"
"yosef langer (https://github.com/vasilevich)"
],

@@ -37,2 +37,3 @@ "sideEffects": false,

"scripts": {
"all-contributors": "all-contributors --config .all-contributorsrc.json",
"prebuild": "del lib react-children-utilities.*",

@@ -45,12 +46,12 @@ "build": "tsc && rollup -c && yarn flowgen",

"format": "prettier --no-error-on-unmatched-pattern --write ** ./* ./.??*",
"lint": "eslint . --ext js,jsx,ts,tsx",
"_postinstall": "husky install",
"lint": "eslint . --ext js,jsx,ts,tsx",
"postpublish": "pinst --enable",
"prepublishOnly": "pinst --disable",
"postpublish": "pinst --enable",
"size": "bundlesize",
"preversion": "yarn verify",
"size": "bundlewatch",
"test": "jest --coverage",
"thanks": "credits . --reporter markdown > THANKS.md",
"update:normalize": "cp -rf node_modules/normalize.css/normalize.css docs/_sass/normalize.scss && prettier docs/_sass/normalize.scss --write",
"verify": "yarn lint && yarn check-types && yarn test && yarn build && yarn size",
"preversion": "yarn verify"
"verify": "yarn lint && yarn check-types && yarn test && yarn build && yarn size"
},

@@ -67,8 +68,8 @@ "resolutions": {

"@types/jest": "^26.0.23",
"@types/react": "^17.0.6",
"@types/react-dom": "^17.0.5",
"@typescript-eslint/eslint-plugin": "^4.24.0",
"@typescript-eslint/parser": "^4.24.0",
"@types/react": "^17.0.9",
"@types/react-dom": "^17.0.6",
"@typescript-eslint/eslint-plugin": "^4.26.0",
"@typescript-eslint/parser": "^4.26.0",
"all-contributors-cli": "^6.20.0",
"bundlesize": "^1.0.0-beta.2",
"bundlewatch": "^0.3.2",
"codecov": "^3.8.2",

@@ -79,12 +80,12 @@ "credits-cli": "^3.1.0",

"enzyme-adapter-react-16": "^1.15.6",
"eslint": "^7.26.0",
"eslint": "^7.27.0",
"eslint-config-airbnb": "^18.2.1",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-import": "^2.23.4",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-jsx-a11y": "^6.4.1",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.23.2",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"flow-bin": "^0.151.0",
"flow-bin": "^0.152.0",
"flowgen": "^1.14.1",

@@ -95,3 +96,3 @@ "husky": "^6.0.0",

"jest-enzyme": "^7.1.2",
"jest-junit": "^12.0.0",
"jest-junit": "^12.1.0",
"lint-staged": "^11.0.0",

@@ -107,6 +108,6 @@ "normalize.css": "^8.0.1",

"react-test-renderer": "^17.0.2",
"rollup": "^2.48.0",
"rollup": "^2.50.5",
"rollup-plugin-terser": "^7.0.2",
"ts-jest": "^26.5.6",
"typescript": "^4.2.4"
"typescript": "^4.3.2"
},

@@ -116,8 +117,10 @@ "peerDependencies": {

},
"bundlesize": [
{
"path": "react-children-utilities.min.js",
"maxSize": "1 kB"
}
]
"bundlewatch": {
"files": [
{
"maxSize": "1 kB",
"path": "react-children-utilities.min.js"
}
]
}
}

@@ -14,6 +14,6 @@ /// <reference types="react" />

declare const _default: {
deepFilter: (children: import("react").ReactNode, deepFilterFn: import("./lib/deepFilter.js").FilterFunction) => import("react").ReactNode[];
deepFind: (children: import("react").ReactNode, deepFindFn: import("./lib/deepFind.js").FindFunction) => import("react").ReactNode;
deepForEach: (children: import("react").ReactNode, deepForEachFn: import("./lib/deepForEach.js").ForEachFunction) => void;
deepMap: (children: import("react").ReactNode, deepMapFn: import("./lib/deepMap.js").MapFunction) => import("react").ReactNode[];
deepFilter: (children: import("react").ReactNode, deepFilterFn: (child: import("react").ReactNode, index?: number | undefined, children?: import("react").ReactNode[] | undefined) => boolean) => import("react").ReactNode[];
deepFind: (children: import("react").ReactNode, deepFindFn: (child: import("react").ReactNode, index?: number | undefined, children?: readonly import("react").ReactNode[] | undefined) => boolean) => import("react").ReactNode;
deepForEach: (children: import("react").ReactNode, deepForEachFn: (child: import("react").ReactNode, index?: number | undefined) => void) => void;
deepMap: (children: import("react").ReactNode, deepMapFn: (child: import("react").ReactNode, index?: number | undefined, children?: readonly import("react").ReactNode[] | undefined) => import("react").ReactNode) => import("react").ReactNode[];
filter: (children: import("react").ReactNode, filterFn: (child: import("react").ReactNode, index?: number | undefined, children?: import("react").ReactNode[] | undefined) => boolean) => import("react").ReactNode[];

@@ -20,0 +20,0 @@ groupByType: (children: import("react").ReactNode, types?: readonly import("react").ReactNode[], rest?: string) => Record<string, import("react").ReactNode[]>;

@@ -83,16 +83,14 @@ # React Children Utilities

<tr>
<td align="center"><a href="https://fernandopasik.com"><img src="https://avatars1.githubusercontent.com/u/1301335?v=4" width="100px;" alt=""/><br /><sub><b>Fernando Pasik</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Afernandopasik" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=fernandopasik" title="Code">💻</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=fernandopasik" title="Documentation">📖</a> <a href="#ideas-fernandopasik" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/mrm007"><img src="https://avatars3.githubusercontent.com/u/3297808?v=4" width="100px;" alt=""/><br /><sub><b>mrm007</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Amrm007" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=mrm007" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/vasilevich"><img src="https://avatars2.githubusercontent.com/u/1217224?v=4" width="100px;" alt=""/><br /><sub><b>yosef langer</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Avasilevich" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=vasilevich" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/iyegoroff"><img src="https://avatars2.githubusercontent.com/u/4447438?v=4" width="100px;" alt=""/><br /><sub><b>iyegoroff</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Aiyegoroff" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=iyegoroff" title="Code">💻</a></td>
<td align="center"><a href="http://vydia.com"><img src="https://avatars1.githubusercontent.com/u/4197823?v=4" width="100px;" alt=""/><br /><sub><b>Mark Allen</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3ATSMMark" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=TSMMark" title="Code">💻</a></td>
<td align="center"><a href="https://medium.com/@riywo"><img src="https://avatars2.githubusercontent.com/u/37822?v=4" width="100px;" alt=""/><br /><sub><b>Ryosuke IWANAGA</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Ariywo" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=riywo" title="Code">💻</a></td>
<td align="center"><a href="https://www.linkedin.com/in/dpinol/"><img src="https://avatars0.githubusercontent.com/u/1954955?v=4" width="100px;" alt=""/><br /><sub><b>Daniel Pinyol</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Adpinol" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=dpinol" title="Code">💻</a></td>
<td align="center"><a href="https://fernandopasik.com"><img src="https://avatars1.githubusercontent.com/u/1301335?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Fernando Pasik</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Afernandopasik" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=fernandopasik" title="Code">💻</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=fernandopasik" title="Documentation">📖</a> <a href="#ideas-fernandopasik" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/mrm007"><img src="https://avatars3.githubusercontent.com/u/3297808?v=4?s=100" width="100px;" alt=""/><br /><sub><b>mrm007</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Amrm007" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=mrm007" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/vasilevich"><img src="https://avatars2.githubusercontent.com/u/1217224?v=4?s=100" width="100px;" alt=""/><br /><sub><b>yosef langer</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Avasilevich" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=vasilevich" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/iyegoroff"><img src="https://avatars2.githubusercontent.com/u/4447438?v=4?s=100" width="100px;" alt=""/><br /><sub><b>iyegoroff</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Aiyegoroff" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=iyegoroff" title="Code">💻</a></td>
<td align="center"><a href="http://vydia.com"><img src="https://avatars1.githubusercontent.com/u/4197823?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Mark Allen</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3ATSMMark" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=TSMMark" title="Code">💻</a></td>
<td align="center"><a href="https://medium.com/@riywo"><img src="https://avatars2.githubusercontent.com/u/37822?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Ryosuke IWANAGA</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Ariywo" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=riywo" title="Code">💻</a></td>
<td align="center"><a href="https://www.linkedin.com/in/dpinol/"><img src="https://avatars0.githubusercontent.com/u/1954955?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Daniel Pinyol</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Adpinol" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=dpinol" title="Code">💻</a></td>
<td align="center"><a href="http://brianbartholomew.com"><img src="https://avatars0.githubusercontent.com/u/6721622?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brian Bartholomew</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Abcbrian" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=bcbrian" title="Code">💻</a></td>
</tr>
<tr>
<td align="center"><a href="http://brianbartholomew.com"><img src="https://avatars0.githubusercontent.com/u/6721622?v=4" width="100px;" alt=""/><br /><sub><b>Brian Bartholomew</b></sub></a><br /><a href="https://github.com/fernandopasik/react-children-utilities/issues?q=author%3Abcbrian" title="Bug reports">🐛</a> <a href="https://github.com/fernandopasik/react-children-utilities/commits?author=bcbrian" title="Code">💻</a></td>
</tr>
</table>
<!-- markdownlint-enable -->
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->

@@ -99,0 +97,0 @@

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 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 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 not supported yet

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