Commit Graph

2193 Commits

Author SHA1 Message Date
Loay 8f7e032a01 Update user.js 2016-07-25 00:55:55 -04:00
Loay c22803c3a3 Merge pull request #2492 from strongloop/fix-issue580
Fix security issue 580
2016-07-22 22:20:27 -04:00
Loay b53a22bfb3 Fix security issue 580 2016-07-22 17:48:57 -04:00
Gunjan Pandya 7ed003e973 Merge pull request #2419 from strongloop/remove-legacyExplorer
[SEMVER-MAJOR] Remove legacyExplorer
2016-07-14 14:35:38 -04:00
Ryan Graham 7117dbcf12 Update URLs in CONTRIBUTING.md (#2503) 2016-07-13 17:45:00 -07:00
gunjpan 1b053d44fe Remove legacyExplorer
- Removes backward compatibility
for legacy end points `/models` & `/routes`
- Removes `legacyExplorer` flag which
enabled these routes
- Update related tests & tests using the
legacyExplorer flag
2016-06-20 16:05:11 -04:00
Candy 2e06ded55f Merge pull request #2437 from strongloop/remove_rectify_change
Remove `rectifyAllChanges` and `rectifyChange`
2016-06-20 14:07:54 -04:00
Candy 3bf9065203 Remove `rectifyAllChanges` and `rectifyChange` 2016-06-20 10:46:16 -04:00
Loay 45e523d66c Merge pull request #2440 from strongloop/issue414_token2
Fix verificationToken bug
2016-06-17 11:12:16 -04:00
Loay ec51e833b6 Fix verificationToken bug 2016-06-17 10:21:59 -04:00
Loay 03e85b838d Merge pull request #2446 from strongloop/issue2445
update express version
2016-06-17 09:53:15 -04:00
Loay 4a02f97572 update express version 2016-06-17 03:52:37 -04:00
Miroslav Bajtoš 42c83f69a0 Cleanup unit-test added in 1fc51d129 2016-06-14 14:47:41 +02:00
Loay 74aba5f80c Merge pull request #2411 from strongloop/strongErrorHandler
[SEMVER-MAJOR] Remove `loopback#errorHandler` middleware
2016-06-13 16:47:24 -04:00
Loay 1fc51d1296 update errorHandler template 2016-06-13 11:18:09 -04:00
Miroslav Bajtoš a2e199f025 3.0.0-alpha.2
* add missing unit tests for #2108 (Benjamin Kroeger)
 * Expose `Replace*` methods (Amir Jafarian)
 * Update tests for strong-error-handler (David Cheung)
 * Remove legacy express 3.x middleware getters (Miroslav Bajtoš)
 * Docuemtation for `replace*` methods (Amir Jafarian)
 * Make the doc clear for `findORCreate` cb (Amir Jafarian)
 * Fix JSCS unsupported rule error (Jason)
 * Remove env.json and strong-pm dir (Ritchie Martori)
 * Throw error upon extending unknown model (David Cheung)
 * Remove unused UserModel properties (David Cheung)
 * Remove Change.handleError (Candy)
 * Update user.js (Rik)
 * Separate error-checking and next/done logic from other logic in the test suite (Supasate Choochaisri)
 * Clean up by removing unnecessary comments (Supasate Choochaisri)
 * Add feature to not allow duplicate role name (Supasate Choochaisri)
 * update copyright statements (Ryan Graham)
 * relicense as MIT only (Ryan Graham)
 * Upgrade phantomjs to 2.x (Miroslav Bajtoš)
 * app: send port:0 instead of port:undefined (Miroslav Bajtoš)
 * travis: drop node@5, add node@6 (Miroslav Bajtoš)
 * Disable DEBUG output for eslint on Jenkins CI (Miroslav Bajtoš)
 * Remove "loopback.autoAttach()" (Miroslav Bajtoš)
 * test/rest.middleware: use local registry (Miroslav Bajtoš)
 * Fix role.isOwner to support app-local registry (Miroslav Bajtoš)
 * test/user: use local registry (Miroslav Bajtoš)
 * Resolver support return promise (juehou)
 * remove @private from jsdoc (Manu Phatak)
 * Fixes for emit `remoteMethodDisabled` PR (Simon Ho)
 * Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method. (Supasate Choochaisri)
 * Fix typo in Model.nestRemoting (Tim Needham)
 * Update loopback.js (Rand McKinney)
 * Allow built-in token middleware to run repeatedly (Benjamin Kröger)
 * Use eslint with loopback config (Miroslav Bajtoš)
 * promise docs (Jue Hou)
 * Update JSDoc (sghung@ca.ibm.com)
 * Remove constraint making isStatic required (Candy)
 * Fix inconsistencies in JSDoc (sghung@ca.ibm.com)
 * Improve error message on connector init error (Miroslav Bajtoš)
 * application: correct spelling of "cannont" (Sam Roberts)
 * Remove sl-blip from dependency (Candy)
 * Use new strong-remoting API (Candy)
 * test: remove forgotten console.trace logs (Miroslav Bajtoš)
 * Fix race condition in replication tests (Miroslav Bajtoš)
 * Fix race condition in error handler test (Miroslav Bajtoš)
 * test: remove errant console.log from test (Ryan Graham)
 * Promisify Model Change (Jue Hou)
 * Travis: drop iojs, add v4.x and v5.x (Miroslav Bajtoš)
 * test: use ephemeral port for e2e server (Ryan Graham)
 * test: fail on error instead of crash (Ryan Graham)
 * ensure app is booted before integration tests (Ryan Graham)
 * Remove "loopback.DataModel" (Miroslav Bajtoš)
 * Correct JSDoc findOrCreate() callback in PersistedModel (Chris Coggburn)
 * Fix typo in package.json (publishConfig) (Miroslav Bajtoš)
 * Start development of 3.0 (Candy)
 * Hide verificationToken (Samuel Gaus)
 * Fix description for User.prototype.hasPassword (Jue Hou)
 * Checkpoint speedup (Amir Jafarian)
 * Always use bluebird as promise library Replace `global.Promise` with `bluebird` (Jue Hou)
 * Remove unused code from loopback-testing-helper (Simon Ho)
 * Make juggler a regular dependency (Miroslav Bajtoš)
 * Remove dependency on loopback-testing (Simon Ho)
 * Fix failing tests (Simon Ho)
 * Update persisted-model.js (Rand McKinney)
 * Update persisted-model.js (linguofeng)
2016-06-13 17:04:46 +02:00
Miroslav Bajtoš 103935cef7 Merge pull request #2227 from benkroeger/hotfix/issue-2226
add missing unit tests for #2108

Close #2227
2016-06-13 15:29:26 +02:00
Benjamin Kroeger 83b5d72073 add missing unit tests for #2108
subsequent token middleware tries to read `token.id` when `enableDoublecheck: true`. That caused a "Cannot read property `id` of `null`" error when the first middleware didn't actually find a valid accessToken.
2016-06-13 15:27:59 +02:00
Amir-61 6bbe7be266 Merge pull request #2316 from strongloop/expose_replace_methods
Expose `Replace*` methods
2016-06-13 09:17:02 -04:00
Amir Jafarian 6502309e34 Expose `Replace*` methods
*Re-mapping `updateAttributes` endpoint to use
`PATCH` and `PUT`(configurable) verb
*Exposing `replaceById` and `replaceOrCreate` via
`POST` and `PUT`(configurable) verb
2016-06-10 14:56:44 -04:00
David Cheung ed45358be8 Merge pull request #2375 from strongloop/fix-remoting-strongerrorhandler
[SEMVER-MAJOR] Fix remoting strong-error-handler
2016-06-07 17:36:47 -04:00
David Cheung ddb5327e64 Update tests for strong-error-handler
Fix rest-adapter related test case switching to strong-error-handler
Only affect the test-cases calling rest methods
2016-06-07 13:26:18 -04:00
Miroslav Bajtoš 276fb5bf69 Merge pull request #2394 from strongloop/remove-express-middleware
[SEMVER-MAJOR] Remove legacy express 3.x middleware getters
2016-06-01 08:33:39 +02:00
Miroslav Bajtoš 8d295b70f6 Remove legacy express 3.x middleware getters
Remove middleware-getter properties that were simlifying upgrade from
LoopBack 1.x/Express 3.x applications:

  - loopback.compress
  - loopback.timeout
  - loopback.cookieParser
  - loopback.cookieSession
  - loopback.csrf
  - loopback.errorHandler
  - loopback.session
  - loopback.methodOverride
  - loopback.logger
  - loopback.responseTime
  - loopback.favicon
  - loopback.directory
  - loopback.vhost

Also remove `loopback.mime`, which was set to `undefined` anyways.
2016-05-31 18:59:21 +02:00
Rand McKinney 70cec0755a Merge pull request #2360 from strongloop/doc/replace
Docuemtation for `replace*` methods
2016-05-20 14:07:25 -07:00
Amir Jafarian eb8f398c6a Docuemtation for `replace*` methods 2016-05-20 16:29:25 -04:00
Amir-61 a9628b9f63 Merge pull request #2349 from strongloop/findORCreate_doc
Make the doc clear for `findORCreate` cb
2016-05-17 18:03:26 -04:00
Amir Jafarian 5c3d021fe7 Make the doc clear for `findORCreate` cb 2016-05-17 17:50:13 -04:00
Miroslav Bajtoš 4fd1d2bcd4 Merge pull request #2327 from strongloop/fix/extra-strong-pm-file
Remove env.json and strong-pm dir
2016-05-13 13:44:09 +02:00
Simon Ho 9ec52ec415 Merge pull request #2336 from jasonwoan/fix/jscs-validatejsdoc-error
Fix JSCS unsupported rule error
2016-05-12 16:52:37 -07:00
Jason 31158f0427 Fix JSCS unsupported rule error
Replace 'validateJSDoc' rule with 'jsDoc'. 'validateJSDoc' was
deprecated in v1.7.0.

In related news, JSCS was recently deprecated in favor of ESlint
so .jscrc can be removed once features have been rolled over.
2016-05-11 23:06:22 -07:00
David Cheung aa47f79ca6 Merge pull request #2301 from strongloop/error-extend-unknown-model
Throw descriptive error upon extending unknown model
2016-05-11 10:39:21 -04:00
Ritchie Martori 09da46a34d Remove env.json and strong-pm dir 2016-05-10 15:23:38 -07:00
David Cheung e723d8b641 Throw error upon extending unknown model
Create Model now uses findModel to retrieve base instead of getModel
and throws error upon base model not found
2016-05-10 18:00:56 -04:00
David Cheung a6f8c07301 Merge pull request #2299 from strongloop/removed-unused-user-properties
[SEMVER-MAJOR] Removed unused user properties
2016-05-10 14:32:32 -04:00
David Cheung 817e76e424 Remove unused UserModel properties
- credentials
- challenges
- status
- created
- lastUpdated
2016-05-10 14:29:08 -04:00
Simon Ho 363bc4d6c1 Merge pull request #2310 from ambrt/ambrt-patch-1
Update user.js
2016-05-09 12:30:17 -07:00
Candy 8a6deb868c Merge pull request #2308 from strongloop/remove_change_handleError
Remove Change.handleError
2016-05-09 12:05:50 -04:00
Candy 8ab6fccdea Remove Change.handleError 2016-05-09 11:45:27 -04:00
Rik 341390a74e Update user.js
allow to change all {href} instances in user.verify() mail into generated url instead of just one
2016-05-08 13:10:56 +02:00
Simon Ho ca1baee0f9 Merge pull request #2297 from supasate/refactor/separate-error-checking-and-next-and-done-logic-from-others
Separate error-checking and next/done logic from other logic
2016-05-06 13:27:29 -07:00
Supasate Choochaisri 04e26fae5c Separate error-checking and next/done logic from other logic in the test suite
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-05-05 11:12:48 +07:00
Simon Ho 1559db2ca3 Merge pull request #2269 from supasate/feature/do-not-allow-duplicate-role-name
Add feature to not allow duplicate role name
2016-05-04 20:42:13 -07:00
Supasate Choochaisri dd78b36a17 Clean up by removing unnecessary comments
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-05-05 08:18:32 +07:00
Supasate Choochaisri d4a869bddf Add feature to not allow duplicate role name
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-05-05 08:18:17 +07:00
Ryan Graham 6964914bab
update copyright statements 2016-05-03 15:50:21 -07:00
Ryan Graham 8acac40ec3
relicense as MIT only 2016-05-03 15:49:10 -07:00
Miroslav Bajtoš 097984154b Merge pull request #2283 from strongloop/add-node-v6-to-travis
travis: drop node@5, add node@6
2016-05-03 18:59:12 +02:00
Miroslav Bajtoš ed766f55b4 Upgrade phantomjs to 2.x 2016-05-03 16:43:45 +02:00
Miroslav Bajtoš 4d7154a31a app: send port:0 instead of port:undefined
Node v6 no longer supports port:undefined, this commit is fixing
app.listen() to correctly send port:0 when no port is specified.
2016-05-03 16:20:07 +02:00