Skip to content

Commit ad35f44

Browse files
committed
Merge branch '3.0.0-release'
2 parents 0b93cd5 + 9dc7346 commit ad35f44

File tree

5 files changed

+1604
-5
lines changed

5 files changed

+1604
-5
lines changed

CHANGELOG.md

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
## v3.0.0
2+
3+
* [FIXED] invalid `ajv` custom validation keyword definition (`ajv` started to strictly validate keyword definition objects, unfortunately it broke backward compatibility)
4+
15
## v3.0.0-alpha.1
26

37
* [CHANGED] model option `paranoid=true` does NOT implicitly enable `timestamps` option (only `deleted_at` property is considered indstead of additional properties `created_at` & `updated_at`)

lib/model.js

+1
Original file line numberDiff line numberDiff line change
@@ -274,6 +274,7 @@ Model.prototype._dataHasJsonStructure = function() {
274274

275275

276276
/**
277+
* @private
277278
* @return {boolean}
278279
*/
279280
Model.prototype._dataHasRootAssociation = function() {

lib/validator.js

-2
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ function build(options) {
6363

6464
ajv.addKeyword('$toJSON', {
6565
modifying: true,
66-
statements: true,
6766
valid: true,
6867
metaSchema: {
6968
type: 'object'
@@ -84,7 +83,6 @@ function build(options) {
8483
ajv.addKeyword('$toDate', {
8584
type: ['string', 'integer'],
8685
modifying: true,
87-
statements: true,
8886
valid: true,
8987
metaSchema: {
9088
type: 'object'

package.json

+11-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "kouchbase-odm",
3-
"version": "3.0.0-alpha.1",
3+
"version": "3.0.0",
44
"author": "fogine",
55
"keywords": [
66
"couchbase",
@@ -19,6 +19,14 @@
1919
"bugs": {
2020
"url": "https://github.com/fogine/couchbase-odm/issues"
2121
},
22+
"files": [
23+
"lib",
24+
"tutorials",
25+
"CHANGELOG.md",
26+
"LICENSE",
27+
"README.md",
28+
"index.js"
29+
],
2230
"description": "Couchbase Promise based ODM",
2331
"private": false,
2432
"scripts": {
@@ -31,10 +39,10 @@
3139
},
3240
"license": "MIT",
3341
"dependencies": {
34-
"ajv": "^6.5.1",
42+
"ajv": "^6.10.0",
3543
"ajv-keywords": "^3.2.0",
3644
"bluebird": "^3.5.1",
37-
"couchbase": "^2.4.6",
45+
"couchbase": "^2.6.3",
3846
"lodash": "^4.17.0",
3947
"node-uuid": "^1.4.8"
4048
},

0 commit comments

Comments
 (0)