Commit Graph

3112 Commits

Author SHA1 Message Date
Raymond Feng f6e1df87be Allow flags to be passed via options 2018-11-09 09:33:05 -08:00
biniam cc276643a2 chore: update file list for apidocs 2018-11-09 11:59:22 -05:00
Raymond Feng a39cbebf94 4.2.1
* [ BUGFIX ] maxDepthOfQuery config (leon3s)
2018-11-07 12:52:03 -08:00
Raymond Feng 0f0b391f67
Merge pull request #1658 from leon3s/fix-maxDepthOfQuery-config
[ BUGFIX ] maxDepthOfQuery config
2018-11-07 12:50:42 -08:00
leon3s 65548b6fe0 [ BUGFIX ] maxDepthOfQuery config 2018-11-06 17:29:14 +01:00
Raymond Feng f0a6bd146b 4.2.0
* Allow configuration of maxDepthOfQuery (Raymond Feng)
2018-10-31 09:11:58 -07:00
Raymond Feng 35f61c4aa4
Merge pull request #1652 from strongloop/fix-1651
Allow configuration of maxDepthOfQuery
2018-10-31 09:10:03 -07:00
Raymond Feng eb85b3e3a6 Allow configuration of maxDepthOfQuery
https://github.com/strongloop/loopback-datasource-juggler/issues/1651
2018-10-31 08:45:16 -07:00
Raymond Feng 3348d501e8 4.1.2
* Check composite keys containing hidden props (Raymond Feng)
 * Improve hidden/protected property checks (Raymond Feng)
2018-10-29 13:10:37 -07:00
Raymond Feng 7609585dc3
Merge pull request #1649 from strongloop/fix-1645
Improve hidden/protected property checks
2018-10-29 13:09:33 -07:00
Raymond Feng dbe25f282d Check composite keys containing hidden props 2018-10-29 07:57:55 -07:00
Raymond Feng 8fa7c94605 Improve hidden/protected property checks
- Fixes #1645
  - do not apply hidden property check for data
- Fixes #1648
  - allow prohibitHiddenPropertiesInQuery to be set in model/ds
2018-10-28 10:03:12 -07:00
Raymond Feng 8ebb734a31 4.1.1
* Allow hidden/protected props as an object (Raymond Feng)
2018-10-27 07:54:38 -07:00
Raymond Feng 726c6978fc
Merge pull request #1647 from strongloop/fix-1646
Allow hidden/protected props as an object
2018-10-27 07:53:42 -07:00
Raymond Feng 2af2599a7d Allow hidden/protected props as an object
Fixes #1646
2018-10-27 07:51:34 -07:00
Raymond Feng 708826cc49 4.1.0
* Ren handleUndefined to normalizeUndefinedInQuery (Raymond Feng)
 * Report circular or deep query objects (Raymond Feng)
 * Hide offending properties from the error object (Raymond Feng)
 * Tidy up extended operator check (Raymond Feng)
 * Prevent hidden/protected props from being searched (Raymond Feng)
 * Report errors for missing id props for include (Raymond Feng)
 * fix: add test coverage, correct typo that exposed (Matthew Gabeler-Lee)
 * fix: accelerate unique id checking (Matthew Gabeler-Lee)
 * remove null in embedded doc properties updates (Dimitris)
2018-10-26 09:25:30 -07:00
Raymond Feng 104b861747
Merge pull request #1638 from strongloop/exclude-hidden-properties-from-where
Report errors if where clause contains hidden properties
2018-10-26 09:14:08 -07:00
Raymond Feng a391762771 Ren handleUndefined to normalizeUndefinedInQuery 2018-10-26 09:09:50 -07:00
Raymond Feng 0ce3f4ead9 Report circular or deep query objects 2018-10-25 15:14:20 -07:00
Raymond Feng 39ff54d392 Hide offending properties from the error object 2018-10-25 15:14:20 -07:00
Raymond Feng a761e0d114 Tidy up extended operator check 2018-10-25 15:14:14 -07:00
Raymond Feng f2e718639a Prevent hidden/protected props from being searched
- report errors if where contains hidden properties
- report errors if incldue scope contains hidden or protected properties
2018-10-19 09:25:47 -07:00
Raymond Feng f1f535846e
Merge pull request #1642 from strongloop/fix-4028
Report errors for missing id properties for include
2018-10-19 09:21:07 -07:00
Raymond Feng 60e16298f2 Report errors for missing id props for include
https://github.com/strongloop/loopback/issues/4028
2018-10-19 09:20:12 -07:00
Raymond Feng f7036b2837
Merge pull request #1629 from mgabeler-lee-6rs/fix/fast-id-unique-check
fix: accelerate unique id checking
2018-10-14 07:58:35 -07:00
Miroslav Bajtoš abaf29f74d
Merge pull request #1623 from mitsos1os/issue-1622
Fix patchAttributes for embedded document properties in MongoDB
2018-10-09 14:55:56 +02:00
Miroslav Bajtoš c95a969af7
4.0.0
* Update LTS versions in README (Miroslav Bajtoš)
 * Switch from Bluebird to native Promise (Miroslav Bajtoš)
 * Start 4.0 development, drop support for Node 6 (Miroslav Bajtoš)
2018-10-08 08:34:03 +02:00
Miroslav Bajtoš 6e90ec6dcc
Merge pull request #1633 from strongloop/update-lts
Update LTS versions in README
2018-10-08 08:33:08 +02:00
Miroslav Bajtoš 22764a095a
Update LTS versions in README 2018-10-08 08:20:12 +02:00
Miroslav Bajtoš b285737382
Merge pull request #1631 from strongloop/drop-bluebird
[SEMVER-MAJOR] Switch from Bluebird to native Promise
2018-10-08 07:59:48 +02:00
Miroslav Bajtoš b6a43dd65a
Switch from Bluebird to native Promise
This is a breaking change. Juggler methods are no longer returning
instances of Bluebird Promise, but return a native Promise instead.

As a result, API consumers can no longer use sugar APIs provided by
Bluebird, e.g. `spread`, `delay`, etc.

Migration guide: rewrite your code from `.then()` style into `async`
functions using `await` statements.
2018-10-05 09:30:02 +02:00
Miroslav Bajtoš 5eb81aa47f
Merge pull request #1630 from strongloop/start-4.0
[SEMVER-MAJOR] Start 4.0 development, drop support for Node 6
2018-10-04 16:47:12 +02:00
Miroslav Bajtoš 64eddf5d26
Start 4.0 development, drop support for Node 6 2018-10-04 12:07:19 +02:00
Matthew Gabeler-Lee 1ddac5bddb
fix: add test coverage, correct typo that exposed 2018-10-03 18:56:57 -04:00
Matthew Gabeler-Lee 248d57da4e
fix: accelerate unique id checking 2018-10-03 18:40:42 -04:00
Dimitris eb921ed9d5 remove null in embedded doc properties updates
calling patchAttributes without all embedded properties inits to null
2018-09-24 10:04:09 +03:00
Raymond Feng fcac276955 3.24.0
* Add IBM copyright and MIT license headers (Raymond Feng)
 * Allow List to take items as instances of a class (Raymond Feng)
 * fix: ignore extra properties when strict=filter (#1423) (Tom Kirkpatrick)
 * Add EventEmitter type info to DataSource type (shimks)
2018-09-17 09:03:33 -07:00
Raymond Feng 242fd1bb56
Merge pull request #1625 from strongloop/fix-list-of-class-instances
Allow List to take items as instances of a class
2018-09-17 09:02:16 -07:00
Raymond Feng 7c7bd56b2e Add IBM copyright and MIT license headers 2018-09-17 09:00:12 -07:00
Raymond Feng 7eec7e4e34 Allow List to take items as instances of a class 2018-09-17 08:22:21 -07:00
Tom Kirkpatrick 251798c711 fix: ignore extra properties when strict=filter (#1423)
Fix for #1422
2018-08-29 22:57:37 -04:00
Kyusung Shim 2b8b6719a7
Merge pull request #1611 from strongloop/datasource-event-type
Add EventEmitter type information to DataSource type
2018-07-25 16:15:07 -04:00
shimks 1e59918c11 Add EventEmitter type info to DataSource type 2018-07-25 15:13:54 -04:00
Raymond Feng 4d14c1473f 3.23.0
* fix: update TypeScript declaration for KV (Raymond Feng)
 * Upgrade eslint-config-loopback + fix formatting (Miroslav Bajtoš)
 * Hide nyc coverage from test output (Miroslav Bajtoš)
 * Configure Mocha to use dot reporter (Miroslav Bajtoš)
2018-07-16 11:15:14 -07:00
Raymond Feng 06284be673 Merge branch 'kv-types' 2018-07-16 11:11:32 -07:00
Raymond Feng 76b87ade93 fix: update TypeScript declaration for KV 2018-07-16 11:09:29 -07:00
Raymond Feng 9717e512b4
Merge pull request #1608 from strongloop/kv-types
fix: update TypeScript declaration for KV
2018-07-16 10:43:03 -07:00
Raymond Feng 535b000195 fix: update TypeScript declaration for KV 2018-07-16 10:11:54 -07:00
Miroslav Bajtoš 3e5c805418
Merge pull request #1609 from strongloop/update-eslint-config
Upgrade eslint-config-loopback + fix formatting
2018-07-16 17:55:24 +02:00
Miroslav Bajtoš 7d50f6130b
Upgrade eslint-config-loopback + fix formatting
The new version of our config enabled function-paren-newline rule,
this commit fixes the codebase to use more consistent handling
of newlines when calling functions.
2018-07-16 08:46:25 +02:00