From 8076be2db1bf5d82dba17bc15ff3fd53ec14b37b Mon Sep 17 00:00:00 2001 From: gunjpan Date: Wed, 15 Jun 2016 16:02:51 -0400 Subject: [PATCH] Remove DataSource.registerType() Result of compat flag cleanup. - Current implementation has a wrapper DataSource.registerType() for ModelBuilder.registerType(). This removes the wrapper to encourage use of original method --- 3.0-RELEASE-NOTES.md | 8 ++++++++ lib/datasource.js | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/3.0-RELEASE-NOTES.md b/3.0-RELEASE-NOTES.md index 79a17eb4..331b7334 100644 --- a/3.0-RELEASE-NOTES.md +++ b/3.0-RELEASE-NOTES.md @@ -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. diff --git a/lib/datasource.js b/lib/datasource.js index 8b33d0a5..34c76c56 100644 --- a/lib/datasource.js +++ b/lib/datasource.js @@ -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); -};