Releases: edemaine/solid-meteor-data
Releases · edemaine/solid-meteor-data
v0.6.2
- Fix bug in
createFind: If a document changed at the same time as documents were moved/added/removed, then the wrong document could have been updated (when inuseStoremode, which is the default). - Rewrite
createTracker: This rewrite both is simpler and better respects Solid's reactive graph, by usingcreateMemoovercreateComputed. In some cases it should be slightly more efficient. - Documentation improvements: Use "primitive" terminology common in Solid
- Testing improvements: Check that Meteor Trackers are correctly stopped.
Full Changelog: v0.6.1...v0.6.2
v0.6.1
- Fix
import {createFindOne} from 'solid-meteor-data'(index export was missing;import {createFindOne} from 'solid-meteor-data/createFindOne'worked and still does)
Full Changelog: v0.6.0...v0.6.1
v0.6.0
- New
createFindOnehelper for fine-grained reactivity to a single document, as returned by a Mongo Collection'sfindOnemethod or a related helper likeMeteor.user(). - Add API function types to documentation.
- Small type fixes: options are optional, and avoid hiding
anyusage.
Full Changelog: v0.5.2...v0.6.0
v0.5.2
- Fix
useFindin SSR mode. Previously,useFindoutput a warning and never returned any results. This was caused by a bug in react-meteor-data.
Full Changelog: v0.5.1...v0.5.2
v0.5.1
createFindno longer triggers an update when transitioning between empty lists. (Missed some cases in 0.5.0.)
Full Changelog: v0.5.0...v0.5.1
v0.5.0
- BREAKING CHANGE:
createFindnow returns an array of Stores by default. This enables components with a<For>loop to react at a fine-grained level to specific fields of documents, instead of an "all or nothing" change, and it enables the re-use of old components with matching_idfields (similar to Blaze andreact-meteor-data). To restore the old "all or nothing" behavior, pass an option ofnoStore: false. (#6) - When the cursor passed to
createFindchanges reactively,createFindnow tries to reconcile the new document set with the old one, again re-using old documents with matching_ids and enabling fine-grained reactivity. For example, if all you do is change the sort order of the query, nothing will re-render except the<For>order. (#1) createFindless often triggers an update when transitioning between empty lists.
Full Changelog: v0.4.0...v0.5.0
v0.4.0
- New, much faster
createFindengine (#4).- Modifies the results array in-place instead of copying the array for every update (while still triggering updates), avoiding quadratic array update time.
- Batches together several cursor updates all at once (e.g. as seen after initial subscription), avoiding quadratic DOM update time.
- Both of these improvements should mean we far surpass
react-meteor-dataperformance.
- Automated testing of
createFind(#5).
Full Changelog: v0.3.0...v0.4.0
v0.3.0
- Rename package from
solidjs-meteor-datatosolid-meteor-data, deprecating the former. This is more consistent naming withreact-meteor-dataand other SolidJS packages. - Benchmarking of auto mode suggests 5x slowdown to reactivity, although in practice it's probably much lower.
Full Changelog: v0.2.0...v0.3.0
v0.2.0
- Add new auto mode that lets you use Meteor reactive data in any Solid reactive context, without wrapping in
createTracker. Built on Solid 1.3's experimental External Sources mechanism, so you need to upgrade to Solid 1.3.\ - Built-in testing
Full Changelog: v0.1.0...v0.2.0
v0.1.0
- New
createTrackerengine should now correctly detect latest SolidJS and Tracker dependencies as you would expect (no weird corner cases). - New
createSubscribeinterface allows arguments to be wrapped in functions to make their values reactive. Alternatively, you can pass in one function that returns a subscription. (#2) (Thanks to @Brendan-csel for design input!)
Full Changelog: v0.0.1...v0.1.0