Commit Graph

398 Commits

Author SHA1 Message Date
Miroslav Bajtoš 84322d07a9
Update eslint-config-loopback to latest 2018-12-07 16:22:59 +01:00
Miroslav Bajtoš e513c0d355
Update dependencies to latest versions
Skip update of shouldjs to avoid breaking tests in connectors.
2018-12-07 16:22:59 +01:00
Miroslav Bajtoš e834368502
Upgrade bson to 4.x (latest) 2018-12-07 16:22:59 +01:00
Raymond Feng 5f713f0319 4.4.0
* Use options from request for settings (Raymond Feng)
2018-11-15 08:21:10 -08:00
Raymond Feng 49330322ef 4.3.0
* Allow flags to be passed via options (Raymond Feng)
 * chore: update file list for apidocs (biniam)
2018-11-12 11:35:49 -08:00
Raymond Feng a39cbebf94 4.2.1
* [ BUGFIX ] maxDepthOfQuery config (leon3s)
2018-11-07 12:52:03 -08:00
Raymond Feng f0a6bd146b 4.2.0
* Allow configuration of maxDepthOfQuery (Raymond Feng)
2018-10-31 09:11:58 -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 8ebb734a31 4.1.1
* Allow hidden/protected props as an object (Raymond Feng)
2018-10-27 07:54:38 -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
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š 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š 64eddf5d26
Start 4.0 development, drop support for Node 6 2018-10-04 12:07:19 +02: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 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
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
virkt25 7ae64edf3d 3.22.2
* assertation of undefined could be null (shenghu)
 * fix: regression on Operation Hooks (virkt25)
2018-07-09 16:51:30 -04:00
Miroslav Bajtoš da728b8d70
3.22.1
* [WebFM] cs/pl/ru translation (#1600) (tangyinb)
 * fixup! address code review comments (Miroslav Bajtoš)
 * Fix type definitions for PersistedModel API (Miroslav Bajtoš)
 * Fix Operation Hooks to propagate data changes (Miroslav Bajtoš)
 * Fix stalebot config to ignore "good first issue" (Miroslav Bajtoš)
2018-07-02 09:02:00 +02:00
Miroslav Bajtoš 5d762102fe
3.22.0
* Update strong-globalize to 4.x (Miroslav Bajtoš)
 * Update remaining dev-dependencies to latest (Miroslav Bajtoš)
 * Update eslint + config to latest (Miroslav Bajtoš)
 * Disable package-lock feature of npm (Miroslav Bajtoš)
 * Travis: add Node.js 10.x to the build matrix (Miroslav Bajtoš)
 * Drop support for Node 4.x (Miroslav Bajtoš)
2018-06-12 16:26:58 +02:00
Miroslav Bajtoš 7a8213af43
Update strong-globalize to 4.x 2018-06-12 09:17:26 +02:00
Miroslav Bajtoš 5d8c36eca0
Update remaining dev-dependencies to latest
Keep should at 8.x for compatibility with connectors.
2018-06-12 09:13:54 +02:00
Miroslav Bajtoš d2ee73b9d3
Update eslint + config to latest 2018-06-12 09:13:32 +02:00
Miroslav Bajtoš c479be7069
Drop support for Node 4.x
Node 4.x is no longer maintained by Node.js project.
2018-06-12 08:34:49 +02:00
Raymond Feng 77f11cda3b 3.21.1
* Fix tests to ensure compatibility w/ should@10 (Raymond Feng)
2018-05-24 21:11:11 -07:00
Raymond Feng dafb8a1ab7 3.21.0
* Fix datasource state management (Raymond Feng)
2018-05-22 10:52:51 -07:00
Raymond Feng dd30054138 3.20.2
* Remove node ref (Raymond Feng)
2018-05-11 09:09:58 -07:00
Raymond Feng eddb17689c 3.20.1
* Update deps (Raymond Feng)
2018-05-11 08:21:07 -07:00
Raymond Feng 2bb77e60e5 Update deps 2018-05-11 08:20:15 -07:00
Raymond Feng 965655be3a 3.20.0
* Fix typescript definitions to be compatible with LB4 (Raymond Feng)
 * Allow toObject() to accept an 'options' argument (Raymond Feng)
2018-05-10 10:20:41 -07:00
Raymond Feng 4aa51e9956 3.19.0
* Add typescript type definitions (Raymond Feng)
 * Tidy up datasource (Raymond Feng)
2018-05-10 06:58:28 -07:00
Raymond Feng 77a2c9ab3b Add typescript type definitions 2018-05-09 12:47:27 -07:00
Miroslav Bajtoš 1ef38a6929
3.18.1
* Polyfill Number.isFinite() to support PhantomJS (Miroslav Bajtoš)
2018-04-19 09:11:12 +02:00
Miroslav Bajtoš 2ac5efa04a
3.18.0
* feat: remove a Model from all registries (Miroslav Bajtoš)
2018-04-17 09:34:00 +02:00
Diana Lau 3eb94c09c4 3.17.0
* feat: omit default fn for embedsMany (#1532) (Janny)
2018-04-16 08:57:21 -04:00
Miroslav Bajtoš e095b77048
3.16.0
* Pass options argument to custom validators (bmatson)
 * chore: update CODEOWNERS (#1566) (Diana Lau)
2018-03-22 16:19:16 +01:00
Raymond Feng 641eb13e5d 3.15.5
* Exclude .nyc_output from being published (Raymond Feng)
 * CODEOWNERS: add nitro404 (Miroslav Bajtoš)
2018-03-16 08:51:36 -07:00
Raymond Feng c2920c9f9b 3.15.4
* fix: allow `new DataSource(connector, settings)` (Raymond Feng)
2018-02-13 09:43:24 -08:00
Raymond Feng 310b9489d3 3.15.3
* fix: add more tests to verify new DataSource() (Raymond Feng)
2018-02-09 15:01:32 -08:00
Raymond Feng 54143dfa37 3.15.2
* feat(datasource): seperate name and connector  name (Nguyen Truong Minh)
 * Fix datasource not correctly retaining name value (Kevin Scroggins)
2018-02-07 17:14:05 -08:00
Diana Lau 1ec2b4d17c 3.15.1
* Added error handling for persist operation hook (#1531) (Kevin Scroggins)
 * Add warning for datasources with mismatched names (Kevin Scroggins)
2018-02-06 11:19:41 -05:00
Kevin Delisle 943fed851e 3.15.0
* fix unauthorized fk change (#1538) (Taranveer Virk)
 * Set model constructor name to model name (Miroslav Bajtoš)
2018-01-19 12:55:16 -05:00
Kevin Delisle 00cf01f901 3.14.0
* Allow new transaction method in postgresql (#1493) (zbarbuto)
 * Fix bug in utils uniq function (#1526) (Peter Bouda)
 * Fix query for related models (#1522) (Joost de Bruijn)
 * chore:update license (#1521) (Diana Lau)
 * Allow customizing embedded relation property (#1513) (zbarbuto)
 * 📖 Typo on README.md (#1517) (JP Ventura)
 * CODEOWNERS: move @lehni to Alumni section (Miroslav Bajtoš)
2017-12-14 11:33:39 -05:00
Peter Bouda 6bd9fca080 Fix bug in utils uniq function (#1526)
The uniq function does currently not work when the database is mongodb.
In the case of mongodb, the function will receive an array of bson
object of bson type ObjectID. The indexOf function will return a
different index, even if the mongodb ID is the same, as it is wrapped
in the ObjectID. This commit first transforms any ObjectID in the array
to a string representation. We can then use indexOf to check for
uniqueness.
2017-12-04 15:39:58 -05:00
Diana Lau a9051ef991 3.13.0
* update strong-globalize to 3.1.0 (#1505) (Kyusung Shim)
 * Fix basic-querying (#1509) (Janny)
 * translation return for Q4 drop1 (tangyinb)
 * Allow passing null to base model ctor (Zak Barbuto)
 * CODEOWNERS: add zbarbuto (Miroslav Bajtoš)
 * update globalize string (Diana Lau)
2017-10-17 23:24:07 -04:00
Kyusung Shim b926f28c74 update strong-globalize to 3.1.0 (#1505)
* update strong-globalize to 3.1.0

* update other dependencies
2017-10-17 15:57:00 -04:00
Kevin Delisle 6d4cb6c3ad 3.12.0
* Add a better way to handle transactions (Jürg Lehni)
 * validations: use new regex per evaluation (#1479) (Joost de Bruijn)
 * Transaction: Bind timeout to tx instance (#1484) (Jürg Lehni)
 * CODEOWNERS: add lehni (#1483) (Miroslav Bajtoš)
 * Add node8 support for travis (loay)
 * Add nyc coverage, report data to coveralls.io (Miroslav Bajtoš)
 * Update translations from TVT (Allen Boone)
 * Add test coverage for hasAndBelongsToMany (loay)
 * package: use qs@6.5.0 (#1471) (Kevin Delisle)
2017-09-07 10:27:15 -04:00
Jürg Lehni 0ce1fa9f87 Add a better way to handle transactions 2017-09-06 07:10:57 +02:00
Miroslav Bajtoš d49806a78b
Add nyc coverage, report data to coveralls.io 2017-08-30 14:17:27 +02:00
Kevin Delisle 65f6beb00b package: use qs@6.5.0 (#1471)
Fix for advisory: https://snyk.io/vuln/npm:qs:20170213
2017-08-23 15:17:00 -04:00
rashmihunt 1fa89d6fb9 3.11.0
* Flag id as updateOnly when forceId is in effect (#1453) (Rashmi Hunt)
 * Add stalebot configuration (Kevin Delisle)
2017-08-22 13:47:21 -07:00