Skip to content
This repository has been archived by the owner on Jul 9, 2024. It is now read-only.

chore!: add bson v6 to peer dependencies #192

Merged
merged 4 commits into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
bson: [4.x, 5.x]
bson: [4.x, 5.x, 6.x]
steps:
- uses: actions/checkout@v2
- uses: actions/[email protected]
with:
node-version: '14.x'
node-version: '16.x'
- run: yarn install --frozen-lockfile # will run `yarn install` command
- run: yarn add bson@${{ matrix.bson }}
- run: yarn sanity # will check if building works & if code is formatted well
Expand Down
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"acorn": "^8.1.0"
},
"peerDependencies": {
"bson": "^4.6.3 || ^5.0.0"
"bson": "^4.6.3 || ^5 || ^6"
},
"devDependencies": {
"@babel/core": "^7.18.9",
Expand Down Expand Up @@ -57,5 +57,8 @@
},
"lint-staged": {
"*.{js,jsx,ts,less,html,md,yml}": "prettier --write"
},
"engines" : {
"node" : ">=16"
}
}
4 changes: 2 additions & 2 deletions test/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ it('should accept a complex query', function() {
expect(
parse(`{
RegExp: /test/ig,
Binary: new Binary(''),
Binary: new Binary(),
BinData: BinData(3, 'dGVzdAo='),
UUID: UUID('3d37923d-ab8e-4931-9e46-93df5fd3599e'),
Code: Code('function() {}'),
Expand All @@ -56,7 +56,7 @@ it('should accept a complex query', function() {
}`)
).toEqual({
RegExp: /test/gi,
Binary: new bson.Binary('' as any),
Binary: new bson.Binary(),
BinData: new bson.Binary(Buffer.from('dGVzdAo=', 'base64'), 3),
UUID: new bson.Binary(
Buffer.from('3d37923dab8e49319e4693df5fd3599e', 'hex'),
Expand Down
2 changes: 1 addition & 1 deletion yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2018,7 +2018,7 @@ bson@^1.0.1:
resolved "https://registry.yarnpkg.com/bson/-/bson-1.1.6.tgz#fb819be9a60cd677e0853aee4ca712a785d6618a"
integrity sha512-EvVNVeGo4tHxwi8L6bPj3y3itEvStdwvvlojVxxbyYfoaxJ6keLgrTuKdyfEAszFK+H3olzBuafE0yoh0D1gdg==

bson@^4.0.3, bson@^4.6.3:
bson@^4.0.3:
version "4.6.3"
resolved "https://registry.yarnpkg.com/bson/-/bson-4.6.3.tgz#d1a9a0b84b9e84b62390811fc5580f6a8b1d858c"
integrity sha512-rAqP5hcUVJhXP2MCSNVsf0oM2OGU1So6A9pVRDYayvJ5+hygXHQApf87wd5NlhPM1J9RJnbqxIG/f8QTzRoQ4A==
Expand Down
Loading