Releases: prescottprue/redux-firestore
Releases · prescottprue/redux-firestore
v0.4.1
v0.4.0
- 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
v0.3.2
v0.3.1
- fix(query): multiple
where
ororderBy
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
, andmergeOrderedCollectionUpdates
config options added to allow for enabling/disabling merging of ordered data withinorderedReducer
- feat(README): FAQ section added to clarify common questions - #47
- feat(README): Config Options section added to explain config options and their default values
v0.3.0
- feat(query): support cursors for pagination (
startAt
,startAfter
,endAt
, andendBefore
) - #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 tonull
(i.e. loaded and empty) - #45, RRF 410 - feat(dataReducer):
preserveOnDelete
config option added to preserve data whenDELETE_SUCCESS
action is dispatched (NOTE: Will not preserve data removed from state.ordered byLISTENER_RESPONSE
action, which is common when having a listener on a list of items) - feat(statusReducer):
requested
,requesting
andtimestamps
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
andaddOrderByToRef
utils simplified to be recursive - feat(dataReducer):
CLEAR_DATA
action case now accepts boolean and function types for thepreserve
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 eitherreactReduxFirebase
orreduxFirestore
) - feat(config):
onAttemptCollectionDelete
config option added to allow for running a promise when attempting to rundelete
on a collection - feat(tests): tons of tests improvements and additions (full coverage)
v0.2.8
v0.2.7
v0.2.6
- fix(query): providing orderBy parameters correctly updates state - #50 - @danleavitt0
- fix(tests): remove leftovers in
tests
folder (which was previously renamed totest
) - fix(query): removed no longer necessary console.warn called when unsetting listeners - #51
v0.2.5
- feat(core):
tests
folder renamed totest
(with associated updates to npm scripts) - feat(test): test/mocha.opts file created to contain mocha options (makes npm scripts more readable)
- feat(docs): github contributing files added (
.github/CONTRIBUTING.md
,.github/ISSUE_TEMPLATE.md
,.github/PULL_REQUEST_TEMPLATE.md
) - fix(docs): fix typos within getting started section of
README.md
v0.2.4
- fix(query): issue with query path when using subcollections - #41 - @diagramatics
- feat(query): tests added to prevent issues with query paths - #41
- feat(query): Errors thrown for invalid parameters passed to
setListeners
(not includingmeta
orfirebase._
) - feat(core): tons of tests added for things such as query and utils