Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove unsupported polyfills. #388

Merged
merged 1 commit into from
Jun 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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