package.json 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. {
  2. "name": "mongodb",
  3. "version": "7.0.0",
  4. "description": "The official MongoDB driver for Node.js",
  5. "main": "lib/index.js",
  6. "files": [
  7. "lib",
  8. "src",
  9. "etc/prepare.js",
  10. "mongodb.d.ts",
  11. "tsconfig.json"
  12. ],
  13. "types": "mongodb.d.ts",
  14. "repository": {
  15. "type": "git",
  16. "url": "git@github.com:mongodb/node-mongodb-native.git"
  17. },
  18. "keywords": [
  19. "mongodb",
  20. "driver",
  21. "official"
  22. ],
  23. "author": {
  24. "name": "The MongoDB NodeJS Team",
  25. "email": "dbx-node@mongodb.com"
  26. },
  27. "dependencies": {
  28. "@mongodb-js/saslprep": "^1.3.0",
  29. "bson": "^7.0.0",
  30. "mongodb-connection-string-url": "^7.0.0"
  31. },
  32. "peerDependencies": {
  33. "@aws-sdk/credential-providers": "^3.806.0",
  34. "@mongodb-js/zstd": "^7.0.0",
  35. "gcp-metadata": "^7.0.1",
  36. "kerberos": "^7.0.0",
  37. "mongodb-client-encryption": ">=7.0.0 <7.1.0",
  38. "snappy": "^7.3.2",
  39. "socks": "^2.8.6"
  40. },
  41. "peerDependenciesMeta": {
  42. "@aws-sdk/credential-providers": {
  43. "optional": true
  44. },
  45. "@mongodb-js/zstd": {
  46. "optional": true
  47. },
  48. "kerberos": {
  49. "optional": true
  50. },
  51. "snappy": {
  52. "optional": true
  53. },
  54. "mongodb-client-encryption": {
  55. "optional": true
  56. },
  57. "gcp-metadata": {
  58. "optional": true
  59. },
  60. "socks": {
  61. "optional": true
  62. }
  63. },
  64. "devDependencies": {
  65. "@aws-sdk/credential-providers": "^3.876.0",
  66. "@iarna/toml": "^2.2.5",
  67. "@istanbuljs/nyc-config-typescript": "^1.0.2",
  68. "@microsoft/api-extractor": "^7.52.11",
  69. "@microsoft/tsdoc-config": "^0.17.1",
  70. "@mongodb-js/zstd": "^7.0.0",
  71. "@types/chai": "^4.3.17",
  72. "@types/chai-subset": "^1.3.5",
  73. "@types/express": "^5.0.3",
  74. "@types/kerberos": "^1.1.5",
  75. "@types/mocha": "^10.0.9",
  76. "@types/node": "^22.15.3",
  77. "@types/saslprep": "^1.0.3",
  78. "@types/semver": "^7.7.0",
  79. "@types/sinon": "^17.0.4",
  80. "@types/sinon-chai": "^4.0.0",
  81. "@types/whatwg-url": "^13.0.0",
  82. "@typescript-eslint/eslint-plugin": "^8.41.0",
  83. "@typescript-eslint/parser": "^8.31.1",
  84. "chai": "^4.4.1",
  85. "chai-subset": "^1.6.0",
  86. "chalk": "^4.1.2",
  87. "eslint": "^9.34.0",
  88. "eslint-config-prettier": "^10.1.8",
  89. "eslint-plugin-mocha": "^10.4.1",
  90. "eslint-plugin-prettier": "^5.5.4",
  91. "eslint-plugin-simple-import-sort": "^12.1.1",
  92. "eslint-plugin-tsdoc": "^0.4.0",
  93. "eslint-plugin-unused-imports": "^4.2.0",
  94. "express": "^5.1.0",
  95. "gcp-metadata": "^7.0.1",
  96. "js-yaml": "^4.1.0",
  97. "mocha": "^11.7.1",
  98. "mocha-sinon": "^2.1.2",
  99. "mongodb-client-encryption": "^7.0.0",
  100. "nyc": "^15.1.0",
  101. "prettier": "^3.6.2",
  102. "semver": "^7.7.2",
  103. "sinon": "^18.0.1",
  104. "sinon-chai": "^3.7.0",
  105. "snappy": "^7.3.2",
  106. "socks": "^2.8.7",
  107. "source-map-support": "^0.5.21",
  108. "ts-node": "^10.9.2",
  109. "tsd": "^0.33.0",
  110. "typescript": "5.8.3",
  111. "typescript-cached-transpile": "^0.0.6",
  112. "v8-heapsnapshot": "^1.3.1",
  113. "yargs": "^18.0.0"
  114. },
  115. "license": "Apache-2.0",
  116. "engines": {
  117. "node": ">=20.19.0"
  118. },
  119. "bugs": {
  120. "url": "https://jira.mongodb.org/projects/NODE/issues/"
  121. },
  122. "homepage": "https://github.com/mongodb/node-mongodb-native",
  123. "scripts": {
  124. "build:evergreen": "node .evergreen/generate_evergreen_tasks.js",
  125. "build:ts": "node ./node_modules/typescript/bin/tsc",
  126. "build:dts": "npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs && ESLINT_USE_FLAT_CONFIG=false eslint --no-ignore --fix mongodb.d.ts",
  127. "build:docs": "./etc/docs/build.ts",
  128. "build:typedoc": "typedoc",
  129. "build:nightly": "node ./.github/scripts/nightly.mjs",
  130. "check:bench": "npm --prefix test/benchmarks/driver_bench start",
  131. "check:coverage": "nyc npm run test:all",
  132. "check:integration-coverage": "nyc npm run check:test",
  133. "check:lambda": "nyc mocha --config test/mocha_lambda.js test/integration/node-specific/examples/handler.test.js",
  134. "check:lambda:aws": "nyc mocha --config test/mocha_lambda.js test/integration/node-specific/examples/aws_handler.test.js",
  135. "check:lint": "npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd",
  136. "check:eslint": "npm run build:dts && ESLINT_USE_FLAT_CONFIG=false eslint -v && ESLINT_USE_FLAT_CONFIG=false eslint --max-warnings=0 --ext '.js,.ts' src test",
  137. "check:tsd": "tsd --version && tsd",
  138. "check:dependencies": "mocha test/action/dependency.test.ts",
  139. "check:dts": "node ./node_modules/typescript/bin/tsc --target es2023 --module commonjs --noEmit mongodb.d.ts && tsd",
  140. "check:search-indexes": "nyc mocha --config test/mocha_mongodb.js test/manual/search-index-management.prose.test.ts",
  141. "check:test": "mocha --config test/mocha_mongodb.js test/integration",
  142. "check:unit": "nyc mocha test/unit",
  143. "check:ts": "node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit",
  144. "check:atlas": "nyc mocha --config test/manual/mocharc.js test/manual/atlas_connectivity.test.ts",
  145. "check:drivers-atlas-testing": "nyc mocha --config test/mocha_mongodb.js test/atlas/drivers_atlas_testing.test.ts",
  146. "check:aws": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_aws.test.ts test/integration/auth/mongodb_aws.prose.test.ts",
  147. "check:oidc-auth": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/auth.spec.test.ts",
  148. "check:oidc-test": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc.prose.test.ts",
  149. "check:oidc-azure": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc_azure.prose.05.test.ts",
  150. "check:oidc-gcp": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc_gcp.prose.06.test.ts",
  151. "check:oidc-k8s": "nyc mocha --config test/mocha_mongodb.js test/integration/auth/mongodb_oidc_k8s.prose.07.test.ts",
  152. "check:kerberos": "nyc mocha --config test/manual/mocharc.js test/manual/kerberos.test.ts",
  153. "check:tls": "nyc mocha --config test/manual/mocharc.js test/manual/tls_support.test.ts",
  154. "check:ldap": "nyc mocha --config test/manual/mocharc.js test/manual/ldap.test.ts",
  155. "check:socks5": "nyc mocha --config test/manual/mocharc.js test/manual/socks5.test.ts",
  156. "check:csfle": "nyc mocha --config test/mocha_mongodb.js test/integration/client-side-encryption",
  157. "check:snappy": "nyc mocha test/unit/assorted/snappy.test.js",
  158. "check:x509": "nyc mocha test/manual/x509_auth.test.ts",
  159. "fix:eslint": "npm run check:eslint -- --fix",
  160. "prepare": "node etc/prepare.js",
  161. "preview:docs": "ts-node etc/docs/preview.ts",
  162. "test": "npm run check:lint && npm run test:all",
  163. "test:all": "npm run check:unit && npm run check:test",
  164. "update:docs": "npm run build:docs -- --yes"
  165. },
  166. "tsd": {
  167. "directory": "test/types",
  168. "compilerOptions": {
  169. "strict": true,
  170. "target": "esnext",
  171. "module": "commonjs",
  172. "moduleResolution": "node"
  173. }
  174. }
  175. }