Skip to content

Update deprecated remoting metadata functions - #229

Merged
davidcheung merged 1 commit into
masterfrom
fix-remoting-method
Jul 27, 2016
Merged

Update deprecated remoting metadata functions#229
davidcheung merged 1 commit into
masterfrom
fix-remoting-method

Conversation

@davidcheung

@davidcheung davidcheung commented Jul 21, 2016

Copy link
Copy Markdown
Contributor

Remove deprecation warning from getFullPath() and getHttpMethod()

See strongloop/strong-remoting#305
right now it gives deprecation warning

> npm run generate-loopback-core && npm run lint


> loopback-sdk-angular@1.8.0 generate-loopback-core /Users/davidcheung/node-web/loopback-sdk-angular
> node ./apidocs/describe-builtin-models.js

Generating API docs for LoopBack built-in models.
loopback deprecated loopback.compress is deprecated. Use `require('compression');` instead. apidocs/describe-builtin-models.js:32:23
  added persisted model ACL
  added persisted model AccessToken
  added persisted model Application
  added persisted model Change
  added persisted model Checkpoint
  added model Email
  added persisted model Role
  added persisted model RoleMapping
  added persisted model Scope
  added persisted model User
strong-remoting deprecated getFullPath() is deprecated, use getEndpoints()[0].fullPath instead. eval at <anonymous> (/Users/davidcheung/node-web/loopback-sdk-angular/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:36:314
strong-remoting deprecated getHttpMethod() is deprecated, use getEndpoints()[0].verb instead. eval at <anonymous> (/Users/davidcheung/node-web/loopback-sdk-angular/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:94:12
strong-remoting deprecated getFullPath() is deprecated, use getEndpoints()[0].fullPath instead. eval at <anonymous> (/Users/davidcheung/node-web/loopback-sdk-angular/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:42:140
strong-remoting deprecated getHttpMethod() is deprecated, use getEndpoints()[0].verb instead. eval at <anonymous> (/Users/davidcheung/node-web/loopback-sdk-angular/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:42:228
strong-remoting deprecated getHttpMethod() is deprecated, use getEndpoints()[0].verb instead. eval at <anonymous> (/Users/davidcheung/node-web/loopback-sdk-angular/node_modules/ejs/lib/ejs.js:242:14), <anonymous>:94:48
Done: /Users/davidcheung/node-web/loopback-sdk-angular/apidocs/loopback-core.js

@0candy PTAL
/cc @Amir-61 @bajtos

@Amir-61

Amir-61 commented Jul 22, 2016

Copy link
Copy Markdown
Member

LGTM. However you should wait for @0candy's LGTM.

@0candy

0candy commented Jul 22, 2016

Copy link
Copy Markdown
Contributor

LGTM

@0candy 0candy assigned davidcheung and unassigned 0candy Jul 22, 2016
@bajtos

bajtos commented Jul 22, 2016

Copy link
Copy Markdown
Member

LGTM

@davidcheung
davidcheung force-pushed the fix-remoting-method branch from 29127db to 97c2630 Compare July 27, 2016 20:18
@davidcheung
davidcheung merged commit 811ea79 into master Jul 27, 2016
@davidcheung
davidcheung deleted the fix-remoting-method branch July 27, 2016 20:48
davidcheung pushed a commit that referenced this pull request Sep 22, 2016
in strong-remoting 2.x methods `getHttpMethod()` and `getFullPath()` were used
in strong-remoting 3.x we have deprecated those methods in favor of getEndPoints()
this patch is so users using newer SDK can still choose to use old strong-remoting
the change was introduced in /pull/229
davidcheung pushed a commit that referenced this pull request Oct 4, 2016
in strong-remoting 2.x methods `getHttpMethod()` and `getFullPath()` were used
in strong-remoting 3.x we have deprecated those methods in favor of getEndPoints()
this patch is so users using newer SDK can still choose to use old strong-remoting
the change was introduced in /pull/229
davidcheung pushed a commit that referenced this pull request Oct 4, 2016
in strong-remoting 2.x methods `getHttpMethod()` and `getFullPath()`
were used in strong-remoting 3.x we have deprecated those methods
in favor of getEndPoints() this patch is so users using newer SDK
can still choose to use old strong-remoting the change was introduced
in /pull/229
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants