Skip to content

Update dependency reselect to v4#71

Open
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/reselect-4.x
Open

Update dependency reselect to v4#71
renovate[bot] wants to merge 1 commit intomasterfrom
renovate/reselect-4.x

Conversation

@renovate
Copy link

@renovate renovate bot commented Sep 30, 2018

WhiteSource Renovate

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
reselect 2.5.4 -> 4.0.0 age adoption passing confidence

Release Notes

reduxjs/reselect

v4.0.0

Compare Source

New Features

Exposed selector dependencies (#​251)
Use provided memoize function for selectors (#​297)

Breaking Changes

Updated TypeScript typings (#​274, #​315)

v3.0.1

Compare Source

Fix selector type for using the right extension, see reactjs#​240

v3.0.0

Compare Source

New Features

Performance improvements (thanks to @​johnhaley81)
Updated Typescript typings (thanks to everyone who helped)

Breaking Changes

For performance reasons, a selector is now not recalculated if its input is equal by reference (===).

Example:
import { createSelector } from 'reselect';

const mySelector = createSelector(
  state => state.values.filter(val => val < 5),
  values => {
    console.log('calling..')
    return values.reduce((acc, val) => acc + val, 0)
  }
)

var createSelector = require('./dist/reselect.js').createSelector;

const mySelector = createSelector(
  state => state.values.filter(val => val < 5),
  values => {
    console.log('calling..')
    return values.reduce((acc, val) => acc + val, 0)
  }
)

var state1 = {values: [1,2,3,4,5,6,7,8,9]};
console.log(mySelector(state1));
state1.values = [3,4,5,6,7,8,9];
console.log(mySelector(state1));
var state2 = {values: [1,2,3,4,5,6,7,8,9]};
console.log(mySelector(state2));
var state3 = {values: [3,4,5,6,7]};
console.log(mySelector(state3));
Output in v2.5.4:
calling..
10
calling..
7
calling..
10
calling..
7
Output in v3.0.0:
calling..
10
10
calling..
10
calling..
7

Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by WhiteSource Renovate. View repository job log here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments