Skip to content

Commit

Permalink
Merge pull request #388 from Ne3l/master
Browse files Browse the repository at this point in the history
remove unsupported polyfills.
  • Loading branch information
jp928 authored Jun 23, 2022
2 parents f8bb7f9 + 3723a12 commit 6698a44
Show file tree
Hide file tree
Showing 6 changed files with 4 additions and 18 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,9 @@
"rimraf": "^2.5.4"
},
"dependencies": {
"core-js": "^2.4.1",
"fsm-iterator": "^1.1.0",
"lodash.isequal": "^4.5.0",
"lodash.ismatch": "^4.4.0",
"object-assign": "^4.1.0"
"lodash.ismatch": "^4.4.0"
},
"peerDependencies": {
"redux-saga": "^1.0.1",
Expand Down
4 changes: 1 addition & 3 deletions src/expectSaga/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@
import { runSaga, stdChannel } from 'redux-saga';
import * as is from '@redux-saga/is';
import * as effects from 'redux-saga/effects';
import assign from 'object-assign';
import { splitAt } from '../utils/array';
import Map from '../utils/Map';
import ArraySet from '../utils/ArraySet';
import { warn } from '../utils/logging';
import { delay, schedule } from '../utils/async';
Expand Down Expand Up @@ -588,7 +586,7 @@ export default function expectSaga(
let dispatchableAction;

if (typeof delayTime === 'number') {
dispatchableAction = assign({}, action, {
dispatchableAction = Object.assign({}, action, {
_delayTime: delayTime,
});

Expand Down
3 changes: 1 addition & 2 deletions src/expectSaga/matchers/helpers.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// @flow
import assign from 'object-assign';

const PARTIAL_MATCH = '@@redux-saga-test-plan/partial-matcher';

Expand All @@ -11,7 +10,7 @@ export function wrapEffectCreator(effectCreator: Function): Function {

export function like(providerKey: string, defaults?: Object = {}): Function {
return function effectMatcher(effect: Object): Object {
return assign({}, defaults, {
return Object.assign({}, defaults, {
effect,
providerKey,
[PARTIAL_MATCH]: true,
Expand Down
3 changes: 1 addition & 2 deletions src/testSaga/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// @flow
import isEqual from 'lodash.isequal';
import assign from 'object-assign';

import * as effects from 'redux-saga/effects';

Expand Down Expand Up @@ -167,7 +166,7 @@ export default function testSaga(saga: Function, ...sagaArgs: Array<any>): Api {
value,
done,
}: IteratorResult<*, *>): ApiWithEffectsTesters {
const newApi = assign({}, api, {
const newApi = Object.assign({}, api, {
actionChannel: effectsTestersCreators.actionChannel(value),
all: effectsTestersCreators.all(value),
apply: effectsTestersCreators.apply(value),
Expand Down
4 changes: 0 additions & 4 deletions src/utils/Map.js

This file was deleted.

4 changes: 0 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2006,10 +2006,6 @@ core-js-compat@^3.6.2:
browserslist "^4.8.5"
semver "7.0.0"

core-js@^2.4.1:
version "2.5.1"
resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.5.1.tgz#ae6874dc66937789b80754ff5428df66819ca50b"

[email protected], core-util-is@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7"
Expand Down

0 comments on commit 6698a44

Please sign in to comment.