Changelog History
Page 1
-
v2.5.0 Changes
December 03, 2018 -
v2.4.0 Changes
July 17, 2017โ Added support for custom tokenize patterns and case-sensitive searches (supported in
js-worker-search
version 1.1.3). Usage is similar to index mode: To override the defaults (tokenize on whitespace only and case-insensitive), pass a configuredSearchApi
argument to thereduxSearch
middleware, like so:import { reduxSearch, SearchApi } from 'redux-search' const finalCreateStore = compose( // Other middleware ... reduxSearch({ resourceIndexes: { ... }, resourceSelector: (resourceName, state) => state.resources.get(resourceName), searchApi: new SearchApi({ // split on all non-alphanumeric characters, // so this/that gets split to ['this','that'], for example tokenizePattern: /[^a-z0-9]+/, // make the search case-sensitive caseSensitive: true }) }) )(createStore)
-
v2.3.3
February 18, 2017 -
v2.3.2 Changes
October 18, 2016โก๏ธ Builds updated to depend on Babel's
babel-runtime
rather than referencing globalbabelHelpers
. โ Addedmodule
attribute topackage.json
to point Webpack 2 towards ES module dist. -
v2.3.1 Changes
September 26, 2016โ Added guard against undefined Redux action in reducer.
-
v2.3.0 Changes
โ Added CommonJS and ES6 module builds (as well as the pre-existing UMD build_. ๐ ComonJS build is now the default
package.json
target instead of the UMD target. -
v2.2.0 Changes
August 24, 2016โ Added support for configurable index strategy (supported in
js-worker-search
version 1.1.0). 0๏ธโฃ Search users can now choose between all-substring matches (default), prefix matches, and exact word matches only. ๐ง To override the default, simply pass a configuredSearchApi
argument to thereduxSearch
middleware like so:import { reduxSearch, SearchApi, INDEX_MODES } from 'redux-search' const indexMode = INDEX_MODES.PREFIXES || INDEX_MODES.EXACT_WORDS || INDEX_MODES.ALL_SUBSTRINGS const finalCreateStore = compose( // Other middleware ... reduxSearch({ resourceIndexes: { ... }, resourceSelector: (resourceName, state) => state.resources.get(resourceName), searchApi: new SearchApi({ indexMode }) }) )(createStore)
-
v2.1.0 Changes
Named
state
object passed to custom resource-indexing functions in order to enable more flexible custom indices. -
v2.0.0 Changes
๐ฆ Extract web-worker search utilty into its own NPM package, js-worker-search. Moved web-worker support detection (previously managed by
CapabilitiesBasedSearchApi
) into that module as well to simplify the redux-search interface.โฌ๏ธ Upgrade path (1.x to 2.x)
๐ท If you were previously importing
CapabilitiesBasedSearchApi
orWorkerSearchApi
directly you should now just importSearchApi
. It will handle auto-detecting web-worker support and use the correct implementation under the hood.๐ฆ
SearchUtility
will now longer be exported by this package. Import it from js-worker-search instead.