redux-firestore

Redux bindings for Firestore

MIT License

Downloads
13.6K
Stars
575
Committers
27

Bot releases are hidden (Show)

redux-firestore - v0.6.0-alpha.3

Published by prescottprue almost 6 years ago

  • fix(reducers): correctly update state for docs with keys that contain a dot when using storeAs - @compojoom
  • feat(query): consolidate oneListenerPerPath and allowMultipleListeners logic - @alexmattson
  • feat(query): initial support for populate - #48, RRF 362
redux-firestore - v1.0.0-alpha

Published by prescottprue about 6 years ago

  • feat(reducers): ordered and data reducer using new v1 state pattern outlined in the v1.0.0 roadmap (full query path in ordered, sub-collections separate from doc in data)
  • feat(core): firestoreDataSelector andfirestoreOrderedSelector utilities for selecting values from state
  • fix(reducers): LISTENER_RESPONSE action not correctly updating state for sub-collections - #103
  • fix(reducers): ordered state not updated with added item in array - #116
  • fix(reducers): updates to arrays inside documents don't work as expected - #140
redux-firestore - v0.5.8

Published by prescottprue about 6 years ago

  • fix(orderedReducer): CLEAR_DATA action correctly clears ordered state for actions dispatched without meta - #114
  • fix(tests): update orderedReducer tests to include case of CLEAR_DATA action dispatched without meta - #114
  • fix(typings): make otherConfig optional for reduxFirestore (store enhancer) in typings - @am17torres
redux-firestore - v0.6.0-alpha.2

Published by prescottprue about 6 years ago

  • fix(compositeReducer): fix for disappearing composite slice - #128 - @demoran23
  • fix(deps): remove @types/lodash from dev dependencies
  • fix(deps): update babel-preset-env to ^1.7.0
redux-firestore - v0.6.0-alpha

Published by prescottprue about 6 years ago

  • feat(query): composite storeAs - @demoran23
  • feat(build): publishing to npm now happens using node 10
  • feat(build): publishing npm now happens on the next branch (published to @next tag)
redux-firestore - v0.5.7

Published by prescottprue over 6 years ago

  • fix(orderedReducer): fix issue which could cause updates of documents already within state to be duplicated (merge done through map instead of unionBy)
  • feat(build): travis deployment now happens with node 10
  • feat(deps): mocha, sinon, and sinon-chai, webpack, and webpack-cli updated
redux-firestore - v0.5.6

Published by prescottprue over 6 years ago

  • fix(orderedReducer): use direct payload instead of unionBy with existing state when storeAs is provided in LISTENER_RESPONSE dispatch
redux-firestore - v0.5.5

Published by prescottprue over 6 years ago

  • fix(orderedReducer): LISTENER_RESPONSE and DOCUMENT_REMOVED actions
    correctly updating state for sub-collections
  • feat(tests): tests added for success callback and error callback arguments of setListener method
  • fix(core): only copy public methods from firebase.firestore() instance - #93, #108
  • fix(actions): runTransaction no longer failing - #108
  • fix(orderedReducer): empty listener response correctly updates state when using storeAs
  • fix(orderedReducer): fix merge setting (merge.collection to merge.collections) - @danleavitt0
  • feat(actions): attempting to delete sub collection at any level throw (previously only top level)
  • feat(tests): Add tests for success and error callbacks of setListener
  • fix(orderedReducer): return state directly for non-matching action types
  • fix(deps): lock prettier version to 1.10.0 (prevents build fail on Travis)
redux-firestore - v0.5.4

Published by prescottprue over 6 years ago

  • fix(orderedReducer): DOCUMENT_ADDED and DOCUMENT_MODIFIED actions
    correctly update state with subcollections - #101
  • feat(tests): unit test added for DOCUMENT_ADDED with subcollection - #101
  • feat(core): ADD_SUCCESS action payload now contains id
redux-firestore - v0.5.3

Published by prescottprue over 6 years ago

  • feat(core): support for v5.0.0 of the Firebase SDK
  • fix(query): fix issue preventing some queries when using v5.0.0 of the Firebase SDK (due to breaking change of docChanges (now a method instead of parameter) - #98, #99
  • feat(tests): unit test added to verify docChanges also works as a method (existing tests cover docChanges as a parameter)
redux-firestore - v0.5.2

Published by prescottprue over 6 years ago

  • fix(orderedReducer): deleting an item from nested collection correctly removes the item when listener is not attached - #96
  • feat(tests): tests added for DELETE_SUCCESS action type case of orderedReducer - #96
  • feat(deps): update lodash to ^4.17.10 to fix insecure dependency warning
  • feat(examples): dependencies updated including lodash, redux, react-redux
  • feat(core): update to Webpack ^4.8.3 from ^3.11.0 (shrinks UMD bundle size and fixes insecure dependency warnings)
redux-firestore - v0.5.1

Published by prescottprue over 6 years ago

  • fix(orderedReducer): remove storeAs from updateItemInArray - #91
  • feat(actions): runTransaction action added - #76
  • feat(core): Firebase's Firestore internals (from firebase.firestore()) exposed for use of methods such as batch - #76
  • feat(tests): unit tests added for oneListenerPerPath option - #77
redux-firestore - v0.5.0

Published by prescottprue over 6 years ago

  • fix(query): DOCUMENT_MODIFIED action correctly updates data reducer when using nested collections in solution from @compojoom - #88
  • fix(query): fixed issue where limit was not included in query name - #90
  • feat(query): storeAs support for subcollections
  • feat(query): where now uses = in place of :: within query string name (matches other query params)
redux-firestore - v0.4.3

Published by prescottprue over 6 years ago

  • fix(orderedReducer): subcollection updates correctly update document - #86
  • feat(test): tests added to confirm changes fix sub collections updates - #86
redux-firestore - v0.4.2

Published by prescottprue over 6 years ago

  • fix(dataReducer): DOCUMENT_ADDED action type added to dataReducer - #84
  • fix(query): oneListenerPerPath supports passing falsey values (before defining it at all would enable) - slight update to #77
  • fix(query): prevent errors when combining string/object query config updated
  • update(deps): sinon and sinon-chai dependencies updated (fixes child dep warning)
redux-firestore - v0.4.1

Published by prescottprue over 6 years ago

  • fix(orderedReducer): completely remove doc on delete instead of setting it to null
  • fix(examples): update basic example to react ^16.3.0 by making a simple withFirestore util
  • feat(core): add typescript definition for firestoreReducer - #78
redux-firestore - v0.4.0

Published by prescottprue over 6 years ago

  • feat(core): Queries for multiple documents now support single document state updates using docChanges (changes reference of document instead of collection)
  • fix(dataReducer): delete does not remove data from state.data - #45
  • feat(query): nested subcollections - @thiagovice - #73
  • fix(query): queryStr parsing of deep nested collections - @thiagovice
  • feat(query): oneListenerPerPath config option to only attach one callback per listener path - @compojoom
redux-firestore - v0.3.2

Published by prescottprue over 6 years ago

  • fix(dataReducer): deleting object properties updates data state (reverts fix for #49) - #71
redux-firestore - v0.3.1

Published by prescottprue over 6 years ago

  • fix(query): multiple where or orderBy parameters - compojoom
  • fix(orderedReducer): subcollection not updating state.ordered - #46
  • fix(orderedReducer): multiple subcollections on same parent collection correctly merges doc data - #34
  • fix(dataReducer): setListeners clears out the subcollection of a document - #49
  • feat(orderedReducer): mergeOrdered, mergeOrderedDocUpdates, and mergeOrderedCollectionUpdates config options added to allow for enabling/disabling merging of ordered data within orderedReducer
  • feat(README): FAQ section added to clarify common questions - #47
  • feat(README): Config Options section added to explain config options and their default values
redux-firestore - v0.3.0

Published by prescottprue over 6 years ago

  • feat(query): support cursors for pagination (startAt, startAfter, endAt, and endBefore) - #45, #46 - @franvera
  • feat(dataReducer): handle LISTENER_ERROR case (set path to null if it doesn't exist)
  • feat(dataReducer): DELETE_SUCCESS case added which sets item at path to null (i.e. loaded and empty) - #45, RRF 410
  • feat(dataReducer): preserveOnDelete config option added to preserve data when DELETE_SUCCESS action is dispatched (NOTE: Will not preserve data removed from state.ordered by LISTENER_RESPONSE action, which is common when having a listener on a list of items)
  • feat(statusReducer): requested, requesting and timestamps states now update - @compojoom
  • feat(listeners): improve tracking of listeners - RRF 392 - help from @compojoom
  • feat(listeners): allowMultipleListeners config option for enabling/disabling whether multiple listeners are attached for the same query
  • feat(utils): addWhereToRef and addOrderByToRef utils simplified to be recursive
  • feat(dataReducer): CLEAR_DATA action case now accepts boolean and function types for the preserve parameter
  • feat(orderedReducer): now accepts boolean and function types for the preserve parameter
  • feat(config): config argument of reduxFirestore store enhancer is spread onto internal config (allowing config options passed in either reactReduxFirebase or reduxFirestore)
  • feat(config): onAttemptCollectionDelete config option added to allow for running a promise when attempting to run delete on a collection
  • feat(tests): tons of tests improvements and additions (full coverage)