Merge pull request #976 from strongloop/compatflag-cleanup

[SEMVER-MAJOR] Remove DataSource.registerType()
This commit is contained in:
Gunjan Pandya 2016-06-29 13:32:29 -04:00 committed by GitHub
commit 6bc4441850
2 changed files with 8 additions and 8 deletions

View File

@ -83,3 +83,11 @@ for example, `customer.name: 'string'`, an error is thrown in 3.0 for
enforcing use of valid model property names.
See [related code change](https://github.com/strongloop/loopback-datasource-juggler/pull/947) for more details.
## Remove wrapper `DataSource.registerType()`
`DataSource.registerType() method is removed as it was a wrapper for
`ModelBuilder.registerType()` and was deprecated.
See [related code change](https://github.com/strongloop/loopback-datasource-juggler/pull/976)
for more details.

View File

@ -2192,11 +2192,3 @@ function defineReadonlyProp(obj, key, value) {
DataSource.Text = ModelBuilder.Text;
DataSource.JSON = ModelBuilder.JSON;
DataSource.Any = ModelBuilder.Any;
/*!
* @deprecated Use ModelBuilder.registerType instead
* @param type
*/
DataSource.registerType = function(type) {
ModelBuilder.registerType(type);
};