Skip to content

Commit

Permalink
Lodash: Remove completely from @wordpress/redux-routine package (#4…
Browse files Browse the repository at this point in the history
…3741)

* Lodash: Remove completely from redux-routine package

* Add CHANGELOG
  • Loading branch information
tyxla authored Sep 1, 2022
1 parent c800e19 commit 37fe730
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
1 change: 0 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions packages/redux-routine/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Internal

- Lodash: Remove completely from `@wordpress/redux-routine` package ([#43741](https://github.com/WordPress/gutenberg/pull/43741)).

## 4.16.0 (2022-08-24)

### Bug Fix
Expand Down
1 change: 0 additions & 1 deletion packages/redux-routine/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@
"@babel/runtime": "^7.16.0",
"is-plain-object": "^5.0.0",
"is-promise": "^4.0.0",
"lodash": "^4.17.21",
"rungen": "^0.3.2"
},
"peerDependencies": {
Expand Down
6 changes: 2 additions & 4 deletions packages/redux-routine/src/runtime.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
* External dependencies
*/
import { create, Control } from 'rungen';
import { map } from 'lodash';
import isPromise from 'is-promise';
import type { Dispatch, AnyAction } from 'redux';

Expand All @@ -24,9 +23,8 @@ export default function createRuntime(
> = {},
dispatch: Dispatch
) {
const rungenControls = map(
controls,
( control, actionType ): Control =>
const rungenControls = Object.entries( controls ).map(
( [ actionType, control ] ): Control =>
( value, next, iterate, yieldNext, yieldError ) => {
if ( ! isActionOfType( value, actionType ) ) {
return false;
Expand Down

0 comments on commit 37fe730

Please sign in to comment.