Raymond Feng
eddb17689c
3.20.1
...
* Update deps (Raymond Feng)
2018-05-11 08:21:07 -07:00
Raymond Feng
2bb77e60e5
Update deps
2018-05-11 08:20:15 -07:00
Raymond Feng
965655be3a
3.20.0
...
* Fix typescript definitions to be compatible with LB4 (Raymond Feng)
* Allow toObject() to accept an 'options' argument (Raymond Feng)
2018-05-10 10:20:41 -07:00
Raymond Feng
e49eb47e36
Merge pull request #1583 from strongloop/fix-ts-defs
...
Fix ts defs
2018-05-10 10:20:10 -07:00
Raymond Feng
63f8b3b323
Fix typescript definitions to be compatible with LB4
2018-05-10 10:19:15 -07:00
Raymond Feng
90163ba709
Allow toObject() to accept an 'options' argument
2018-05-10 10:18:55 -07:00
Raymond Feng
4aa51e9956
3.19.0
...
* Add typescript type definitions (Raymond Feng)
* Tidy up datasource (Raymond Feng)
2018-05-10 06:58:28 -07:00
Raymond Feng
c9558026d0
Merge pull request #1578 from strongloop/ts-definitions
...
Add TypeScript declaration files
2018-05-10 06:57:20 -07:00
Raymond Feng
77a2c9ab3b
Add typescript type definitions
2018-05-09 12:47:27 -07:00
Raymond Feng
cc99cd8f0f
Tidy up datasource
2018-05-03 14:14:53 -07:00
Miroslav Bajtoš
1ef38a6929
3.18.1
...
* Polyfill Number.isFinite() to support PhantomJS (Miroslav Bajtoš)
2018-04-19 09:11:12 +02:00
Miroslav Bajtoš
c213352800
Merge pull request #1575 from strongloop/fix/phantomjs
...
Polyfill Number.isFinite() to support PhantomJS
2018-04-19 08:34:21 +02:00
Miroslav Bajtoš
f8479253fa
Polyfill Number.isFinite() to support PhantomJS
2018-04-17 10:08:39 +02:00
Miroslav Bajtoš
2ac5efa04a
3.18.0
...
* feat: remove a Model from all registries (Miroslav Bajtoš)
2018-04-17 09:34:00 +02:00
Miroslav Bajtoš
2d76947c07
Merge pull request #1573 from strongloop/feature/remove-model
...
feat: remove a Model from all registries
2018-04-17 09:33:13 +02:00
Diana Lau
3eb94c09c4
3.17.0
...
* feat: omit default fn for embedsMany (#1532 ) (Janny)
2018-04-16 08:57:21 -04:00
Miroslav Bajtoš
5af4c42728
feat: remove a Model from all registries
...
Add API allowing consumers (e.g. LoopBack) to remove a Model from all
juggler registries:
- ModelBuilder's models
- ModelBuilder's definitions
- Connector registry of models
2018-04-16 14:24:53 +02:00
Janny
01427b1755
feat: omit default fn for embedsMany ( #1532 )
...
* feat: omit default fn for embeds many
* fix: apply feedback
2018-04-13 13:17:40 -04:00
Miroslav Bajtoš
e095b77048
3.16.0
...
* Pass options argument to custom validators (bmatson)
* chore: update CODEOWNERS (#1566 ) (Diana Lau)
2018-03-22 16:19:16 +01:00
Miroslav Bajtoš
f0c092da21
Merge pull request #1508 from bmatson/master
...
Pass context to custom validators
2018-03-22 16:17:38 +01:00
bmatson
c3e502032e
Pass options argument to custom validators
2018-03-22 15:51:21 +01:00
Diana Lau
a5faee46bd
chore: update CODEOWNERS ( #1566 )
2018-03-22 10:32:28 -04:00
Raymond Feng
641eb13e5d
3.15.5
...
* Exclude .nyc_output from being published (Raymond Feng)
* CODEOWNERS: add nitro404 (Miroslav Bajtoš)
2018-03-16 08:51:36 -07:00
Raymond Feng
e56d520db4
Exclude .nyc_output from being published
2018-03-16 08:50:45 -07:00
Miroslav Bajtoš
2c37cda1aa
Merge pull request #1561 from strongloop/welcome-nitro404
...
CODEOWNERS: add nitro404
2018-02-16 09:18:19 +01:00
Miroslav Bajtoš
faa57a8a2a
CODEOWNERS: add nitro404
2018-02-15 16:03:01 +01:00
Raymond Feng
c2920c9f9b
3.15.4
...
* fix: allow `new DataSource(connector, settings)` (Raymond Feng)
2018-02-13 09:43:24 -08:00
Raymond Feng
5dc6a1cd13
Merge pull request #1558 from strongloop/fix-ds-constructor
...
fix: allow `new DataSource(connector, settings)`
2018-02-13 09:43:01 -08:00
Raymond Feng
87e1e217c3
fix: allow `new DataSource(connector, settings)`
2018-02-13 09:42:41 -08:00
Raymond Feng
310b9489d3
3.15.3
...
* fix: add more tests to verify new DataSource() (Raymond Feng)
2018-02-09 15:01:32 -08:00
Raymond Feng
8dd86c31a5
Merge pull request #1557 from strongloop/add-datasource-tests
...
fix: add more tests to verify new DataSource()
2018-02-09 15:00:57 -08:00
Raymond Feng
4be2ea8afb
fix: add more tests to verify new DataSource()
2018-02-09 14:33:42 -08:00
Raymond Feng
54143dfa37
3.15.2
...
* feat(datasource): seperate name and connector name (Nguyen Truong Minh)
* Fix datasource not correctly retaining name value (Kevin Scroggins)
2018-02-07 17:14:05 -08:00
Raymond Feng
bbff92c13f
Merge pull request #1555 from strongloop/truongminh-set-datasource-name
...
Use more meaningful names for dataSource and connector
2018-02-07 17:11:48 -08:00
Raymond Feng
9d3e6cd8f5
Merge branch 'set-datasource-name' of https://github.com/truongminh/loopback-datasource-juggler into truongminh-set-datasource-name
2018-02-07 16:50:57 -08:00
Raymond Feng
598effcabc
Merge pull request #1548 from nitro404/hotfix/retain-datasource-name
...
Fix datasource not correctly retaining name value
2018-02-07 16:05:43 -08:00
Nguyen Truong Minh
80f9364edc
feat(datasource): seperate name and connector name
2018-02-07 16:25:25 +07:00
Diana Lau
1ec2b4d17c
3.15.1
...
* Added error handling for persist operation hook (#1531 ) (Kevin Scroggins)
* Add warning for datasources with mismatched names (Kevin Scroggins)
2018-02-06 11:19:41 -05:00
Kevin Scroggins
25b1aa5abc
Fix datasource not correctly retaining name value
2018-01-31 11:30:24 -05:00
Miroslav Bajtoš
309b422425
Merge pull request #1542 from nitro404/hotfix/datasource-name-mismatch-warning
...
Add warning for datasources with mismatched names
2018-01-25 07:57:25 +01:00
Kevin Scroggins
07f0310d34
Added error handling for persist operation hook ( #1531 )
...
Unrelated CI failures. -.-
2018-01-24 11:37:30 -05:00
Kevin Scroggins
92595b4348
Add warning for datasources with mismatched names
2018-01-23 14:18:49 +01:00
Kevin Delisle
943fed851e
3.15.0
...
* fix unauthorized fk change (#1538 ) (Taranveer Virk)
* Set model constructor name to model name (Miroslav Bajtoš)
2018-01-19 12:55:16 -05:00
Taranveer Virk
cc60ef8202
fix unauthorized fk change ( #1538 )
...
Downstream failures are unrelated.
2018-01-17 13:34:37 -05:00
Miroslav Bajtoš
9189dba001
Merge pull request #1534 from strongloop/feature/correct-model-ctor-name
...
Set model constructor name to model name
2018-01-09 09:36:40 +01:00
Miroslav Bajtoš
b0b377af0c
Set model constructor name to model name
...
Rework the code building model constructors to leverage `Function` class
and dynamically emit a constructor function named after the model.
Before this change, all model classes were called "ModelConstructor",
which made debugging difficult.
After this change, a model class for model "User" is called "User.
Because not all valid model names are also valid JavaScript identifiers,
we implement a simple sanitization technique (replacing characters like
"-", "." and ":" with underscore "_") and fall back to legacy
"ModelConstructor" if the model name is still not a valid JS identifier.
2018-01-08 09:37:23 +01:00
Kevin Delisle
00cf01f901
3.14.0
...
* Allow new transaction method in postgresql (#1493 ) (zbarbuto)
* Fix bug in utils uniq function (#1526 ) (Peter Bouda)
* Fix query for related models (#1522 ) (Joost de Bruijn)
* chore:update license (#1521 ) (Diana Lau)
* Allow customizing embedded relation property (#1513 ) (zbarbuto)
* 📖 Typo on README.md (#1517 ) (JP Ventura)
* CODEOWNERS: move @lehni to Alumni section (Miroslav Bajtoš)
2017-12-14 11:33:39 -05:00
zbarbuto
f5de99b249
Allow new transaction method in postgresql ( #1493 )
...
kv-extreme-scale needs fixing, unrelated.
2017-12-12 10:56:42 -05:00
Peter Bouda
6bd9fca080
Fix bug in utils uniq function ( #1526 )
...
The uniq function does currently not work when the database is mongodb.
In the case of mongodb, the function will receive an array of bson
object of bson type ObjectID. The indexOf function will return a
different index, even if the mongodb ID is the same, as it is wrapped
in the ObjectID. This commit first transforms any ObjectID in the array
to a string representation. We can then use indexOf to check for
uniqueness.
2017-12-04 15:39:58 -05:00
Joost de Bruijn
7a4c6ca2f9
Fix query for related models ( #1522 )
2017-11-14 14:22:48 -05:00