All Versions
13
Latest Version
Avg Release Cycle
181 days
Latest Release
1971 days ago

Changelog History
Page 1

  • v2.5.0 Changes

    December 03, 2018

    โž• Added support for optional OR searches (documents matching only some of the search tokens) (@dlebech - #82)

  • v2.4.1 Changes

    ๐Ÿ›  Fixes memory leak when re-indexing resource. (@LrsK - #74)

  • 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 configured SearchApi argument to the reduxSearch 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 global babelHelpers. โž• Added module attribute to package.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 configured SearchApi argument to the reduxSearch 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 or WorkerSearchApi directly you should now just import SearchApi. 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.