package.json 6.3 KB

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