Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

liwi-mongo

liwijs67ISC12.0.0TypeScript support: included

mongo implementation for liwi

readme

liwi-monorepo

db abstraction

Packages

This repository is a monorepo that we manage using Yarn Workspaces.

Package Version Description
extended-json extended json with date using reviver
liwi db abstraction
liwi-mongo mongo implementation for liwi
liwi-resources resources for liwi
liwi-resources-client resources client for liwi
liwi-resources-direct-client direct client implementation for liwi
liwi-resources-server resources server for liwi
liwi-resources-void-client void client implementation for liwi
liwi-resources-websocket-client websocket client implementation for liwi
liwi-resources-websocket-server liwi resources client implementation for websocket
liwi-store abstract store used by liwi implementations
liwi-subscribe-store subscribe store proxy
react-liwi react with liwi
@todo-example/babel-preset-nextjs-babel-config
@todo-example/modules
@todo-example/nextjs
@todo-example/server

Install

npm install --save liwi

Usage

import liwi from 'liwi';

console.log(liwi);

changelog

Changelog

All notable changes to this project will be documented in this file. See Conventional Commits for commit guidelines.

12.0.0 (2024-03-30)

⚠ BREAKING CHANGES

  • update dev deps incuding babel which changes supported built files for browser

Features

  • deps: update dependency mongodb to v6 (#298) (96c5838)
  • deps: update nightingale to v15 (major) (#404) (f4e3338)

Bug Fixes

  • liwi-mongo: properly implement forEach (2fb838b)

Miscellaneous Chores

  • update dev deps incuding babel which changes supported built files for browser (462bf2e)

Version bump for dependency: liwi-store Version bump for dependency: liwi-subscribe-store

11.0.0 (2023-07-29)

⚠ BREAKING CHANGES

  • drop node 16

Code Refactoring

10.5.0 (2023-07-28)

Features

  • deps: update nightingale to v14 (major) (#258) (478f72b)

10.4.0 (2023-07-28)

Features

  • deps: update dependency mongodb to v5 (#187) (ace5a92)

Bug Fixes

  • add types in exports for typescript 5 (0630185)

10.3.2 (2023-01-31)

Bug Fixes

10.3.1 (2023-01-31)

Note: Version bump only for package liwi-mongo

10.3.0 (2023-01-31)

Note: Version bump only for package liwi-mongo

10.2.0 (2023-01-31)

Features

10.1.3 (2023-01-29)

Bug Fixes

  • liwi-mongo: ignore $text not $search (80225b2)

10.1.2 (2023-01-29)

Bug Fixes

  • liwi-monogo: fix createTestCriteria for unsupported $search criteria (e572148)

10.1.1 (2022-12-10)

Bug Fixes

  • liwi-mongo: meta count using criteria (e2347ad)

10.0.0 (2022-11-27)

Code Refactoring

Features

  • deps: update nightingale to v13 (major) (#128) (f04d7fe)

BREAKING CHANGES

  • dropped node 14 and cjs

9.2.0 (2022-10-29)

Note: Version bump only for package liwi-mongo

9.1.0 (2022-10-08)

Bug Fixes

  • redact connectionString in logs (236ecb2)
  • update dev dependencies, fix ts remix, fix next babel config (fadb30e)

9.0.0 (2022-03-05)

Bug Fixes

  • update meta when params change (7c260a8)

Features

  • deps: update dependency mongodb to v4 (#22) (cdf9204)
  • refactor and use node 14 (101c861)

BREAKING CHANGES

  • deps: cursor.count() is removed and replaced by store.count()
  • requires node 14

8.3.1 (2021-11-28)

Bug Fixes

  • liwi-mongo: fix mingoQuery for MongoQuerySingleItem (34c240f)

8.3.0 (2021-11-22)

Bug Fixes

  • update pob-babel and bring back webpack 4 compat (135caf3)

8.1.1 (2021-03-28)

Bug Fixes

8.1.0 (2021-03-28)

Features

8.0.4 (2021-01-18)

Bug Fixes

  • update pob-babel for better support (4cb684e)

8.0.3 (2021-01-18)

Note: Version bump only for package liwi-mongo

8.0.2 (2021-01-18)

Bug Fixes

  • bring back support for webpack 4 (f2b5583)

8.0.1 (2021-01-10)

Bug Fixes

  • setOnInsertPartialObject type (310d869)

8.0.0 (2021-01-10)

Code Refactoring

Features

  • add setOnInsertPartialObject in upsertOne and upsertOneWithInfo (bf5b844)

BREAKING CHANGES

  • drop node 10

7.4.2 (2020-08-14)

Bug Fixes

  • beter handle no result in MongoQuerySingleItem (6b13448)

7.2.3 (2020-08-08)

Note: Version bump only for package liwi-mongo

7.2.1 (2020-08-08)

Note: Version bump only for package liwi-mongo

7.0.0 (2020-08-08)

Bug Fixes

Code Refactoring

Features

  • add and export mongo types (aec6dba)
  • add criteria un findByKey and deleteByKey (2adfaba)
  • add optional critieria in partialUpdateByKey (6bd5578)
  • add transformer (76861ae)
  • add transformer in createQuery (1826413)
  • big refactor (#5) (a4629c4)
  • drop node 8 (2fb6528)
  • liwi-subscribe-store (53b18a3)
  • mongo 3 (b9bfaa4)
  • queries as fn with result (1a1abcb)
  • queryInfo in applyChanges and liwi-mongo (ecfdc3f)
  • resource operations (9ddd3b7)
  • split liwi-resources into server and client (df73bf9)
  • update deps and improve typescript dev (b42eefb)

BREAKING CHANGES

  • drop node 8
  • react-liwi: use hooks instead of react components
  • added Transformer, query model is now value in query description
  • multiple typescript typings change
  • major rewrite in typescript
  • liwi package splitted

5.1.0 (2019-10-12)

Features

  • add criteria un findByKey and deleteByKey (2adfaba)

5.0.4 (2019-09-13)

Note: Version bump only for package liwi-mongo

5.0.3 (2019-09-13)

Note: Version bump only for package liwi-mongo

5.0.2 (2019-09-08)

Bug Fixes

  • improve ServiceResource definitions (92a1c3b)

5.0.1 (2019-05-05)

Bug Fixes

5.0.0 (2019-05-05)

Code Refactoring

  • react-liwi: remove react components (6ece729)

Features

  • mongo 3 (b9bfaa4)
  • queryInfo in applyChanges and liwi-mongo (ecfdc3f)

BREAKING CHANGES

  • react-liwi: use hooks instead of react components

4.2.1 (2019-05-03)

Bug Fixes

  • mingoQuery without criteria (fe78dd2)

4.2.0 (2019-04-19)

Features

  • add optional critieria in partialUpdateByKey (6bd5578)

4.1.0 (2019-02-17)

Features

  • add transformer in createQuery (1826413)

4.0.0 (2019-02-17)

Features

BREAKING CHANGES

  • added Transformer, query model is now value in query description

3.0.3 (2019-02-16)

Note: Version bump only for package liwi-mongo

3.0.2 (2019-02-11)

Note: Version bump only for package liwi-mongo

3.0.1 (2019-02-09)

Note: Version bump only for package liwi-mongo

3.0.0 (2019-02-09)

Features

BREAKING CHANGES

  • multiple typescript typings change

2.3.0 (2019-02-05)

Bug Fixes

Features

  • split liwi-resources into server and client (df73bf9)

2.2.1 (2019-02-04)

Note: Version bump only for package liwi-mongo

2.2.0 (2019-01-20)

Bug Fixes

Features

2.1.0 (2018-11-23)

Features

  • add and export mongo types (aec6dba)

2.0.0 (2018-08-26)

Code Refactoring

BREAKING CHANGES

  • major rewrite in typescript

1.0.0 (2018-03-30)

Code Refactoring

BREAKING CHANGES

  • liwi package splitted