Commit Graph

3336 Commits

Author SHA1 Message Date
Rifa Achrinza 74d429d52d
v4.27.0
* ci: enable Node.js v17 testing (Rifa Achrinza)
 * feat: add built-in model property types typdef (Rifa Achrinza)
 * chore: replace shortid with nanoid (Mario Estrada)
 * ci: restrict GITHUB_TOKEN permissions (Rifa Achrinza)
 * ci: update pipelines (Rifa Achrinza)
 * chore: update 3.x LTS to End-of-Life (#1888) (Rifa Achrinza)
 * chore: sync v4 EOL withh Node.js v14 EOL (#1876) (Rifa Achrinza)

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2022-02-19 01:40:20 +08:00
Rifa Achrinza fe82f6ac79 ci: enable Node.js v17 testing
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2021-11-24 18:22:20 +08:00
Rifa Achrinza 816b948ab0 feat: add built-in model property types typdef
Added typdef for:
- Any
- JSON
- Text
- GeoPoint
- DateString

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2021-09-22 19:32:13 +08:00
Mario Estrada e3448fad03 chore: replace shortid with nanoid
Signed-off-by: Mario Estrada <marioestradarosa@yahoo.com>
2021-09-12 18:14:03 +08:00
Rifa Achrinza 9a58695740 ci: restrict GITHUB_TOKEN permissions
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2021-09-11 14:11:39 +08:00
Rifa Achrinza 5aa2d71a23 ci: update pipelines
Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2021-09-04 04:15:31 +08:00
Rifa Achrinza cc5557bd11
chore: update 3.x LTS to End-of-Life (#1888)
see https://github.com/strongloop/loopback-next/issues/6957

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2021-01-23 10:37:54 -05:00
Rifa Achrinza a0de6bc760
chore: sync v4 EOL withh Node.js v14 EOL (#1876)
see https://github.com/strongloop/loopback-next/issues/6709

Signed-off-by: Rifa Achrinza <25147899+achrinza@users.noreply.github.com>
2020-11-06 13:00:51 -05:00
Raymond Feng 06428247ad 4.26.0
* Fix value equality test to avoid toString (Raymond Feng)
2020-11-02 09:38:59 -08:00
Raymond Feng 05898ed9f6
Merge pull request #1874 from strongloop/mem-connector-fix
Fix value equality test to avoid toString
2020-11-02 09:36:36 -08:00
Raymond Feng 454fd0f1b2 Fix value equality test to avoid toString
- The where statement can be something like {toString: 'not a function'}
- Avoid object string comparison

Signed-off-by: Raymond Feng <enjoyjava@gmail.com>
2020-10-30 09:15:39 -07:00
Miroslav Bajtoš 1e9ac69f2c
4.25.0
* Update dev dependencies to latest (Miroslav Bajtoš)
 * Update dependencies to latest (Miroslav Bajtoš)
2020-10-19 10:55:12 +02:00
Miroslav Bajtoš d2a594fc08
Merge pull request #1870 from strongloop/update-deps
Update dependencies to latest
2020-10-19 10:53:44 +02:00
Miroslav Bajtoš 8487ee1bc0
Update dev dependencies to latest
- `eslint` to `^7.11.0`
- `mocha` to `^8.1.3`
- `typescript` to `^4.0.3`

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-10-12 09:32:38 +02:00
Miroslav Bajtoš 8c95930cd6
Update dependencies to latest
- `loopback-connector` to  `^5.0.0`
- `strong-globalize` to `^6.0.5`
- `uuid` to `^8.3.1`

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-10-12 09:30:23 +02:00
jannyHou 8031e54fb4 4.20.1
* chore: add test for atomic upsertWithWhere (#1864) (Matteo Padovano)
 * chore: update PR template (#1863) (Diana Lau)
 * update PR template to include DCO (#1859) (Diana Lau)
 * chore: add contributing section to readme (#1858) (Diana Lau)
2020-09-25 12:14:33 -04:00
Matteo Padovano 76acf333fd
chore: add test for atomic upsertWithWhere (#1864)
Introduce the new property atomicUpsertWithWhere for
connector that implement specific method.
See https://github.com/strongloop/loopback-connector-mongodb/pull/563
for mongodb implementation.

Signed-off-by: Matteo Padovano <mrbatista@users.noreply.github.com>
2020-09-25 10:22:03 -04:00
Diana Lau 261dd1c865
chore: update PR template (#1863)
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
2020-08-18 12:03:23 -04:00
Diana Lau c80aa9abe8
update PR template to include DCO (#1859)
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
2020-08-06 14:25:51 -04:00
Diana Lau 35e032d1df
chore: add contributing section to readme (#1858)
Signed-off-by: Diana Lau <dhmlau@ca.ibm.com>
2020-08-06 09:35:07 -04:00
Miroslav Bajtoš a0f1d4a979
4.24.0
* Update .travis.yml (#1841) (karanssj4)
 * Add more `dataSource.execute()` flavors (Miroslav Bajtoš)
2020-08-04 16:35:43 +02:00
Miroslav Bajtoš dd23a14b24
Merge pull request #1857 from strongloop/feat/execute-db-command
feat: improve `dataSource.execute` to support more flavors
2020-08-04 16:34:49 +02:00
karanssj4 7835a43cce
Update .travis.yml (#1841)
drop v13 ad and add node v14
2020-08-03 22:21:36 -04:00
Miroslav Bajtoš c884c62b3b
Add more `dataSource.execute()` flavors
Implement support for the following variants:

- `execute(collection, command, ...params, options)` (MongoDB)
- `execute(...params)` (forward-compatibility & other databases)

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-08-03 15:00:30 +02:00
Miroslav Bajtoš c24e498191
4.23.0
* types: support no-SQL styles of `ds.execute` (Miroslav Bajtoš)
2020-07-28 10:40:49 +02:00
Miroslav Bajtoš 6e6a3df9f0
Merge pull request #1855 from strongloop/types/execute-nosql
types: support non-SQL styles of `ds.execute`
2020-07-28 10:39:50 +02:00
Miroslav Bajtoš f13d50ea3f
types: support no-SQL styles of `ds.execute`
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-07-28 10:01:34 +02:00
Miroslav Bajtoš 0ba09a1c4f
4.22.0
* types: add `DataSource.definitions` property (khlilturki97@gmail.com)
2020-07-27 11:02:15 +02:00
Miroslav Bajtoš b9929b83fe
Merge pull request #1844 from khlilturki97/add_attribute_to_datasource
Add definition attribute to datasource
2020-07-27 10:08:54 +02:00
khlilturki97@gmail.com b1cd7eff5c
types: add `DataSource.definitions` property 2020-07-27 09:50:33 +02:00
Miroslav Bajtoš 8d1690e9b2
4.21.2
* types: allow no `models` argument for automigrate (Miroslav Bajtoš)
2020-05-12 16:43:59 +02:00
Miroslav Bajtoš 259c0b9cc6
Merge pull request #1839 from strongloop/fix-types/datasource-migrate
types: allow no `models` argument for automigrate
2020-05-12 16:43:34 +02:00
Miroslav Bajtoš 4c53abad32
types: allow no `models` argument for automigrate
Fix type definitions to allow zero-argument invocation of
the following database migration methods:
  - `DataSource.automigrate()`
  - `DataSource.autoupdate()`

Implementation-wise, when no model names are specified, then ALL models
attached to the datasource are migrated.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-05-12 15:39:47 +02:00
Miroslav Bajtoš 429d13e537
4.21.1
* types: make DataSource.stop compatible with LB4 (Miroslav Bajtoš)
2020-04-28 09:04:42 +02:00
Miroslav Bajtoš a25df6ac36
Merge pull request #1838 from strongloop/fix/stop-typings
types: make DataSource.stop compatible with LB4
2020-04-28 09:04:02 +02:00
Miroslav Bajtoš 7292d206e5
types: make DataSource.stop compatible with LB4
Change the return value of `DataSource.stop()` from `Promise<void>`
to `void | PromiseLike<void>` to avoid breaking existing LoopBack 4
applications, where DataSource subclasses are scaffolded with
`stop(): ValueOrPromise<void>`.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-04-28 08:27:49 +02:00
Miroslav Bajtoš 4c665cd6f7
4.21.0
* feat: implement DataSource.stop() (Miroslav Bajtoš)
 * Add __parent reference to embedded models (Dimitris Xalatsis)
2020-04-27 13:43:49 +02:00
Miroslav Bajtoš 74c6776575
Merge pull request #1835 from strongloop/feat/datasource-stop
feat: implement DataSource.stop()
2020-04-27 13:42:58 +02:00
Miroslav Bajtoš c83f82d5a0
feat: implement DataSource.stop()
Implement `stop` as an alias for `disconnect`. This way LB4 applications
don't have to include custom `stop` implementation in every datasource
file.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-04-23 16:20:44 +02:00
Miroslav Bajtoš e026b4c4af
Merge pull request #1834 from strongloop/embedded-parent2
Add __parent reference to embedded models
2020-04-17 13:58:56 +02:00
Dimitris Xalatsis 095ddd654e
Add __parent reference to embedded models
Add a new hidden property `__parent` that's automatically set on all
instances of embedded models.

For backwards compatibility, this feature is not enabled by default.
You can turn it on by adding the following line to `server/server.js`
file:

    app.registry.modelBuilder.settings.parentRef = true;
2020-04-17 13:35:42 +02:00
Miroslav Bajtoš 9bcf42488d
4.20.0
* Add mocharc, remove mocha.opts (Miroslav Bajtoš)
 * Update dev dependencies (Miroslav Bajtoš)
 * Drop support for Node 8.x (Miroslav Bajtoš)
 * Add support for Node.js 13.x (Miroslav Bajtoš)
 * mark idColumnName as a deprecated function (Agnes Lin)
 * Move List.prototype.toItem out of inner init (#1828) (Dimitris Halatsis)
 * deps: update uuid to v7 (Miroslav Bajtoš)
2020-04-17 09:43:24 +02:00
Miroslav Bajtoš 280228960a
Merge pull request #1832 from strongloop/update-deps
Update dev dependencies + rework Mocha config
2020-04-06 08:53:36 +02:00
Miroslav Bajtoš 04336a60cf
Add mocharc, remove mocha.opts
Mocha has deprecated `mocha.opts` in favour of RC files. See also
https://mochajs.org/#configuring-mocha-nodejs

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-04-06 08:21:47 +02:00
Miroslav Bajtoš b1766518a8
Update dev dependencies
- mocha to 7.x
- nyc to 15.x

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-04-06 08:21:47 +02:00
Miroslav Bajtoš f1f7bf2031
Merge pull request #1831 from strongloop/update-node-versions
Update node versions
2020-04-06 08:20:48 +02:00
Miroslav Bajtoš 6d65afc35f
Drop support for Node 8.x
Node 8.x is no longer maintained by Node.js project.

Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-04-03 09:38:13 +02:00
Miroslav Bajtoš c6e8779a06
Add support for Node.js 13.x
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2020-04-03 09:37:28 +02:00
Agnes Lin df1c8dc00e
Merge pull request #1830 from strongloop/deprecated-idcol
mark idColumnName as deprecated
2020-03-25 16:41:13 -04:00
Agnes Lin 9fe64d412c mark idColumnName as a deprecated function 2020-03-25 15:18:34 -04:00