package.json 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  1. {
  2. "name": "mongodb",
  3. "version": "5.9.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. "bson": "^5.5.0",
  29. "mongodb-connection-string-url": "^2.6.0",
  30. "socks": "^2.7.1"
  31. },
  32. "optionalDependencies": {
  33. "@mongodb-js/saslprep": "^1.1.0"
  34. },
  35. "peerDependencies": {
  36. "@aws-sdk/credential-providers": "^3.188.0",
  37. "@mongodb-js/zstd": "^1.0.0",
  38. "kerberos": "^1.0.0 || ^2.0.0",
  39. "mongodb-client-encryption": ">=2.3.0 <3",
  40. "snappy": "^7.2.2"
  41. },
  42. "peerDependenciesMeta": {
  43. "@aws-sdk/credential-providers": {
  44. "optional": true
  45. },
  46. "@mongodb-js/zstd": {
  47. "optional": true
  48. },
  49. "kerberos": {
  50. "optional": true
  51. },
  52. "snappy": {
  53. "optional": true
  54. },
  55. "mongodb-client-encryption": {
  56. "optional": true
  57. }
  58. },
  59. "devDependencies": {
  60. "@iarna/toml": "^2.2.5",
  61. "@istanbuljs/nyc-config-typescript": "^1.0.2",
  62. "@microsoft/api-extractor": "^7.35.1",
  63. "@microsoft/tsdoc-config": "^0.16.2",
  64. "@mongodb-js/zstd": "^1.1.0",
  65. "@octokit/core": "^4.2.4",
  66. "@types/chai": "^4.3.5",
  67. "@types/chai-subset": "^1.3.3",
  68. "@types/express": "^4.17.17",
  69. "@types/kerberos": "^1.1.2",
  70. "@types/mocha": "^10.0.1",
  71. "@types/node": "^20.1.0",
  72. "@types/semver": "^7.5.0",
  73. "@types/sinon": "^10.0.14",
  74. "@types/sinon-chai": "^3.2.9",
  75. "@types/whatwg-url": "^11.0.0",
  76. "@typescript-eslint/eslint-plugin": "^5.59.5",
  77. "@typescript-eslint/parser": "^5.59.5",
  78. "chai": "^4.3.7",
  79. "chai-subset": "^1.6.0",
  80. "chalk": "^4.1.2",
  81. "eslint": "^8.40.0",
  82. "eslint-config-prettier": "^8.8.0",
  83. "eslint-plugin-import": "^2.27.5",
  84. "eslint-plugin-prettier": "^4.2.1",
  85. "eslint-plugin-simple-import-sort": "^10.0.0",
  86. "eslint-plugin-tsdoc": "^0.2.17",
  87. "express": "^4.18.2",
  88. "js-yaml": "^4.1.0",
  89. "mocha": "^10.2.0",
  90. "mocha-sinon": "^2.1.2",
  91. "mongodb-legacy": "^5.0.0",
  92. "nyc": "^15.1.0",
  93. "prettier": "^2.8.8",
  94. "semver": "^7.5.0",
  95. "sinon": "^15.0.4",
  96. "sinon-chai": "^3.7.0",
  97. "snappy": "^7.2.2",
  98. "source-map-support": "^0.5.21",
  99. "ts-node": "^10.9.1",
  100. "tsd": "^0.28.1",
  101. "typescript": "^5.0.4",
  102. "typescript-cached-transpile": "^0.0.6",
  103. "v8-heapsnapshot": "^1.2.0",
  104. "yargs": "^17.7.2"
  105. },
  106. "license": "Apache-2.0",
  107. "engines": {
  108. "node": ">=14.20.1"
  109. },
  110. "bugs": {
  111. "url": "https://jira.mongodb.org/projects/NODE/issues/"
  112. },
  113. "homepage": "https://github.com/mongodb/node-mongodb-native",
  114. "scripts": {
  115. "build:evergreen": "node .evergreen/generate_evergreen_tasks.js",
  116. "build:ts": "node ./node_modules/typescript/bin/tsc",
  117. "build:dts": "npm run build:ts && api-extractor run && node etc/clean_definition_files.cjs",
  118. "build:docs": "./etc/docs/build.ts",
  119. "build:typedoc": "typedoc",
  120. "build:nightly": "node ./.github/scripts/nightly.mjs",
  121. "check:bench": "node test/benchmarks/driverBench",
  122. "check:coverage": "nyc npm run test:all",
  123. "check:integration-coverage": "nyc npm run check:test",
  124. "check:lambda": "mocha --config test/mocha_lambda.json test/integration/node-specific/examples/handler.test.js",
  125. "check:lambda:aws": "mocha --config test/mocha_lambda.json test/integration/node-specific/examples/aws_handler.test.js",
  126. "check:lint": "npm run build:dts && npm run check:dts && npm run check:eslint && npm run check:tsd",
  127. "check:eslint": "eslint -v && eslint --max-warnings=0 --ext '.js,.ts' src test",
  128. "check:tsd": "tsd --version && tsd",
  129. "check:dependencies": "mocha test/action/dependency.test.ts",
  130. "check:dts": "node ./node_modules/typescript/bin/tsc --noEmit mongodb.d.ts && tsd",
  131. "check:search-indexes": "nyc mocha --config test/mocha_mongodb.json test/manual/search-index-management.spec.test.ts",
  132. "check:test": "mocha --config test/mocha_mongodb.json test/integration",
  133. "check:unit": "mocha test/unit",
  134. "check:ts": "node ./node_modules/typescript/bin/tsc -v && node ./node_modules/typescript/bin/tsc --noEmit",
  135. "check:atlas": "mocha --config test/manual/mocharc.json test/manual/atlas_connectivity.test.js",
  136. "check:adl": "mocha --config test/mocha_mongodb.json test/manual/atlas-data-lake-testing",
  137. "check:aws": "nyc mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_aws.test.ts",
  138. "check:oidc": "mocha --config test/mocha_mongodb.json test/manual/mongodb_oidc.prose.test.ts",
  139. "check:oidc-azure": "mocha --config test/mocha_mongodb.json test/integration/auth/mongodb_oidc_azure.prose.test.ts",
  140. "check:ocsp": "mocha --config test/manual/mocharc.json test/manual/ocsp_support.test.js",
  141. "check:kerberos": "nyc mocha --config test/manual/mocharc.json test/manual/kerberos.test.ts",
  142. "check:tls": "mocha --config test/manual/mocharc.json test/manual/tls_support.test.js",
  143. "check:ldap": "nyc mocha --config test/manual/mocharc.json test/manual/ldap.test.js",
  144. "check:socks5": "mocha --config test/manual/mocharc.json test/manual/socks5.test.ts",
  145. "check:csfle": "mocha --config test/mocha_mongodb.json test/integration/client-side-encryption",
  146. "check:snappy": "mocha test/unit/assorted/snappy.test.js",
  147. "fix:eslint": "npm run check:eslint -- --fix",
  148. "prepare": "node etc/prepare.js",
  149. "preview:docs": "ts-node etc/docs/preview.ts",
  150. "test": "npm run check:lint && npm run test:all",
  151. "test:all": "npm run check:unit && npm run check:test",
  152. "update:docs": "npm run build:docs -- --yes"
  153. },
  154. "tsd": {
  155. "directory": "test/types",
  156. "compilerOptions": {
  157. "strict": true,
  158. "target": "esnext",
  159. "module": "commonjs",
  160. "moduleResolution": "node"
  161. }
  162. }
  163. }