Skip to content
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

Upstream Comparison #2

Open
wants to merge 50 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
50 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
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
99 changes: 69 additions & 30 deletions .github/workflows/continuous-integration.yaml
Original file line number Diff line number Diff line change
@@ -1,78 +1,117 @@
name: Continuous Integration (master branch)
name: CI

on:
push:
branches:
- master
- 5.x
pull_request:
branches:
- master
- 5.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: [18, 19, 20, 21]
mongodb-version:
- '4.4'
- '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@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
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@v3
- name: Use Node.js 16
uses: actions/setup-node@v3
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@v3
with:
fetch-depth: 0
- name: Use Node.js 14
uses: actions/setup-node@v2
- name: Use Node.js 16
uses: actions/setup-node@v3
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@v3

- name: Initialize CodeQL
uses: github/codeql-action/init@v1
uses: github/codeql-action/init@v2
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@v2
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
35 changes: 35 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
branches:
only: master
arch: arm64
dist: focal
services: docker
language: node_js
node_js:
- 10
- 12
- 14
- 16
- 17
- 18
before_install: |
docker run --name=mongodb --publish=27017:27017 --detach mongo:4.4
until docker exec --tty mongodb mongo --port=27017 --eval='db.serverStatus()'
do
sleep 1
echo "."
TIMER=$((TIMER + 1))
if [ $TIMER -eq 20 ]; then
echo "MongoDB did not initialize within 20 seconds. Exiting."
exit 2
fi
done
NODEJS_VERSION=$(node --version)
if [ 'v10' == ${NODEJS_VERSION%%.*} ]
then
npm install --global npm@7
else
npm install --global npm@8
fi
install:
- npm ci --ignore-scripts
script: npm test --ignore-scripts
114 changes: 114 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,117 @@
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
Validating CODEOWNERS rules …
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