Commit Graph

280 Commits

Author SHA1 Message Date
Raymond Feng b7abb08da8 2.19.2
* Improved and corrected API docs (crandmck)

 * Fix problems in annotations that prvented validateAsync and validate functions from appearing in API docs. (crandmck)
2015-03-04 22:19:51 -08:00
Raymond Feng 666e15f8a4 2.19.1
* Make sure inclusion filter is applied to the target model (Raymond Feng)
2015-03-03 11:11:19 -08:00
Miroslav Bajtoš 4fb4e356af 2.19.0
* Deprecate DAO events (Miroslav Bajtoš)

 * Deprecate Model hooks (Miroslav Bajtoš)

 * Add Promises to DAO (Partap Davis)

 * test for updateAll (rudzon)

 * enhance the coercion for boolean/date types (rudzon)

 * enhance updateAll to coerce the data per property definitions (rudzon)

 * relation-definition: remove trailing whitespace (Miroslav Bajtoš)
2015-03-02 17:06:04 +01:00
Miroslav Bajtoš 03daaca9de Deprecate Model hooks
List of deprecated hooks:

 - beforeValidate
 - afterValidate
 - beforeCreate
 - afterCreate
 - beforeSave
 - afterSave
 - beforeUpdate
 - afterUpdate
 - beforeDestroy
 - afterDestroy

Also add a lightweight browser version of "depd", because the "depd"
does not support browser and it is not trivial to fix that.
This commits adds a lightweight implementation of depd's "deprecate"
function.
2015-02-27 16:58:24 +01:00
Raymond Feng fc0667fbf4 2.18.1
* Make sure models are migrated to avoid conflicts (Raymond Feng)

 * Add err checks (Raymond Feng)

 * Fix findByIds test cases (Raymond Feng)
2015-02-20 21:51:15 -08:00
Raymond Feng d5e71f1157 2.18.0
* Fix the idType so that it works with both MongoDB and RDBs (Raymond Feng)

 * Tidy up tests so that they will work with RDBs (Raymond Feng)

 * Fix JS style issues (Raymond Feng)

 * Add a new property option `defaultFn` (Miroslav Bajtoš)

 * Fix the null/undefined check (Raymond Feng)

 * Fix createdAt type so that it won't overflow SQL server int (Raymond Feng)

 * ModelBaseClass: promise mode for notifyObserversOf (Miroslav Bajtoš)

 * ModelBaseClass: support promise-based observers (Miroslav Bajtoš)

 * use lodash to update the findBelongsTo which now returns an array of matches (Bryan Clark)

 * Add $now as shortcut default value for date property (Pradnya Baviskar)

 * Fix `deleteById(id)` and other test failures (Miroslav Bajtoš)
2015-02-20 17:08:01 -08:00
Miroslav Bajtoš ba0f3c1616 Add a new property option `defaultFn`
The property allows developers to specify that the default value
should be retrieved via a named function.

Only two built-in functions are supported at the moment:

  "guid", "uuid" - generate a new GUID/UUID
  "now" - use the current date and time

Support for custom (user-provided) functions is not implemented yet.
2015-02-20 20:08:25 +01:00
Miroslav Bajtoš a2836fbb56 ModelBaseClass: support promise-based observers
Allow the observer functions passed to `ModelBaseClass.observe`
to return a promise instead of calling the callback.
2015-02-17 17:31:42 +01:00
Bryan Clark 98fcf6b52c use lodash to update the findBelongsTo which now returns an array of matches 2015-02-16 15:36:51 -08:00
Raymond Feng b4189bf997 2.17.0
* Add an optional `options` argument to all CRUD methods (Raymond Feng)

 * Upgrade deps (Raymond Feng)

 * Remove workaround for perfomance degradation (Denis Bardadym)

 * Change equal to eql to support mongodb ObjectID (Raymond Feng)

 * Enhance the coercion for boolean/date types (Raymond Feng)

 * Make sure base properties/settings are merged into the submodel (Raymond Feng)

 * support optimized findOrCreate (Clark Wang)

 * Fix the perf around should.not.equal for complex objects (Raymond Feng)

 * testcase for #420 (Andrey Loukhnov)

 * use findOrCreate in hasOne#create (Clark Wang)

 * Create model foreign key matching type of opposite part of relation (even if it has a custom field type) (Andrey Loukhnov)

 * minor formatting issues (trailing spaces and such) and .editorconfig (Andrey Loukhnov)
2015-02-11 20:59:24 -08:00
Raymond Feng 770c69b1d4 Upgrade deps 2015-02-10 09:49:54 -08:00
Denis Bardadym 32e534732c Remove workaround for perfomance degradation 2015-02-10 13:28:47 +03:00
Miroslav Bajtoš aca258f7e0 v2.16.0 2015-02-05 12:47:33 +01:00
Miroslav Bajtoš 3593127ef3 Update to `should` to the latest version 4.6.3 2015-02-03 11:44:15 +01:00
Miroslav Bajtoš b169650618 v2.15.0 2015-02-02 19:10:36 +01:00
Miroslav Bajtoš f9b0ac482c Upgrade `should` to the latest 1.x version 2015-01-29 08:41:19 +01:00
Miroslav Bajtoš 825b4d5ba3 v2.14.1 2015-01-15 08:53:57 +01:00
Raymond Feng 0ff7e3de91 v2.14.0 2015-01-14 12:44:22 -08:00
Raymond Feng 0c4bc5e40e v2.13.0 2015-01-07 13:58:06 -08:00
Raymond Feng 01e578be15 v2.12.0 2014-12-08 16:19:09 -08:00
Raymond Feng 7e69d7c691 Bump version 2014-11-13 12:57:35 -08:00
Raymond Feng c43783f78c Bump version 2014-11-04 22:11:12 -08:00
Raymond Feng 354b843bf0 Bump version 2014-10-21 10:58:32 -07:00
Raymond Feng 0335d0a7b9 Bump version 2014-10-15 09:19:36 -07:00
Raymond Feng f2ed39cb2d Bump version 2014-10-13 08:34:24 -07:00
Raymond Feng 8ad25a179a Bump version 2014-09-12 22:49:59 -07:00
Raymond Feng 05d9d91463 Bump version 2014-09-04 10:23:30 -07:00
Raymond Feng 9cad519d97 Bump version 2014-08-27 11:15:57 -07:00
Raymond Feng debcc3d831 Bump version 2014-08-25 22:18:19 -07:00
Raymond Feng b26dc8207b Bump version 2014-08-22 11:07:24 -07:00
Raymond Feng 9e25cf1cd3 Bump version 2014-08-21 13:50:15 -07:00
Raymond Feng 76119e1f56 Bump version 2014-08-21 10:59:31 -07:00
Raymond Feng 6f680f92fc Bump version 2014-08-20 15:08:33 -07:00
Raymond Feng b47197e854 Bump version 2014-08-18 20:36:45 -07:00
Raymond Feng 4df1f52c47 Bump version 2014-08-15 23:31:19 -07:00
Raymond Feng 5baf05c237 Bump version 2014-08-15 13:49:09 -07:00
Raymond Feng c53dc74d16 Fix a name conflict in scope metadata 2014-08-08 15:52:30 -07:00
Raymond Feng 366ff3bf62 Bump version 2014-08-08 09:30:16 -07:00
Raymond Feng 3efd758658 Bump version 2014-08-07 10:36:49 -07:00
Raymond Feng 1cb4ea2ff0 Upgrade qs 2014-08-07 10:35:13 -07:00
Raymond Feng 5a2bb6548a Upgrade qs version 2014-08-04 16:37:21 -07:00
Raymond Feng e89a79916a Bump version 2014-08-04 15:29:45 -07:00
Raymond Feng 79af219618 Bump version 2014-07-30 09:19:40 -07:00
Raymond Feng 08070aab76 Bump version 2014-07-27 00:40:10 -07:00
Raymond Feng 4f80890489 Bump version 2014-07-26 23:58:51 -07:00
Miroslav Bajtoš cbab9d754a 2.0.0 2014-07-22 20:29:42 +02:00
Raymond Feng f9e31de7c8 Bump version 2014-07-21 11:34:38 -07:00
Raymond Feng 671b32dd43 Add missing inflection dep back 2014-07-16 12:31:44 -07:00
Raymond Feng 523db2fbad Bump version 2014-07-15 17:11:22 -07:00
Raymond Feng fc710ca55a Merge branch 'master' into 2.0 2014-07-15 17:09:20 -07:00
Raymond Feng f406c32b33 Bump version 2014-07-15 12:55:40 -07:00
Miroslav Bajtoš 1e3be7f474 1.6.3 2014-07-03 08:41:31 +02:00
Raymond Feng e7a97da3bf Bump version and update deps 2014-06-27 10:12:10 -07:00
Miroslav Bajtoš a7124c4821 2.0.0-beta2 2014-06-24 08:29:21 +02:00
Raymond Feng 44de2da21f Merge branch 'master' into 2.0 2014-06-20 23:02:37 -07:00
Raymond Feng 58131029cf Bump version 2014-06-20 21:16:39 -07:00
Raymond Feng 8087e4b1e7 Bump version 2014-06-04 15:26:04 -07:00
Miroslav Bajtoš a86648ed7b Replace connector base with loopback-connector
Remove references to Connector and BaseSQL, connectors should require()
loopback-connector instead of loopback-datasource-juggler.
2014-05-29 11:57:49 +02:00
Raymond Feng fb4dfb6f62 Bump version 2014-05-27 22:03:41 -07:00
Raymond Feng fc6c224599 Bump version 2014-05-27 21:59:21 -07:00
Miroslav Bajtoš 8e60915061 1.5.2 2014-05-27 21:59:21 -07:00
Ritchie Martori 6261eba266 2.0.0-beta1 2014-05-27 16:08:05 -07:00
Ritchie Martori 104ba1aab8 1.6.0 2014-05-20 13:59:53 -07:00
Miroslav Bajtoš 934b5a3fa9 1.5.2 2014-05-20 17:59:05 +02:00
Raymond Feng a9a7ab1315 Bump version 2014-05-16 08:52:25 -07:00
Miroslav Bajtoš ed533485aa 1.5.0 2014-05-15 09:35:55 +02:00
skawful@gmail.com 7a02c0935b 1.4.0 2014-05-14 13:47:06 -07:00
Raymond Feng d3fc157601 Update deps 2014-05-13 08:46:34 -07:00
Raymond Feng 4b93adfbe9 Bump version 2014-05-13 08:34:44 -07:00
Ritchie Martori 9b9833df0f 1.3.12 2014-05-01 14:25:49 -07:00
Ritchie Martori 503da59218 1.3.11 2014-04-11 12:37:24 -07:00
Raymond Feng e3eca4cf19 Bump version 2014-04-04 09:02:12 -07:00
Miroslav Bajtoš de3aaf1a11 v1.3.9 2014-04-04 16:37:52 +02:00
Raymond Feng 2e9e59c79b Bump version 2014-03-27 14:43:08 -07:00
Raymond Feng c3f5487914 Bump version 2014-03-19 17:14:09 -07:00
Raymond Feng 7c9f48d122 Bump version 2014-03-04 10:40:58 -08:00
Raymond Feng d14c58775d Use debug module for logging 2014-03-04 09:42:55 -08:00
Raymond Feng 5a3eebbc9f Bump version 2014-02-27 11:13:12 -08:00
Raymond Feng fc48e77181 Bump version 2014-02-24 22:24:20 -08:00
Raymond Feng da09fd29b8 Bump version and update deps 2014-02-21 09:21:42 -08:00
Raymond Feng 0007df6d50 Update license to dual MIT/StrongLoop 2014-02-17 15:56:56 -08:00
Raymond Feng 9f0074dc13 Bump version 2014-02-13 08:51:27 -08:00
Raymond Feng e5b03f5bcd Bump version 2014-02-11 19:47:23 -08:00
Raymond Feng 24c76bff0c Revert the inflection version due to regression in camelize 2014-02-11 15:39:40 -08:00
Raymond Feng e7c84c333f Bump version and update deps 2014-02-11 14:31:26 -08:00
Miroslav Bajtoš 3cc51a2dff v1.2.13 2014-01-27 10:14:15 +01:00
Raymond Feng a8606f4b8e Bump version 2014-01-13 13:21:13 -08:00
Raymond Feng 96d9da290d Bump version 2013-12-20 18:25:56 -08:00
Raymond Feng e550a25d7e Bump version 2013-12-16 14:28:00 -08:00
Raymond Feng fd6fa3558d Bump version 2013-12-14 00:04:26 -08:00
Raymond Feng 1131914bc6 Bump version 2013-12-10 09:56:35 -08:00
Raymond Feng e5824356ca Fix belongsTo relation 2013-12-04 21:38:40 -08:00
Ritchie Martori 9a549cfe5d Bump version 2013-12-04 11:40:50 -08:00
Raymond Feng c55a5153a5 Bump version 2013-11-20 11:10:40 -08:00
Raymond Feng 1818be1667 Bump the version 2013-11-19 10:58:13 -08:00
Raymond Feng 31c5504050 Bump version and remove blanket 2013-11-15 13:54:29 -08:00
Raymond Feng a3d66b65ef Bump version 2013-11-13 17:27:55 -08:00
Raymond Feng 4c75bd4575 Update to 1.2.0 2013-11-08 09:14:55 -08:00
Raymond Feng f3011216b5 Support datasource/connector configuration using URL string 2013-10-25 16:18:02 -07:00
Raymond Feng 63ce9911cb Add keywords to package.json 2013-09-11 10:46:09 -07:00