- Support
reselect
v5
- Drop support for
reselect
v4 - - Remove
createCachedSelector
default export
- omit
clearCache
fromCreateSelectorInstance
type
- Drop support for
createCachedSelector(...)(arguments)
call with multiple arguments - Drop legacy
FifoCacheObject
,FlatCacheObject
,LruCacheObject
exports - TypeScript typings of
createStructuredSelector
have been changed. Explicitly settingState
andParameter
types is no longer required (nor possible), please update the typings as follows if necessary:
// Before:
const selector = createStructuredCachedSelector<State, string>({
x: (state, id) => state.a[id],
})((state, id) => id);
// After:
const selector = createStructuredCachedSelector({
x: (state: State, id: string) => state.a[id],
})((state, id) => id);
- Provide auto inferring to
createStructuredSelector
typings - Expose
createCachedSelector
as both default and named export
- Introduce single argument signature
- Add
keySelectorCreator
option
- Add
createStructuredCachedSelector
- Expose
keySelector
property
- Update TypeScript typings
- Introduce typings for heterogeneous selectors
- Introduce typings for any number of uniform selectors
- Rename "resolver" as "keySelector"
- Update TypeScript typings
- Introduce typings for
dependencies
property
- Introduce typings for
- Do not include test files on publish
- Introduce new selectors' methods/properties:
dependencies
propertyrecomputations
methodresetRecomputations
method
- Fix cache object's
isValidCacheKey
method TS type definition
- Upgrade to babel 7
- Update dev dependencies
Babel 7
in loose
mode doesn't add anymore classCallCheck
utility to transpiled ES classes. Cache object classes instantiated by mistake without new operator will now fail silently.
- Expose
cache
property
cacheKey
values no more restricted by default tonumber
orstring
cacheKey
validation delegated tocacheObject
'sisValidCacheKey
methodselectorCreator
argument removed in favour ofoptions
objectconsole.warn
whenresolverFunction
returns invalidcacheKey
cacheObject
export names renamed (old ones are deprecated):FlatCacheObject
->FlatObjectCache
FifoCacheObject
->FifoObjectCache
LruCacheObject
->LruObjectCache
- Added 3 new
cacheObject
implementations usingES Map
objects accepting any value ascacheKey
:FlatMapCache
FifoMapCache
LruMapCache
- Add a
sideEffects: false
flag for Webpack 4
- Remove wrong line at the beginning of the docs
selectorCreator
argument is deprecated in favour of an option object
- Accept an option object to provide
cacheObject
andselectorCreator
options - Extract caching logic into pluggable/customizable cache objects
- Introduce
Rollup.js
as bundler - Make compilation cross-platform
- Add TS type definition for optional
selectorCreator
- Fix wrong UMD reselect global import
- Fix TypeScript
OutputCachedSelector
andOutputParametricCachedSelector
type definitions
- Add TypeScript type definitions
- Expose
resultFunc
attribute
- Expose
removeMatchingSelector
method - Expose
clearCache
method
- Add UMD dist
- Expose
getMatchingSelector
method to retrieve the instance of cached selectors
- Allow resolver function to return keys of type number
- Initial release