Skip to content

v7.0.0

Choose a tag to compare

@christophehurpeau christophehurpeau released this 08 Aug 12:10
· 772 commits to main since this release

7.0.0 (2020-08-08)

Bug Fixes

  • add missing document.removeEventListener for visibilitychange (3277950)
  • add resultRef, state is always initial (e91b291)
  • allow QueryDescription to have void param (0c9a894)
  • build (ac2ee64)
  • build (d286aff)
  • debug log init (fc28efb)
  • dont subscribe on initial render if document is not visible (db507de)
  • encode operation result (c838894)
  • eslint error (206b1b5)
  • export createMongoResourcesWebsocketClient (dc5cf66)
  • exported ServiceResource second arg is optional (d6c282f)
  • fixes (482c388)
  • improve ServiceResource definitions (92a1c3b)
  • mingoQuery without criteria (fe78dd2)
  • missing callback in unsubscribe (8ff0fb3)
  • missing declaration files (aa5021f)
  • queries and operations should be a record, not an array (b0a89da)
  • queries definition (ad3cfa4)
  • remove obsolete dependency (ce61569)
  • remove unused peerDependency prop-types (2aff4f4)
  • rename Query to ClientQuery (e330a62)
  • resubscribing did not work correctly (68b485a)
  • send value array (7f012c2)
  • subscribe-store param createQuery (74f4fd7)
  • support namespace (e677afc)
  • typescript def queries allow Promise (60a893e)
  • useResource without subscribing (645421d)
  • liwi-mongo: replaceone (eea4324)
  • unsubcribe call with this (9826048)
  • unsubscribe and add subscribeHook (d6e3d5a)
  • use partial for $set and $setOnInsert (2e02952)

Code Refactoring

Features

  • add and export mongo types (aec6dba)
  • add connected user (c43685c)
  • add criteria un findByKey and deleteByKey (2adfaba)
  • add hooks (906c820)
  • add liwi-resources-void-client (5cff2e4)
  • add log when unsubscribed due to timeout (4d8fff6)
  • add more info in logger (76bacf1)
  • add Operations default in ServiceResource (d60fb38)
  • add optional critieria in partialUpdateByKey (6bd5578)
  • add timeout and visibilitychange in FindAndSubscribe (ea8ce5e)
  • add transformer (76861ae)
  • add transformer in createQuery (1826413)
  • allow client createQuery to not pass params (be9e4a2)
  • allow params in createQuery (d674556)
  • allow query to be returned with a promise (902944c)
  • allow ResourcesClientService to have optional second generic (c0a8d8c)
  • allow to get params in subscribe hooks (49e40cf)
  • big refactor (#5) (a4629c4)
  • drop node 8 (2fb6528)
  • mongo 3 (b9bfaa4)
  • update deps and improve typescript dev (b42eefb)
  • liwi-subscribe-store: implement deleteMany (a7cb28e)
  • liwi-subscribe-store: implement partialUpdateMany (b15b003)
  • react-liwi: add subscribeOptions in useResource (187fdda)
  • createMongoResourcesWebsocketClient (3f0f3e7)
  • export type Update in liwi-store (1c051c8)
  • liwi-subscribe-store (53b18a3)
  • pass object to ResourcesServerService instead of 2 param (e3f3225)
  • queries as fn with result (1a1abcb)
  • queryInfo in applyChanges and liwi-mongo (ecfdc3f)
  • rename createResourceClient to createResourceClientService (0118f85)
  • replace query by createQuery (1561da0)
  • resource operations (9ddd3b7)
  • split liwi-resources into server and client (df73bf9)

BREAKING CHANGES

  • drop node 8
  • react-liwi: use hooks instead of react components
  • added Transformer, query model is now value in query description
  • query prop no longer exists, replaced by createQuery
  • replace new ResourcesServerService(map1, map2) by new ResourcesServerService({serviceResources:map1, cursorResources:map2})
  • multiple typescript typings change
  • major rewrite in typescript
  • liwi package splitted