package.json 6.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. {
  2. "name": "mongoose",
  3. "description": "Mongoose MongoDB ODM",
  4. "version": "9.1.1",
  5. "author": "Guillermo Rauch <guillermo@learnboost.com>",
  6. "keywords": [
  7. "mongodb",
  8. "document",
  9. "model",
  10. "schema",
  11. "database",
  12. "odm",
  13. "data",
  14. "datastore",
  15. "query",
  16. "nosql",
  17. "orm",
  18. "db"
  19. ],
  20. "type": "commonjs",
  21. "license": "MIT",
  22. "dependencies": {
  23. "kareem": "3.0.0",
  24. "mongodb": "~7.0",
  25. "mpath": "0.9.0",
  26. "mquery": "6.0.0",
  27. "ms": "2.1.3",
  28. "sift": "17.1.3"
  29. },
  30. "devDependencies": {
  31. "@ark/attest": "0.55.0",
  32. "@mongodb-js/mongodb-downloader": "^1.0.0",
  33. "acquit": "1.4.0",
  34. "acquit-ignore": "0.2.1",
  35. "acquit-require": "0.1.1",
  36. "ajv": "8.17.1",
  37. "broken-link-checker": "^0.7.8",
  38. "cheerio": "1.1.2",
  39. "dox": "1.0.0",
  40. "eslint": "9.39.1",
  41. "eslint-plugin-markdown": "^5.1.0",
  42. "eslint-plugin-mocha-no-only": "1.2.0",
  43. "express": "^4.19.2",
  44. "fs-extra": "~11.3.0",
  45. "highlight.js": "11.11.1",
  46. "lodash.isequal": "4.5.0",
  47. "lodash.isequalwith": "4.4.0",
  48. "markdownlint-cli2": "^0.19.1",
  49. "marked": "15.x",
  50. "mkdirp": "^3.0.1",
  51. "mocha": "11.7.5",
  52. "moment": "2.30.1",
  53. "mongodb-memory-server": "11.0.0",
  54. "mongodb-runner": "^6.0.0",
  55. "mongodb-client-encryption": "~7.0",
  56. "ncp": "^2.0.0",
  57. "nyc": "15.1.0",
  58. "pug": "3.0.3",
  59. "sinon": "21.0.0",
  60. "tsd": "0.33.0",
  61. "typescript": "5.9.3",
  62. "typescript-eslint": "^8.31.1",
  63. "uuid": "11.1.0"
  64. },
  65. "directories": {
  66. "lib": "./lib/mongoose"
  67. },
  68. "scripts": {
  69. "docs:clean": "npm run docs:clean:stable",
  70. "docs:clean:stable": "rimraf index.html && rimraf -rf ./docs/*.html && rimraf -rf ./docs/api && rimraf -rf ./docs/tutorials/*.html && rimraf -rf ./docs/typescript/*.html && rimraf -rf ./docs/*.html && rimraf -rf ./docs/source/_docs && rimraf -rf ./tmp",
  71. "docs:clean:5x": "rimraf index.html && rimraf -rf ./docs/5.x && rimraf -rf ./docs/source/_docs && rimraf -rf ./tmp",
  72. "docs:clean:6x": "rimraf index.html && rimraf -rf ./docs/6.x && rimraf -rf ./docs/source/_docs && rimraf -rf ./tmp",
  73. "docs:copy:tmp": "mkdirp ./tmp/docs/css && mkdirp ./tmp/docs/js && mkdirp ./tmp/docs/images && mkdirp ./tmp/docs/tutorials && mkdirp ./tmp/docs/typescript && mkdirp ./tmp/docs/api && ncp ./docs/css ./tmp/docs/css --filter=.css$ && ncp ./docs/js ./tmp/docs/js --filter=.js$ && ncp ./docs/images ./tmp/docs/images && ncp ./docs/tutorials ./tmp/docs/tutorials && ncp ./docs/typescript ./tmp/docs/typescript && ncp ./docs/api ./tmp/docs/api && cp index.html ./tmp && cp docs/*.html ./tmp/docs/",
  74. "docs:copy:tmp:5x": "rimraf ./docs/5.x && ncp ./tmp ./docs/5.x",
  75. "docs:copy:tmp:6x": "rimraf ./docs/6.x && ncp ./tmp ./docs/6.x",
  76. "docs:generate": "node ./scripts/website.js",
  77. "docs:generate:sponsorData": "node ./scripts/loadSponsorData.js",
  78. "docs:test": "npm run docs:generate",
  79. "docs:view": "node ./scripts/static.js",
  80. "docs:prepare:publish:stable": "git checkout gh-pages && git merge master && npm run docs:generate",
  81. "docs:prepare:publish:5x": "git checkout 5.x && git merge 5.x && npm run docs:clean:stable && npm run docs:generate && npm run docs:copy:tmp && git checkout gh-pages && npm run docs:copy:tmp:5x",
  82. "docs:prepare:publish:6x": "git checkout 6.x && git merge 6.x && npm run docs:clean:stable && env DOCS_DEPLOY=true npm run docs:generate && mv ./docs/6.x ./tmp && git checkout gh-pages && npm run docs:copy:tmp:6x",
  83. "docs:prepare:publish:7x": "env DOCS_DEPLOY=true npm run docs:generate && git checkout gh-pages && rimraf ./docs/7.x && mv ./tmp ./docs/7.x",
  84. "docs:prepare:publish:8x": "env DOCS_DEPLOY=true npm run docs:generate && git checkout gh-pages && rimraf ./docs/8.x && mv ./tmp ./docs/8.x",
  85. "docs:check-links": "blc http://127.0.0.1:8089 -ro",
  86. "lint": "eslint .",
  87. "lint-js": "eslint . --ext .js --ext .cjs",
  88. "lint-ts": "eslint . --ext .ts",
  89. "lint-md": "markdownlint-cli2 \"**/*.md\" \"#node_modules\" \"#benchmarks\"",
  90. "release": "git pull && git push origin master --tags && npm publish",
  91. "release-5x": "git pull origin 5.x && git push origin 5.x && git push origin 5.x --tags && npm publish --tag 5x",
  92. "release-6x": "git pull origin 6.x && git push origin 6.x && git push origin 6.x --tags && npm publish --tag 6x",
  93. "mongo": "node ./tools/repl.js",
  94. "publish-7x": "npm publish --tag 7x",
  95. "create-separate-require-instance": "rm -rf ./node_modules/mongoose-separate-require-instance && node ./scripts/create-tarball && tar -xzf mongoose.tgz -C ./node_modules && mv ./node_modules/package ./node_modules/mongoose-separate-require-instance",
  96. "test": "mocha --exit ./test/*.test.js",
  97. "test:ci": "npm run test -- --reporter min",
  98. "test-deno": "deno run --allow-env --allow-read --allow-net --allow-run --allow-sys --allow-write ./test/deno.mjs",
  99. "test-deno:ci": "npm run test-deno -- --reporter min",
  100. "test-rs": "START_REPLICA_SET=1 mocha --timeout 30000 --exit ./test/*.test.js",
  101. "test-rs:ci": "npm run test-rs -- --reporter min",
  102. "test-tsd": "node ./test/types/check-types-filename && tsd --full",
  103. "setup-test-encryption": "node scripts/setup-encryption-tests.js",
  104. "test-encryption": "mocha --exit ./test/encryption/*.test.js",
  105. "test-encryption:ci": "npm run test-encryption -- --reporter min",
  106. "tdd": "mocha --watch --inspect --recursive ./test/*.test.js --watch-files lib/**/*.js test/**/*.js",
  107. "test-coverage": "nyc --reporter=html --reporter=text npm test",
  108. "test-coverage:ci": "nyc --reporter=html --reporter=text npm run test:ci",
  109. "ts-benchmark": "cd ./benchmarks/typescript/simple && npm install && npm run benchmark | node ../../../scripts/tsc-diagnostics-check",
  110. "ts-benchmark:local": "node ./scripts/create-tarball && cd ./benchmarks/typescript/simple && rm -rf ./node_modules && npm install && npm run benchmark | node ../../../scripts/tsc-diagnostics-check",
  111. "attest-benchmark": "node ./benchmarks/typescript/infer.bench.mts"
  112. },
  113. "main": "./index.js",
  114. "types": "./types/index.d.ts",
  115. "engines": {
  116. "node": ">=20.19.0"
  117. },
  118. "bugs": {
  119. "url": "https://github.com/Automattic/mongoose/issues/new"
  120. },
  121. "repository": {
  122. "type": "git",
  123. "url": "git://github.com/Automattic/mongoose.git"
  124. },
  125. "homepage": "https://mongoosejs.com",
  126. "config": {
  127. "mongodbMemoryServer": {
  128. "disablePostinstall": true
  129. }
  130. },
  131. "funding": {
  132. "type": "opencollective",
  133. "url": "https://opencollective.com/mongoose"
  134. },
  135. "tsd": {
  136. "directory": "test/types",
  137. "compilerOptions": {
  138. "esModuleInterop": false,
  139. "strict": true,
  140. "allowSyntheticDefaultImports": true,
  141. "strictPropertyInitialization": false,
  142. "noImplicitAny": false,
  143. "strictNullChecks": true,
  144. "module": "commonjs",
  145. "target": "ES2022"
  146. }
  147. }
  148. }