Miroslav Bajtoš
70eecfab70
Upgrade eslint-config to 7.x
2017-01-06 12:12:35 +01:00
Miroslav Bajtoš
60ea3e96bc
Contextify DAO and relation methods
...
Modify remoting metadata of data-access methods in PersistedModel
and relation method in Model and add an "options" argument to "accepts"
list.
2016-12-22 10:26:09 +01:00
Miroslav Bajtoš
668a9d0ed6
3.1.1
...
* Update package.json for LB3 release (Simon Ho)
* Invalidate AccessTokens on password change (Miroslav Bajtoš)
* Fix registration of operation hooks in User model (Miroslav Bajtoš)
* Remove "options.template" from Email payload (Miroslav Bajtoš)
* Upgrade eslint config and grunt-eslint to latest (Miroslav Bajtoš)
* Update paid support URL (siddhipai)
* Update paid support URL (Siddhi Pai)
* Remove duplicate warning in issue template (Siddhi Pai)
2016-12-21 16:05:58 +01:00
Simon Ho
92ab09338e
Update package.json for LB3 release
2016-12-21 00:54:07 -08:00
Miroslav Bajtoš
acdfb432d0
Upgrade eslint config and grunt-eslint to latest
...
- disable ES6 because PhantomJS does not support it yet
- fix linter errors reported after the upgrade.
2016-12-06 16:05:13 +01:00
Miroslav Bajtoš
3e1ae2d413
3.1.0
...
* Fix use-strict issue with connectors after merge (Loay)
* Fix connector naming in strict mode (ebarault)
* Add "returnOnlyRoleNames" option to Role.getRoles (Eric)
* Update translation files (Candy)
* Fix broken document for `upsertWithWhere` (Amir Jafarian)
* Fix js doc for deleteAll event (Candy)
* add allowArray to relations' create remoteMethod (David Cheung)
* Remove workaround for default value (Loay)
* Fix remote method example (Amir Jafarian)
* Remove `example/context` (Amir Jafarian)
* Turn on "no-unused-expressions" rule for eslint (Miroslav Bajtoš)
* Update eslint to loopback config v5 (Loay)
* Fix total calculation in example (Candy)
* make test individually runable (David Cheung)
* Add options to bulkUpdate (Kogulan Baskaran)
* Fix context within listByPrincipalType role method (codyolsen)
* Add Node v7 to Travis CI platforms (Miroslav Bajtoš)
* Drop support for Node v0.10 and v0.12 (Miroslav Bajtoš)
* Add templateFn option to User#verify() (Adrien Kiren)
* Require verification after email change (Loay)
* Update doc links (Candy)
* adding check of string for case insensitive emails (Dhaval Trivedi)
* Update test confirmation text in PR template (#2897 ) (Simon Ho)
* allow batch create for persisted models (David Cheung)
* Fix PR template to not link all PRs to #49 (#2887 ) (Miroslav Bajtoš)
* Need index on principalId for performance. (#2883 ) (Simon Ho)
* Remove redundant items in PR template (#2877 ) (Simon Ho)
* Refactor PR template based on feedback (#2865 ) (Simon Ho)
* Add pull request template (#2843 ) (Simon Ho)
* Update README.md (Rand McKinney)
* Reword ticking checkbox note in issue template (#2854 ) (Simon Ho)
* Add how to tick checkbox in issue template (#2851 ) (Simon Ho)
* Fix description of updateAll response (Miroslav Bajtoš)
* Allow tokens with eternal TTL (value -1) (Miroslav Bajtoš)
* Use GitHub issue templates (#2810 ) (Simon Ho)
* Update ja and nl translation files (Candy)
* Remove 3.0 DEVELOPING & RELEASE-NOTES (Miroslav Bajtoš)
* Fix support for remote hooks returning a Promise (Tim van der Staaij)
* Validate non-email property partial update (Loay)
* Update release notes (Amir Jafarian)
* Update translation files - round#2 (Candy)
* Add license text (Candy)
* Temporarily disable Karma tests on Windows CI (Miroslav Bajtoš)
2016-12-05 10:15:39 +01:00
Miroslav Bajtoš
1ec7cf0a37
Turn on "no-unused-expressions" rule for eslint
...
Fix unit-tests relying on property-based assertions to use function
calls instead, using "dirty-chai" to modify chai's property checkers.
2016-11-22 15:30:04 +01:00
Loay
06cb481c3f
Update eslint to loopback config v5
...
Notable side-effects:
- loopback no longer exports "caller" and "arguments" properties
- kv-memory connector is now properly added to the connector registry
- the file "test/support.js" was finally removed
2016-11-22 14:08:02 +01:00
Miroslav Bajtoš
d146476757
Drop support for Node v0.10 and v0.12
2016-11-15 13:48:29 +01:00
Miroslav Bajtoš
8d0f319dd6
3.0.0
...
* Update deps to 3.0.0 RC (Miroslav Bajtoš)
* Update globalization structure (Candy)
* Call new disable remote method from model class. (Richard Pringle)
* Add translation strings (Candy)
* Support uniqueness for realm users (David Cheung)
* Invalidate sessions after email change (Loay)
* Add docs for KeyValue model (Simon Ho)
* Fix remote method inheritance (Candy)
* Fix double-slash in confirmation URL (Miroslav Bajtoš)
2016-09-22 12:48:40 +02:00
Miroslav Bajtoš
9d259ce5a3
Update deps to 3.0.0 RC
2016-09-22 12:31:51 +02:00
Candy
640f3a8ca7
Update globalization structure
2016-09-22 11:58:00 +02:00
Miroslav Bajtoš
eec85367e7
3.0.0-alpha.5
...
* Use strong-remoting's new TypeRegistry (Miroslav Bajtoš)
* test/user: don't attach User model twice (Miroslav Bajtoš)
* app.enableAuth: correctly detect attached models (Miroslav Bajtoš)
* Fix remoting metadata for "data" arguments (Miroslav Bajtoš)
* Add instructions for upgrading context (Miroslav Bajtoš)
* Discard sugar method for model creation (gunjpan)
* Remove one-var exceptions no longer needed (Miroslav Bajtoš)
* Rework email validation to use isemail (Miroslav Bajtoš)
* Expose upsertWithWhere method (Sonali Samantaray)
2016-09-09 10:34:59 +02:00
Miroslav Bajtoš
6e1defcb18
Use strong-remoting's new TypeRegistry
2016-09-09 10:01:29 +02:00
Miroslav Bajtoš
9a75ee6f30
Rework email validation to use isemail
...
Drop hand-crafted RegExp in favour of a 3rd-party module that supports
RFC5321, RFC5322 and other relevant standards.
2016-09-06 14:09:00 +02:00
Miroslav Bajtoš
6220d1f986
3.0.0-alpha.4
...
* Update loopback-connector-remote to 2.0-alpha (Miroslav Bajtoš)
* Add remoting for KeyValue model TTL feature (Simon Ho)
* Add lint NPM script (Simon Ho)
* Make the app instance available to connectors (Subramanian Krishnan)
* Update pre-release dependencies (Miroslav Bajtoš)
* Apply g.f to literal strings (Setogit)
* Allow resetPassword if emailVerified (Loay)
* Reorder PATCH Vs PUT endpoints (Amir Jafarian)
* streamline use if `self` (Benjamin Kroeger)
* resolve related models from correct registry (Benjamin Kroeger)
* KeyValueModel: add API for listing keys (Miroslav Bajtoš)
* Fix token middleware crash (Carl Fürstenberg)
* loopback#context: fix missing "g" symbol (Miroslav Bajtoš)
* Update acl.js (Rand McKinney)
* Support 'alias' in mail transport config. (Samuel Reed)
* Remove unnecessary g.log (Setogit)
* Revert globalization of Swagger descriptions (Miroslav Bajtoš)
* Revert globalization of assert() messages (Miroslav Bajtoš)
* Add bcrypt validation (Loay)
2016-09-05 15:05:29 +02:00
Miroslav Bajtoš
3dc0d5a64e
Update loopback-connector-remote to 2.0-alpha
2016-09-01 13:13:32 +02:00
Simon Ho
32b879cf73
Add lint NPM script
2016-08-29 14:45:59 -07:00
Miroslav Bajtoš
3437d782d9
Update pre-release dependencies
2016-08-29 09:55:42 +02:00
Carl Fürstenberg
edd5275b8b
Fix token middleware crash
...
Fix token middleware to check if `req.loopbackContext` is active.
The context is not active for example when express-session calls
setImmediate which breaks CLS.
2016-08-17 14:44:00 +02:00
Miroslav Bajtoš
899ab457e9
3.0.0-alpha.3
...
* common: add KeyValueModel (Miroslav Bajtoš)
* Globalize current-context error messages (Miroslav Bajtoš)
* Remove current-context API (Miroslav Bajtoš)
* Fix forceId in tests (jannyHou)
* test: increase timeout to prevent CI failures (Miroslav Bajtoš)
* Update globalization string (Candy)
* Update globalization (Candy)
* Add globalization (Candy)
* test: fix "socket hang up" error in app.test (Miroslav Bajtoš)
* test: increate timeout in Role test (Miroslav Bajtoš)
* test: make status test more robust (Miroslav Bajtoš)
* test: fix broken Role tests (Miroslav Bajtoš)
* Update dependencies to their latest versions (Miroslav Bajtoš)
* Increase timeout (jannyHou)
* test: fix change-tracking setup (Miroslav Bajtoš)
* test: use local registry in test fixtures (Miroslav Bajtoš)
* Update loopback.js (Rand McKinney)
* Fix test case error (Loay)
* Update user.js (Loay)
* Fix security issue 580 (Loay)
* Update URLs in CONTRIBUTING.md (#2503 ) (Ryan Graham)
* Remove legacyExplorer (gunjpan)
* Remove `rectifyAllChanges` and `rectifyChange` (Candy)
* Fix verificationToken bug (Loay)
* update express version (Loay)
* Cleanup unit-test added in 1fc51d129
(Miroslav Bajtoš)
* update errorHandler template (Loay)
2016-08-11 13:34:01 +02:00
Miroslav Bajtoš
b087c930ed
Remove current-context API
...
Change all current-context APIs to throw a helpful error.
2016-08-10 13:43:40 +02:00
Candy
b52a7217a9
Add globalization
2016-08-04 15:08:16 -04:00
Miroslav Bajtoš
7546ee531d
Update dependencies to their latest versions
2016-08-03 16:17:58 +02:00
Loay
4a02f97572
update express version
2016-06-17 03:52:37 -04: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š
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
Miroslav Bajtoš
ed766f55b4
Upgrade phantomjs to 2.x
2016-05-03 16:43:45 +02:00
Miroslav Bajtoš
9b39a59813
Disable DEBUG output for eslint on Jenkins CI
2016-05-03 14:01:40 +02:00
Supasate Choochaisri
0ca24389b2
Add new feature to emit a `remoteMethodDisabled` event when disabling a remote method.
...
Signed-off-by: Supasate Choochaisri <supasate.c@gmail.com>
2016-04-28 09:03:54 +07:00
Miroslav Bajtoš
f9702b0ace
Use eslint with loopback config
...
Drop jshint and jscs in favour of eslint.
Fix style violations.
While we are at this, reduce the max line length from 150 to 100.
2016-04-06 10:45:30 +02:00
Candy
804265b801
Remove sl-blip from dependency
2016-02-18 10:38:54 -05:00
Candy
77eee6a817
Merge pull request #1957 from strongloop/start-3.0
...
Start development of 3.0
2016-01-20 11:43:16 -05:00
Miroslav Bajtoš
e06bd1a8b0
Fix typo in package.json (publishConfig)
2016-01-19 14:49:23 +01:00
Candy
492e7da3e9
Start development of 3.0
2016-01-13 16:38:37 -05:00
Jue Hou
889c561ed3
Always use bluebird as promise library
...
Replace `global.Promise` with `bluebird`
2016-01-08 13:58:12 -05:00
Miroslav Bajtoš
4ff035aac7
Make juggler a regular dependency
2016-01-06 15:53:35 +01:00
Simon Ho
186e3e8f92
Remove dependency on loopback-testing
...
- Copy depedent source from loopback-testing into test/helpers
- Removed loopback-testing from package.json
2015-12-31 15:59:03 -08:00
Miroslav Bajtoš
b0a62422c1
3.0.0-alpha.1
...
* Update juggler to ^3.0.0-alpha.1 (Miroslav Bajtoš)
* Start development of 3.0 (Miroslav Bajtoš)
2015-12-22 14:01:29 +01:00
Miroslav Bajtoš
d630b764a3
Update juggler to ^3.0.0-alpha.1
2015-12-22 13:17:04 +01:00
Miroslav Bajtoš
e0ce1fc446
Start development of 3.0
...
- Update version number in package.json, publish under "next" tag
- Add 3.0-DEVELOPING.md describing the process
- Add 3.0-RELEASE-NOTES.md to incrementally build release docs
2015-12-22 12:45:56 +01:00
Miroslav Bajtoš
122c1186ba
2.26.2
...
* Fix bulkUpdate to not trigger rectifyAll (Amir Jafarian)
2015-12-22 10:57:56 +01:00
Miroslav Bajtoš
69940ad3b0
2.26.1
...
* PersistedModel: log rectify/rectifyAll triggers (Miroslav Bajtoš)
2015-12-17 15:52:08 +01:00
Miroslav Bajtoš
3b66fc1c88
2.26.0
...
* change: skip cp lookup on no change (Miroslav Bajtoš)
* Change: correctly rectify no-change (Miroslav Bajtoš)
* Update model.js (Rand McKinney)
* Adding properties description for User Model (David Cheung)
* Add case-sensitve email option for User model. (Richard Pringle)
2015-12-09 09:44:03 +01:00
Raymond Feng
bfd5059d11
2.25.0
...
* Fix typo in description of persistedModel.updateAttributes() (Richard Pringle)
2015-11-13 15:34:44 -08:00
Simon Ho
f9545daf63
2.24.0
...
* Fix cookie-parser error (Simon Ho)
2015-11-09 17:30:25 -08:00
Simon Ho
444f92edab
Fix cookie-parser error
2015-11-09 16:31:11 -08:00
Miroslav Bajtoš
1c1d534119
2.23.0
...
* lib/registry: fix findModel for model ctor (Miroslav Bajtoš)
* Refer to licenses with a link (Sam Roberts)
* Fix user.resetPassword to fail on email not found (Simo Moujami)
* Fix typo in doc comment (Rand McKinney)
* Do not include redundant ports in verify links (Samuel Gaus)
* Set application's id property only if it's empty. (wusuopu)
* Check configs for shared method settings (Simon Ho)
* Add test fixtures for shared methods (Simon Ho)
* Clean up .jshintrc (Simon Ho)
* Update comment about user ACL to reflect implementation (Felipe Oliveira Carvalho)
2015-11-09 16:17:19 +01:00