Commit Graph

119 Commits

Author SHA1 Message Date
Miroslav Bajtoš 7b61bcd541
[SEMVER-MAJOR] Reword log messages for clarity
Before this commit, we logged messages saying "unhandled error". This
was often creating confusion for our users, it seems like the error
was not handled at all, when in fact it was caught by the configured
error handler and converted into a proper HTTP error response.

In this commit, I am changing the messaging to use "request failed"
instead.

While this change is not affecting application developers, it may
break tooling processing logs if the tool relies on a specific format
of error messages. To be safe, I am labelling this change as breaking.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-10-12 09:56:56 +02:00
Raymond Feng 2ef83b945d 3.5.0
* feat: add options.rootProperty for json/xml (Raymond Feng)
 * chore: update deps and drop Node 8.x support (Raymond Feng)
2020-06-23 10:38:40 -07:00
Raymond Feng 3eeaaef75a
Merge pull request #90 from strongloop/root-property
feat: Add options.rootProperty
2020-06-23 10:37:02 -07:00
Raymond Feng bda981feb8 feat: add options.rootProperty for json/xml
Using `error` as the root property is a good default but we should
be able to use a different one or don't use it at all.
2020-06-23 10:05:24 -07:00
Raymond Feng 36d2b18a17 chore: update deps and drop Node 8.x support
- Upgrade dependencies
- Drop Node 8.x support as it has reached EOL

BREAKING CHANGE: Node 8.x is no longer supported.
2020-06-23 10:05:24 -07:00
Miroslav Bajtoš b0b138a74d
3.4.0
* chore: js2xmlparser to ^4.0.0 (Miroslav Bajtoš)
 * chore: update dev-dependencies (mocha, supertest) (Miroslav Bajtoš)
 * chore: update eslint & config to latest (Miroslav Bajtoš)
 * chore: update strong-globalize to ^5.0.2 (Miroslav Bajtoš)
 * chore: update debug to ^4.1.1 (Miroslav Bajtoš)
 * feat: drop support for Node.js 6.x (Miroslav Bajtoš)
2019-10-12 09:53:58 +02:00
Miroslav Bajtoš 875809d76d
Merge pull request #87 from strongloop/update-deps
Update dependencies to their latest versions, replace "var" with "const"
2019-10-12 09:53:27 +02:00
Miroslav Bajtoš 69ea022e5c
chore: js2xmlparser to ^4.0.0
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-10-12 09:45:05 +02:00
Miroslav Bajtoš 257adade3d
chore: update dev-dependencies (mocha, supertest)
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-10-12 09:45:05 +02:00
Miroslav Bajtoš 67fc40b78b
chore: update eslint & config to latest
Replace `var` with `const` and `let`.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-10-12 09:44:54 +02:00
Miroslav Bajtoš c74146dc1a
chore: update strong-globalize to ^5.0.2
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-10-11 16:50:19 +02:00
Miroslav Bajtoš 201a3a5745
chore: update debug to ^4.1.1
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-10-11 16:50:19 +02:00
Miroslav Bajtoš 5c2e2ba0a8
Merge pull request #86 from strongloop/drop-node6
Drop support for Node.js 6.x, start testing Node.js 12.x
2019-10-11 16:49:39 +02:00
Miroslav Bajtoš 2b82969706
feat: drop support for Node.js 6.x
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-10-11 16:04:09 +02:00
Miroslav Bajtoš d781b3555f
3.3.0
* fix: handle Error objects with circular properties (dkrantsberg)
 * chore: update copyrights years (Agnes Lin)
2019-09-30 08:11:29 +02:00
Miroslav Bajtoš 4735e34943
Merge pull request #85 from dkrantsberg/safe-json-strongify
Handle Error objects with circular references
2019-09-30 08:10:59 +02:00
dkrantsberg 4b3c802088
fix: handle Error objects with circular properties 2019-09-30 07:58:34 +02:00
Diana Lau 7dabb649a3
Merge pull request #82 from strongloop/copyrights
chore: update copyrights years
2019-05-09 16:31:29 -04:00
Agnes Lin 589e432812 chore: update copyrights years 2019-05-09 08:51:57 -04:00
Raymond Feng e7aa8353e7 3.2.0
* Add type definition and writeErrorToResponse (shimks)
2018-08-30 10:03:22 -07:00
Kyusung Shim 4e2990600f
Merge pull request #77 from strongloop/export-build-response-data
add types and introduce writeErrorToResponse
2018-08-30 12:53:23 -04:00
shimks 80ebf30cfa Add type definition and writeErrorToResponse 2018-08-30 12:09:28 -04:00
Diana Lau 8b35494da0 3.1.0
* [WebFM] cs/pl/ru translation (candytangnb)
2018-07-16 20:12:55 -04:00
Miroslav Bajtoš 7590590f26
Merge pull request #76 from candytangnb/webfm-0628-235010-cs,pl,ru-translation
[WebFM] cs/pl/ru translation Check-in by YI TANG (tangyinb@cn.ibm.com)
2018-07-02 09:29:57 +02:00
candytangnb 3d1d177a5c [WebFM] cs/pl/ru translation
cs/pl/ru translation check-in by YI TANG (tangyinb@cn.ibm.com) using
WebFM tool.
2018-06-28 23:50:10 -04:00
Diana Lau b5e9abdc45 3.0.0
* Allow safeFields to work with arrays (shimks)
 * run lint (shimks)
 * drop node 4 from travis and update dependencies (shimks)
2018-06-11 20:41:32 -04:00
Kyusung Shim 0a39f8466a
Merge pull request #73 from strongloop/array-safefields
Allow safeFields to work with arrays
2018-06-11 11:11:33 -04:00
shimks 7828534804 Allow safeFields to work with arrays
Co-authored-by: Miroslav Bajtos <mbajtoss@gmail.com>
2018-06-08 15:01:45 -04:00
Kyusung Shim a431cf54fa
Merge pull request #74 from strongloop/drop-node-4
Drop node 4, update dependencies and status on maintenance
2018-06-08 14:59:58 -04:00
shimks b7b3961ff2 run lint 2018-06-07 12:47:21 -04:00
shimks 56d26b377e drop node 4 from travis and update dependencies 2018-06-07 12:47:13 -04:00
Miroslav Bajtoš 3ec47f84fd
2.3.2
* Undefined safeFields revert to data #71 (Zak Barbuto)
2018-03-05 09:58:43 +01:00
Miroslav Bajtoš 93792910c9
Merge pull request #72 from strongloop/fix/71-safe-fields-defaults
Undefined safeFields revert to data #71
2018-03-05 09:58:12 +01:00
Zak Barbuto 0ce15b2d27 Undefined safeFields revert to data #71 2018-03-05 14:09:51 +10:30
Miroslav Bajtoš d17d2a9551
2.3.1
* Escape strings in HTML output (XSS fix) (Zachery Metcalf)
 * Update LICENSE.md (Diana Lau)
2018-01-25 14:38:01 +01:00
Miroslav Bajtoš 89b6183704
Merge pull request #69 from superhumane/xss_fix
Escape strings in HTML output (XSS fix)
2018-01-25 14:37:30 +01:00
Zachery Metcalf 35328be26b
Escape strings in HTML output (XSS fix)
Modify the template producing HTML error responses to correctly
escape all strings that are possibly coming from the client making the
request. Before this change, the error responses were vulnerable to XSS
(cross-site scripting) attacks.
2018-01-25 14:16:24 +01:00
Diana Lau 4c69370751
Update LICENSE.md 2017-11-10 23:32:39 -05:00
Miroslav Bajtoš 1117948629
2.3.0
* update strong-globalize to 3.1.0 (shimks)
 * CODEOWNERS: add zbarbuto (Miroslav Bajtoš)
 * Update Issue and PR Templates (#59) (Sakib Hasan)
 * fixed json typo of server/middleware.json (karanssj4)
 * Add CODEOWNER file (Diana Lau)
2017-10-13 13:15:58 +02:00
Miroslav Bajtoš 61505f3dd1 Merge pull request #64 from strongloop/update-strong-globalize
update strong-globalize to 3.1.0
2017-10-13 13:15:13 +02:00
shimks b4ec4e7645 update strong-globalize to 3.1.0 2017-10-12 22:54:27 -04:00
Miroslav Bajtoš 8979744cd5 Merge pull request #62 from strongloop/welcome-zbarbuto
CODEOWNERS: add zbarbuto
2017-09-27 11:11:30 +02:00
Miroslav Bajtoš 7d0682e7ae CODEOWNERS: add zbarbuto 2017-09-25 09:58:12 +02:00
Sakib Hasan 0ee193bb61 Update Issue and PR Templates (#59)
* update issue template

* update pr template
2017-08-16 11:24:49 -04:00
Miroslav Bajtoš 0bb801bed6 Merge pull request #58 from karanssj4/patch-1
fix json typo of server/middleware.json
2017-08-02 14:06:43 +02:00
karanssj4 99e69336d9 fixed json typo of server/middleware.json
the json format is valid now
2017-08-02 14:21:49 +05:30
Diana Lau 5acee7e873 Merge pull request #57 from strongloop/add-codeowner
Add CODEOWNER file
2017-07-26 20:45:32 -04:00
Diana Lau 69eb7209c5 Add CODEOWNER file 2017-07-25 20:37:59 -04:00
Miroslav Bajtoš 3bf59a7d17
2.2.0
* Add new option: negotiateContentType (Raj)
2017-07-20 10:27:02 +02:00
Miroslav Bajtoš 68e0aa58d1 Merge pull request #55 from charanrajtc/added-response-format-option
Add contentType option for passing mandatory type
2017-07-20 10:26:37 +02:00