Skip to content

Upstream Comparison #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 76 commits into
base: mongodb-driver-4.x
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
76 commits
Select commit Hold shift + click to select a range
96f869a
feat: add transaction support
darknos Jul 29, 2021
6b7a31c
ci: misc updates
achrinza Aug 27, 2021
73f5cc5
6.1.0
dhmlau Sep 7, 2021
6ce66e4
ci: restrict GITHUB_TOKEN permissions
achrinza Sep 11, 2021
1d8a84b
fix: handle url default db name
achrinza Sep 12, 2021
d9decc1
fix: isObjectIDProperty array param check
achrinza Sep 22, 2021
979e956
chore: add @achrinza and update CODEOWNERS
dhmlau Nov 22, 2021
93daba7
ci: pin NPM version
achrinza Nov 24, 2021
8343d52
ci: update Node.js version
achrinza Nov 24, 2021
ac1ffc7
feat: add tls options as of mongo 3.7
d-bo Nov 12, 2021
fefa4b4
chore: update deps
achrinza Nov 26, 2021
84c1112
ci: fix typo
achrinza Dec 7, 2021
e985dd7
chore: update v6 EOL
achrinza Nov 27, 2021
411daa0
docs: add code of conduct
dhmlau Mar 13, 2022
16275c0
docs: update coc
dhmlau Mar 25, 2022
6079ea0
chore: tls README example
d-bo Nov 30, 2021
eb0ef09
docs: add SECURITY.md
dhmlau Mar 29, 2022
5936ba0
6.2.0
dhmlau Mar 31, 2022
031b441
ci: test against Node.js v18
achrinza Apr 19, 2022
92ae33c
chore: update v6 EOL
achrinza Apr 20, 2022
976bddd
fix: optional chaining
preussmann May 3, 2022
d038dfe
fix(*): run autoupdate in serial to avoid conflicts
May 16, 2022
c62ba89
ci: add renovate config
achrinza Mar 31, 2022
a54d1ba
chore: update dependency async to ^3.2.4
renovate[bot] Jun 25, 2022
72222f7
chore: update dependency bluebird to ^3.7.2
renovate[bot] Jun 25, 2022
dce890d
chore: update dependency bson to ^1.1.6
renovate[bot] Jun 25, 2022
2898a6f
chore: update dependency loopback-connector to ^5.0.1
renovate[bot] Jun 25, 2022
39f03a4
chore: update dependency debug to ^4.3.4
renovate[bot] Jun 25, 2022
6366477
chore: update dependency should to ^13.2.3
renovate[bot] Jun 25, 2022
824bdce
chore: update dependency semver to ^7.3.7
renovate[bot] Jun 25, 2022
db926bd
chore: update actions/checkout action to v3
renovate[bot] Jun 25, 2022
890d906
chore: update actions/setup-node action to v3
renovate[bot] Jun 25, 2022
3ebcb8a
chore: update supercharge/mongodb-github-action action to v1.7.0
renovate[bot] Jun 25, 2022
e473c26
chore: update dependency strong-globalize to ^6.0.5
renovate[bot] Jun 26, 2022
469fd69
chore: update dependency eslint to ^8.18.0
renovate[bot] Jun 26, 2022
717a7d8
chore: update dependency loopback-datasource-juggler to ^4.27.1
renovate[bot] Jun 26, 2022
51d132a
chore: update dependency mocha to ^9.2.2
renovate[bot] Jun 26, 2022
3305543
chore: update github/codeql-action action to v2
renovate[bot] Jun 26, 2022
9094141
chore: update dependency eslint to ^8.19.0
renovate[bot] Jul 11, 2022
bba9357
chore: update commitlint monorepo to v17
renovate[bot] Aug 27, 2022
baeaa37
chore: update dependency eslint to ^8.23.0
renovate[bot] Aug 27, 2022
96a4ba8
chore: update supercharge/mongodb-github-action action to v1.8.0
renovate[bot] Aug 27, 2022
9f9f721
chore: lock file maintenance
renovate[bot] Aug 27, 2022
d0e815b
feat: upgrade mongodb driver to version 4.x
arsa-dev Oct 23, 2022
070b88b
chore: update Node.js engine matrix
achrinza Nov 20, 2022
c1e0256
ci: update Node.js test matrix
achrinza Nov 20, 2022
21a25fe
chore(release): v7.0.0-alpha.1
achrinza Nov 20, 2022
df55d72
chore: update Node.js and MongoDB supported versions
achrinza Sep 13, 2024
c7f1148
feat: always use optimized findOrCreate
achrinza Sep 17, 2024
fe4a2f9
7.0.0-alpha.2
dhmlau Nov 13, 2024
14070ca
fix: update node.js versions in CI
dhmlau Dec 11, 2024
c93e9b3
fix: fix tests
dhmlau May 12, 2025
52aea9c
chore: remove Node.js 18 and mongodb driver 4.4 support
dhmlau May 14, 2025
e869db3
chore: update dependency semver to ^7.7.2
renovate[bot] May 14, 2025
f61ff2a
chore: update dependency eslint to ^8.57.1
renovate[bot] May 14, 2025
66ec3d8
chore: update dependency debug to ^4.4.1
renovate[bot] May 14, 2025
6f8d7e9
chore: update dependency async to ^3.2.6
renovate[bot] May 14, 2025
319f0c3
chore: update dependency mongodb to v4.17.0 [security]
renovate[bot] May 14, 2025
5eb1b3b
chore: update commitlint monorepo to ^17.8.1
renovate[bot] May 14, 2025
4fe9114
chore: remove travis & update renovate
dhmlau May 14, 2025
c503165
chore: update github/codeql-action action to v3
renovate[bot] May 16, 2025
a3c62ec
chore: update dependency strong-globalize to ^6.0.6
renovate[bot] May 14, 2025
6202d23
chore: update actions/checkout action to v4
renovate[bot] May 15, 2025
74cd2e7
chore: update actions/setup-node action to v4
renovate[bot] May 15, 2025
cf0e199
feat: upgrade mongodb driver to version 5.x
mrbatista Feb 6, 2025
62aa8ed
chore: update dependency mongodb to ^5.9.2
renovate[bot] May 23, 2025
9facd64
chore: update dependency strong-globalize to ^6.0.6
renovate[bot] May 23, 2025
54591d0
chore: update supercharge/mongodb-github-action action to v1.12.0
renovate[bot] May 23, 2025
fdcdcc0
chore: renovate bot only for master branch
dhmlau May 23, 2025
c75a1f3
chore: update dependency sinon to v20
renovate[bot] May 24, 2025
711e613
chore: update dependency nyc to v17
renovate[bot] May 24, 2025
9118deb
chore: update dependency loopback-connector to ^5.3.3
renovate[bot] May 24, 2025
f888c0b
chore: update dependency mocha to v11
renovate[bot] May 24, 2025
ef04a29
chore: update dependency mocha to ^11.6.0
renovate[bot] Jun 9, 2025
d507b5d
chore: update commitlint monorepo to v19
renovate[bot] Jun 9, 2025
9099316
7.0.0-alpha.4
dhmlau Jun 9, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
"ignorePattern": "^\\s*var\\s.+=\\s*(require\\s*\\()|(/)"
}]
}
}
}
2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ blank_issues_enabled: false
contact_links:
- name: Report a security vulnerability
url: https://loopback.io/doc/en/contrib/Reporting-issues.html#security-issues
about: Do not report security vulnerabilities using GitHub issues. Please send an email to `[email protected]` instead.
about: Do not report security vulnerabilities using GitHub issues. Please send an email to `[email protected]` instead.
- name: Get help on StackOverflow
url: https://stackoverflow.com/tags/loopbackjs
about: Please ask and answer questions on StackOverflow.
Expand Down
98 changes: 68 additions & 30 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -1,78 +1,116 @@
name: Continuous Integration (master branch)
name: CI

on:
push:
branches:
- master
- 6.x
pull_request:
branches:
- master
- 6.x
schedule:
- cron: '0 2 * * 1' # At 02:00 on Monday

permissions: {}

jobs:
build:
test:
name: Test
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
matrix:
node-version: [10, 12, 14]
mongodb-version: [4.4] # the latest stable version

node-version: [20, 22, 24]
mongodb-version:
- '5.0'
- '6.0'
- '7.0'
fail-fast: false
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Start MongoDB
uses: supercharge/[email protected]
with:
mongodb-version: ${{ matrix.mongodb-version }}
- name: Bootstrap project
run: npm ci --ignore-scripts
- name: Update NPM (Node.js v10)
if: matrix.node-version == 10
run: npm install --global npm@7
- name: Update NPM
if: matrix.node-version != 10
run: npm install --global npm@8
- name: Run tests
run: npm test --ignore-scripts
- name: Publish coverage report to Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
flag-name: run-${{ matrix.os }}-node@${{ matrix.node-version }}
path-to-lcov: ${{ github.workspace }}/coverage/lcov.info
parallel: true

- name: Start MongoDB
uses: supercharge/[email protected]
posttest:
name: Post-Test
needs: test
runs-on: ubuntu-latest
steps:
- name: Coveralls finished
uses: coverallsapp/github-action@master
with:
mongodb-version: ${{ matrix.mongodb-version }}

- run: npm install
- run: npm test
github-token: ${{ secrets.github_token }}
parallel-finished: true

code-lint:
name: Code Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js 14
uses: actions/setup-node@v2
- uses: actions/checkout@v4
- name: Use Node.js 16
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 16
- name: Bootstrap project
run: npm install --ignore-scripts
run: npm ci --ignore-scripts
- name: Verify code linting
run: npm run lint

commit-lint:
name: Commit Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 14
uses: actions/setup-node@v2
- name: Use Node.js 16
uses: actions/setup-node@v4
with:
node-version: 14
node-version: 16
- name: Bootstrap project
run: npm install
run: npm ci --ignore-scripts
- name: Verify commit linting
run: npx commitlint --from origin/master --to HEAD --verbose
run: npx --no-install commitlint --from origin/master --to HEAD --verbose

codeql:
name: CodeQL
runs-on: ubuntu-latest
permissions:
# See: https://github.com/github/codeql-action/blob/008b2cc71c4cf3401f45919d8eede44a65b4a322/README.md#usage
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v3
with:
languages: 'javascript'
config-file: ./.github/codeql/codeql-config.yml

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v1
uses: github/codeql-action/analyze@v3
6 changes: 6 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
coverage
.idea
.nyc_output/
test
.travis.yml
3 changes: 2 additions & 1 deletion .npmrc
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
package-lock=false
package-lock=true
scripts-prepend-node-path=true
166 changes: 166 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,169 @@
2025-06-09, Version 7.0.0-alpha.4
=================================

* chore: update commitlint monorepo to v19 (renovate[bot])

* chore: update dependency mocha to ^11.6.0 (renovate[bot])

* chore: update dependency mocha to v11 (renovate[bot])

* chore: update dependency loopback-connector to ^5.3.3 (renovate[bot])

* chore: update dependency nyc to v17 (renovate[bot])

* chore: update dependency sinon to v20 (renovate[bot])

* chore: renovate bot only for master branch (dhmlau)

* chore: update supercharge/mongodb-github-action action to v1.12.0 (renovate[bot])

* chore: update dependency strong-globalize to ^6.0.6 (renovate[bot])

* chore: update dependency mongodb to ^5.9.2 (renovate[bot])

* feat: upgrade mongodb driver to version 5.x (Matteo Padovano)

* chore: update actions/setup-node action to v4 (renovate[bot])

* chore: update actions/checkout action to v4 (renovate[bot])

* chore: update github/codeql-action action to v3 (renovate[bot])

* chore: remove travis & update renovate (dhmlau)

* chore: update commitlint monorepo to ^17.8.1 (renovate[bot])

* chore: update dependency mongodb to v4.17.0 [security] (renovate[bot])

* chore: update dependency async to ^3.2.6 (renovate[bot])

* chore: update dependency debug to ^4.4.1 (renovate[bot])

* chore: update dependency eslint to ^8.57.1 (renovate[bot])

* chore: update dependency semver to ^7.7.2 (renovate[bot])

* chore: remove Node.js 18 and mongodb driver 4.4 support (dhmlau)

* fix: fix tests (dhmlau)

* fix: update node.js versions in CI (dhmlau)


2024-11-13, Version 7.0.0-alpha.2
=================================

* feat: always use optimized findOrCreate (Rifa Achrinza)

* chore: update Node.js and MongoDB supported versions (Rifa Achrinza)


2022-11-20, Version 7.0.0-alpha.1
=================================

* chore(release): v7.0.0-alpha.1 (Rifa Achrinza)

* ci: update Node.js test matrix (Rifa Achrinza)

* chore: update Node.js engine matrix (Rifa Achrinza)

* feat: upgrade mongodb driver to version 4.x (Antonio Ramón Sánchez Morales)

* chore: lock file maintenance (renovate[bot])

* chore: update supercharge/mongodb-github-action action to v1.8.0 (renovate[bot])

* chore: update dependency eslint to ^8.23.0 (renovate[bot])

* chore: update commitlint monorepo to v17 (renovate[bot])

* chore: update dependency eslint to ^8.19.0 (renovate[bot])

* chore: update github/codeql-action action to v2 (renovate[bot])

* chore: update dependency mocha to ^9.2.2 (renovate[bot])

* chore: update dependency loopback-datasource-juggler to ^4.27.1 (renovate[bot])

* chore: update dependency eslint to ^8.18.0 (renovate[bot])

* chore: update dependency strong-globalize to ^6.0.5 (renovate[bot])

* chore: update supercharge/mongodb-github-action action to v1.7.0 (renovate[bot])

* chore: update actions/setup-node action to v3 (renovate[bot])

* chore: update actions/checkout action to v3 (renovate[bot])

* chore: update dependency semver to ^7.3.7 (renovate[bot])

* chore: update dependency should to ^13.2.3 (renovate[bot])

* chore: update dependency debug to ^4.3.4 (renovate[bot])

* chore: update dependency loopback-connector to ^5.0.1 (renovate[bot])

* chore: update dependency bson to ^1.1.6 (renovate[bot])

* chore: update dependency bluebird to ^3.7.2 (renovate[bot])

* chore: update dependency async to ^3.2.4 (renovate[bot])

* ci: add renovate config (Rifa Achrinza)

* fix(*): run autoupdate in serial to avoid conflicts (Simon Stone)

* fix: optional chaining (preussmann)

* chore: update v6 EOL (Rifa Achrinza)

* ci: test against Node.js v18 (Rifa Achrinza)


2022-03-31, Version 6.2.0
=========================

* docs: add SECURITY.md (Diana Lau)

* chore: tls README example (d-bo)

* docs: update coc (Diana Lau)

* docs: add code of conduct (Diana Lau)

* chore: update v6 EOL (Rifa Achrinza)

* ci: fix typo (Rifa Achrinza)

* chore: update deps (Rifa Achrinza)

* feat: add tls options as of mongo 3.7 (d-bo)

* ci: update Node.js version (Rifa Achrinza)

* ci: pin NPM version (Rifa Achrinza)

* chore: add @achrinza and update CODEOWNERS (Diana Lau)

* fix: isObjectIDProperty array param check (Rifa Achrinza)

* fix: handle url default db name (Rifa Achrinza)

* ci: restrict GITHUB_TOKEN permissions (Rifa Achrinza)


2021-09-07, Version 6.1.0
=========================

* ci: misc updates (Rifa Achrinza)

* feat: add transaction support (Sergey Nosenko)

* ci: align gh actions workflow with 5.x (Rifa Achrinza)

* chore: move repo to loopbackio org (Diana Lau)


2021-05-03, Version 6.0.1
=========================

Expand Down
4 changes: 2 additions & 2 deletions CODEOWNERS
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# the last matching pattern has the most precedence.

# Current maintainers
* @jannyHou @dhmlau @nitro404 @emonddr @hacksparrow @agnes512
* @dhmlau @nitro404 @hacksparrow @agnes512 @achrinza

# Alumni maintainers
# @loay @virkt25 @shimks @b-admike
# @loay @virkt25 @shimks @b-admike @jannyHou @emonddr
Loading