Comparing version 0.13.0-beta-5 to 0.13.0
@@ -10,3 +10,3 @@ # Examples | ||
db.defauls({ posts: [] }) | ||
db.defaults({ posts: [] }) | ||
.value() | ||
@@ -32,3 +32,3 @@ | ||
db.defauls({ posts: [] }) | ||
db.defaults({ posts: [] }) | ||
.value() | ||
@@ -62,3 +62,3 @@ | ||
// Init | ||
db.defauls({ posts: [] }) | ||
db.defaults({ posts: [] }) | ||
.value() | ||
@@ -127,3 +127,3 @@ | ||
db.defauls({ posts: [] }) | ||
db.defaults({ posts: [] }) | ||
.value() | ||
@@ -130,0 +130,0 @@ |
{ | ||
"name": "lowdb", | ||
"version": "0.13.0-beta-5", | ||
"version": "0.13.0", | ||
"description": "JSON database for Node and the browser powered by lodash API", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -32,3 +32,3 @@ # Lowdb [![NPM version](https://badge.fury.io/js/lowdb.svg)](http://badge.fury.io/js/lowdb) [![Build Status](https://travis-ci.org/typicode/lowdb.svg?branch=master)](https://travis-ci.org/typicode/lowdb) | ||
And you can query it using lodash API | ||
And you can query it using [lodash API](https://lodash.com/docs) | ||
@@ -45,3 +45,9 @@ ```js | ||
[__Migrating from 0.12 to 0.13? See this guide.__]() | ||
* [Usage examples](https://github.com/typicode/lowdb/tree/master/examples) | ||
* [CLI](https://github.com/typicode/lowdb/tree/master/examples#cli) | ||
* [Browser](https://github.com/typicode/lowdb/tree/master/examples#browser) | ||
* [Server](https://github.com/typicode/lowdb/tree/master/examples#server) | ||
* [In-memory](https://github.com/typicode/lowdb/tree/master/examples#in-memory) | ||
* [JSFiddle live example](https://jsfiddle.net/typicode/4kd7xxbu/) | ||
* [__Migrating from 0.12 to 0.13? See this guide.__](https://github.com/typicode/lowdb/releases/tag/v0.13.0-beta.4) | ||
@@ -64,3 +70,3 @@ ## Why lowdb? | ||
```sh | ||
npm install lowdb@next lodash@4 --save | ||
npm install lowdb lodash@4 --save | ||
``` | ||
@@ -205,2 +211,3 @@ | ||
Sort the top five posts. | ||
@@ -232,7 +239,6 @@ | ||
Make a deep clone of posts. | ||
Get the title of first post using a path. | ||
```js | ||
db.get('posts') | ||
.cloneDeep() | ||
db.get('posts[0].title') | ||
.value() | ||
@@ -258,2 +264,11 @@ ``` | ||
Make a deep clone of posts. | ||
```js | ||
db.get('posts') | ||
.cloneDeep() | ||
.value() | ||
``` | ||
### How to use id based resources | ||
@@ -260,0 +275,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
27502
354
0