From a2f246bc55d3888928e5f18bbaa9af8d4d7804c3 Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 10 Dec 2024 12:05:53 +0100 Subject: [PATCH 01/40] WIP: individual publishing of packages --- .github/workflows/bump-packages.yml | 57 +++++ lerna.json | 8 +- package-lock.json | 200 +++++++++--------- package.json | 3 +- packages/arg-parser/package.json | 6 +- packages/async-rewriter2/package.json | 2 +- packages/autocomplete/package.json | 4 +- packages/browser-repl/package.json | 14 +- packages/browser-runtime-core/package.json | 10 +- .../browser-runtime-electron/package.json | 10 +- packages/build/package.json | 2 +- packages/build/src/npm-packages/bump.ts | 50 ----- packages/build/src/npm-packages/constants.ts | 1 - packages/build/src/npm-packages/index.ts | 1 - packages/build/src/npm-packages/publish.ts | 7 +- packages/build/src/release.ts | 8 +- packages/cli-repl/package.json | 30 +-- packages/connectivity-tests/package.json | 4 +- packages/e2e-tests/package.json | 6 +- packages/editor/package.json | 12 +- packages/errors/package.json | 2 +- packages/history/package.json | 2 +- packages/i18n/package.json | 4 +- packages/java-shell/package.json | 2 +- .../js-multiline-to-singleline/package.json | 2 +- packages/logging/package.json | 2 +- packages/mongosh/package.json | 4 +- .../node-runtime-worker-thread/package.json | 2 +- packages/service-provider-core/package.json | 2 +- .../service-provider-node-driver/package.json | 8 +- packages/shell-api/package.json | 12 +- packages/shell-evaluator/package.json | 10 +- packages/snippet-manager/package.json | 2 +- packages/types/package.json | 2 +- scripts/docker/package.json | 2 +- 35 files changed, 242 insertions(+), 251 deletions(-) create mode 100644 .github/workflows/bump-packages.yml delete mode 100644 packages/build/src/npm-packages/bump.ts diff --git a/.github/workflows/bump-packages.yml b/.github/workflows/bump-packages.yml new file mode 100644 index 0000000000..a98adf2ef7 --- /dev/null +++ b/.github/workflows/bump-packages.yml @@ -0,0 +1,57 @@ +name: Bump packages +on: + workflow_dispatch: + push: + branches: + - main + +jobs: + update_generated_files: + name: Bump packages + runs-on: ubuntu-latest + steps: + - name: Create Github App Token + uses: mongodb-js/devtools-shared/actions/setup-bot-token@main + id: app-token + with: + app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} + private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} + + - uses: actions/checkout@v4 + with: + # don't checkout a detatched HEAD + ref: ${{ github.head_ref }} + + - uses: actions/setup-node@v4 + with: + node-version: 20.16.0 + cache: "npm" + + - name: Install npm@10.2.4 + run: | + npm install -g npm@10.2.4 + + - name: Install Dependencies + run: | + npm -v + npm ci + + - name: Bump packages + env: + LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump package versions" + SKIP_BUMP_PACKAGES: "mongodb-compass" + run: | + npm run bump-packages + git add . + git commit --no-allow-empty -m "$LAST_BUMP_COMMIT_MESSAGE" || true + + - name: Create Pull Request + uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5 + with: + token: ${{ steps.app-token.outputs.token }} + commit-message: "chore(release): bump package versions" + branch: ci/bump-packages + title: "chore(release): bump package versions" + labels: no-title-validation + body: | + - Bump package versions diff --git a/lerna.json b/lerna.json index b6f109ce4e..b919701ef1 100644 --- a/lerna.json +++ b/lerna.json @@ -1,8 +1,4 @@ { - "packages": [ - "configs/*", - "packages/*", - "scripts/docker" - ], - "version": "0.0.0-dev.0" + "packages": ["configs/*", "packages/*", "scripts/docker"], + "version": "independent" } diff --git a/package-lock.json b/package-lock.json index 95c4d87805..e9de2a75f9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28930,11 +28930,11 @@ }, "packages/arg-parser": { "name": "@mongosh/arg-parser", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/errors": "2.3.6", + "@mongosh/i18n": "2.3.6", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { @@ -28978,7 +28978,7 @@ }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.22.8", @@ -29005,11 +29005,11 @@ }, "packages/autocomplete": { "name": "@mongosh/autocomplete", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-api": "2.3.6", "semver": "^7.5.4" }, "devDependencies": { @@ -29027,15 +29027,15 @@ }, "packages/browser-repl": { "name": "@mongosh/browser-repl", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.6", + "@mongosh/errors": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/i18n": "2.3.6", + "@mongosh/node-runtime-worker-thread": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -29214,20 +29214,20 @@ }, "packages/browser-runtime-core": { "name": "@mongosh/browser-runtime-core", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0" + "@mongosh/autocomplete": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-evaluator": "2.3.6" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", - "bson": "^6.10.1", + "@mongosh/types": "2.3.6", + "bson": "^6.10.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", @@ -29239,18 +29239,18 @@ }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0" + "@mongosh/browser-runtime-core": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/types": "2.3.6" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "2.3.6", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -29269,7 +29269,7 @@ }, "packages/build": { "name": "@mongosh/build", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-github-repo": "^1.0.1", @@ -29394,24 +29394,24 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/editor": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/logging": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/snippet-manager": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.6", + "@mongosh/autocomplete": "2.3.6", + "@mongosh/editor": "2.3.6", + "@mongosh/errors": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/i18n": "2.3.6", + "@mongosh/js-multiline-to-singleline": "2.3.6", + "@mongosh/logging": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/service-provider-node-driver": "2.3.6", + "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-evaluator": "2.3.6", + "@mongosh/snippet-manager": "2.3.6", + "@mongosh/types": "2.3.6", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -29478,20 +29478,20 @@ }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "devDependencies": { - "mongosh": "0.0.0-dev.0" + "mongosh": "2.3.6" } }, "packages/e2e-tests": { "name": "@mongosh/e2e-tests", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/cli-repl": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", "strip-ansi": "^6.0.0" }, "devDependencies": { @@ -29601,14 +29601,14 @@ }, "packages/editor": { "name": "@mongosh/editor", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-evaluator": "2.3.6", + "@mongosh/types": "2.3.6", "js-beautify": "^1.15.1" }, "devDependencies": { @@ -29626,7 +29626,7 @@ }, "packages/errors": { "name": "@mongosh/errors", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29645,7 +29645,7 @@ }, "packages/history": { "name": "@mongosh/history", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "mongodb-connection-string-url": "^3.0.1", @@ -29666,10 +29666,10 @@ }, "packages/i18n": { "name": "@mongosh/i18n", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "0.0.0-dev.0" + "@mongosh/errors": "2.3.6" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29685,7 +29685,7 @@ }, "packages/java-shell": { "name": "@mongosh/java-shell", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "SSPL", "devDependencies": { "@mongodb-js/tsconfig-mongosh": "^1.0.0", @@ -29748,7 +29748,7 @@ }, "packages/js-multiline-to-singleline": { "name": "@mongosh/js-multiline-to-singleline", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.12", @@ -29769,13 +29769,13 @@ }, "packages/logging": { "name": "@mongosh/logging", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongodb-js/devtools-connect": "^3.3.3", + "@mongosh/errors": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/types": "2.3.6", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, @@ -29816,10 +29816,10 @@ } }, "packages/mongosh": { - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0" + "@mongosh/cli-repl": "2.3.6" }, "bin": { "mongosh": "bin/mongosh.js" @@ -29830,7 +29830,7 @@ }, "packages/node-runtime-worker-thread": { "name": "@mongosh/node-runtime-worker-thread", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", @@ -29841,12 +29841,12 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/browser-runtime-electron": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", - "bson": "^6.10.1", + "@mongosh/browser-runtime-core": "2.3.6", + "@mongosh/browser-runtime-electron": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/service-provider-node-driver": "2.3.6", + "@mongosh/types": "2.3.6", + "bson": "^6.10.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -29860,13 +29860,13 @@ }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "0.0.0-dev.0", - "bson": "^6.10.1", - "mongodb": "^6.12.0", + "@mongosh/errors": "2.3.6", + "bson": "^6.10.0", + "mongodb": "^6.11.0", "mongodb-build-info": "^1.7.2", "mongodb-connection-string-url": "^3.0.1" }, @@ -29887,14 +29887,14 @@ }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/types": "2.3.6", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", @@ -29943,22 +29943,22 @@ }, "packages/shell-api": { "name": "@mongosh/shell-api", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.6", + "@mongosh/errors": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/i18n": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", "mongodb-redact": "^1.1.2" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", - "bson": "^6.10.1", + "@mongosh/types": "2.3.6", + "bson": "^6.10.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", @@ -29971,18 +29971,18 @@ }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongosh/async-rewriter2": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0" + "@mongosh/async-rewriter2": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/shell-api": "2.3.6" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.6", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29994,14 +29994,14 @@ }, "packages/snippet-manager": { "name": "@mongosh/snippet-manager", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", - "bson": "^6.10.1", + "@mongosh/errors": "2.3.6", + "@mongosh/shell-api": "2.3.6", + "@mongosh/types": "2.3.6", + "bson": "^6.10.0", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", "joi": "^17.4.0", @@ -30034,7 +30034,7 @@ }, "packages/types": { "name": "@mongosh/types", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4" @@ -30078,7 +30078,7 @@ }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", - "version": "0.0.0-dev.0", + "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "mongodb-crypt-library-version": "^1.0.5" diff --git a/package.json b/package.json index ce7a963a56..5a6f0929c0 100644 --- a/package.json +++ b/package.json @@ -70,7 +70,8 @@ "reformat": "npm run reformat --workspaces --if-present", "prepare": "husky", "precommit": "precommit", - "preinstall": "node scripts/sort-workspaces.js" + "preinstall": "node scripts/sort-workspaces.js", + "bump-packages": "bump-monorepo-packages" }, "config": { "unsafe-perm": true diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index c784148e70..cd54957861 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/arg-parser", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell CLI Argument List Parser Package", "main": "./lib/index.js", "repository": { @@ -35,8 +35,8 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/errors": "2.3.6", + "@mongosh/i18n": "2.3.6", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index 0d2e5be0e2..e61a9b5bce 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/async-rewriter2", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell Async Rewriter Package", "main": "./lib/index.js", "scripts": { diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index b3d2e4b97a..2583fe2e62 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/autocomplete", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell Autocomplete Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -44,7 +44,7 @@ }, "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-api": "2.3.6", "semver": "^7.5.4" } } diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index b4dfeeed01..1f1c308457 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-repl", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "Browser presentation component for Mongo Shell", "engines": { "node": ">=14.15.1" @@ -56,12 +56,12 @@ ] }, "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.6", + "@mongosh/errors": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/i18n": "2.3.6", + "@mongosh/node-runtime-worker-thread": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", "numeral": "^2.0.6", "text-table": "^0.2.0" }, diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index 723871e736..e105485ed3 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-core", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "Mongosh browser runtime core", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0" + "@mongosh/autocomplete": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-evaluator": "2.3.6" } } diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index 70946b7d06..3a7024874d 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-electron", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "Mongosh browser runtime electron", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "2.3.6", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -50,8 +50,8 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0" + "@mongosh/browser-runtime-core": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/types": "2.3.6" } } diff --git a/packages/build/package.json b/packages/build/package.json index a4963c70cc..f3424962ed 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/build", - "version": "0.0.0-dev.0", + "version": "2.3.6", "private": true, "description": "MongoDB Shell Build Tools", "main": "lib/index.js", diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts deleted file mode 100644 index 4cf52c26fc..0000000000 --- a/packages/build/src/npm-packages/bump.ts +++ /dev/null @@ -1,50 +0,0 @@ -import { promises as fs } from 'fs'; -import path from 'path'; -import { PLACEHOLDER_VERSION } from './constants'; -import { getPackagesInTopologicalOrder } from '@mongodb-js/monorepo-tools'; - -export async function bumpNpmPackages(version: string): Promise { - if (!version || version === PLACEHOLDER_VERSION) { - console.info( - 'mongosh: Not bumping package version, keeping at placeholder' - ); - return; - } - - console.info(`mongosh: Bumping package versions to ${version}`); - const monorepoRootPath = path.resolve(__dirname, '..', '..', '..', '..'); - const packages = await getPackagesInTopologicalOrder(monorepoRootPath); - - const workspaceNames = packages.map((p) => p.name); - - const locations = [monorepoRootPath, ...packages.map((p) => p.location)]; - - for (const location of locations) { - const packageJsonPath = path.join(location, 'package.json'); - const packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf8')); - - packageJson.version = version; - for (const grouping of [ - 'dependencies', - 'devDependencies', - 'optionalDependencies', - 'peerDependencies', - ]) { - if (!packageJson[grouping]) { - continue; - } - - for (const name of Object.keys(packageJson[grouping])) { - if (!workspaceNames.includes(name)) { - continue; - } - packageJson[grouping][name] = version; - } - } - - await fs.writeFile( - packageJsonPath, - JSON.stringify(packageJson, null, 2) + '\n' - ); - } -} diff --git a/packages/build/src/npm-packages/constants.ts b/packages/build/src/npm-packages/constants.ts index 26a5f43485..5d0c6f8d30 100644 --- a/packages/build/src/npm-packages/constants.ts +++ b/packages/build/src/npm-packages/constants.ts @@ -1,6 +1,5 @@ import path from 'path'; -export const PLACEHOLDER_VERSION = '0.0.0-dev.0'; export const PROJECT_ROOT = path.resolve(__dirname, '..', '..', '..', '..'); export const LERNA_BIN = path.resolve( PROJECT_ROOT, diff --git a/packages/build/src/npm-packages/index.ts b/packages/build/src/npm-packages/index.ts index 3509775210..4d4931001f 100644 --- a/packages/build/src/npm-packages/index.ts +++ b/packages/build/src/npm-packages/index.ts @@ -1,2 +1 @@ -export { bumpNpmPackages } from './bump'; export { publishNpmPackages } from './publish'; diff --git a/packages/build/src/npm-packages/publish.ts b/packages/build/src/npm-packages/publish.ts index 2741a00391..ebf73b7827 100644 --- a/packages/build/src/npm-packages/publish.ts +++ b/packages/build/src/npm-packages/publish.ts @@ -1,5 +1,5 @@ import path from 'path'; -import { LERNA_BIN, PLACEHOLDER_VERSION, PROJECT_ROOT } from './constants'; +import { LERNA_BIN, PROJECT_ROOT } from './constants'; import type { LernaPackageDescription } from './list'; import { listNpmPackages as listNpmPackagesFn } from './list'; import { spawnSync } from '../helpers/spawn-sync'; @@ -20,10 +20,6 @@ export function publishNpmPackages( ); } - if (versions[0] === PLACEHOLDER_VERSION) { - throw new Error('Refusing to publish packages with placeholder version'); - } - // Lerna requires a clean repository for a publish from-package (--force-publish does not have any effect here) // we use git update-index --assume-unchanged on files we know have been bumped markBumpedFilesAsAssumeUnchangedFn(packages, true); @@ -38,7 +34,6 @@ export function publishNpmPackages( '--no-push', '--exact', '--no-git-tag-version', - '--force-publish', '--yes', '--no-verify-access', ], diff --git a/packages/build/src/release.ts b/packages/build/src/release.ts index 06c47d8a44..2777990c88 100644 --- a/packages/build/src/release.ts +++ b/packages/build/src/release.ts @@ -14,7 +14,7 @@ import { } from './evergreen'; import { GithubRepo } from '@mongodb-js/devtools-github-repo'; import { publishToHomebrew } from './homebrew'; -import { bumpNpmPackages, publishNpmPackages } from './npm-packages'; +import { publishNpmPackages } from './npm-packages'; import { runPackage } from './packaging'; import { runDraft } from './run-draft'; import { runPublish } from './run-publish'; @@ -54,12 +54,6 @@ export async function release( redactConfig(config) ); - if (command === 'bump') { - // updates the version of internal packages to reflect the tagged one - await bumpNpmPackages(config.version); - return; - } - const octokit = new Octokit({ auth: config.githubToken, }); diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index 43c7354437..0e16d14fc2 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", @@ -63,20 +63,20 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/editor": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/logging": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/snippet-manager": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.6", + "@mongosh/autocomplete": "2.3.6", + "@mongosh/editor": "2.3.6", + "@mongosh/errors": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/i18n": "2.3.6", + "@mongosh/js-multiline-to-singleline": "2.3.6", + "@mongosh/logging": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/service-provider-node-driver": "2.3.6", + "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-evaluator": "2.3.6", + "@mongosh/snippet-manager": "2.3.6", + "@mongosh/types": "2.3.6", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 4ef44a9b2f..fabc82e005 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/connectivity-tests", - "version": "0.0.0-dev.0", + "version": "2.3.6", "private": true, "license": "Apache-2.0", "scripts": { @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "0.0.0-dev.0" + "mongosh": "2.3.6" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 326647057c..535b371a83 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/e2e-tests", - "version": "0.0.0-dev.0", + "version": "2.3.6", "private": true, "description": "MongoDB Shell E2E Tests Package", "homepage": "https://github.com/mongodb-js/mongosh", @@ -27,8 +27,8 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/cli-repl": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" }, diff --git a/packages/editor/package.json b/packages/editor/package.json index 57e07395a5..566691fc59 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/editor", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell External Editor", "main": "./lib/index.js", "repository": { @@ -35,11 +35,11 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-evaluator": "2.3.6", + "@mongosh/types": "2.3.6", "js-beautify": "^1.15.1" }, "devDependencies": { diff --git a/packages/errors/package.json b/packages/errors/package.json index 4736c169ba..154f2ba94b 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/errors", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell Errors Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/history/package.json b/packages/history/package.json index 21df6a136a..1ba741e06e 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/history", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell History Package", "main": "./lib/index.js", "repository": { diff --git a/packages/i18n/package.json b/packages/i18n/package.json index e717cf7622..c73b248477 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/i18n", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell i18n Project", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,7 +36,7 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "0.0.0-dev.0" + "@mongosh/errors": "2.3.6" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index f541d15ef0..b7e57a6fca 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/java-shell", - "version": "0.0.0-dev.0", + "version": "2.3.6", "private": true, "description": "Java application that uses mongosh-shell-api node module and MongoDB java driver to run mongo shell on JVM", "config": { diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index 06b21592a4..88b451a242 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/js-multiline-to-singleline", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "Make multiline JS into a single line", "main": "./lib/index.js", "repository": { diff --git a/packages/logging/package.json b/packages/logging/package.json index bcaf186071..51f8244134 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/logging", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell Logging Utilities Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index dc77b76af1..5b1c34b981 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0" + "@mongosh/cli-repl": "2.3.6" } } diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index 211205f6bf..3a60769108 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/node-runtime-worker-thread", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB shell runtime that lives in a worker thread", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 94847a855f..2797fd253d 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-core", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell Core Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index 4f9d721060..78031b739c 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-node-driver", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell Server Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", + "@mongosh/types": "2.3.6", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index 429920d6dd..19b72efa48 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-api", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell API Classes Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,11 +40,11 @@ "build" ], "dependencies": { - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.6", + "@mongosh/errors": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/i18n": "2.3.6", + "@mongosh/service-provider-core": "2.3.6", "mongodb-redact": "^1.1.2" }, "devDependencies": { diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index 7952764eef..1896d9d9c3 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-evaluator", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Top Level API Package", "main": "./lib/index.js", "scripts": { @@ -38,15 +38,15 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.6", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, "dependencies": { - "@mongosh/async-rewriter2": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0" + "@mongosh/async-rewriter2": "2.3.6", + "@mongosh/history": "2.3.6", + "@mongosh/shell-api": "2.3.6" } } diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index 5684fbe12b..5c5c5f4be9 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/snippet-manager", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "MongoDB Shell Snippet Manager", "main": "./lib/index.js", "repository": { diff --git a/packages/types/package.json b/packages/types/package.json index 7c7e7d7559..51d93c8dd4 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/types", - "version": "0.0.0-dev.0", + "version": "2.3.6", "description": "Types for mongosh internals", "author": "Anna Henningsen ", "homepage": "https://github.com/mongodb-js/mongosh/tree/main/packages/types#readme", diff --git a/scripts/docker/package.json b/scripts/docker/package.json index 9560b97a80..54bd1c29df 100644 --- a/scripts/docker/package.json +++ b/scripts/docker/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/docker-build-scripts", - "version": "0.0.0-dev.0", + "version": "2.3.6", "private": true, "description": "MongoDB Shell Build Docker Images", "config": { From 417e1f49deb30cee1d1abf8395045a246bc24518 Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 18 Dec 2024 13:09:00 +0100 Subject: [PATCH 02/40] use 2.3.7 --- THIRD_PARTY_NOTICES.md | 303 ++++++++++++------ packages/browser-runtime-core/package.json | 2 +- .../build/src/npm-packages/publish.spec.ts | 4 +- packages/logging/package.json | 6 +- .../node-runtime-worker-thread/package.json | 10 +- packages/service-provider-core/package.json | 2 +- packages/shell-api/package.json | 2 +- packages/snippet-manager/package.json | 6 +- 8 files changed, 218 insertions(+), 117 deletions(-) diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 0f38a7259b..1b5bbf59a6 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -20347,30 +20347,54 @@ License tags: Unlicense License files: * LICENSE: - This is free and unencumbered software released into the public domain. - - Anyone is free to copy, modify, publish, use, compile, sell, or - distribute this software, either in source code form or as a compiled - binary, for any purpose, commercial or non-commercial, and by any - means. - - In jurisdictions that recognize copyright laws, the author or authors - of this software dedicate any and all copyright interest in the - software to the public domain. We make this dedication for the benefit - of the public at large and to the detriment of our heirs and - successors. We intend this dedication to be an overt act of - relinquishment in perpetuity of all present and future rights to this - software under copyright law. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR - OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - OTHER DEALINGS IN THE SOFTWARE. - - For more information, please refer to + This is free and unencumbered software released into the public domain. + + + + Anyone is free to copy, modify, publish, use, compile, sell, or + + distribute this software, either in source code form or as a compiled + + binary, for any purpose, commercial or non-commercial, and by any + + means. + + + + In jurisdictions that recognize copyright laws, the author or authors + + of this software dedicate any and all copyright interest in the + + software to the public domain. We make this dedication for the benefit + + of the public at large and to the detriment of our heirs and + + successors. We intend this dedication to be an overt act of + + relinquishment in perpetuity of all present and future rights to this + + software under copyright law. + + + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + + IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + + OTHER DEALINGS IN THE SOFTWARE. + + + + For more information, please refer to + @@ -21432,13 +21456,20 @@ License tags: MIT License files: * LICENSE: - The MIT License (MIT) - Copyright (c) 2015 Dmitry Ivanov - - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - + The MIT License (MIT) + + Copyright (c) 2015 Dmitry Ivanov + + + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -21712,24 +21743,42 @@ License tags: MIT License files: * LICENSE: - Copyright Brian White. All rights reserved. - - Permission is hereby granted, free of charge, to any person obtaining a copy - of this software and associated documentation files (the "Software"), to - deal in the Software without restriction, including without limitation the - rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - sell copies of the Software, and to permit persons to whom the Software is - furnished to do so, subject to the following conditions: - - The above copyright notice and this permission notice shall be included in - all copies or substantial portions of the Software. - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + Copyright Brian White. All rights reserved. + + + + Permission is hereby granted, free of charge, to any person obtaining a copy + + of this software and associated documentation files (the "Software"), to + + deal in the Software without restriction, including without limitation the + + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + + sell copies of the Software, and to permit persons to whom the Software is + + furnished to do so, subject to the following conditions: + + + + The above copyright notice and this permission notice shall be included in + + all copies or substantial portions of the Software. + + + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS + IN THE SOFTWARE. @@ -31209,36 +31258,62 @@ License tags: 0BSD License files: * CopyrightNotice.txt: - /*! ***************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */ - + /*! ***************************************************************************** + + Copyright (c) Microsoft Corporation. + + + + Permission to use, copy, modify, and/or distribute this software for any + + purpose with or without fee is hereby granted. + + + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + + PERFORMANCE OF THIS SOFTWARE. + + ***************************************************************************** */ + + + * LICENSE.txt: - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + Copyright (c) Microsoft Corporation. + + + + Permission to use, copy, modify, and/or distribute this software for any + + purpose with or without fee is hereby granted. + + + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. @@ -31249,36 +31324,62 @@ License tags: 0BSD License files: * CopyrightNotice.txt: - /****************************************************************************** - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - PERFORMANCE OF THIS SOFTWARE. - ***************************************************************************** */ - + /****************************************************************************** + + Copyright (c) Microsoft Corporation. + + + + Permission to use, copy, modify, and/or distribute this software for any + + purpose with or without fee is hereby granted. + + + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + + PERFORMANCE OF THIS SOFTWARE. + + ***************************************************************************** */ + + + * LICENSE.txt: - Copyright (c) Microsoft Corporation. - - Permission to use, copy, modify, and/or distribute this software for any - purpose with or without fee is hereby granted. - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + Copyright (c) Microsoft Corporation. + + + + Permission to use, copy, modify, and/or distribute this software for any + + purpose with or without fee is hereby granted. + + + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index e105485ed3..95362521aa 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/build/src/npm-packages/publish.spec.ts b/packages/build/src/npm-packages/publish.spec.ts index b1440f9026..fc46665667 100644 --- a/packages/build/src/npm-packages/publish.spec.ts +++ b/packages/build/src/npm-packages/publish.spec.ts @@ -37,8 +37,8 @@ describe('npm-packages publishNpmPackages', function () { it('fails if packages have placeholder versions', function () { listNpmPackages.returns([ - { name: 'packageA', version: '0.0.0-dev.0' }, - { name: 'packageB', version: '0.0.0-dev.0' }, + { name: 'packageA', version: '2.3.7' }, + { name: 'packageB', version: '2.3.7' }, ]); try { publishNpmPackages( diff --git a/packages/logging/package.json b/packages/logging/package.json index 51f8244134..11bb75e723 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -18,9 +18,9 @@ }, "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/types": "2.3.7", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index 3a60769108..68cb41d0dc 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -37,11 +37,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/browser-runtime-electron": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/browser-runtime-electron": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 2797fd253d..b9450a0765 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -44,7 +44,7 @@ }, "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index 19b72efa48..060f3df6db 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -51,7 +51,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index 5c5c5f4be9..ff56c6085f 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -36,9 +36,9 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", From 447e8d1942d0ac0129390ff9a19f163a97c0bfb0 Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 18 Dec 2024 13:18:09 +0100 Subject: [PATCH 03/40] update package-lock.json and packages --- package-lock.json | 527 ++++++++++++++++++++++++++++++++++++---------- package.json | 12 +- 2 files changed, 421 insertions(+), 118 deletions(-) diff --git a/package-lock.json b/package-lock.json index e9de2a75f9..494ba87c9e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5659,6 +5659,30 @@ "dev": true, "license": "Apache-2.0" }, + "node_modules/@mongodb-js/devtools-connect": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", + "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-proxy-support": "^0.4.2", + "@mongodb-js/oidc-http-server-pages": "1.1.3", + "lodash.merge": "^4.6.2", + "mongodb-connection-string-url": "^3.0.0", + "socks": "^2.7.3" + }, + "optionalDependencies": { + "kerberos": "^2.1.0", + "mongodb-client-encryption": "^6.1.0", + "os-dns-native": "^1.2.0", + "resolve-mongodb-srv": "^1.1.1" + }, + "peerDependencies": { + "@mongodb-js/oidc-plugin": "^1.1.0", + "mongodb": "^6.9.0", + "mongodb-log-writer": "^1.4.2" + } + }, "node_modules/@mongodb-js/devtools-github-repo": { "version": "1.2.0", "license": "Apache-2.0", @@ -28951,31 +28975,6 @@ "node": ">=14.15.1" } }, - "packages/arg-parser/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" - }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" - }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" - } - }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", "version": "2.3.6", @@ -29226,8 +29225,8 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.6", - "bson": "^6.10.0", + "@mongosh/types": "2.3.7", + "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8", @@ -29237,6 +29236,19 @@ "node": ">=14.15.1" } }, + "packages/browser-runtime-core/node_modules/@mongosh/types": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", + "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", "version": "2.3.6", @@ -29772,10 +29784,10 @@ "version": "2.3.6", "license": "Apache-2.0", "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.3", - "@mongosh/errors": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/types": "2.3.6", + "@mongodb-js/devtools-connect": "^3.3.4", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/types": "2.3.7", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, @@ -29791,28 +29803,38 @@ "node": ">=14.15.1" } }, - "packages/logging/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", + "packages/logging/node_modules/@mongosh/errors": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", + "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, + "packages/logging/node_modules/@mongosh/history": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.7.tgz", + "integrity": "sha512-4EEyPZuFTHEAPUvn6ga4+xcz2NKrl5fJIU37T9eyWJb4BfpDxG+CrrLGRRMqfS+LHar7Xen/oEWWKOMvrt1x8g==", "license": "Apache-2.0", "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" + "mongodb-connection-string-url": "^3.0.1", + "mongodb-redact": "^1.1.2" }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" + "engines": { + "node": ">=14.15.1" + } + }, + "packages/logging/node_modules/@mongosh/types": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", + "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" + "engines": { + "node": ">=14.15.1" } }, "packages/mongosh": { @@ -29841,12 +29863,12 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "2.3.6", - "@mongosh/browser-runtime-electron": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/service-provider-node-driver": "2.3.6", - "@mongosh/types": "2.3.6", - "bson": "^6.10.0", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/browser-runtime-electron": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/types": "2.3.7", + "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -29858,15 +29880,225 @@ "node": ">=14.15.1" } }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/arg-parser": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.7.tgz", + "integrity": "sha512-cChpbvlSjaHAtO2nAgrJpWBhvL8BPZhjS0PWxlYlHIGdLSHKCjOA62QsAKTP57HIcs4lirhrvV3DqP9FZnKftg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.7", + "@mongosh/i18n": "2.3.7", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/async-rewriter2": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/async-rewriter2/-/async-rewriter2-2.3.7.tgz", + "integrity": "sha512-847ZzSbvoz0iveZt23AWD6iJQ7qm6CZdHOASVBvmKTyixf3rMt/y+L/xvOuZvz5kEU7eCaFa99eyW6SN4DBNog==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@babel/core": "^7.22.8", + "@babel/plugin-transform-destructuring": "^7.22.5", + "@babel/plugin-transform-parameters": "^7.22.5", + "@babel/plugin-transform-shorthand-properties": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "bin": { + "async-rewrite": "bin/async-rewrite.js" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/autocomplete": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/autocomplete/-/autocomplete-2.3.7.tgz", + "integrity": "sha512-+LSbyX5ej4gD3uVL0hvgX66f/1V6BM1ccwEvIHQWePaIuprvThSE1mPwt8dl6Dz8PoqB/wzMp1nbUVE51pUoJA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/mongodb-constants": "^0.10.1", + "@mongosh/shell-api": "2.3.7", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-core": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-core/-/browser-runtime-core-2.3.7.tgz", + "integrity": "sha512-L3HEGKqmZ8IPjcTTmUHu3oN1D1wv1MBWS1MhwkcAhprqOfLOu9vloLfX/uWV5+w8MqarWZZDQEzWkWrZ40y49A==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/autocomplete": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-electron": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-electron/-/browser-runtime-electron-2.3.7.tgz", + "integrity": "sha512-y3RHWClFo1xqG3zZIohfAb/DKkTpc3irKrDy+MPs0NqeOgqrGhRq8tPZB8nN9SOK19DWfjTmfWUKBpdOL3Ou+g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/errors": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", + "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/history": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.7.tgz", + "integrity": "sha512-4EEyPZuFTHEAPUvn6ga4+xcz2NKrl5fJIU37T9eyWJb4BfpDxG+CrrLGRRMqfS+LHar7Xen/oEWWKOMvrt1x8g==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "mongodb-connection-string-url": "^3.0.1", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/i18n": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.7.tgz", + "integrity": "sha512-xH5ZK29jb4pf3cBOFpomz3Zq2PnZLTgBRiteqGLucTrGM1YZ7Nr81fFMEa8il0wTK2taQ8yuCvhGC0liiM+8sw==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.7" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-core": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.7.tgz", + "integrity": "sha512-y6gQv3Pi6vSR0O1pIpBNDJv84oY+QKKUJAIjDRwGAmgRP6CuMXr25J6R57iLxVzsdhxPxZml1RXvvncM8gRGkA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-providers": "^3.525.0", + "@mongosh/errors": "2.3.7", + "bson": "^6.10.1", + "mongodb": "^6.12.0", + "mongodb-build-info": "^1.7.2", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + }, + "optionalDependencies": { + "mongodb-client-encryption": "^6.1.0" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-node-driver": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/service-provider-node-driver/-/service-provider-node-driver-2.3.7.tgz", + "integrity": "sha512-qxWwuwFcmI2cQxaBClof886vw2W0TNYNC0ewnjTtWo8EF01uGB9krATKp1rn5A+FX62z6dI1J0L0oYLpmlu68w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4", + "@mongodb-js/oidc-plugin": "^1.1.5", + "@mongosh/errors": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7", + "aws4": "^1.12.0", + "mongodb": "^6.12.0", + "mongodb-connection-string-url": "^3.0.1", + "socks": "^2.8.3" + }, + "engines": { + "node": ">=14.15.1" + }, + "optionalDependencies": { + "kerberos": "2.1.0", + "mongodb-client-encryption": "^6.1.0" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-api": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.7.tgz", + "integrity": "sha512-3aWHB74dUPrPGVQgOsfJUykx/sy4CbUXoZTUZA8VZt6i0aRZFuJ0bbEFmtZ7hM4cmacNVlqe+ry/6rxC7KL/hA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/arg-parser": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-evaluator": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/shell-evaluator/-/shell-evaluator-2.3.7.tgz", + "integrity": "sha512-pdG+ILkFiejOySti3QMte3vTHOQhLrjag8Gfm4DjnH2oK8z4Yw5lr4BfWS5u5JaSvtmmOIEW1mRp2UJbSiKjDA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/async-rewriter2": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/shell-api": "2.3.7" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/types": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", + "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", "version": "2.3.6", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.6", - "bson": "^6.10.0", - "mongodb": "^6.11.0", + "@mongosh/errors": "2.3.7", + "bson": "^6.10.1", + "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", "mongodb-connection-string-url": "^3.0.1" }, @@ -29885,6 +30117,15 @@ "mongodb-client-encryption": "^6.1.0" } }, + "packages/service-provider-core/node_modules/@mongosh/errors": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", + "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", "version": "2.3.6", @@ -29917,30 +30158,6 @@ "mongodb-client-encryption": "^6.1.0" } }, - "packages/service-provider-node-driver/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" - }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" - }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" - } - }, "packages/shell-api": { "name": "@mongosh/shell-api", "version": "2.3.6", @@ -29957,8 +30174,8 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.6", - "bson": "^6.10.0", + "@mongosh/types": "2.3.7", + "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", @@ -29969,6 +30186,19 @@ "node": ">=14.15.1" } }, + "packages/shell-api/node_modules/@mongosh/types": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", + "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", "version": "2.3.6", @@ -29998,10 +30228,10 @@ "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.3.6", - "@mongosh/shell-api": "2.3.6", - "@mongosh/types": "2.3.6", - "bson": "^6.10.0", + "@mongosh/errors": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/types": "2.3.7", + "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", "joi": "^17.4.0", @@ -30022,6 +30252,103 @@ "node": ">=14.15.1" } }, + "packages/snippet-manager/node_modules/@mongosh/arg-parser": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.7.tgz", + "integrity": "sha512-cChpbvlSjaHAtO2nAgrJpWBhvL8BPZhjS0PWxlYlHIGdLSHKCjOA62QsAKTP57HIcs4lirhrvV3DqP9FZnKftg==", + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.7", + "@mongosh/i18n": "2.3.7", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/errors": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", + "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/history": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.7.tgz", + "integrity": "sha512-4EEyPZuFTHEAPUvn6ga4+xcz2NKrl5fJIU37T9eyWJb4BfpDxG+CrrLGRRMqfS+LHar7Xen/oEWWKOMvrt1x8g==", + "license": "Apache-2.0", + "dependencies": { + "mongodb-connection-string-url": "^3.0.1", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/i18n": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.7.tgz", + "integrity": "sha512-xH5ZK29jb4pf3cBOFpomz3Zq2PnZLTgBRiteqGLucTrGM1YZ7Nr81fFMEa8il0wTK2taQ8yuCvhGC0liiM+8sw==", + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.7" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/service-provider-core": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.7.tgz", + "integrity": "sha512-y6gQv3Pi6vSR0O1pIpBNDJv84oY+QKKUJAIjDRwGAmgRP6CuMXr25J6R57iLxVzsdhxPxZml1RXvvncM8gRGkA==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-providers": "^3.525.0", + "@mongosh/errors": "2.3.7", + "bson": "^6.10.1", + "mongodb": "^6.12.0", + "mongodb-build-info": "^1.7.2", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + }, + "optionalDependencies": { + "mongodb-client-encryption": "^6.1.0" + } + }, + "packages/snippet-manager/node_modules/@mongosh/shell-api": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.7.tgz", + "integrity": "sha512-3aWHB74dUPrPGVQgOsfJUykx/sy4CbUXoZTUZA8VZt6i0aRZFuJ0bbEFmtZ7hM4cmacNVlqe+ry/6rxC7KL/hA==", + "license": "Apache-2.0", + "dependencies": { + "@mongosh/arg-parser": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/types": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", + "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/snippet-manager/node_modules/@types/cross-spawn": { "version": "6.0.6", "resolved": "https://registry.npmjs.org/@types/cross-spawn/-/cross-spawn-6.0.6.tgz", @@ -30052,30 +30379,6 @@ "node": ">=14.15.1" } }, - "packages/types/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" - }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" - }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" - } - }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", "version": "2.3.6", diff --git a/package.json b/package.json index 5a6f0929c0..030ab0dc9d 100644 --- a/package.json +++ b/package.json @@ -148,24 +148,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/types", - "packages/i18n", "packages/logging", + "packages/node-runtime-worker-thread", "packages/service-provider-core", - "packages/arg-parser", + "packages/snippet-manager", + "packages/types", + "packages/i18n", "packages/service-provider-node-driver", + "packages/arg-parser", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", - "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", + "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", - "packages/node-runtime-worker-thread", - "packages/browser-repl", "packages/connectivity-tests" ], "overrides": { From 4c9746827f620a171c7542a826b89b90464b6e4b Mon Sep 17 00:00:00 2001 From: gagik Date: Thu, 19 Dec 2024 11:08:57 +0100 Subject: [PATCH 04/40] restore changes --- THIRD_PARTY_NOTICES.md | 303 +++----- package-lock.json | 655 +++++------------- package.json | 12 +- packages/arg-parser/package.json | 6 +- packages/async-rewriter2/package.json | 2 +- packages/autocomplete/package.json | 4 +- packages/browser-repl/package.json | 14 +- packages/browser-runtime-core/package.json | 10 +- .../browser-runtime-electron/package.json | 10 +- packages/build/package.json | 2 +- packages/cli-repl/package.json | 30 +- packages/connectivity-tests/package.json | 4 +- packages/e2e-tests/package.json | 6 +- packages/editor/package.json | 12 +- packages/errors/package.json | 2 +- packages/history/package.json | 2 +- packages/i18n/package.json | 4 +- packages/java-shell/package.json | 2 +- .../js-multiline-to-singleline/package.json | 2 +- packages/logging/package.json | 2 +- packages/mongosh/package.json | 4 +- .../node-runtime-worker-thread/package.json | 2 +- packages/service-provider-core/package.json | 2 +- .../service-provider-node-driver/package.json | 8 +- packages/shell-api/package.json | 12 +- packages/shell-evaluator/package.json | 10 +- packages/snippet-manager/package.json | 2 +- packages/types/package.json | 2 +- scripts/docker/package.json | 2 +- 29 files changed, 362 insertions(+), 766 deletions(-) diff --git a/THIRD_PARTY_NOTICES.md b/THIRD_PARTY_NOTICES.md index 1b5bbf59a6..0f38a7259b 100644 --- a/THIRD_PARTY_NOTICES.md +++ b/THIRD_PARTY_NOTICES.md @@ -20347,54 +20347,30 @@ License tags: Unlicense License files: * LICENSE: - This is free and unencumbered software released into the public domain. - - - - Anyone is free to copy, modify, publish, use, compile, sell, or - - distribute this software, either in source code form or as a compiled - - binary, for any purpose, commercial or non-commercial, and by any - - means. - - - - In jurisdictions that recognize copyright laws, the author or authors - - of this software dedicate any and all copyright interest in the - - software to the public domain. We make this dedication for the benefit - - of the public at large and to the detriment of our heirs and - - successors. We intend this dedication to be an overt act of - - relinquishment in perpetuity of all present and future rights to this - - software under copyright law. - - - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, - - EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF - - MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. - - IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR - - OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, - - ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR - - OTHER DEALINGS IN THE SOFTWARE. - - - - For more information, please refer to - + This is free and unencumbered software released into the public domain. + + Anyone is free to copy, modify, publish, use, compile, sell, or + distribute this software, either in source code form or as a compiled + binary, for any purpose, commercial or non-commercial, and by any + means. + + In jurisdictions that recognize copyright laws, the author or authors + of this software dedicate any and all copyright interest in the + software to the public domain. We make this dedication for the benefit + of the public at large and to the detriment of our heirs and + successors. We intend this dedication to be an overt act of + relinquishment in perpetuity of all present and future rights to this + software under copyright law. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. + IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR + OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, + ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + OTHER DEALINGS IN THE SOFTWARE. + + For more information, please refer to @@ -21456,20 +21432,13 @@ License tags: MIT License files: * LICENSE: - The MIT License (MIT) - - Copyright (c) 2015 Dmitry Ivanov - - - - Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - - - - The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - - - + The MIT License (MIT) + Copyright (c) 2015 Dmitry Ivanov + + Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -21743,42 +21712,24 @@ License tags: MIT License files: * LICENSE: - Copyright Brian White. All rights reserved. - - - - Permission is hereby granted, free of charge, to any person obtaining a copy - - of this software and associated documentation files (the "Software"), to - - deal in the Software without restriction, including without limitation the - - rights to use, copy, modify, merge, publish, distribute, sublicense, and/or - - sell copies of the Software, and to permit persons to whom the Software is - - furnished to do so, subject to the following conditions: - - - - The above copyright notice and this permission notice shall be included in - - all copies or substantial portions of the Software. - - - - THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - - IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - - FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE - - AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - - LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - - FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - + Copyright Brian White. All rights reserved. + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to + deal in the Software without restriction, including without limitation the + rights to use, copy, modify, merge, publish, distribute, sublicense, and/or + sell copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in + all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -31258,62 +31209,36 @@ License tags: 0BSD License files: * CopyrightNotice.txt: - /*! ***************************************************************************** - - Copyright (c) Microsoft Corporation. - - - - Permission to use, copy, modify, and/or distribute this software for any - - purpose with or without fee is hereby granted. - - - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - - PERFORMANCE OF THIS SOFTWARE. - - ***************************************************************************** */ - - - + /*! ***************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */ + * LICENSE.txt: - Copyright (c) Microsoft Corporation. - - - - Permission to use, copy, modify, and/or distribute this software for any - - purpose with or without fee is hereby granted. - - - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. @@ -31324,62 +31249,36 @@ License tags: 0BSD License files: * CopyrightNotice.txt: - /****************************************************************************** - - Copyright (c) Microsoft Corporation. - - - - Permission to use, copy, modify, and/or distribute this software for any - - purpose with or without fee is hereby granted. - - - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - - PERFORMANCE OF THIS SOFTWARE. - - ***************************************************************************** */ - - - + /****************************************************************************** + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR + PERFORMANCE OF THIS SOFTWARE. + ***************************************************************************** */ + * LICENSE.txt: - Copyright (c) Microsoft Corporation. - - - - Permission to use, copy, modify, and/or distribute this software for any - - purpose with or without fee is hereby granted. - - - - THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH - - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY - - AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, - - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM - - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR - - OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR - + Copyright (c) Microsoft Corporation. + + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted. + + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH + REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY + AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, + INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM + LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR + OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. diff --git a/package-lock.json b/package-lock.json index 494ba87c9e..06dc51b0f3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,24 +17,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/types", - "packages/i18n", "packages/logging", + "packages/node-runtime-worker-thread", "packages/service-provider-core", - "packages/arg-parser", + "packages/snippet-manager", + "packages/types", + "packages/i18n", "packages/service-provider-node-driver", + "packages/arg-parser", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", - "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", + "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", - "packages/node-runtime-worker-thread", - "packages/browser-repl", "packages/connectivity-tests" ], "bin": { @@ -5659,30 +5659,6 @@ "dev": true, "license": "Apache-2.0" }, - "node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" - }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" - }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" - } - }, "node_modules/@mongodb-js/devtools-github-repo": { "version": "1.2.0", "license": "Apache-2.0", @@ -28954,11 +28930,11 @@ }, "packages/arg-parser": { "name": "@mongosh/arg-parser", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.3.6", - "@mongosh/i18n": "2.3.6", + "@mongosh/errors": "2.3.7", + "@mongosh/i18n": "2.3.7", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { @@ -28975,9 +28951,34 @@ "node": ">=14.15.1" } }, + "packages/arg-parser/node_modules/@mongodb-js/devtools-connect": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", + "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-proxy-support": "^0.4.2", + "@mongodb-js/oidc-http-server-pages": "1.1.3", + "lodash.merge": "^4.6.2", + "mongodb-connection-string-url": "^3.0.0", + "socks": "^2.7.3" + }, + "optionalDependencies": { + "kerberos": "^2.1.0", + "mongodb-client-encryption": "^6.1.0", + "os-dns-native": "^1.2.0", + "resolve-mongodb-srv": "^1.1.1" + }, + "peerDependencies": { + "@mongodb-js/oidc-plugin": "^1.1.0", + "mongodb": "^6.9.0", + "mongodb-log-writer": "^1.4.2" + } + }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.22.8", @@ -29004,11 +29005,11 @@ }, "packages/autocomplete": { "name": "@mongosh/autocomplete", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-api": "2.3.7", "semver": "^7.5.4" }, "devDependencies": { @@ -29026,15 +29027,15 @@ }, "packages/browser-repl": { "name": "@mongosh/browser-repl", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "2.3.6", - "@mongosh/errors": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/i18n": "2.3.6", - "@mongosh/node-runtime-worker-thread": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/node-runtime-worker-thread": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -29213,13 +29214,13 @@ }, "packages/browser-runtime-core": { "name": "@mongosh/browser-runtime-core", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/autocomplete": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/shell-api": "2.3.6", - "@mongosh/shell-evaluator": "2.3.6" + "@mongosh/autocomplete": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29236,33 +29237,20 @@ "node": ">=14.15.1" } }, - "packages/browser-runtime-core/node_modules/@mongosh/types": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", - "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/types": "2.3.6" + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "2.3.6", + "@mongosh/service-provider-node-driver": "2.3.7", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -29281,7 +29269,7 @@ }, "packages/build": { "name": "@mongosh/build", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-github-repo": "^1.0.1", @@ -29406,24 +29394,24 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "2.3.6", - "@mongosh/autocomplete": "2.3.6", - "@mongosh/editor": "2.3.6", - "@mongosh/errors": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/i18n": "2.3.6", - "@mongosh/js-multiline-to-singleline": "2.3.6", - "@mongosh/logging": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/service-provider-node-driver": "2.3.6", - "@mongosh/shell-api": "2.3.6", - "@mongosh/shell-evaluator": "2.3.6", - "@mongosh/snippet-manager": "2.3.6", - "@mongosh/types": "2.3.6", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/autocomplete": "2.3.7", + "@mongosh/editor": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/logging": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/snippet-manager": "2.3.7", + "@mongosh/types": "2.3.7", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -29490,20 +29478,20 @@ }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "devDependencies": { - "mongosh": "2.3.6" + "mongosh": "2.3.7" } }, "packages/e2e-tests": { "name": "@mongosh/e2e-tests", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", + "@mongosh/cli-repl": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "strip-ansi": "^6.0.0" }, "devDependencies": { @@ -29613,14 +29601,14 @@ }, "packages/editor": { "name": "@mongosh/editor", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/shell-api": "2.3.6", - "@mongosh/shell-evaluator": "2.3.6", - "@mongosh/types": "2.3.6", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/types": "2.3.7", "js-beautify": "^1.15.1" }, "devDependencies": { @@ -29638,7 +29626,7 @@ }, "packages/errors": { "name": "@mongosh/errors", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29657,7 +29645,7 @@ }, "packages/history": { "name": "@mongosh/history", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "mongodb-connection-string-url": "^3.0.1", @@ -29678,10 +29666,10 @@ }, "packages/i18n": { "name": "@mongosh/i18n", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.3.6" + "@mongosh/errors": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29697,7 +29685,7 @@ }, "packages/java-shell": { "name": "@mongosh/java-shell", - "version": "2.3.6", + "version": "2.3.7", "license": "SSPL", "devDependencies": { "@mongodb-js/tsconfig-mongosh": "^1.0.0", @@ -29760,7 +29748,7 @@ }, "packages/js-multiline-to-singleline": { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.12", @@ -29781,7 +29769,7 @@ }, "packages/logging": { "name": "@mongosh/logging", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", @@ -29803,45 +29791,35 @@ "node": ">=14.15.1" } }, - "packages/logging/node_modules/@mongosh/errors": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", - "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, - "packages/logging/node_modules/@mongosh/history": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.7.tgz", - "integrity": "sha512-4EEyPZuFTHEAPUvn6ga4+xcz2NKrl5fJIU37T9eyWJb4BfpDxG+CrrLGRRMqfS+LHar7Xen/oEWWKOMvrt1x8g==", + "packages/logging/node_modules/@mongodb-js/devtools-connect": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", + "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", "license": "Apache-2.0", "dependencies": { - "mongodb-connection-string-url": "^3.0.1", - "mongodb-redact": "^1.1.2" + "@mongodb-js/devtools-proxy-support": "^0.4.2", + "@mongodb-js/oidc-http-server-pages": "1.1.3", + "lodash.merge": "^4.6.2", + "mongodb-connection-string-url": "^3.0.0", + "socks": "^2.7.3" }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/logging/node_modules/@mongosh/types": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", - "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" + "optionalDependencies": { + "kerberos": "^2.1.0", + "mongodb-client-encryption": "^6.1.0", + "os-dns-native": "^1.2.0", + "resolve-mongodb-srv": "^1.1.1" }, - "engines": { - "node": ">=14.15.1" + "peerDependencies": { + "@mongodb-js/oidc-plugin": "^1.1.0", + "mongodb": "^6.9.0", + "mongodb-log-writer": "^1.4.2" } }, "packages/mongosh": { - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "2.3.6" + "@mongosh/cli-repl": "2.3.7" }, "bin": { "mongosh": "bin/mongosh.js" @@ -29852,7 +29830,7 @@ }, "packages/node-runtime-worker-thread": { "name": "@mongosh/node-runtime-worker-thread", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", @@ -29880,219 +29858,9 @@ "node": ">=14.15.1" } }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/arg-parser": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.7.tgz", - "integrity": "sha512-cChpbvlSjaHAtO2nAgrJpWBhvL8BPZhjS0PWxlYlHIGdLSHKCjOA62QsAKTP57HIcs4lirhrvV3DqP9FZnKftg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.7", - "@mongosh/i18n": "2.3.7", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/async-rewriter2": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/async-rewriter2/-/async-rewriter2-2.3.7.tgz", - "integrity": "sha512-847ZzSbvoz0iveZt23AWD6iJQ7qm6CZdHOASVBvmKTyixf3rMt/y+L/xvOuZvz5kEU7eCaFa99eyW6SN4DBNog==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@babel/core": "^7.22.8", - "@babel/plugin-transform-destructuring": "^7.22.5", - "@babel/plugin-transform-parameters": "^7.22.5", - "@babel/plugin-transform-shorthand-properties": "^7.22.5", - "@babel/types": "^7.22.5" - }, - "bin": { - "async-rewrite": "bin/async-rewrite.js" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/autocomplete": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/autocomplete/-/autocomplete-2.3.7.tgz", - "integrity": "sha512-+LSbyX5ej4gD3uVL0hvgX66f/1V6BM1ccwEvIHQWePaIuprvThSE1mPwt8dl6Dz8PoqB/wzMp1nbUVE51pUoJA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.7", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-core": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-core/-/browser-runtime-core-2.3.7.tgz", - "integrity": "sha512-L3HEGKqmZ8IPjcTTmUHu3oN1D1wv1MBWS1MhwkcAhprqOfLOu9vloLfX/uWV5+w8MqarWZZDQEzWkWrZ40y49A==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/autocomplete": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-electron": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-electron/-/browser-runtime-electron-2.3.7.tgz", - "integrity": "sha512-y3RHWClFo1xqG3zZIohfAb/DKkTpc3irKrDy+MPs0NqeOgqrGhRq8tPZB8nN9SOK19DWfjTmfWUKBpdOL3Ou+g==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/errors": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", - "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/history": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.7.tgz", - "integrity": "sha512-4EEyPZuFTHEAPUvn6ga4+xcz2NKrl5fJIU37T9eyWJb4BfpDxG+CrrLGRRMqfS+LHar7Xen/oEWWKOMvrt1x8g==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "mongodb-connection-string-url": "^3.0.1", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/i18n": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.7.tgz", - "integrity": "sha512-xH5ZK29jb4pf3cBOFpomz3Zq2PnZLTgBRiteqGLucTrGM1YZ7Nr81fFMEa8il0wTK2taQ8yuCvhGC0liiM+8sw==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.7" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-core": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.7.tgz", - "integrity": "sha512-y6gQv3Pi6vSR0O1pIpBNDJv84oY+QKKUJAIjDRwGAmgRP6CuMXr25J6R57iLxVzsdhxPxZml1RXvvncM8gRGkA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.7", - "bson": "^6.10.1", - "mongodb": "^6.12.0", - "mongodb-build-info": "^1.7.2", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - }, - "optionalDependencies": { - "mongodb-client-encryption": "^6.1.0" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-node-driver": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/service-provider-node-driver/-/service-provider-node-driver-2.3.7.tgz", - "integrity": "sha512-qxWwuwFcmI2cQxaBClof886vw2W0TNYNC0ewnjTtWo8EF01uGB9krATKp1rn5A+FX62z6dI1J0L0oYLpmlu68w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4", - "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7", - "aws4": "^1.12.0", - "mongodb": "^6.12.0", - "mongodb-connection-string-url": "^3.0.1", - "socks": "^2.8.3" - }, - "engines": { - "node": ">=14.15.1" - }, - "optionalDependencies": { - "kerberos": "2.1.0", - "mongodb-client-encryption": "^6.1.0" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-api": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.7.tgz", - "integrity": "sha512-3aWHB74dUPrPGVQgOsfJUykx/sy4CbUXoZTUZA8VZt6i0aRZFuJ0bbEFmtZ7hM4cmacNVlqe+ry/6rxC7KL/hA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/arg-parser": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-evaluator": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/shell-evaluator/-/shell-evaluator-2.3.7.tgz", - "integrity": "sha512-pdG+ILkFiejOySti3QMte3vTHOQhLrjag8Gfm4DjnH2oK8z4Yw5lr4BfWS5u5JaSvtmmOIEW1mRp2UJbSiKjDA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/async-rewriter2": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/shell-api": "2.3.7" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/types": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", - "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", @@ -30117,25 +29885,16 @@ "mongodb-client-encryption": "^6.1.0" } }, - "packages/service-provider-core/node_modules/@mongosh/errors": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", - "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/types": "2.3.6", + "@mongosh/errors": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", @@ -30158,16 +29917,40 @@ "mongodb-client-encryption": "^6.1.0" } }, + "packages/service-provider-node-driver/node_modules/@mongodb-js/devtools-connect": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", + "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-proxy-support": "^0.4.2", + "@mongodb-js/oidc-http-server-pages": "1.1.3", + "lodash.merge": "^4.6.2", + "mongodb-connection-string-url": "^3.0.0", + "socks": "^2.7.3" + }, + "optionalDependencies": { + "kerberos": "^2.1.0", + "mongodb-client-encryption": "^6.1.0", + "os-dns-native": "^1.2.0", + "resolve-mongodb-srv": "^1.1.1" + }, + "peerDependencies": { + "@mongodb-js/oidc-plugin": "^1.1.0", + "mongodb": "^6.9.0", + "mongodb-log-writer": "^1.4.2" + } + }, "packages/shell-api": { "name": "@mongosh/shell-api", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/arg-parser": "2.3.6", - "@mongosh/errors": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/i18n": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "mongodb-redact": "^1.1.2" }, "devDependencies": { @@ -30186,33 +29969,20 @@ "node": ">=14.15.1" } }, - "packages/shell-api/node_modules/@mongosh/types": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", - "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/async-rewriter2": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/shell-api": "2.3.6" + "@mongosh/async-rewriter2": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/shell-api": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.6", + "@mongosh/types": "2.3.7", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -30224,7 +29994,7 @@ }, "packages/snippet-manager": { "name": "@mongosh/snippet-manager", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", @@ -30252,103 +30022,6 @@ "node": ">=14.15.1" } }, - "packages/snippet-manager/node_modules/@mongosh/arg-parser": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.7.tgz", - "integrity": "sha512-cChpbvlSjaHAtO2nAgrJpWBhvL8BPZhjS0PWxlYlHIGdLSHKCjOA62QsAKTP57HIcs4lirhrvV3DqP9FZnKftg==", - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.7", - "@mongosh/i18n": "2.3.7", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/errors": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.7.tgz", - "integrity": "sha512-WQ7vyeypDYnQIVieNJDF+GhItt46oR9bL2ossWJ9PrTxX57gwV8y1k1YKdhmrWOAVejp5ZDNPWKPyAM5/Ri0Kw==", - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/history": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.7.tgz", - "integrity": "sha512-4EEyPZuFTHEAPUvn6ga4+xcz2NKrl5fJIU37T9eyWJb4BfpDxG+CrrLGRRMqfS+LHar7Xen/oEWWKOMvrt1x8g==", - "license": "Apache-2.0", - "dependencies": { - "mongodb-connection-string-url": "^3.0.1", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/i18n": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.7.tgz", - "integrity": "sha512-xH5ZK29jb4pf3cBOFpomz3Zq2PnZLTgBRiteqGLucTrGM1YZ7Nr81fFMEa8il0wTK2taQ8yuCvhGC0liiM+8sw==", - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.7" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/service-provider-core": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.7.tgz", - "integrity": "sha512-y6gQv3Pi6vSR0O1pIpBNDJv84oY+QKKUJAIjDRwGAmgRP6CuMXr25J6R57iLxVzsdhxPxZml1RXvvncM8gRGkA==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.7", - "bson": "^6.10.1", - "mongodb": "^6.12.0", - "mongodb-build-info": "^1.7.2", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - }, - "optionalDependencies": { - "mongodb-client-encryption": "^6.1.0" - } - }, - "packages/snippet-manager/node_modules/@mongosh/shell-api": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.7.tgz", - "integrity": "sha512-3aWHB74dUPrPGVQgOsfJUykx/sy4CbUXoZTUZA8VZt6i0aRZFuJ0bbEFmtZ7hM4cmacNVlqe+ry/6rxC7KL/hA==", - "license": "Apache-2.0", - "dependencies": { - "@mongosh/arg-parser": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/types": { - "version": "2.3.7", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.7.tgz", - "integrity": "sha512-0rOQM9CtsGcpkBmQOjdSbZw/idWNuBl38+Fk7H74goEey7ojE/PZvKtcAwSaODsJIrDhCqWx+1w+TdspVokeAg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/snippet-manager/node_modules/@types/cross-spawn": { "version": "6.0.6", "resolved": "https://registry.npmjs.org/@types/cross-spawn/-/cross-spawn-6.0.6.tgz", @@ -30361,7 +30034,7 @@ }, "packages/types": { "name": "@mongosh/types", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4" @@ -30379,9 +30052,33 @@ "node": ">=14.15.1" } }, + "packages/types/node_modules/@mongodb-js/devtools-connect": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", + "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-proxy-support": "^0.4.2", + "@mongodb-js/oidc-http-server-pages": "1.1.3", + "lodash.merge": "^4.6.2", + "mongodb-connection-string-url": "^3.0.0", + "socks": "^2.7.3" + }, + "optionalDependencies": { + "kerberos": "^2.1.0", + "mongodb-client-encryption": "^6.1.0", + "os-dns-native": "^1.2.0", + "resolve-mongodb-srv": "^1.1.1" + }, + "peerDependencies": { + "@mongodb-js/oidc-plugin": "^1.1.0", + "mongodb": "^6.9.0", + "mongodb-log-writer": "^1.4.2" + } + }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", - "version": "2.3.6", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "mongodb-crypt-library-version": "^1.0.5" diff --git a/package.json b/package.json index 030ab0dc9d..5a6f0929c0 100644 --- a/package.json +++ b/package.json @@ -148,24 +148,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/logging", - "packages/node-runtime-worker-thread", - "packages/service-provider-core", - "packages/snippet-manager", "packages/types", "packages/i18n", - "packages/service-provider-node-driver", + "packages/logging", + "packages/service-provider-core", "packages/arg-parser", + "packages/service-provider-node-driver", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", + "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", - "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", + "packages/node-runtime-worker-thread", + "packages/browser-repl", "packages/connectivity-tests" ], "overrides": { diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index cd54957861..eec57eefd1 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/arg-parser", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell CLI Argument List Parser Package", "main": "./lib/index.js", "repository": { @@ -35,8 +35,8 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.3.6", - "@mongosh/i18n": "2.3.6", + "@mongosh/errors": "2.3.7", + "@mongosh/i18n": "2.3.7", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index e61a9b5bce..17bd4cad1b 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/async-rewriter2", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell Async Rewriter Package", "main": "./lib/index.js", "scripts": { diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index 2583fe2e62..da6523f0c5 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/autocomplete", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell Autocomplete Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -44,7 +44,7 @@ }, "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.6", + "@mongosh/shell-api": "2.3.7", "semver": "^7.5.4" } } diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index 1f1c308457..75ddf4eaeb 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-repl", - "version": "2.3.6", + "version": "2.3.7", "description": "Browser presentation component for Mongo Shell", "engines": { "node": ">=14.15.1" @@ -56,12 +56,12 @@ ] }, "dependencies": { - "@mongosh/browser-runtime-core": "2.3.6", - "@mongosh/errors": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/i18n": "2.3.6", - "@mongosh/node-runtime-worker-thread": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/node-runtime-worker-thread": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "numeral": "^2.0.6", "text-table": "^0.2.0" }, diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index 95362521aa..4dde65ae77 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-core", - "version": "2.3.6", + "version": "2.3.7", "description": "Mongosh browser runtime core", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/autocomplete": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/shell-api": "2.3.6", - "@mongosh/shell-evaluator": "2.3.6" + "@mongosh/autocomplete": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7" } } diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index 3a7024874d..5295b00c8a 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-electron", - "version": "2.3.6", + "version": "2.3.7", "description": "Mongosh browser runtime electron", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "2.3.6", + "@mongosh/service-provider-node-driver": "2.3.7", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -50,8 +50,8 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/browser-runtime-core": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/types": "2.3.6" + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7" } } diff --git a/packages/build/package.json b/packages/build/package.json index f3424962ed..8f2830de78 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/build", - "version": "2.3.6", + "version": "2.3.7", "private": true, "description": "MongoDB Shell Build Tools", "main": "lib/index.js", diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index 0e16d14fc2..cc6810437b 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", @@ -63,20 +63,20 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "2.3.6", - "@mongosh/autocomplete": "2.3.6", - "@mongosh/editor": "2.3.6", - "@mongosh/errors": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/i18n": "2.3.6", - "@mongosh/js-multiline-to-singleline": "2.3.6", - "@mongosh/logging": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/service-provider-node-driver": "2.3.6", - "@mongosh/shell-api": "2.3.6", - "@mongosh/shell-evaluator": "2.3.6", - "@mongosh/snippet-manager": "2.3.6", - "@mongosh/types": "2.3.6", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/autocomplete": "2.3.7", + "@mongosh/editor": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/logging": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/snippet-manager": "2.3.7", + "@mongosh/types": "2.3.7", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index fabc82e005..0ecc111104 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/connectivity-tests", - "version": "2.3.6", + "version": "2.3.7", "private": true, "license": "Apache-2.0", "scripts": { @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "2.3.6" + "mongosh": "2.3.7" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 535b371a83..a359d9a07c 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/e2e-tests", - "version": "2.3.6", + "version": "2.3.7", "private": true, "description": "MongoDB Shell E2E Tests Package", "homepage": "https://github.com/mongodb-js/mongosh", @@ -27,8 +27,8 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", + "@mongosh/cli-repl": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" }, diff --git a/packages/editor/package.json b/packages/editor/package.json index 566691fc59..df6d22f49a 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/editor", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell External Editor", "main": "./lib/index.js", "repository": { @@ -35,11 +35,11 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/shell-api": "2.3.6", - "@mongosh/shell-evaluator": "2.3.6", - "@mongosh/types": "2.3.6", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/types": "2.3.7", "js-beautify": "^1.15.1" }, "devDependencies": { diff --git a/packages/errors/package.json b/packages/errors/package.json index 154f2ba94b..b2771b58f7 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/errors", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell Errors Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/history/package.json b/packages/history/package.json index 1ba741e06e..79eaafd586 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/history", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell History Package", "main": "./lib/index.js", "repository": { diff --git a/packages/i18n/package.json b/packages/i18n/package.json index c73b248477..6fd1fee90c 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/i18n", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell i18n Project", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,7 +36,7 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.3.6" + "@mongosh/errors": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index b7e57a6fca..53458cd021 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/java-shell", - "version": "2.3.6", + "version": "2.3.7", "private": true, "description": "Java application that uses mongosh-shell-api node module and MongoDB java driver to run mongo shell on JVM", "config": { diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index 88b451a242..7775447634 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.3.6", + "version": "2.3.7", "description": "Make multiline JS into a single line", "main": "./lib/index.js", "repository": { diff --git a/packages/logging/package.json b/packages/logging/package.json index 11bb75e723..5298f800d1 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/logging", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell Logging Utilities Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index 5b1c34b981..d599c5f393 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "2.3.6" + "@mongosh/cli-repl": "2.3.7" } } diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index 68cb41d0dc..d83756cf5a 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/node-runtime-worker-thread", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB shell runtime that lives in a worker thread", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index b9450a0765..13bbff4fcb 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-core", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell Core Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index 78031b739c..f193c2d8ba 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-node-driver", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell Server Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", - "@mongosh/types": "2.3.6", + "@mongosh/errors": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index 060f3df6db..a855b16ee3 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-api", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell API Classes Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,11 +40,11 @@ "build" ], "dependencies": { - "@mongosh/arg-parser": "2.3.6", - "@mongosh/errors": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/i18n": "2.3.6", - "@mongosh/service-provider-core": "2.3.6", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "mongodb-redact": "^1.1.2" }, "devDependencies": { diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index 1896d9d9c3..e8ab586882 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-evaluator", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Top Level API Package", "main": "./lib/index.js", "scripts": { @@ -38,15 +38,15 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.6", + "@mongosh/types": "2.3.7", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, "dependencies": { - "@mongosh/async-rewriter2": "2.3.6", - "@mongosh/history": "2.3.6", - "@mongosh/shell-api": "2.3.6" + "@mongosh/async-rewriter2": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/shell-api": "2.3.7" } } diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index ff56c6085f..d64e8e8e1a 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/snippet-manager", - "version": "2.3.6", + "version": "2.3.7", "description": "MongoDB Shell Snippet Manager", "main": "./lib/index.js", "repository": { diff --git a/packages/types/package.json b/packages/types/package.json index 51d93c8dd4..41e1744ca8 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/types", - "version": "2.3.6", + "version": "2.3.7", "description": "Types for mongosh internals", "author": "Anna Henningsen ", "homepage": "https://github.com/mongodb-js/mongosh/tree/main/packages/types#readme", diff --git a/scripts/docker/package.json b/scripts/docker/package.json index 54bd1c29df..a22064f372 100644 --- a/scripts/docker/package.json +++ b/scripts/docker/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/docker-build-scripts", - "version": "2.3.6", + "version": "2.3.7", "private": true, "description": "MongoDB Shell Build Docker Images", "config": { From 8c9c214f8d0caf5252c1f328e4e6d0d409a5b473 Mon Sep 17 00:00:00 2001 From: gagik Date: Thu, 19 Dec 2024 11:21:55 +0100 Subject: [PATCH 05/40] ensure compatibility with old bump --- packages/build/src/npm-packages/bump.ts | 13 +++++++++++++ packages/build/src/npm-packages/index.ts | 1 + packages/build/src/release.ts | 8 +++++++- 3 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 packages/build/src/npm-packages/bump.ts diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts new file mode 100644 index 0000000000..38f3f03b55 --- /dev/null +++ b/packages/build/src/npm-packages/bump.ts @@ -0,0 +1,13 @@ +import { spawnSync } from '../helpers'; +import { PROJECT_ROOT } from './constants'; + +export function bumpNpmPackages() { + spawnSync('npm', ['run', 'bump-packages'], { + stdio: 'inherit', + cwd: PROJECT_ROOT, + encoding: 'utf8', + env: { + ...process.env, + }, + }); +} diff --git a/packages/build/src/npm-packages/index.ts b/packages/build/src/npm-packages/index.ts index 4d4931001f..c41ed52bef 100644 --- a/packages/build/src/npm-packages/index.ts +++ b/packages/build/src/npm-packages/index.ts @@ -1 +1,2 @@ export { publishNpmPackages } from './publish'; +export { bumpNpmPackages } from './bump'; diff --git a/packages/build/src/release.ts b/packages/build/src/release.ts index 2777990c88..b316f0d0a9 100644 --- a/packages/build/src/release.ts +++ b/packages/build/src/release.ts @@ -14,7 +14,7 @@ import { } from './evergreen'; import { GithubRepo } from '@mongodb-js/devtools-github-repo'; import { publishToHomebrew } from './homebrew'; -import { publishNpmPackages } from './npm-packages'; +import { bumpNpmPackages, publishNpmPackages } from './npm-packages'; import { runPackage } from './packaging'; import { runDraft } from './run-draft'; import { runPublish } from './run-publish'; @@ -54,6 +54,12 @@ export async function release( redactConfig(config) ); + if (command === 'bump') { + // updates the version of internal packages to reflect the tagged one + bumpNpmPackages(); + return; + } + const octokit = new Octokit({ auth: config.githubToken, }); From 03ba37319a16e5669b871a27d8ed6af9f66ea5a7 Mon Sep 17 00:00:00 2001 From: gagik Date: Thu, 19 Dec 2024 13:44:29 +0100 Subject: [PATCH 06/40] wip --- configs/eslint-config-mongosh/package.json | 2 +- configs/tsconfig-mongosh/package.json | 2 +- package-lock.json | 292 +++++++++--------- packages/arg-parser/package.json | 10 +- packages/async-rewriter2/package.json | 6 +- packages/autocomplete/package.json | 8 +- packages/browser-repl/package.json | 18 +- packages/browser-runtime-core/package.json | 16 +- .../browser-runtime-electron/package.json | 14 +- packages/build/package.json | 6 +- packages/cli-repl/package.json | 34 +- packages/connectivity-tests/package.json | 4 +- packages/e2e-tests/package.json | 10 +- packages/editor/package.json | 16 +- packages/errors/package.json | 6 +- packages/history/package.json | 6 +- packages/i18n/package.json | 8 +- packages/java-shell/package.json | 4 +- .../js-multiline-to-singleline/package.json | 6 +- packages/logging/package.json | 12 +- packages/mongosh/package.json | 4 +- .../node-runtime-worker-thread/package.json | 16 +- packages/service-provider-core/package.json | 8 +- .../service-provider-node-driver/package.json | 12 +- packages/shell-api/package.json | 18 +- packages/shell-evaluator/package.json | 14 +- packages/snippet-manager/package.json | 12 +- packages/types/package.json | 6 +- scripts/docker/package.json | 2 +- 29 files changed, 286 insertions(+), 286 deletions(-) diff --git a/configs/eslint-config-mongosh/package.json b/configs/eslint-config-mongosh/package.json index dd95cbf3f8..d0c201384e 100644 --- a/configs/eslint-config-mongosh/package.json +++ b/configs/eslint-config-mongosh/package.json @@ -1,6 +1,6 @@ { "name": "@mongodb-js/eslint-config-mongosh", - "version": "1.0.0", + "version": "1.0.2", "private": true, "description": "Shared Mongosh eslint configuration", "license": "SSPL", diff --git a/configs/tsconfig-mongosh/package.json b/configs/tsconfig-mongosh/package.json index 4b3440b2b7..4b846acf95 100644 --- a/configs/tsconfig-mongosh/package.json +++ b/configs/tsconfig-mongosh/package.json @@ -1,6 +1,6 @@ { "name": "@mongodb-js/tsconfig-mongosh", - "version": "1.0.0", + "version": "1.0.2", "private": true, "description": "Shared Mongosh Typescript configuration", "license": "SSPL", diff --git a/package-lock.json b/package-lock.json index 06dc51b0f3..5e1260dc20 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,24 +17,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/logging", - "packages/node-runtime-worker-thread", - "packages/service-provider-core", - "packages/snippet-manager", "packages/types", "packages/i18n", - "packages/service-provider-node-driver", + "packages/logging", + "packages/service-provider-core", "packages/arg-parser", + "packages/service-provider-node-driver", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", + "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", - "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", + "packages/node-runtime-worker-thread", + "packages/browser-repl", "packages/connectivity-tests" ], "bin": { @@ -89,7 +89,7 @@ }, "configs/eslint-config-mongosh": { "name": "@mongodb-js/eslint-config-mongosh", - "version": "1.0.0", + "version": "1.0.2", "license": "SSPL", "dependencies": { "@babel/core": "^7.21.4", @@ -113,7 +113,7 @@ }, "configs/tsconfig-mongosh": { "name": "@mongodb-js/tsconfig-mongosh", - "version": "1.0.0", + "version": "1.0.2", "license": "SSPL", "devDependencies": { "@mongodb-js/prettier-config-devtools": "^1.0.0", @@ -28930,18 +28930,18 @@ }, "packages/arg-parser": { "name": "@mongosh/arg-parser", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.3.7", - "@mongosh/i18n": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/i18n": "2.5.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", @@ -28978,7 +28978,7 @@ }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", - "version": "2.3.7", + "version": "2.5.0", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.22.8", @@ -28991,9 +28991,9 @@ "async-rewrite": "bin/async-rewrite.js" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/babel__core": "^7.20.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29005,17 +29005,17 @@ }, "packages/autocomplete": { "name": "@mongosh/autocomplete", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-api": "4.0.0", "semver": "^7.5.4" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -29027,15 +29027,15 @@ }, "packages/browser-repl": { "name": "@mongosh/browser-repl", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/node-runtime-worker-thread": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/browser-runtime-core": "4.0.0", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/i18n": "2.5.0", + "@mongosh/node-runtime-worker-thread": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -29046,9 +29046,9 @@ "@babel/preset-typescript": "^7.18.6", "@mongodb-js/compass-components": "*", "@mongodb-js/compass-editor": "*", - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.8", "@testing-library/dom": "^8.20.1", "@testing-library/react": "^12.1.5", @@ -29214,19 +29214,19 @@ }, "packages/browser-runtime-core": { "name": "@mongosh/browser-runtime-core", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/autocomplete": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7" + "@mongosh/autocomplete": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-evaluator": "4.0.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29239,18 +29239,18 @@ }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7" + "@mongosh/browser-runtime-core": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/types": "4.0.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/service-provider-node-driver": "4.0.0", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -29269,7 +29269,7 @@ }, "packages/build": { "name": "@mongosh/build", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-github-repo": "^1.0.1", @@ -29292,10 +29292,10 @@ "tmp-promise": "^3.0.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/command-exists": "^1.2.0", "@types/cross-spawn": "^6.0.6", "@types/download": "^8.0.1", @@ -29394,24 +29394,24 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "2.3.7", - "@mongosh/autocomplete": "2.3.7", - "@mongosh/editor": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/logging": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/snippet-manager": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/arg-parser": "4.0.0", + "@mongosh/autocomplete": "4.0.0", + "@mongosh/editor": "4.0.0", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/i18n": "2.5.0", + "@mongosh/js-multiline-to-singleline": "2.5.0", + "@mongosh/logging": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/service-provider-node-driver": "4.0.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-evaluator": "4.0.0", + "@mongosh/snippet-manager": "4.0.0", + "@mongosh/types": "4.0.0", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -29432,10 +29432,10 @@ "mongosh": "bin/mongosh.js" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/sbom-tools": "^0.7.0", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/ansi-escape-sequences": "^4.0.0", "@types/chai-as-promised": "^7.1.3", "@types/js-yaml": "^4.0.5", @@ -29478,27 +29478,27 @@ }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", - "version": "2.3.7", + "version": "2.5.0", "license": "Apache-2.0", "devDependencies": { - "mongosh": "2.3.7" + "mongosh": "4.0.0" } }, "packages/e2e-tests": { "name": "@mongosh/e2e-tests", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/cli-repl": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", "strip-ansi": "^6.0.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/oidc-mock-provider": "^0.10.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/chai-as-promised": "^7.1.3", "@types/node": "^14.14.6", "@types/rimraf": "^3.0.0", @@ -29601,20 +29601,20 @@ }, "packages/editor": { "name": "@mongosh/editor", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/js-multiline-to-singleline": "2.5.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-evaluator": "4.0.0", + "@mongosh/types": "4.0.0", "js-beautify": "^1.15.1" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", @@ -29626,12 +29626,12 @@ }, "packages/errors": { "name": "@mongosh/errors", - "version": "2.3.7", + "version": "2.5.0", "license": "Apache-2.0", "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "chalk": "^4.1.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29645,16 +29645,16 @@ }, "packages/history": { "name": "@mongosh/history", - "version": "2.3.7", + "version": "2.5.0", "license": "Apache-2.0", "dependencies": { "mongodb-connection-string-url": "^3.0.1", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb-connection-string-url": "^3.0.1", @@ -29666,15 +29666,15 @@ }, "packages/i18n": { "name": "@mongosh/i18n", - "version": "2.3.7", + "version": "2.5.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.3.7" + "@mongosh/errors": "2.5.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" @@ -29685,10 +29685,10 @@ }, "packages/java-shell": { "name": "@mongosh/java-shell", - "version": "2.3.7", + "version": "2.5.0", "license": "SSPL", "devDependencies": { - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "assert": "^1.5.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", @@ -29748,16 +29748,16 @@ }, "packages/js-multiline-to-singleline": { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.3.7", + "version": "2.5.0", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.12", "@babel/types": "^7.21.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/babel__core": "^7.1.18", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29769,20 +29769,20 @@ }, "packages/logging": { "name": "@mongosh/logging", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/types": "4.0.0", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" @@ -29816,10 +29816,10 @@ } }, "packages/mongosh": { - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "2.3.7" + "@mongosh/cli-repl": "4.0.0" }, "bin": { "mongosh": "bin/mongosh.js" @@ -29830,7 +29830,7 @@ }, "packages/node-runtime-worker-thread": { "name": "@mongosh/node-runtime-worker-thread", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", @@ -29838,14 +29838,14 @@ "web-worker": "^1.3.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/browser-runtime-electron": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/browser-runtime-core": "4.0.0", + "@mongosh/browser-runtime-electron": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/service-provider-node-driver": "4.0.0", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29860,20 +29860,20 @@ }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.7", + "@mongosh/errors": "2.5.0", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" @@ -29887,23 +29887,23 @@ }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/types": "4.0.0", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", "socks": "^2.8.3" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29943,21 +29943,21 @@ }, "packages/shell-api": { "name": "@mongosh/shell-api", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/arg-parser": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/arg-parser": "4.0.0", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/i18n": "2.5.0", + "@mongosh/service-provider-core": "4.0.0", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29971,18 +29971,18 @@ }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/async-rewriter2": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/shell-api": "2.3.7" + "@mongosh/async-rewriter2": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/shell-api": "4.0.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/types": "4.0.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29994,13 +29994,13 @@ }, "packages/snippet-manager": { "name": "@mongosh/snippet-manager", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -30008,9 +30008,9 @@ "tar": "^6.1.15" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/cross-spawn": "^6.0.6", "@types/tar": "^4.0.4", "depcheck": "^1.4.7", @@ -30034,15 +30034,15 @@ }, "packages/types": { "name": "@mongosh/types", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", @@ -30078,7 +30078,7 @@ }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", - "version": "2.3.7", + "version": "4.0.0", "license": "Apache-2.0", "dependencies": { "mongodb-crypt-library-version": "^1.0.5" diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index eec57eefd1..5bc30dc9d4 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/arg-parser", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell CLI Argument List Parser Package", "main": "./lib/index.js", "repository": { @@ -35,15 +35,15 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.3.7", - "@mongosh/i18n": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/i18n": "2.5.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index 17bd4cad1b..f8bc0fdf12 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/async-rewriter2", - "version": "2.3.7", + "version": "2.5.0", "description": "MongoDB Shell Async Rewriter Package", "main": "./lib/index.js", "scripts": { @@ -47,9 +47,9 @@ "@babel/types": "^7.22.5" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/babel__core": "^7.20.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index da6523f0c5..9171d57f94 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/autocomplete", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell Autocomplete Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -34,9 +34,9 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -44,7 +44,7 @@ }, "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-api": "4.0.0", "semver": "^7.5.4" } } diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index 75ddf4eaeb..388c2b6d7b 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-repl", - "version": "2.3.7", + "version": "4.0.0", "description": "Browser presentation component for Mongo Shell", "engines": { "node": ">=14.15.1" @@ -56,12 +56,12 @@ ] }, "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/node-runtime-worker-thread": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/browser-runtime-core": "4.0.0", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/i18n": "2.5.0", + "@mongosh/node-runtime-worker-thread": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -73,9 +73,9 @@ "mongodb": "^6.12.0", "@mongodb-js/compass-components": "*", "@mongodb-js/compass-editor": "*", - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.8", "@testing-library/dom": "^8.20.1", "@testing-library/react": "^12.1.5", diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index 4dde65ae77..5e924b9b00 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-core", - "version": "2.3.7", + "version": "4.0.0", "description": "Mongosh browser runtime core", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,10 +38,10 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -49,9 +49,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/autocomplete": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7" + "@mongosh/autocomplete": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-evaluator": "4.0.0" } } diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index 5295b00c8a..b9930b1c5a 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-electron", - "version": "2.3.7", + "version": "4.0.0", "description": "Mongosh browser runtime electron", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,10 +38,10 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/service-provider-node-driver": "4.0.0", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -50,8 +50,8 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7" + "@mongosh/browser-runtime-core": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/types": "4.0.0" } } diff --git a/packages/build/package.json b/packages/build/package.json index 8f2830de78..aeeac72d6f 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/build", - "version": "2.3.7", + "version": "4.0.0", "private": true, "description": "MongoDB Shell Build Tools", "main": "lib/index.js", @@ -39,10 +39,10 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/command-exists": "^1.2.0", "@types/cross-spawn": "^6.0.6", "@types/download": "^8.0.1", diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index cc6810437b..bf19012458 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", @@ -63,20 +63,20 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "2.3.7", - "@mongosh/autocomplete": "2.3.7", - "@mongosh/editor": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/logging": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/snippet-manager": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/arg-parser": "4.0.0", + "@mongosh/autocomplete": "4.0.0", + "@mongosh/editor": "4.0.0", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/i18n": "2.5.0", + "@mongosh/js-multiline-to-singleline": "2.5.0", + "@mongosh/logging": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/service-provider-node-driver": "4.0.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-evaluator": "4.0.0", + "@mongosh/snippet-manager": "4.0.0", + "@mongosh/types": "4.0.0", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -95,10 +95,10 @@ }, "devDependencies": { "mongodb": "^6.12.0", - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/sbom-tools": "^0.7.0", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/ansi-escape-sequences": "^4.0.0", "@types/js-yaml": "^4.0.5", "@types/node": "^14.14.6", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 0ecc111104..72ccde8ee3 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/connectivity-tests", - "version": "2.3.7", + "version": "2.5.0", "private": true, "license": "Apache-2.0", "scripts": { @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "2.3.7" + "mongosh": "4.0.0" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index a359d9a07c..bb4e6f6738 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/e2e-tests", - "version": "2.3.7", + "version": "4.0.0", "private": true, "description": "MongoDB Shell E2E Tests Package", "homepage": "https://github.com/mongodb-js/mongosh", @@ -27,16 +27,16 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/cli-repl": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/oidc-mock-provider": "^0.10.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/chai-as-promised": "^7.1.3", "@types/node": "^14.14.6", "@types/rimraf": "^3.0.0", diff --git a/packages/editor/package.json b/packages/editor/package.json index df6d22f49a..6a96ed3374 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/editor", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell External Editor", "main": "./lib/index.js", "repository": { @@ -35,17 +35,17 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/js-multiline-to-singleline": "2.5.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-evaluator": "4.0.0", + "@mongosh/types": "4.0.0", "js-beautify": "^1.15.1" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", diff --git a/packages/errors/package.json b/packages/errors/package.json index b2771b58f7..1ea49580b9 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/errors", - "version": "2.3.7", + "version": "2.5.0", "description": "MongoDB Shell Errors Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -36,9 +36,9 @@ }, "dependencies": {}, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "chalk": "^4.1.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/history/package.json b/packages/history/package.json index 79eaafd586..6cf6625c14 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/history", - "version": "2.3.7", + "version": "2.5.0", "description": "MongoDB Shell History Package", "main": "./lib/index.js", "repository": { @@ -39,9 +39,9 @@ "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb-connection-string-url": "^3.0.1", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 6fd1fee90c..f96d21c48f 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/i18n", - "version": "2.3.7", + "version": "2.5.0", "description": "MongoDB Shell i18n Project", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,12 +36,12 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.3.7" + "@mongosh/errors": "2.5.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index 53458cd021..1cbe51fd00 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/java-shell", - "version": "2.3.7", + "version": "2.5.0", "private": true, "description": "Java application that uses mongosh-shell-api node module and MongoDB java driver to run mongo shell on JVM", "config": { @@ -18,7 +18,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "assert": "^1.5.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index 7775447634..cac333a87d 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.3.7", + "version": "2.5.0", "description": "Make multiline JS into a single line", "main": "./lib/index.js", "repository": { @@ -39,9 +39,9 @@ "@babel/types": "^7.21.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/babel__core": "^7.1.18", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/logging/package.json b/packages/logging/package.json index 5298f800d1..21cfcbb9df 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/logging", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell Logging Utilities Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -18,16 +18,16 @@ }, "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/types": "4.0.0", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index d599c5f393..5dc91f3c3c 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "2.3.7" + "@mongosh/cli-repl": "4.0.0" } } diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index d83756cf5a..94eee353db 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/node-runtime-worker-thread", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB shell runtime that lives in a worker thread", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -34,14 +34,14 @@ "reformat": "npm run prettier -- --write . && npm run eslint --fix" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/browser-runtime-electron": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/browser-runtime-core": "4.0.0", + "@mongosh/browser-runtime-electron": "4.0.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/service-provider-node-driver": "4.0.0", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 13bbff4fcb..6bddd23a77 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-core", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell Core Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -44,7 +44,7 @@ }, "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.7", + "@mongosh/errors": "2.5.0", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", @@ -54,9 +54,9 @@ "mongodb-client-encryption": "^6.1.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index f193c2d8ba..ac72545a88 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-node-driver", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell Server Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/service-provider-core": "4.0.0", + "@mongosh/types": "4.0.0", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", @@ -62,9 +62,9 @@ "mongodb-client-encryption": "^6.1.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index a855b16ee3..a510d240da 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-api", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell API Classes Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,18 +40,18 @@ "build" ], "dependencies": { - "@mongosh/arg-parser": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/arg-parser": "4.0.0", + "@mongosh/errors": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/i18n": "2.5.0", + "@mongosh/service-provider-core": "4.0.0", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index e8ab586882..8950a2cedd 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-evaluator", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Top Level API Package", "main": "./lib/index.js", "scripts": { @@ -35,18 +35,18 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongosh/types": "4.0.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, "dependencies": { - "@mongosh/async-rewriter2": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/shell-api": "2.3.7" + "@mongosh/async-rewriter2": "2.5.0", + "@mongosh/history": "2.5.0", + "@mongosh/shell-api": "4.0.0" } } diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index d64e8e8e1a..8ef26b1c67 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/snippet-manager", - "version": "2.3.7", + "version": "4.0.0", "description": "MongoDB Shell Snippet Manager", "main": "./lib/index.js", "repository": { @@ -36,9 +36,9 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.5.0", + "@mongosh/shell-api": "4.0.0", + "@mongosh/types": "4.0.0", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -46,9 +46,9 @@ "tar": "^6.1.15" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "@types/cross-spawn": "^6.0.6", "@types/tar": "^4.0.4", "depcheck": "^1.4.7", diff --git a/packages/types/package.json b/packages/types/package.json index 41e1744ca8..2bc741c5c6 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/types", - "version": "2.3.7", + "version": "4.0.0", "description": "Types for mongosh internals", "author": "Anna Henningsen ", "homepage": "https://github.com/mongodb-js/mongosh/tree/main/packages/types#readme", @@ -41,9 +41,9 @@ "@mongodb-js/devtools-connect": "^3.3.4" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/eslint-config-mongosh": "^1.0.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", diff --git a/scripts/docker/package.json b/scripts/docker/package.json index a22064f372..b630c70bb1 100644 --- a/scripts/docker/package.json +++ b/scripts/docker/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/docker-build-scripts", - "version": "2.3.7", + "version": "4.0.0", "private": true, "description": "MongoDB Shell Build Docker Images", "config": { From ad630dc169741b0375d847c03ca06d3a51a3773c Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 30 Dec 2024 12:48:06 +0100 Subject: [PATCH 07/40] switch to bump script --- package.json | 2 +- packages/build/package.json | 1 + packages/build/src/npm-packages/bump.ts | 3 +++ 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/package.json b/package.json index 5a6f0929c0..06bab41351 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "prepare": "husky", "precommit": "precommit", "preinstall": "node scripts/sort-workspaces.js", - "bump-packages": "bump-monorepo-packages" + "bump-packages": "npm run bump --workspace @mongosh/build" }, "config": { "unsafe-perm": true diff --git a/packages/build/package.json b/packages/build/package.json index aeeac72d6f..af3e4d3deb 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -25,6 +25,7 @@ "depcheck": "depcheck", "evergreen-release": "ts-node -r ../../scripts/import-expansions.js src/index.ts", "release": "ts-node src/index.ts trigger-release", + "bump": "ts-node src/index.ts bump", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint --fix" }, diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index 38f3f03b55..8b9f9b07fd 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -1,6 +1,8 @@ import { spawnSync } from '../helpers'; import { PROJECT_ROOT } from './constants'; +const PACKAGES_TO_SKIP_BUMPING = ['mongosh', '@mongosh/cli-repl']; + export function bumpNpmPackages() { spawnSync('npm', ['run', 'bump-packages'], { stdio: 'inherit', @@ -8,6 +10,7 @@ export function bumpNpmPackages() { encoding: 'utf8', env: { ...process.env, + SKIP_BUMP_PACKAGES: PACKAGES_TO_SKIP_BUMPING.join(','), }, }); } From 45469f968038906d1ccd902af9ae1f2bad5371ce Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 30 Dec 2024 18:03:59 +0100 Subject: [PATCH 08/40] fix package bumping --- packages/build/src/npm-packages/bump.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index 8b9f9b07fd..c7573c94e5 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -4,7 +4,7 @@ import { PROJECT_ROOT } from './constants'; const PACKAGES_TO_SKIP_BUMPING = ['mongosh', '@mongosh/cli-repl']; export function bumpNpmPackages() { - spawnSync('npm', ['run', 'bump-packages'], { + spawnSync('npx', ['bump-monorepo-packages'], { stdio: 'inherit', cwd: PROJECT_ROOT, encoding: 'utf8', From be919e019b94213af8e1f64c7af3b17d093b7e7d Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 30 Dec 2024 18:38:39 +0100 Subject: [PATCH 09/40] check if bump is necessary for installs --- .evergreen/install-npm-deps.sh | 2 - package.json | 2 +- packages/build/src/npm-packages/bump.ts | 54 +++++++++++++++++++++++-- packages/build/src/release.ts | 6 +++ 4 files changed, 58 insertions(+), 6 deletions(-) diff --git a/.evergreen/install-npm-deps.sh b/.evergreen/install-npm-deps.sh index 97cffcc7e9..daca8211eb 100644 --- a/.evergreen/install-npm-deps.sh +++ b/.evergreen/install-npm-deps.sh @@ -31,7 +31,5 @@ npm run mark-ci-required-optional-dependencies # along with its types, but npm wouldn't try and compile the addon (npm ci && test -e node_modules/mongodb-client-encryption) || npm ci --ignore-scripts -npm run evergreen-release bump - echo "npm packages after installation" npm ls || true diff --git a/package.json b/package.json index 06bab41351..f6c9a8b0f2 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,7 @@ "prepare": "husky", "precommit": "precommit", "preinstall": "node scripts/sort-workspaces.js", - "bump-packages": "npm run bump --workspace @mongosh/build" + "bump-packages": "npm run bump-packages --workspace @mongosh/build" }, "config": { "unsafe-perm": true diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index c7573c94e5..1132f22681 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -1,16 +1,64 @@ import { spawnSync } from '../helpers'; import { PROJECT_ROOT } from './constants'; -const PACKAGES_TO_SKIP_BUMPING = ['mongosh', '@mongosh/cli-repl']; +import { promises as fs } from 'fs'; +import path from 'path'; +import { getPackagesInTopologicalOrder } from '@mongodb-js/monorepo-tools'; +/** Packages which get bumped only as part of the mongosh release. */ +const MONGOSH_RELEASE_PACKAGES = ['mongosh', '@mongosh/cli-repl']; + +/** This bumps only the main mongosh release packages to the set version. */ +export async function bumpMongosh(version: string): Promise { + console.info(`mongosh: Bumping package versions to ${version}`); + const monorepoRootPath = path.resolve(__dirname, '..', '..', '..', '..'); + const packages = await getPackagesInTopologicalOrder(monorepoRootPath); + + const workspaceNames = packages + .map((p) => p.name) + .filter((name) => MONGOSH_RELEASE_PACKAGES.includes(name)); + + const locations = [monorepoRootPath, ...packages.map((p) => p.location)]; + + for (const location of locations) { + const packageJsonPath = path.join(location, 'package.json'); + const packageJson = JSON.parse(await fs.readFile(packageJsonPath, 'utf8')); + + packageJson.version = version; + for (const grouping of [ + 'dependencies', + 'devDependencies', + 'optionalDependencies', + 'peerDependencies', + ]) { + if (!packageJson[grouping]) { + continue; + } + + for (const name of Object.keys(packageJson[grouping])) { + if (!workspaceNames.includes(name)) { + continue; + } + packageJson[grouping][name] = version; + } + } + + await fs.writeFile( + packageJsonPath, + JSON.stringify(packageJson, null, 2) + '\n' + ); + } +} + +/** Bump packages without setting a new version of mongosh. */ export function bumpNpmPackages() { - spawnSync('npx', ['bump-monorepo-packages'], { + spawnSync('bump-monorepo-packages', [], { stdio: 'inherit', cwd: PROJECT_ROOT, encoding: 'utf8', env: { ...process.env, - SKIP_BUMP_PACKAGES: PACKAGES_TO_SKIP_BUMPING.join(','), + SKIP_BUMP_PACKAGES: MONGOSH_RELEASE_PACKAGES.join(','), }, }); } diff --git a/packages/build/src/release.ts b/packages/build/src/release.ts index b316f0d0a9..c88fee8723 100644 --- a/packages/build/src/release.ts +++ b/packages/build/src/release.ts @@ -22,9 +22,11 @@ import { runUpload } from './run-upload'; import { runSign } from './packaging/run-sign'; import { runDownloadAndListArtifacts } from './run-download-and-list-artifacts'; import { runDownloadCryptLibrary } from './packaging/run-download-crypt-library'; +import { bumpMongosh } from './npm-packages/bump'; export type ReleaseCommand = | 'bump' + | 'bump-packages' | 'compile' | 'package' | 'sign' @@ -55,6 +57,10 @@ export async function release( ); if (command === 'bump') { + await bumpMongosh(config.version); + bumpNpmPackages(); + return; + } else if (command === 'bump-packages') { // updates the version of internal packages to reflect the tagged one bumpNpmPackages(); return; From 43c551db5644b0286cd06dd49ddff65044f66e73 Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 30 Dec 2024 19:12:19 +0100 Subject: [PATCH 10/40] remove old tests --- .../build/src/npm-packages/publish.spec.ts | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/packages/build/src/npm-packages/publish.spec.ts b/packages/build/src/npm-packages/publish.spec.ts index fc46665667..08815dc499 100644 --- a/packages/build/src/npm-packages/publish.spec.ts +++ b/packages/build/src/npm-packages/publish.spec.ts @@ -15,46 +15,6 @@ describe('npm-packages publishNpmPackages', function () { spawnSync = sinon.stub(); }); - it('fails if packages have different versions', function () { - listNpmPackages.returns([ - { name: 'packageA', version: '0.0.1' }, - { name: 'packageB', version: '0.0.2' }, - ]); - try { - publishNpmPackages( - false, - listNpmPackages, - markBumpedFilesAsAssumeUnchanged, - spawnSync - ); - } catch (e: any) { - expect(markBumpedFilesAsAssumeUnchanged).to.not.have.been.called; - expect(spawnSync).to.not.have.been.called; - return; - } - expect.fail('Expected error'); - }); - - it('fails if packages have placeholder versions', function () { - listNpmPackages.returns([ - { name: 'packageA', version: '2.3.7' }, - { name: 'packageB', version: '2.3.7' }, - ]); - try { - publishNpmPackages( - false, - listNpmPackages, - markBumpedFilesAsAssumeUnchanged, - spawnSync - ); - } catch (e: any) { - expect(markBumpedFilesAsAssumeUnchanged).to.not.have.been.called; - expect(spawnSync).to.not.have.been.called; - return; - } - expect.fail('Expected error'); - }); - it('calls lerna to publish packages for a real version', function () { const lernaBin = path.resolve( __dirname, From 71aaa7990706c89547131b9c84f17f1f2e9bd104 Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 10:30:33 +0100 Subject: [PATCH 11/40] add publish-packages --- .github/workflows/release-packages.yml | 62 ++++++++++++++++++++++++++ package.json | 3 +- packages/build/src/release.ts | 5 --- 3 files changed, 64 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/release-packages.yml diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml new file mode 100644 index 0000000000..849fcc2a91 --- /dev/null +++ b/.github/workflows/release-packages.yml @@ -0,0 +1,62 @@ +name: Publish +on: + # NOTE: avoid using the manual execution unless is the only way to fix some issue, + # rather retry failed jobs in case of flakes. The manual execution can potentially + # cause the tags to point to a different commit that the one used to publish + # the packages + workflow_dispatch: + push: + branches: + - main + +jobs: + publish: + if: | + github.event_name == 'workflow_dispatch' || + startsWith(github.event.head_commit.message, 'chore(release): bump package versions') + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + with: + # don't checkout a detatched HEAD + ref: ${{ github.head_ref }} + + # this is important so git log has the whole history + fetch-depth: '0' + + - name: Setup git + run: | + git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" + git config --local user.name "github-actions[bot]" + + - name: "Use Node.js 14" + uses: actions/setup-node@v3 + with: + node-version: 20.16.0 + + - name: Install npm@10.2.4 + run: npm install -g npm@10.2.4 + + - name: Install Dependencies + run: | + npm run bootstrap-ci + shell: bash + + - name: "Publish what is not already in NPM" + env: + NPM_TOKEN: ${{ secrets.DEVTOOLSBOT_NPM_TOKEN }} + run: | + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc + npm config list + echo "Publishing packages as $(npm whoami)" + git update-index --assume-unchanged .npmrc + npm run publish-packages + + - name: "Publish tags" + run: | + npx lerna list -a --json | \ + jq -r '.[] | .name + "@" + .version' | \ + xargs -i sh -c "git tag -a {} -m {} || true" + git push --follow-tags diff --git a/package.json b/package.json index f6c9a8b0f2..5f7bc42db2 100644 --- a/package.json +++ b/package.json @@ -71,7 +71,8 @@ "prepare": "husky", "precommit": "precommit", "preinstall": "node scripts/sort-workspaces.js", - "bump-packages": "npm run bump-packages --workspace @mongosh/build" + "bump-packages": "npm run bump-packages --workspace @mongosh/build", + "publish-packages": "lerna publish from-package --no-verify-access --no-push --no-git-tag-version --yes" }, "config": { "unsafe-perm": true diff --git a/packages/build/src/release.ts b/packages/build/src/release.ts index c88fee8723..50241a0b41 100644 --- a/packages/build/src/release.ts +++ b/packages/build/src/release.ts @@ -26,7 +26,6 @@ import { bumpMongosh } from './npm-packages/bump'; export type ReleaseCommand = | 'bump' - | 'bump-packages' | 'compile' | 'package' | 'sign' @@ -60,10 +59,6 @@ export async function release( await bumpMongosh(config.version); bumpNpmPackages(); return; - } else if (command === 'bump-packages') { - // updates the version of internal packages to reflect the tagged one - bumpNpmPackages(); - return; } const octokit = new Octokit({ From ceb13e717341741984e7e7e9deeb511bc170d77c Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 11:05:53 +0100 Subject: [PATCH 12/40] remove package.json changes --- configs/eslint-config-mongosh/package.json | 2 +- configs/tsconfig-mongosh/package.json | 2 +- package-lock.json | 280 +++++++++--------- packages/arg-parser/package.json | 10 +- packages/async-rewriter2/package.json | 6 +- packages/autocomplete/package.json | 8 +- packages/browser-repl/package.json | 18 +- packages/browser-runtime-core/package.json | 16 +- .../browser-runtime-electron/package.json | 14 +- packages/build/package.json | 7 +- packages/build/src/npm-packages/bump.ts | 5 +- packages/build/src/npm-packages/constants.ts | 3 + packages/build/src/npm-packages/index.ts | 2 +- packages/build/src/npm-packages/publish.ts | 9 +- packages/cli-repl/package.json | 34 +-- packages/connectivity-tests/package.json | 4 +- packages/e2e-tests/package.json | 10 +- packages/editor/package.json | 16 +- packages/errors/package.json | 6 +- packages/history/package.json | 6 +- packages/i18n/package.json | 8 +- packages/java-shell/package.json | 4 +- .../js-multiline-to-singleline/package.json | 6 +- packages/logging/package.json | 12 +- packages/mongosh/package.json | 4 +- .../node-runtime-worker-thread/package.json | 16 +- packages/service-provider-core/package.json | 8 +- .../service-provider-node-driver/package.json | 12 +- packages/shell-api/package.json | 18 +- packages/shell-evaluator/package.json | 14 +- packages/snippet-manager/package.json | 12 +- packages/types/package.json | 6 +- scripts/docker/package.json | 2 +- 33 files changed, 286 insertions(+), 294 deletions(-) diff --git a/configs/eslint-config-mongosh/package.json b/configs/eslint-config-mongosh/package.json index d0c201384e..dd95cbf3f8 100644 --- a/configs/eslint-config-mongosh/package.json +++ b/configs/eslint-config-mongosh/package.json @@ -1,6 +1,6 @@ { "name": "@mongodb-js/eslint-config-mongosh", - "version": "1.0.2", + "version": "1.0.0", "private": true, "description": "Shared Mongosh eslint configuration", "license": "SSPL", diff --git a/configs/tsconfig-mongosh/package.json b/configs/tsconfig-mongosh/package.json index 4b846acf95..4b3440b2b7 100644 --- a/configs/tsconfig-mongosh/package.json +++ b/configs/tsconfig-mongosh/package.json @@ -1,6 +1,6 @@ { "name": "@mongodb-js/tsconfig-mongosh", - "version": "1.0.2", + "version": "1.0.0", "private": true, "description": "Shared Mongosh Typescript configuration", "license": "SSPL", diff --git a/package-lock.json b/package-lock.json index 5e1260dc20..95c4d87805 100644 --- a/package-lock.json +++ b/package-lock.json @@ -89,7 +89,7 @@ }, "configs/eslint-config-mongosh": { "name": "@mongodb-js/eslint-config-mongosh", - "version": "1.0.2", + "version": "1.0.0", "license": "SSPL", "dependencies": { "@babel/core": "^7.21.4", @@ -113,7 +113,7 @@ }, "configs/tsconfig-mongosh": { "name": "@mongodb-js/tsconfig-mongosh", - "version": "1.0.2", + "version": "1.0.0", "license": "SSPL", "devDependencies": { "@mongodb-js/prettier-config-devtools": "^1.0.0", @@ -28930,18 +28930,18 @@ }, "packages/arg-parser": { "name": "@mongosh/arg-parser", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.5.0", - "@mongosh/i18n": "2.5.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", @@ -28978,7 +28978,7 @@ }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", - "version": "2.5.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.22.8", @@ -28991,9 +28991,9 @@ "async-rewrite": "bin/async-rewrite.js" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.20.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29005,17 +29005,17 @@ }, "packages/autocomplete": { "name": "@mongosh/autocomplete", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-api": "0.0.0-dev.0", "semver": "^7.5.4" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -29027,15 +29027,15 @@ }, "packages/browser-repl": { "name": "@mongosh/browser-repl", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "4.0.0", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/i18n": "2.5.0", - "@mongosh/node-runtime-worker-thread": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -29046,9 +29046,9 @@ "@babel/preset-typescript": "^7.18.6", "@mongodb-js/compass-components": "*", "@mongodb-js/compass-editor": "*", - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.8", "@testing-library/dom": "^8.20.1", "@testing-library/react": "^12.1.5", @@ -29214,19 +29214,19 @@ }, "packages/browser-runtime-core": { "name": "@mongosh/browser-runtime-core", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/autocomplete": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/shell-evaluator": "4.0.0" + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29239,18 +29239,18 @@ }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/types": "4.0.0" + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/service-provider-node-driver": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -29269,7 +29269,7 @@ }, "packages/build": { "name": "@mongosh/build", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-github-repo": "^1.0.1", @@ -29292,10 +29292,10 @@ "tmp-promise": "^3.0.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/command-exists": "^1.2.0", "@types/cross-spawn": "^6.0.6", "@types/download": "^8.0.1", @@ -29394,24 +29394,24 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "4.0.0", - "@mongosh/autocomplete": "4.0.0", - "@mongosh/editor": "4.0.0", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/i18n": "2.5.0", - "@mongosh/js-multiline-to-singleline": "2.5.0", - "@mongosh/logging": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/service-provider-node-driver": "4.0.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/shell-evaluator": "4.0.0", - "@mongosh/snippet-manager": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/editor": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/logging": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/snippet-manager": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -29432,10 +29432,10 @@ "mongosh": "bin/mongosh.js" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/sbom-tools": "^0.7.0", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/ansi-escape-sequences": "^4.0.0", "@types/chai-as-promised": "^7.1.3", "@types/js-yaml": "^4.0.5", @@ -29478,27 +29478,27 @@ }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", - "version": "2.5.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "devDependencies": { - "mongosh": "4.0.0" + "mongosh": "0.0.0-dev.0" } }, "packages/e2e-tests": { "name": "@mongosh/e2e-tests", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", + "@mongosh/cli-repl": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "strip-ansi": "^6.0.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/oidc-mock-provider": "^0.10.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/chai-as-promised": "^7.1.3", "@types/node": "^14.14.6", "@types/rimraf": "^3.0.0", @@ -29601,20 +29601,20 @@ }, "packages/editor": { "name": "@mongosh/editor", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.5.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/shell-evaluator": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "js-beautify": "^1.15.1" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", @@ -29626,12 +29626,12 @@ }, "packages/errors": { "name": "@mongosh/errors", - "version": "2.5.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "chalk": "^4.1.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29645,16 +29645,16 @@ }, "packages/history": { "name": "@mongosh/history", - "version": "2.5.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "mongodb-connection-string-url": "^3.0.1", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb-connection-string-url": "^3.0.1", @@ -29666,15 +29666,15 @@ }, "packages/i18n": { "name": "@mongosh/i18n", - "version": "2.5.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.5.0" + "@mongosh/errors": "0.0.0-dev.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" @@ -29685,10 +29685,10 @@ }, "packages/java-shell": { "name": "@mongosh/java-shell", - "version": "2.5.0", + "version": "0.0.0-dev.0", "license": "SSPL", "devDependencies": { - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "assert": "^1.5.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", @@ -29748,16 +29748,16 @@ }, "packages/js-multiline-to-singleline": { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.5.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.12", "@babel/types": "^7.21.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.1.18", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29769,20 +29769,20 @@ }, "packages/logging": { "name": "@mongosh/logging", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/types": "4.0.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" @@ -29816,10 +29816,10 @@ } }, "packages/mongosh": { - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "4.0.0" + "@mongosh/cli-repl": "0.0.0-dev.0" }, "bin": { "mongosh": "bin/mongosh.js" @@ -29830,7 +29830,7 @@ }, "packages/node-runtime-worker-thread": { "name": "@mongosh/node-runtime-worker-thread", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", @@ -29838,14 +29838,14 @@ "web-worker": "^1.3.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/browser-runtime-core": "4.0.0", - "@mongosh/browser-runtime-electron": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/service-provider-node-driver": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-electron": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29860,20 +29860,20 @@ }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.5.0", + "@mongosh/errors": "0.0.0-dev.0", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" @@ -29887,23 +29887,23 @@ }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.5.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", "socks": "^2.8.3" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29943,21 +29943,21 @@ }, "packages/shell-api": { "name": "@mongosh/shell-api", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/arg-parser": "4.0.0", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/i18n": "2.5.0", - "@mongosh/service-provider-core": "4.0.0", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29971,18 +29971,18 @@ }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/async-rewriter2": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/shell-api": "4.0.0" + "@mongosh/async-rewriter2": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/types": "0.0.0-dev.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29994,13 +29994,13 @@ }, "packages/snippet-manager": { "name": "@mongosh/snippet-manager", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.5.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -30008,9 +30008,9 @@ "tar": "^6.1.15" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/cross-spawn": "^6.0.6", "@types/tar": "^4.0.4", "depcheck": "^1.4.7", @@ -30034,15 +30034,15 @@ }, "packages/types": { "name": "@mongosh/types", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", @@ -30078,7 +30078,7 @@ }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", - "version": "4.0.0", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "mongodb-crypt-library-version": "^1.0.5" diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index 5bc30dc9d4..c784148e70 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/arg-parser", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell CLI Argument List Parser Package", "main": "./lib/index.js", "repository": { @@ -35,15 +35,15 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.5.0", - "@mongosh/i18n": "2.5.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index f8bc0fdf12..0d2e5be0e2 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/async-rewriter2", - "version": "2.5.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Async Rewriter Package", "main": "./lib/index.js", "scripts": { @@ -47,9 +47,9 @@ "@babel/types": "^7.22.5" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.20.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index 9171d57f94..b3d2e4b97a 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/autocomplete", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Autocomplete Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -34,9 +34,9 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mocha": "^10.2.0", @@ -44,7 +44,7 @@ }, "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "4.0.0", + "@mongosh/shell-api": "0.0.0-dev.0", "semver": "^7.5.4" } } diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index 388c2b6d7b..b4dfeeed01 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-repl", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "Browser presentation component for Mongo Shell", "engines": { "node": ">=14.15.1" @@ -56,12 +56,12 @@ ] }, "dependencies": { - "@mongosh/browser-runtime-core": "4.0.0", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/i18n": "2.5.0", - "@mongosh/node-runtime-worker-thread": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -73,9 +73,9 @@ "mongodb": "^6.12.0", "@mongodb-js/compass-components": "*", "@mongodb-js/compass-editor": "*", - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@pmmmwh/react-refresh-webpack-plugin": "^0.5.8", "@testing-library/dom": "^8.20.1", "@testing-library/react": "^12.1.5", diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index 5e924b9b00..723871e736 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-core", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "Mongosh browser runtime core", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,10 +38,10 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -49,9 +49,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/autocomplete": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/shell-evaluator": "4.0.0" + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0" } } diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index b9930b1c5a..70946b7d06 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-electron", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "Mongosh browser runtime electron", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -38,10 +38,10 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/service-provider-node-driver": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -50,8 +50,8 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/browser-runtime-core": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/types": "4.0.0" + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0" } } diff --git a/packages/build/package.json b/packages/build/package.json index af3e4d3deb..a4963c70cc 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/build", - "version": "4.0.0", + "version": "0.0.0-dev.0", "private": true, "description": "MongoDB Shell Build Tools", "main": "lib/index.js", @@ -25,7 +25,6 @@ "depcheck": "depcheck", "evergreen-release": "ts-node -r ../../scripts/import-expansions.js src/index.ts", "release": "ts-node src/index.ts trigger-release", - "bump": "ts-node src/index.ts bump", "prettier": "prettier", "reformat": "npm run prettier -- --write . && npm run eslint --fix" }, @@ -40,10 +39,10 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/command-exists": "^1.2.0", "@types/cross-spawn": "^6.0.6", "@types/download": "^8.0.1", diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index 1132f22681..85cfdd5f8d 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -1,13 +1,10 @@ import { spawnSync } from '../helpers'; -import { PROJECT_ROOT } from './constants'; +import { MONGOSH_RELEASE_PACKAGES, PROJECT_ROOT } from './constants'; import { promises as fs } from 'fs'; import path from 'path'; import { getPackagesInTopologicalOrder } from '@mongodb-js/monorepo-tools'; -/** Packages which get bumped only as part of the mongosh release. */ -const MONGOSH_RELEASE_PACKAGES = ['mongosh', '@mongosh/cli-repl']; - /** This bumps only the main mongosh release packages to the set version. */ export async function bumpMongosh(version: string): Promise { console.info(`mongosh: Bumping package versions to ${version}`); diff --git a/packages/build/src/npm-packages/constants.ts b/packages/build/src/npm-packages/constants.ts index 5d0c6f8d30..f677e6d2b2 100644 --- a/packages/build/src/npm-packages/constants.ts +++ b/packages/build/src/npm-packages/constants.ts @@ -7,3 +7,6 @@ export const LERNA_BIN = path.resolve( '.bin', 'lerna' ); + +/** Packages which get bumped only as part of the mongosh release. */ +export const MONGOSH_RELEASE_PACKAGES = ['mongosh', '@mongosh/cli-repl']; diff --git a/packages/build/src/npm-packages/index.ts b/packages/build/src/npm-packages/index.ts index c41ed52bef..3509775210 100644 --- a/packages/build/src/npm-packages/index.ts +++ b/packages/build/src/npm-packages/index.ts @@ -1,2 +1,2 @@ -export { publishNpmPackages } from './publish'; export { bumpNpmPackages } from './bump'; +export { publishNpmPackages } from './publish'; diff --git a/packages/build/src/npm-packages/publish.ts b/packages/build/src/npm-packages/publish.ts index ebf73b7827..624c457604 100644 --- a/packages/build/src/npm-packages/publish.ts +++ b/packages/build/src/npm-packages/publish.ts @@ -12,14 +12,6 @@ export function publishNpmPackages( ): void { const packages = listNpmPackages(); - const versions = Array.from(new Set(packages.map(({ version }) => version))); - - if (versions.length !== 1) { - throw new Error( - `Refusing to publish packages with multiple versions: ${versions}` - ); - } - // Lerna requires a clean repository for a publish from-package (--force-publish does not have any effect here) // we use git update-index --assume-unchanged on files we know have been bumped markBumpedFilesAsAssumeUnchangedFn(packages, true); @@ -34,6 +26,7 @@ export function publishNpmPackages( '--no-push', '--exact', '--no-git-tag-version', + '--force-publish', '--yes', '--no-verify-access', ], diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index bf19012458..43c7354437 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", @@ -63,20 +63,20 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "4.0.0", - "@mongosh/autocomplete": "4.0.0", - "@mongosh/editor": "4.0.0", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/i18n": "2.5.0", - "@mongosh/js-multiline-to-singleline": "2.5.0", - "@mongosh/logging": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/service-provider-node-driver": "4.0.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/shell-evaluator": "4.0.0", - "@mongosh/snippet-manager": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/editor": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/logging": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/snippet-manager": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -95,10 +95,10 @@ }, "devDependencies": { "mongodb": "^6.12.0", - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/sbom-tools": "^0.7.0", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/ansi-escape-sequences": "^4.0.0", "@types/js-yaml": "^4.0.5", "@types/node": "^14.14.6", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 72ccde8ee3..4ef44a9b2f 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/connectivity-tests", - "version": "2.5.0", + "version": "0.0.0-dev.0", "private": true, "license": "Apache-2.0", "scripts": { @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "4.0.0" + "mongosh": "0.0.0-dev.0" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index bb4e6f6738..326647057c 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/e2e-tests", - "version": "4.0.0", + "version": "0.0.0-dev.0", "private": true, "description": "MongoDB Shell E2E Tests Package", "homepage": "https://github.com/mongodb-js/mongosh", @@ -27,16 +27,16 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", + "@mongosh/cli-repl": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/oidc-mock-provider": "^0.10.2", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/chai-as-promised": "^7.1.3", "@types/node": "^14.14.6", "@types/rimraf": "^3.0.0", diff --git a/packages/editor/package.json b/packages/editor/package.json index 6a96ed3374..57e07395a5 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/editor", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell External Editor", "main": "./lib/index.js", "repository": { @@ -35,17 +35,17 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.5.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/shell-evaluator": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "js-beautify": "^1.15.1" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "nanobus": "^4.5.0", diff --git a/packages/errors/package.json b/packages/errors/package.json index 1ea49580b9..4736c169ba 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/errors", - "version": "2.5.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Errors Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -36,9 +36,9 @@ }, "dependencies": {}, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "chalk": "^4.1.2", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/history/package.json b/packages/history/package.json index 6cf6625c14..21df6a136a 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/history", - "version": "2.5.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell History Package", "main": "./lib/index.js", "repository": { @@ -39,9 +39,9 @@ "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb-connection-string-url": "^3.0.1", diff --git a/packages/i18n/package.json b/packages/i18n/package.json index f96d21c48f..e717cf7622 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/i18n", - "version": "2.5.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell i18n Project", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,12 +36,12 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.5.0" + "@mongosh/errors": "0.0.0-dev.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index 1cbe51fd00..f541d15ef0 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/java-shell", - "version": "2.5.0", + "version": "0.0.0-dev.0", "private": true, "description": "Java application that uses mongosh-shell-api node module and MongoDB java driver to run mongo shell on JVM", "config": { @@ -18,7 +18,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "assert": "^1.5.0", "buffer": "^6.0.3", "crypto-browserify": "^3.12.0", diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index cac333a87d..06b21592a4 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.5.0", + "version": "0.0.0-dev.0", "description": "Make multiline JS into a single line", "main": "./lib/index.js", "repository": { @@ -39,9 +39,9 @@ "@babel/types": "^7.21.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/babel__core": "^7.1.18", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/logging/package.json b/packages/logging/package.json index 21cfcbb9df..bcaf186071 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/logging", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Logging Utilities Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -18,16 +18,16 @@ }, "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/types": "4.0.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index 5dc91f3c3c..dc77b76af1 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "4.0.0" + "@mongosh/cli-repl": "0.0.0-dev.0" } } diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index 94eee353db..211205f6bf 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/node-runtime-worker-thread", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB shell runtime that lives in a worker thread", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -34,14 +34,14 @@ "reformat": "npm run prettier -- --write . && npm run eslint --fix" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/browser-runtime-core": "4.0.0", - "@mongosh/browser-runtime-electron": "4.0.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/service-provider-node-driver": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-electron": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 6bddd23a77..94847a855f 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-core", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Core Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -44,7 +44,7 @@ }, "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.5.0", + "@mongosh/errors": "0.0.0-dev.0", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", @@ -54,9 +54,9 @@ "mongodb-client-encryption": "^6.1.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index ac72545a88..4f9d721060 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-node-driver", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Server Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.5.0", - "@mongosh/service-provider-core": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", @@ -62,9 +62,9 @@ "mongodb-client-encryption": "^6.1.0" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index a510d240da..429920d6dd 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-api", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell API Classes Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,18 +40,18 @@ "build" ], "dependencies": { - "@mongosh/arg-parser": "4.0.0", - "@mongosh/errors": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/i18n": "2.5.0", - "@mongosh/service-provider-core": "4.0.0", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "mongodb-redact": "^1.1.2" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index 8950a2cedd..7952764eef 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-evaluator", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Top Level API Package", "main": "./lib/index.js", "scripts": { @@ -35,18 +35,18 @@ "unitTestsOnly": true }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", - "@mongosh/types": "4.0.0", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", + "@mongosh/types": "0.0.0-dev.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, "dependencies": { - "@mongosh/async-rewriter2": "2.5.0", - "@mongosh/history": "2.5.0", - "@mongosh/shell-api": "4.0.0" + "@mongosh/async-rewriter2": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0" } } diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index 8ef26b1c67..5684fbe12b 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/snippet-manager", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Snippet Manager", "main": "./lib/index.js", "repository": { @@ -36,9 +36,9 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.5.0", - "@mongosh/shell-api": "4.0.0", - "@mongosh/types": "4.0.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -46,9 +46,9 @@ "tar": "^6.1.15" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/cross-spawn": "^6.0.6", "@types/tar": "^4.0.4", "depcheck": "^1.4.7", diff --git a/packages/types/package.json b/packages/types/package.json index 2bc741c5c6..7c7e7d7559 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/types", - "version": "4.0.0", + "version": "0.0.0-dev.0", "description": "Types for mongosh internals", "author": "Anna Henningsen ", "homepage": "https://github.com/mongodb-js/mongosh/tree/main/packages/types#readme", @@ -41,9 +41,9 @@ "@mongodb-js/devtools-connect": "^3.3.4" }, "devDependencies": { - "@mongodb-js/eslint-config-mongosh": "^1.0.2", + "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", - "@mongodb-js/tsconfig-mongosh": "^1.0.2", + "@mongodb-js/tsconfig-mongosh": "^1.0.0", "depcheck": "^1.4.7", "eslint": "^7.25.0", "mongodb": "^6.12.0", diff --git a/scripts/docker/package.json b/scripts/docker/package.json index b630c70bb1..9560b97a80 100644 --- a/scripts/docker/package.json +++ b/scripts/docker/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/docker-build-scripts", - "version": "4.0.0", + "version": "0.0.0-dev.0", "private": true, "description": "MongoDB Shell Build Docker Images", "config": { From 42d19ea0c3b6aacd3092bb1decd977fb8e5e0a04 Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 11:25:09 +0100 Subject: [PATCH 13/40] add ignore list --- packages/build/src/npm-packages/bump.ts | 11 +++++++++-- packages/build/src/npm-packages/constants.ts | 6 ++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index 85cfdd5f8d..a06787feba 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -1,5 +1,9 @@ import { spawnSync } from '../helpers'; -import { MONGOSH_RELEASE_PACKAGES, PROJECT_ROOT } from './constants'; +import { + IGNORE_BUMP_PACKAGES, + MONGOSH_RELEASE_PACKAGES, + PROJECT_ROOT, +} from './constants'; import { promises as fs } from 'fs'; import path from 'path'; @@ -55,7 +59,10 @@ export function bumpNpmPackages() { encoding: 'utf8', env: { ...process.env, - SKIP_BUMP_PACKAGES: MONGOSH_RELEASE_PACKAGES.join(','), + SKIP_BUMP_PACKAGES: [ + ...IGNORE_BUMP_PACKAGES, + ...MONGOSH_RELEASE_PACKAGES, + ].join(','), }, }); } diff --git a/packages/build/src/npm-packages/constants.ts b/packages/build/src/npm-packages/constants.ts index f677e6d2b2..1d742f920a 100644 --- a/packages/build/src/npm-packages/constants.ts +++ b/packages/build/src/npm-packages/constants.ts @@ -10,3 +10,9 @@ export const LERNA_BIN = path.resolve( /** Packages which get bumped only as part of the mongosh release. */ export const MONGOSH_RELEASE_PACKAGES = ['mongosh', '@mongosh/cli-repl']; + +/** Packages which always get ignored when doing a release or bump */ +export const IGNORE_BUMP_PACKAGES = [ + '@mongodb-js/eslint-config-mongosh', + '@mongodb-js/tsconfig-mongosh', +]; From bad9d596846234f4d4d4f689cb9dc8e9b1adbd8d Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 12:02:42 +0100 Subject: [PATCH 14/40] set non-release package.json to 2.3.7 --- package-lock.json | 176 +++++++++--------- packages/arg-parser/package.json | 6 +- packages/async-rewriter2/package.json | 2 +- packages/autocomplete/package.json | 4 +- packages/browser-repl/package.json | 14 +- packages/browser-runtime-core/package.json | 12 +- .../browser-runtime-electron/package.json | 10 +- packages/build/package.json | 2 +- packages/cli-repl/package.json | 28 +-- packages/connectivity-tests/package.json | 2 +- packages/e2e-tests/package.json | 4 +- packages/editor/package.json | 12 +- packages/errors/package.json | 2 +- packages/history/package.json | 2 +- packages/i18n/package.json | 4 +- packages/java-shell/package.json | 2 +- .../js-multiline-to-singleline/package.json | 2 +- packages/logging/package.json | 8 +- .../node-runtime-worker-thread/package.json | 12 +- packages/service-provider-core/package.json | 4 +- .../service-provider-node-driver/package.json | 8 +- packages/shell-api/package.json | 14 +- packages/shell-evaluator/package.json | 10 +- packages/snippet-manager/package.json | 8 +- packages/types/package.json | 2 +- scripts/docker/package.json | 2 +- 26 files changed, 176 insertions(+), 176 deletions(-) diff --git a/package-lock.json b/package-lock.json index 95c4d87805..72fca0de67 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28930,11 +28930,11 @@ }, "packages/arg-parser": { "name": "@mongosh/arg-parser", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/i18n": "2.3.7", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { @@ -28978,7 +28978,7 @@ }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.22.8", @@ -29005,11 +29005,11 @@ }, "packages/autocomplete": { "name": "@mongosh/autocomplete", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-api": "2.3.7", "semver": "^7.5.4" }, "devDependencies": { @@ -29027,15 +29027,15 @@ }, "packages/browser-repl": { "name": "@mongosh/browser-repl", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/node-runtime-worker-thread": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -29214,19 +29214,19 @@ }, "packages/browser-runtime-core": { "name": "@mongosh/browser-runtime-core", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0" + "@mongosh/autocomplete": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29239,18 +29239,18 @@ }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0" + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "2.3.7", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -29269,7 +29269,7 @@ }, "packages/build": { "name": "@mongosh/build", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-github-repo": "^1.0.1", @@ -29398,20 +29398,20 @@ "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/editor": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/logging": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/snippet-manager": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/autocomplete": "2.3.7", + "@mongosh/editor": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/logging": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/snippet-manager": "2.3.7", + "@mongosh/types": "2.3.7", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -29478,7 +29478,7 @@ }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "devDependencies": { "mongosh": "0.0.0-dev.0" @@ -29486,12 +29486,12 @@ }, "packages/e2e-tests": { "name": "@mongosh/e2e-tests", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", "@mongosh/cli-repl": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-core": "2.3.7", "strip-ansi": "^6.0.0" }, "devDependencies": { @@ -29601,14 +29601,14 @@ }, "packages/editor": { "name": "@mongosh/editor", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/types": "2.3.7", "js-beautify": "^1.15.1" }, "devDependencies": { @@ -29626,7 +29626,7 @@ }, "packages/errors": { "name": "@mongosh/errors", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29645,7 +29645,7 @@ }, "packages/history": { "name": "@mongosh/history", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "mongodb-connection-string-url": "^3.0.1", @@ -29666,10 +29666,10 @@ }, "packages/i18n": { "name": "@mongosh/i18n", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "0.0.0-dev.0" + "@mongosh/errors": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29685,7 +29685,7 @@ }, "packages/java-shell": { "name": "@mongosh/java-shell", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "SSPL", "devDependencies": { "@mongodb-js/tsconfig-mongosh": "^1.0.0", @@ -29748,7 +29748,7 @@ }, "packages/js-multiline-to-singleline": { "name": "@mongosh/js-multiline-to-singleline", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.12", @@ -29769,13 +29769,13 @@ }, "packages/logging": { "name": "@mongosh/logging", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/types": "2.3.7", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, @@ -29830,7 +29830,7 @@ }, "packages/node-runtime-worker-thread": { "name": "@mongosh/node-runtime-worker-thread", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", @@ -29841,11 +29841,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/browser-runtime-electron": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/browser-runtime-electron": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29860,11 +29860,11 @@ }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", @@ -29887,14 +29887,14 @@ }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", @@ -29943,21 +29943,21 @@ }, "packages/shell-api": { "name": "@mongosh/shell-api", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "mongodb-redact": "^1.1.2" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29971,18 +29971,18 @@ }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/async-rewriter2": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0" + "@mongosh/async-rewriter2": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/shell-api": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29994,13 +29994,13 @@ }, "packages/snippet-manager": { "name": "@mongosh/snippet-manager", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -30034,7 +30034,7 @@ }, "packages/types": { "name": "@mongosh/types", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4" @@ -30078,7 +30078,7 @@ }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "mongodb-crypt-library-version": "^1.0.5" diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index c784148e70..eec57eefd1 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/arg-parser", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell CLI Argument List Parser Package", "main": "./lib/index.js", "repository": { @@ -35,8 +35,8 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/i18n": "2.3.7", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index 0d2e5be0e2..17bd4cad1b 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/async-rewriter2", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell Async Rewriter Package", "main": "./lib/index.js", "scripts": { diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index b3d2e4b97a..da6523f0c5 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/autocomplete", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell Autocomplete Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -44,7 +44,7 @@ }, "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-api": "2.3.7", "semver": "^7.5.4" } } diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index b4dfeeed01..75ddf4eaeb 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-repl", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "Browser presentation component for Mongo Shell", "engines": { "node": ">=14.15.1" @@ -56,12 +56,12 @@ ] }, "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/node-runtime-worker-thread": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "numeral": "^2.0.6", "text-table": "^0.2.0" }, diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index 723871e736..4dde65ae77 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-core", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "Mongosh browser runtime core", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -49,9 +49,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0" + "@mongosh/autocomplete": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7" } } diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index 70946b7d06..5295b00c8a 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-electron", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "Mongosh browser runtime electron", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "2.3.7", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -50,8 +50,8 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0" + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7" } } diff --git a/packages/build/package.json b/packages/build/package.json index a4963c70cc..8f2830de78 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/build", - "version": "0.0.0-dev.0", + "version": "2.3.7", "private": true, "description": "MongoDB Shell Build Tools", "main": "lib/index.js", diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index 43c7354437..d2d30d59e4 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -63,20 +63,20 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/editor": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/logging": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/snippet-manager": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/autocomplete": "2.3.7", + "@mongosh/editor": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/logging": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/snippet-manager": "2.3.7", + "@mongosh/types": "2.3.7", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 4ef44a9b2f..183e562860 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/connectivity-tests", - "version": "0.0.0-dev.0", + "version": "2.3.7", "private": true, "license": "Apache-2.0", "scripts": { diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 326647057c..8b1b65f7fe 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/e2e-tests", - "version": "0.0.0-dev.0", + "version": "2.3.7", "private": true, "description": "MongoDB Shell E2E Tests Package", "homepage": "https://github.com/mongodb-js/mongosh", @@ -28,7 +28,7 @@ }, "dependencies": { "@mongosh/cli-repl": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-core": "2.3.7", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" }, diff --git a/packages/editor/package.json b/packages/editor/package.json index 57e07395a5..df6d22f49a 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/editor", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell External Editor", "main": "./lib/index.js", "repository": { @@ -35,11 +35,11 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-evaluator": "2.3.7", + "@mongosh/types": "2.3.7", "js-beautify": "^1.15.1" }, "devDependencies": { diff --git a/packages/errors/package.json b/packages/errors/package.json index 4736c169ba..b2771b58f7 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/errors", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell Errors Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/history/package.json b/packages/history/package.json index 21df6a136a..79eaafd586 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/history", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell History Package", "main": "./lib/index.js", "repository": { diff --git a/packages/i18n/package.json b/packages/i18n/package.json index e717cf7622..6fd1fee90c 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/i18n", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell i18n Project", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,7 +36,7 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "0.0.0-dev.0" + "@mongosh/errors": "2.3.7" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index f541d15ef0..53458cd021 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/java-shell", - "version": "0.0.0-dev.0", + "version": "2.3.7", "private": true, "description": "Java application that uses mongosh-shell-api node module and MongoDB java driver to run mongo shell on JVM", "config": { diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index 06b21592a4..7775447634 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/js-multiline-to-singleline", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "Make multiline JS into a single line", "main": "./lib/index.js", "repository": { diff --git a/packages/logging/package.json b/packages/logging/package.json index bcaf186071..5298f800d1 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/logging", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell Logging Utilities Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -18,9 +18,9 @@ }, "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/types": "2.3.7", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index 211205f6bf..d83756cf5a 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/node-runtime-worker-thread", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB shell runtime that lives in a worker thread", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -37,11 +37,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/browser-runtime-electron": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.7", + "@mongosh/browser-runtime-electron": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 94847a855f..13bbff4fcb 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-core", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell Core Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -44,7 +44,7 @@ }, "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index 4f9d721060..f193c2d8ba 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-node-driver", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell Server Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", + "@mongosh/types": "2.3.7", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index 429920d6dd..a855b16ee3 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-api", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell API Classes Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,18 +40,18 @@ "build" ], "dependencies": { - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.7", + "@mongosh/errors": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/i18n": "2.3.7", + "@mongosh/service-provider-core": "2.3.7", "mongodb-redact": "^1.1.2" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index 7952764eef..e8ab586882 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-evaluator", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Top Level API Package", "main": "./lib/index.js", "scripts": { @@ -38,15 +38,15 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.7", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, "dependencies": { - "@mongosh/async-rewriter2": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0" + "@mongosh/async-rewriter2": "2.3.7", + "@mongosh/history": "2.3.7", + "@mongosh/shell-api": "2.3.7" } } diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index 5684fbe12b..d64e8e8e1a 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/snippet-manager", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell Snippet Manager", "main": "./lib/index.js", "repository": { @@ -36,9 +36,9 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.7", + "@mongosh/shell-api": "2.3.7", + "@mongosh/types": "2.3.7", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", diff --git a/packages/types/package.json b/packages/types/package.json index 7c7e7d7559..41e1744ca8 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/types", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "Types for mongosh internals", "author": "Anna Henningsen ", "homepage": "https://github.com/mongodb-js/mongosh/tree/main/packages/types#readme", diff --git a/scripts/docker/package.json b/scripts/docker/package.json index 9560b97a80..a22064f372 100644 --- a/scripts/docker/package.json +++ b/scripts/docker/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/docker-build-scripts", - "version": "0.0.0-dev.0", + "version": "2.3.7", "private": true, "description": "MongoDB Shell Build Docker Images", "config": { From 193aa0987bf557f568f187125464ccda909be774 Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 12:24:43 +0100 Subject: [PATCH 15/40] add bumping commit to release draft --- .evergreen/evergreen.yml.in | 3 +++ packages/build/src/npm-packages/bump.ts | 10 ++++++---- packages/build/src/npm-packages/index.ts | 2 +- packages/build/src/release.ts | 8 ++++---- 4 files changed, 14 insertions(+), 9 deletions(-) diff --git a/.evergreen/evergreen.yml.in b/.evergreen/evergreen.yml.in index f0c7ba969f..3a8b14b816 100644 --- a/.evergreen/evergreen.yml.in +++ b/.evergreen/evergreen.yml.in @@ -917,6 +917,9 @@ functions: { export NODE_JS_VERSION=${node_js_version} source .evergreen/setup-env.sh + npm run evergreen-release bump + git add . + git commit --no-allow-empty -m "chore(release): bump to prepare for mongosh release" npm run evergreen-release draft } diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index a06787feba..544b605bdc 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -9,8 +9,10 @@ import { promises as fs } from 'fs'; import path from 'path'; import { getPackagesInTopologicalOrder } from '@mongodb-js/monorepo-tools'; -/** This bumps only the main mongosh release packages to the set version. */ -export async function bumpMongosh(version: string): Promise { +/** Bumps only the main mongosh release packages to the set version. */ +export async function bumpMongoshReleasePackages( + version: string +): Promise { console.info(`mongosh: Bumping package versions to ${version}`); const monorepoRootPath = path.resolve(__dirname, '..', '..', '..', '..'); const packages = await getPackagesInTopologicalOrder(monorepoRootPath); @@ -51,8 +53,8 @@ export async function bumpMongosh(version: string): Promise { } } -/** Bump packages without setting a new version of mongosh. */ -export function bumpNpmPackages() { +/** Bumps independent packages without setting a new version of mongosh. */ +export function bumpIndependentPackages() { spawnSync('bump-monorepo-packages', [], { stdio: 'inherit', cwd: PROJECT_ROOT, diff --git a/packages/build/src/npm-packages/index.ts b/packages/build/src/npm-packages/index.ts index 3509775210..272f540d5c 100644 --- a/packages/build/src/npm-packages/index.ts +++ b/packages/build/src/npm-packages/index.ts @@ -1,2 +1,2 @@ -export { bumpNpmPackages } from './bump'; +export { bumpIndependentPackages } from './bump'; export { publishNpmPackages } from './publish'; diff --git a/packages/build/src/release.ts b/packages/build/src/release.ts index 50241a0b41..ded54215df 100644 --- a/packages/build/src/release.ts +++ b/packages/build/src/release.ts @@ -14,7 +14,7 @@ import { } from './evergreen'; import { GithubRepo } from '@mongodb-js/devtools-github-repo'; import { publishToHomebrew } from './homebrew'; -import { bumpNpmPackages, publishNpmPackages } from './npm-packages'; +import { bumpIndependentPackages, publishNpmPackages } from './npm-packages'; import { runPackage } from './packaging'; import { runDraft } from './run-draft'; import { runPublish } from './run-publish'; @@ -22,7 +22,7 @@ import { runUpload } from './run-upload'; import { runSign } from './packaging/run-sign'; import { runDownloadAndListArtifacts } from './run-download-and-list-artifacts'; import { runDownloadCryptLibrary } from './packaging/run-download-crypt-library'; -import { bumpMongosh } from './npm-packages/bump'; +import { bumpMongoshReleasePackages } from './npm-packages/bump'; export type ReleaseCommand = | 'bump' @@ -56,8 +56,8 @@ export async function release( ); if (command === 'bump') { - await bumpMongosh(config.version); - bumpNpmPackages(); + bumpIndependentPackages(); + await bumpMongoshReleasePackages(config.version); return; } From a19f40895d3d20f56c1b9c64695941a97aed5fbc Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 12:30:41 +0100 Subject: [PATCH 16/40] set all to 2.3.7 --- package-lock.json | 10 +++++----- packages/cli-repl/package.json | 2 +- packages/connectivity-tests/package.json | 2 +- packages/e2e-tests/package.json | 2 +- packages/mongosh/package.json | 4 ++-- 5 files changed, 10 insertions(+), 10 deletions(-) diff --git a/package-lock.json b/package-lock.json index 72fca0de67..6123da22c5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29394,7 +29394,7 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", @@ -29481,7 +29481,7 @@ "version": "2.3.7", "license": "Apache-2.0", "devDependencies": { - "mongosh": "0.0.0-dev.0" + "mongosh": "2.3.7" } }, "packages/e2e-tests": { @@ -29490,7 +29490,7 @@ "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "0.0.0-dev.0", + "@mongosh/cli-repl": "2.3.7", "@mongosh/service-provider-core": "2.3.7", "strip-ansi": "^6.0.0" }, @@ -29816,10 +29816,10 @@ } }, "packages/mongosh": { - "version": "0.0.0-dev.0", + "version": "2.3.7", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0" + "@mongosh/cli-repl": "2.3.7" }, "bin": { "mongosh": "bin/mongosh.js" diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index d2d30d59e4..cc6810437b 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 183e562860..0ecc111104 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "0.0.0-dev.0" + "mongosh": "2.3.7" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 8b1b65f7fe..a359d9a07c 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -27,7 +27,7 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0", + "@mongosh/cli-repl": "2.3.7", "@mongosh/service-provider-core": "2.3.7", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index dc77b76af1..d599c5f393 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "0.0.0-dev.0", + "version": "2.3.7", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0" + "@mongosh/cli-repl": "2.3.7" } } From 7ec404984d647ec1d5fb9bcf7ca4bdeff32aaf2c Mon Sep 17 00:00:00 2001 From: Gagik Amaryan Date: Tue, 31 Dec 2024 13:18:56 +0100 Subject: [PATCH 17/40] Update .github/workflows/release-packages.yml Co-authored-by: Nikola Irinchev --- .github/workflows/release-packages.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 849fcc2a91..70e19e1c0b 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -18,14 +18,11 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # don't checkout a detatched HEAD ref: ${{ github.head_ref }} - # this is important so git log has the whole history - fetch-depth: '0' - - name: Setup git run: | git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" From 67c690de53485e9e8dd9c380246185ac8e73dfdd Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 13:19:18 +0100 Subject: [PATCH 18/40] fix removed compass skip --- .github/workflows/bump-packages.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/bump-packages.yml b/.github/workflows/bump-packages.yml index a98adf2ef7..0f7348bd8c 100644 --- a/.github/workflows/bump-packages.yml +++ b/.github/workflows/bump-packages.yml @@ -39,7 +39,6 @@ jobs: - name: Bump packages env: LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump package versions" - SKIP_BUMP_PACKAGES: "mongodb-compass" run: | npm run bump-packages git add . From 9c4b387cc73de9f006390cf93b7701f0d6e4f8bf Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 13:55:30 +0100 Subject: [PATCH 19/40] switch to use app token --- .github/workflows/release-packages.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-packages.yml index 70e19e1c0b..2159589572 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-packages.yml @@ -18,16 +18,18 @@ jobs: runs-on: ubuntu-latest steps: + - name: Create Github App Token + uses: mongodb-js/devtools-shared/actions/setup-bot-token@main + id: app-token + with: + app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} + private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} + - uses: actions/checkout@v4 with: # don't checkout a detatched HEAD ref: ${{ github.head_ref }} - - name: Setup git - run: | - git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com" - git config --local user.name "github-actions[bot]" - - name: "Use Node.js 14" uses: actions/setup-node@v3 with: From 4f4336987063450c6c05914f9c56eba1e6dec6dc Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 14:14:38 +0100 Subject: [PATCH 20/40] use bump in install script --- .evergreen/evergreen.yml.in | 1 - .evergreen/install-npm-deps.sh | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.evergreen/evergreen.yml.in b/.evergreen/evergreen.yml.in index 3a8b14b816..a36506f61e 100644 --- a/.evergreen/evergreen.yml.in +++ b/.evergreen/evergreen.yml.in @@ -917,7 +917,6 @@ functions: { export NODE_JS_VERSION=${node_js_version} source .evergreen/setup-env.sh - npm run evergreen-release bump git add . git commit --no-allow-empty -m "chore(release): bump to prepare for mongosh release" npm run evergreen-release draft diff --git a/.evergreen/install-npm-deps.sh b/.evergreen/install-npm-deps.sh index daca8211eb..97cffcc7e9 100644 --- a/.evergreen/install-npm-deps.sh +++ b/.evergreen/install-npm-deps.sh @@ -31,5 +31,7 @@ npm run mark-ci-required-optional-dependencies # along with its types, but npm wouldn't try and compile the addon (npm ci && test -e node_modules/mongodb-client-encryption) || npm ci --ignore-scripts +npm run evergreen-release bump + echo "npm packages after installation" npm ls || true From c9fd3565ead55626a4f39606ddbe845781986808 Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 31 Dec 2024 15:19:42 +0100 Subject: [PATCH 21/40] remove bump step --- .evergreen/install-npm-deps.sh | 2 -- 1 file changed, 2 deletions(-) diff --git a/.evergreen/install-npm-deps.sh b/.evergreen/install-npm-deps.sh index 97cffcc7e9..daca8211eb 100644 --- a/.evergreen/install-npm-deps.sh +++ b/.evergreen/install-npm-deps.sh @@ -31,7 +31,5 @@ npm run mark-ci-required-optional-dependencies # along with its types, but npm wouldn't try and compile the addon (npm ci && test -e node_modules/mongodb-client-encryption) || npm ci --ignore-scripts -npm run evergreen-release bump - echo "npm packages after installation" npm ls || true From 285eda647e98e352dec0af735df55e9a8fa3ccf2 Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 6 Jan 2025 12:09:38 +0100 Subject: [PATCH 22/40] align with future release move changes --- ...ckages.yml => bump-auxiliary-packages.yml} | 12 ++-- ...ges.yml => release-auxiliary-packages.yml} | 8 +-- package-lock.json | 4 +- package.json | 12 ++-- packages/build/package.json | 4 ++ packages/build/src/config/config.ts | 1 + packages/build/src/index.ts | 1 + packages/build/src/npm-packages/bump.ts | 14 +++-- packages/build/src/npm-packages/constants.ts | 4 +- .../build/src/npm-packages/publish.spec.ts | 2 + packages/build/src/npm-packages/publish.ts | 61 ++++++++++++++----- packages/build/src/release.ts | 4 +- packages/build/src/run-publish.ts | 2 +- 13 files changed, 85 insertions(+), 44 deletions(-) rename .github/workflows/{bump-packages.yml => bump-auxiliary-packages.yml} (79%) rename .github/workflows/{release-packages.yml => release-auxiliary-packages.yml} (87%) diff --git a/.github/workflows/bump-packages.yml b/.github/workflows/bump-auxiliary-packages.yml similarity index 79% rename from .github/workflows/bump-packages.yml rename to .github/workflows/bump-auxiliary-packages.yml index 0f7348bd8c..caa0024b56 100644 --- a/.github/workflows/bump-packages.yml +++ b/.github/workflows/bump-auxiliary-packages.yml @@ -1,4 +1,4 @@ -name: Bump packages +name: Bump auxiliary package versions on: workflow_dispatch: push: @@ -38,9 +38,9 @@ jobs: - name: Bump packages env: - LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump package versions" + LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump auxiliary package versions" run: | - npm run bump-packages + npm run bump-auxiliary git add . git commit --no-allow-empty -m "$LAST_BUMP_COMMIT_MESSAGE" || true @@ -48,9 +48,9 @@ jobs: uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5 with: token: ${{ steps.app-token.outputs.token }} - commit-message: "chore(release): bump package versions" - branch: ci/bump-packages - title: "chore(release): bump package versions" + commit-message: "chore(release): bump auxiliary package versions" + branch: ci/bump-auxiliary-packages + title: "chore(release): bump auxiliary package versions" labels: no-title-validation body: | - Bump package versions diff --git a/.github/workflows/release-packages.yml b/.github/workflows/release-auxiliary-packages.yml similarity index 87% rename from .github/workflows/release-packages.yml rename to .github/workflows/release-auxiliary-packages.yml index 2159589572..8e825b60e6 100644 --- a/.github/workflows/release-packages.yml +++ b/.github/workflows/release-auxiliary-packages.yml @@ -1,4 +1,4 @@ -name: Publish +name: Publish Auxiliary Packages on: # NOTE: avoid using the manual execution unless is the only way to fix some issue, # rather retry failed jobs in case of flakes. The manual execution can potentially @@ -53,9 +53,3 @@ jobs: git update-index --assume-unchanged .npmrc npm run publish-packages - - name: "Publish tags" - run: | - npx lerna list -a --json | \ - jq -r '.[] | .name + "@" + .version' | \ - xargs -i sh -c "git tag -a {} -m {} || true" - git push --follow-tags diff --git a/package-lock.json b/package-lock.json index 6123da22c5..e177e74ec5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -66,7 +66,7 @@ "nyc": "^15.1.0", "pkg-up": "^3.1.0", "rimraf": "^3.0.2", - "semver": "^7.5.4", + "semver": "^7.6.3", "sinon": "^7.5.0", "sinon-chai": "^3.5.0", "terser-webpack-plugin": "^4.2.3", @@ -5847,7 +5847,7 @@ "toposort": "^2.0.2" }, "bin": { - "bump-monorepo-packages": "bin/bump-packages.js", + "bump-monorepo-packages": "bin/bump-auxiliary.js", "depalign": "bin/depalign.js", "monorepo-where": "bin/where.js", "precommit": "bin/precommit.js" diff --git a/package.json b/package.json index 5f7bc42db2..af12edefb6 100644 --- a/package.json +++ b/package.json @@ -71,8 +71,8 @@ "prepare": "husky", "precommit": "precommit", "preinstall": "node scripts/sort-workspaces.js", - "bump-packages": "npm run bump-packages --workspace @mongosh/build", - "publish-packages": "lerna publish from-package --no-verify-access --no-push --no-git-tag-version --yes" + "bump-auxiliary": "npm run bump-auxiliary --workspace @mongosh/build", + "publish-auxiliary": "npm run publish-auxiliary --workspace @mongosh/build" }, "config": { "unsafe-perm": true @@ -100,6 +100,7 @@ "@babel/compat-data": "^7.9.0", "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/sbom-tools": "^0.7.0", + "@pkgjs/nv": "^0.2.2", "@types/chai": "^4.2.5", "@types/mocha": "^5.2.7", "@types/node": "^14.14.6", @@ -109,6 +110,7 @@ "@types/which": "^1.3.2", "chai": "^4.2.0", "cross-env": "^6.0.3", + "depcheck": "^1.4.7", "duplexpair": "^1.0.2", "find-up": "^5.0.0", "glob": "^10.3.12", @@ -120,7 +122,7 @@ "nyc": "^15.1.0", "pkg-up": "^3.1.0", "rimraf": "^3.0.2", - "semver": "^7.5.4", + "semver": "^7.6.3", "sinon": "^7.5.0", "sinon-chai": "^3.5.0", "terser-webpack-plugin": "^4.2.3", @@ -132,9 +134,7 @@ "webpack-bundle-analyzer": "^4.7.0", "webpack-cli": "^4.3.1", "which": "^2.0.2", - "yaml": "^1.10.0", - "depcheck": "^1.4.7", - "@pkgjs/nv": "^0.2.2" + "yaml": "^1.10.0" }, "optionalDependencies": { "lerna": "^8.1.8" diff --git a/packages/build/package.json b/packages/build/package.json index 8f2830de78..774f9cb8c7 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -26,6 +26,10 @@ "evergreen-release": "ts-node -r ../../scripts/import-expansions.js src/index.ts", "release": "ts-node src/index.ts trigger-release", "prettier": "prettier", + "bump": "ts-node src/index.ts bump", + "publish": "ts-node src/index.ts publish", + "bump-auxiliary": "ts-node src/index.ts bump --auxiliary", + "publish-auxiliary": "ts-node src/index.ts publish --auxiliary", "reformat": "npm run prettier -- --write . && npm run eslint --fix" }, "license": "Apache-2.0", diff --git a/packages/build/src/config/config.ts b/packages/build/src/config/config.ts index 4502f48ab4..0e1b6daf25 100644 --- a/packages/build/src/config/config.ts +++ b/packages/build/src/config/config.ts @@ -46,4 +46,5 @@ export interface Config { artifactUrlExtraTag?: string; manpage?: ManPageConfig; isDryRun?: boolean; + isAuxiliaryOnly?: boolean; } diff --git a/packages/build/src/index.ts b/packages/build/src/index.ts index 064557fa63..496226a9fb 100644 --- a/packages/build/src/index.ts +++ b/packages/build/src/index.ts @@ -59,6 +59,7 @@ if (require.main === module) { } config.isDryRun ||= process.argv.includes('--dry-run'); + config.isAuxiliaryOnly ||= process.argv.includes('--auxiliary'); await release(command, config); } diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index 544b605bdc..dde1ba7194 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -1,6 +1,6 @@ import { spawnSync } from '../helpers'; import { - IGNORE_BUMP_PACKAGES, + MONGOSH_RELEASE_ONLY_PACKAGES, MONGOSH_RELEASE_PACKAGES, PROJECT_ROOT, } from './constants'; @@ -10,9 +10,13 @@ import path from 'path'; import { getPackagesInTopologicalOrder } from '@mongodb-js/monorepo-tools'; /** Bumps only the main mongosh release packages to the set version. */ -export async function bumpMongoshReleasePackages( - version: string -): Promise { +export async function bumpMongoshReleasePackages(): Promise { + const version = process.env.MONGOSH_RELEASE_VERSION; + if (!version) { + throw new Error( + 'MONGOSH_RELEASE_VERSION version not specified during mongosh bump' + ); + } console.info(`mongosh: Bumping package versions to ${version}`); const monorepoRootPath = path.resolve(__dirname, '..', '..', '..', '..'); const packages = await getPackagesInTopologicalOrder(monorepoRootPath); @@ -62,7 +66,7 @@ export function bumpIndependentPackages() { env: { ...process.env, SKIP_BUMP_PACKAGES: [ - ...IGNORE_BUMP_PACKAGES, + ...MONGOSH_RELEASE_ONLY_PACKAGES, ...MONGOSH_RELEASE_PACKAGES, ].join(','), }, diff --git a/packages/build/src/npm-packages/constants.ts b/packages/build/src/npm-packages/constants.ts index 1d742f920a..54d331230a 100644 --- a/packages/build/src/npm-packages/constants.ts +++ b/packages/build/src/npm-packages/constants.ts @@ -11,8 +11,8 @@ export const LERNA_BIN = path.resolve( /** Packages which get bumped only as part of the mongosh release. */ export const MONGOSH_RELEASE_PACKAGES = ['mongosh', '@mongosh/cli-repl']; -/** Packages which always get ignored when doing a release or bump */ -export const IGNORE_BUMP_PACKAGES = [ +/** Packages which always get excluded when doing a release or bump */ +export const EXCLUDE_RELEASE_PACKAGES = [ '@mongodb-js/eslint-config-mongosh', '@mongodb-js/tsconfig-mongosh', ]; diff --git a/packages/build/src/npm-packages/publish.spec.ts b/packages/build/src/npm-packages/publish.spec.ts index 08815dc499..ab28a8ce8d 100644 --- a/packages/build/src/npm-packages/publish.spec.ts +++ b/packages/build/src/npm-packages/publish.spec.ts @@ -30,6 +30,7 @@ describe('npm-packages publishNpmPackages', function () { listNpmPackages.returns(packages); publishNpmPackages( + false, false, listNpmPackages, markBumpedFilesAsAssumeUnchanged, @@ -69,6 +70,7 @@ describe('npm-packages publishNpmPackages', function () { try { publishNpmPackages( + false, false, listNpmPackages, markBumpedFilesAsAssumeUnchanged, diff --git a/packages/build/src/npm-packages/publish.ts b/packages/build/src/npm-packages/publish.ts index 624c457604..6165b0d193 100644 --- a/packages/build/src/npm-packages/publish.ts +++ b/packages/build/src/npm-packages/publish.ts @@ -1,17 +1,40 @@ import path from 'path'; -import { LERNA_BIN, PROJECT_ROOT } from './constants'; +import { + EXCLUDE_RELEASE_PACKAGES, + LERNA_BIN, + MONGOSH_RELEASE_PACKAGES, + PROJECT_ROOT, +} from './constants'; import type { LernaPackageDescription } from './list'; import { listNpmPackages as listNpmPackagesFn } from './list'; import { spawnSync } from '../helpers/spawn-sync'; +import type { SpawnSyncOptionsWithStringEncoding } from 'child_process'; export function publishNpmPackages( - isDryRun: boolean, + isDryRun = false, + isAuxiliaryOnly = false, listNpmPackages: typeof listNpmPackagesFn = listNpmPackagesFn, markBumpedFilesAsAssumeUnchangedFn: typeof markBumpedFilesAsAssumeUnchanged = markBumpedFilesAsAssumeUnchanged, spawnSyncFn: typeof spawnSync = spawnSync ): void { - const packages = listNpmPackages(); + const commandOptions: SpawnSyncOptionsWithStringEncoding = { + stdio: 'inherit', + cwd: PROJECT_ROOT, + encoding: 'utf8', + env: { + ...process.env, + ...(isDryRun ? { npm_config_dry_run: 'true' } : {}), + }, + }; + let packages = listNpmPackages().filter( + (packageConfig) => !EXCLUDE_RELEASE_PACKAGES.includes(packageConfig.name) + ); + if (isAuxiliaryOnly) { + packages = packages.filter( + (packageConfig) => !MONGOSH_RELEASE_PACKAGES.includes(packageConfig.name) + ); + } // Lerna requires a clean repository for a publish from-package (--force-publish does not have any effect here) // we use git update-index --assume-unchanged on files we know have been bumped markBumpedFilesAsAssumeUnchangedFn(packages, true); @@ -23,26 +46,36 @@ export function publishNpmPackages( 'from-package', '--no-private', '--no-changelog', - '--no-push', '--exact', - '--no-git-tag-version', + // During mongosh releases we handle the tags manually + ...(!isAuxiliaryOnly ? ['--no-git-tag-version', '--no-push'] : []), '--force-publish', '--yes', '--no-verify-access', ], - { - stdio: 'inherit', - cwd: PROJECT_ROOT, - encoding: 'utf8', - env: { - ...process.env, - ...(isDryRun ? { npm_config_dry_run: 'true' } : {}), - }, - } + commandOptions ); } finally { markBumpedFilesAsAssumeUnchangedFn(packages, false); } + + if (!isAuxiliaryOnly) { + const mongoshVersion = packages.find( + (packageConfig) => packageConfig.name === 'mongosh' + )?.version; + + if (!mongoshVersion) { + throw new Error('Mongosh package not found'); + } + + spawnSync( + 'git', + ['tag', '-a', mongoshVersion, '-m', mongoshVersion], + commandOptions + ); + + spawnSync('git', ['push', '--follow-tags'], commandOptions); + } } export function markBumpedFilesAsAssumeUnchanged( diff --git a/packages/build/src/release.ts b/packages/build/src/release.ts index ded54215df..ccd7547a27 100644 --- a/packages/build/src/release.ts +++ b/packages/build/src/release.ts @@ -57,7 +57,9 @@ export async function release( if (command === 'bump') { bumpIndependentPackages(); - await bumpMongoshReleasePackages(config.version); + if (!config.isAuxiliaryOnly) { + await bumpMongoshReleasePackages(); + } return; } diff --git a/packages/build/src/run-publish.ts b/packages/build/src/run-publish.ts index 4c8eaeb6c3..c057fc4cca 100644 --- a/packages/build/src/run-publish.ts +++ b/packages/build/src/run-publish.ts @@ -81,7 +81,7 @@ export async function runPublish( // ensures the segment api key to be present in the published packages await writeBuildInfo(config, 'packaged'); - publishNpmPackages(!!config.isDryRun); + publishNpmPackages(config.isDryRun, config.isAuxiliaryOnly); await publishToHomebrew( homebrewCoreGithubRepo, From 69c8d6ea303d7d6244e2aa94c91d7c13b57eac5b Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 6 Jan 2025 13:27:20 +0100 Subject: [PATCH 23/40] shorter --- .github/workflows/bump-auxiliary-packages.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/bump-auxiliary-packages.yml b/.github/workflows/bump-auxiliary-packages.yml index caa0024b56..9ca9006206 100644 --- a/.github/workflows/bump-auxiliary-packages.yml +++ b/.github/workflows/bump-auxiliary-packages.yml @@ -1,4 +1,4 @@ -name: Bump auxiliary package versions +name: Bump auxiliary packages on: workflow_dispatch: push: @@ -38,7 +38,7 @@ jobs: - name: Bump packages env: - LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump auxiliary package versions" + LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump auxiliary packages" run: | npm run bump-auxiliary git add . @@ -48,9 +48,9 @@ jobs: uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5 with: token: ${{ steps.app-token.outputs.token }} - commit-message: "chore(release): bump auxiliary package versions" + commit-message: "chore(release): bump auxiliary packages" branch: ci/bump-auxiliary-packages - title: "chore(release): bump auxiliary package versions" + title: "chore(release): bump auxiliary packages" labels: no-title-validation body: | - Bump package versions From 68e3e62d049f23858a4b9572fa78613c0fbf2fbc Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 6 Jan 2025 14:09:37 +0100 Subject: [PATCH 24/40] fix naming --- .github/workflows/bump-auxiliary-packages.yml | 4 ++-- ...-auxiliary-packages.yml => publish-auxiliary-packages.yml} | 4 ++-- packages/build/src/npm-packages/bump.ts | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) rename .github/workflows/{release-auxiliary-packages.yml => publish-auxiliary-packages.yml} (95%) diff --git a/.github/workflows/bump-auxiliary-packages.yml b/.github/workflows/bump-auxiliary-packages.yml index 9ca9006206..469b648690 100644 --- a/.github/workflows/bump-auxiliary-packages.yml +++ b/.github/workflows/bump-auxiliary-packages.yml @@ -1,4 +1,4 @@ -name: Bump auxiliary packages +name: Bump Auxiliary Packages on: workflow_dispatch: push: @@ -53,4 +53,4 @@ jobs: title: "chore(release): bump auxiliary packages" labels: no-title-validation body: | - - Bump package versions + - Bumps auxiliary package versions. Merging will trigger a release of these packages. diff --git a/.github/workflows/release-auxiliary-packages.yml b/.github/workflows/publish-auxiliary-packages.yml similarity index 95% rename from .github/workflows/release-auxiliary-packages.yml rename to .github/workflows/publish-auxiliary-packages.yml index 8e825b60e6..56904bbd01 100644 --- a/.github/workflows/release-auxiliary-packages.yml +++ b/.github/workflows/publish-auxiliary-packages.yml @@ -13,7 +13,7 @@ jobs: publish: if: | github.event_name == 'workflow_dispatch' || - startsWith(github.event.head_commit.message, 'chore(release): bump package versions') + startsWith(github.event.head_commit.message, 'chore(release): bump auxiliary package versions') runs-on: ubuntu-latest @@ -51,5 +51,5 @@ jobs: npm config list echo "Publishing packages as $(npm whoami)" git update-index --assume-unchanged .npmrc - npm run publish-packages + npm run publish-auxiliary diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index dde1ba7194..c7f9996f75 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -1,6 +1,6 @@ import { spawnSync } from '../helpers'; import { - MONGOSH_RELEASE_ONLY_PACKAGES, + EXCLUDE_RELEASE_PACKAGES, MONGOSH_RELEASE_PACKAGES, PROJECT_ROOT, } from './constants'; @@ -66,7 +66,7 @@ export function bumpIndependentPackages() { env: { ...process.env, SKIP_BUMP_PACKAGES: [ - ...MONGOSH_RELEASE_ONLY_PACKAGES, + ...EXCLUDE_RELEASE_PACKAGES, ...MONGOSH_RELEASE_PACKAGES, ].join(','), }, From ae5b5d4ae28baefec07c206bb836e9fd2476011d Mon Sep 17 00:00:00 2001 From: Gagik Amaryan Date: Mon, 6 Jan 2025 16:40:30 +0100 Subject: [PATCH 25/40] Update .github/workflows/publish-auxiliary-packages.yml Co-authored-by: Anna Henningsen --- .github/workflows/publish-auxiliary-packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-auxiliary-packages.yml b/.github/workflows/publish-auxiliary-packages.yml index 56904bbd01..aa6c5b7801 100644 --- a/.github/workflows/publish-auxiliary-packages.yml +++ b/.github/workflows/publish-auxiliary-packages.yml @@ -30,7 +30,7 @@ jobs: # don't checkout a detatched HEAD ref: ${{ github.head_ref }} - - name: "Use Node.js 14" + - name: "Use Node.js 20" uses: actions/setup-node@v3 with: node-version: 20.16.0 From fc9a4066aa7bcc2c4e1962efccb396fb80103d9c Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 6 Jan 2025 16:25:47 +0100 Subject: [PATCH 26/40] re-add bump --- .evergreen/install-npm-deps.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.evergreen/install-npm-deps.sh b/.evergreen/install-npm-deps.sh index daca8211eb..97cffcc7e9 100644 --- a/.evergreen/install-npm-deps.sh +++ b/.evergreen/install-npm-deps.sh @@ -31,5 +31,7 @@ npm run mark-ci-required-optional-dependencies # along with its types, but npm wouldn't try and compile the addon (npm ci && test -e node_modules/mongodb-client-encryption) || npm ci --ignore-scripts +npm run evergreen-release bump + echo "npm packages after installation" npm ls || true From 72f04bdd6414c154f4f30beaf79bd1ce12709a51 Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 6 Jan 2025 16:42:44 +0100 Subject: [PATCH 27/40] Apply most changes from review --- .evergreen/evergreen.yml.in | 4 ++-- .../workflows/publish-auxiliary-packages.yml | 3 +-- packages/build/src/config/config.ts | 2 +- packages/build/src/index.ts | 2 +- packages/build/src/npm-packages/bump.ts | 4 ++-- packages/build/src/npm-packages/index.ts | 2 +- packages/build/src/npm-packages/publish.ts | 20 ++++++++++--------- packages/build/src/release.ts | 6 +++--- packages/build/src/run-publish.ts | 2 +- 9 files changed, 23 insertions(+), 22 deletions(-) diff --git a/.evergreen/evergreen.yml.in b/.evergreen/evergreen.yml.in index a36506f61e..8ac30e3353 100644 --- a/.evergreen/evergreen.yml.in +++ b/.evergreen/evergreen.yml.in @@ -917,9 +917,9 @@ functions: { export NODE_JS_VERSION=${node_js_version} source .evergreen/setup-env.sh - git add . - git commit --no-allow-empty -m "chore(release): bump to prepare for mongosh release" npm run evergreen-release draft + git add . + git commit --no-allow-empty -m "chore(release): bump to prepare for mongosh release" } release_publish_download_and_list_artifacts: diff --git a/.github/workflows/publish-auxiliary-packages.yml b/.github/workflows/publish-auxiliary-packages.yml index aa6c5b7801..4f2bbd94fe 100644 --- a/.github/workflows/publish-auxiliary-packages.yml +++ b/.github/workflows/publish-auxiliary-packages.yml @@ -47,9 +47,8 @@ jobs: env: NPM_TOKEN: ${{ secrets.DEVTOOLSBOT_NPM_TOKEN }} run: | - echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> .npmrc + echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" >> ~/.npmrc npm config list echo "Publishing packages as $(npm whoami)" - git update-index --assume-unchanged .npmrc npm run publish-auxiliary diff --git a/packages/build/src/config/config.ts b/packages/build/src/config/config.ts index 0e1b6daf25..47d376aa9b 100644 --- a/packages/build/src/config/config.ts +++ b/packages/build/src/config/config.ts @@ -46,5 +46,5 @@ export interface Config { artifactUrlExtraTag?: string; manpage?: ManPageConfig; isDryRun?: boolean; - isAuxiliaryOnly?: boolean; + useAuxiliaryPackagesOnly?: boolean; } diff --git a/packages/build/src/index.ts b/packages/build/src/index.ts index 496226a9fb..665e90d946 100644 --- a/packages/build/src/index.ts +++ b/packages/build/src/index.ts @@ -59,7 +59,7 @@ if (require.main === module) { } config.isDryRun ||= process.argv.includes('--dry-run'); - config.isAuxiliaryOnly ||= process.argv.includes('--auxiliary'); + config.useAuxiliaryPackagesOnly ||= process.argv.includes('--auxiliary'); await release(command, config); } diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index c7f9996f75..e55f5081a0 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -57,8 +57,8 @@ export async function bumpMongoshReleasePackages(): Promise { } } -/** Bumps independent packages without setting a new version of mongosh. */ -export function bumpIndependentPackages() { +/** Bumps auxiliary packages without setting a new version of mongosh. */ +export function bumpAuxiliaryPackages() { spawnSync('bump-monorepo-packages', [], { stdio: 'inherit', cwd: PROJECT_ROOT, diff --git a/packages/build/src/npm-packages/index.ts b/packages/build/src/npm-packages/index.ts index 272f540d5c..57d33567a8 100644 --- a/packages/build/src/npm-packages/index.ts +++ b/packages/build/src/npm-packages/index.ts @@ -1,2 +1,2 @@ -export { bumpIndependentPackages } from './bump'; +export { bumpAuxiliaryPackages } from './bump'; export { publishNpmPackages } from './publish'; diff --git a/packages/build/src/npm-packages/publish.ts b/packages/build/src/npm-packages/publish.ts index 6165b0d193..0d278dcc44 100644 --- a/packages/build/src/npm-packages/publish.ts +++ b/packages/build/src/npm-packages/publish.ts @@ -7,15 +7,15 @@ import { } from './constants'; import type { LernaPackageDescription } from './list'; import { listNpmPackages as listNpmPackagesFn } from './list'; -import { spawnSync } from '../helpers/spawn-sync'; +import { spawnSync as spawnSyncFn } from '../helpers/spawn-sync'; import type { SpawnSyncOptionsWithStringEncoding } from 'child_process'; export function publishNpmPackages( isDryRun = false, - isAuxiliaryOnly = false, + useAuxiliaryPackagesOnly = false, listNpmPackages: typeof listNpmPackagesFn = listNpmPackagesFn, markBumpedFilesAsAssumeUnchangedFn: typeof markBumpedFilesAsAssumeUnchanged = markBumpedFilesAsAssumeUnchanged, - spawnSyncFn: typeof spawnSync = spawnSync + spawnSync: typeof spawnSyncFn = spawnSyncFn ): void { const commandOptions: SpawnSyncOptionsWithStringEncoding = { stdio: 'inherit', @@ -30,7 +30,7 @@ export function publishNpmPackages( (packageConfig) => !EXCLUDE_RELEASE_PACKAGES.includes(packageConfig.name) ); - if (isAuxiliaryOnly) { + if (useAuxiliaryPackagesOnly) { packages = packages.filter( (packageConfig) => !MONGOSH_RELEASE_PACKAGES.includes(packageConfig.name) ); @@ -39,7 +39,7 @@ export function publishNpmPackages( // we use git update-index --assume-unchanged on files we know have been bumped markBumpedFilesAsAssumeUnchangedFn(packages, true); try { - spawnSyncFn( + spawnSync( LERNA_BIN, [ 'publish', @@ -48,7 +48,9 @@ export function publishNpmPackages( '--no-changelog', '--exact', // During mongosh releases we handle the tags manually - ...(!isAuxiliaryOnly ? ['--no-git-tag-version', '--no-push'] : []), + ...(!useAuxiliaryPackagesOnly + ? ['--no-git-tag-version', '--no-push'] + : []), '--force-publish', '--yes', '--no-verify-access', @@ -59,7 +61,7 @@ export function publishNpmPackages( markBumpedFilesAsAssumeUnchangedFn(packages, false); } - if (!isAuxiliaryOnly) { + if (!useAuxiliaryPackagesOnly) { const mongoshVersion = packages.find( (packageConfig) => packageConfig.name === 'mongosh' )?.version; @@ -81,7 +83,7 @@ export function publishNpmPackages( export function markBumpedFilesAsAssumeUnchanged( packages: LernaPackageDescription[], assumeUnchanged: boolean, - spawnSyncFn: typeof spawnSync = spawnSync + spawnSync: typeof spawnSyncFn = spawnSyncFn ): void { const filesToAssume = [ path.resolve(PROJECT_ROOT, 'lerna.json'), @@ -93,7 +95,7 @@ export function markBumpedFilesAsAssumeUnchanged( } for (const f of filesToAssume) { - spawnSyncFn( + spawnSync( 'git', [ 'update-index', diff --git a/packages/build/src/release.ts b/packages/build/src/release.ts index ccd7547a27..120a0929c9 100644 --- a/packages/build/src/release.ts +++ b/packages/build/src/release.ts @@ -14,7 +14,7 @@ import { } from './evergreen'; import { GithubRepo } from '@mongodb-js/devtools-github-repo'; import { publishToHomebrew } from './homebrew'; -import { bumpIndependentPackages, publishNpmPackages } from './npm-packages'; +import { bumpAuxiliaryPackages, publishNpmPackages } from './npm-packages'; import { runPackage } from './packaging'; import { runDraft } from './run-draft'; import { runPublish } from './run-publish'; @@ -56,8 +56,8 @@ export async function release( ); if (command === 'bump') { - bumpIndependentPackages(); - if (!config.isAuxiliaryOnly) { + bumpAuxiliaryPackages(); + if (!config.useAuxiliaryPackagesOnly) { await bumpMongoshReleasePackages(); } return; diff --git a/packages/build/src/run-publish.ts b/packages/build/src/run-publish.ts index c057fc4cca..3fb0ae4fb9 100644 --- a/packages/build/src/run-publish.ts +++ b/packages/build/src/run-publish.ts @@ -81,7 +81,7 @@ export async function runPublish( // ensures the segment api key to be present in the published packages await writeBuildInfo(config, 'packaged'); - publishNpmPackages(config.isDryRun, config.isAuxiliaryOnly); + publishNpmPackages(config.isDryRun, config.useAuxiliaryPackagesOnly); await publishToHomebrew( homebrewCoreGithubRepo, From 69baf665b37bda9a0adbe8d2045f862fd905caf5 Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 8 Jan 2025 08:54:14 +0100 Subject: [PATCH 28/40] use npx and use tags in all cases --- packages/build/src/npm-packages/bump.ts | 2 +- packages/build/src/npm-packages/publish.ts | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index e55f5081a0..21bdf850d3 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -59,7 +59,7 @@ export async function bumpMongoshReleasePackages(): Promise { /** Bumps auxiliary packages without setting a new version of mongosh. */ export function bumpAuxiliaryPackages() { - spawnSync('bump-monorepo-packages', [], { + spawnSync('npx', ['bump-monorepo-packages'], { stdio: 'inherit', cwd: PROJECT_ROOT, encoding: 'utf8', diff --git a/packages/build/src/npm-packages/publish.ts b/packages/build/src/npm-packages/publish.ts index 0d278dcc44..9ba47f1829 100644 --- a/packages/build/src/npm-packages/publish.ts +++ b/packages/build/src/npm-packages/publish.ts @@ -47,10 +47,6 @@ export function publishNpmPackages( '--no-private', '--no-changelog', '--exact', - // During mongosh releases we handle the tags manually - ...(!useAuxiliaryPackagesOnly - ? ['--no-git-tag-version', '--no-push'] - : []), '--force-publish', '--yes', '--no-verify-access', From 72cde487f422fc542e9c61f83c15ad92ac573cbc Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 8 Jan 2025 13:10:14 +0100 Subject: [PATCH 29/40] use monorepo tools as dependency --- package-lock.json | 120 +----------------------- packages/build/package.json | 2 +- packages/build/src/npm-packages/bump.ts | 2 +- 3 files changed, 6 insertions(+), 118 deletions(-) diff --git a/package-lock.json b/package-lock.json index e177e74ec5..272c828a50 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5832,7 +5832,8 @@ }, "node_modules/@mongodb-js/monorepo-tools": { "version": "1.1.16", - "dev": true, + "resolved": "https://registry.npmjs.org/@mongodb-js/monorepo-tools/-/monorepo-tools-1.1.16.tgz", + "integrity": "sha512-LiIIGvpvgQl+8r72+GFS4QIcQa1Cp2wdtCRgnpVGbYqVKfr/URMA3j95dsBKrDbOsuFgNQ/6052TZdtTfho63g==", "license": "SSPL", "dependencies": { "chalk": "^4.1.1", @@ -5847,7 +5848,7 @@ "toposort": "^2.0.2" }, "bin": { - "bump-monorepo-packages": "bin/bump-auxiliary.js", + "bump-monorepo-packages": "bin/bump-packages.js", "depalign": "bin/depalign.js", "monorepo-where": "bin/where.js", "precommit": "bin/precommit.js" @@ -5855,7 +5856,6 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/find-up": { "version": "4.1.0", - "dev": true, "license": "MIT", "dependencies": { "locate-path": "^5.0.0", @@ -5867,7 +5867,6 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/locate-path": { "version": "5.0.0", - "dev": true, "license": "MIT", "dependencies": { "p-locate": "^4.1.0" @@ -5878,7 +5877,6 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/p-limit": { "version": "2.3.0", - "dev": true, "license": "MIT", "dependencies": { "p-try": "^2.0.0" @@ -5892,7 +5890,6 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/p-locate": { "version": "4.1.0", - "dev": true, "license": "MIT", "dependencies": { "p-limit": "^2.2.0" @@ -6712,7 +6709,6 @@ }, "node_modules/@npmcli/fs": { "version": "1.1.1", - "dev": true, "license": "ISC", "dependencies": { "@gar/promisify": "^1.0.1", @@ -6721,7 +6717,6 @@ }, "node_modules/@npmcli/git": { "version": "2.1.0", - "dev": true, "license": "ISC", "dependencies": { "@npmcli/promise-spawn": "^1.3.2", @@ -6736,7 +6731,6 @@ }, "node_modules/@npmcli/git/node_modules/mkdirp": { "version": "1.0.4", - "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -6747,7 +6741,6 @@ }, "node_modules/@npmcli/installed-package-contents": { "version": "1.0.7", - "dev": true, "license": "ISC", "dependencies": { "npm-bundled": "^1.1.1", @@ -7167,7 +7160,6 @@ }, "node_modules/@npmcli/move-file": { "version": "1.1.2", - "dev": true, "license": "MIT", "dependencies": { "mkdirp": "^1.0.4", @@ -7179,7 +7171,6 @@ }, "node_modules/@npmcli/move-file/node_modules/mkdirp": { "version": "1.0.4", - "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -7198,7 +7189,6 @@ }, "node_modules/@npmcli/node-gyp": { "version": "1.0.3", - "dev": true, "license": "ISC" }, "node_modules/@npmcli/package-json": { @@ -7337,7 +7327,6 @@ }, "node_modules/@npmcli/promise-spawn": { "version": "1.3.2", - "dev": true, "license": "ISC", "dependencies": { "infer-owner": "^1.0.4" @@ -7364,7 +7353,6 @@ }, "node_modules/@npmcli/run-script": { "version": "1.8.6", - "dev": true, "license": "ISC", "dependencies": { "@npmcli/node-gyp": "^1.0.2", @@ -7375,7 +7363,6 @@ }, "node_modules/@npmcli/run-script/node_modules/ansi-regex": { "version": "2.1.1", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -7383,12 +7370,10 @@ }, "node_modules/@npmcli/run-script/node_modules/aproba": { "version": "1.2.0", - "dev": true, "license": "ISC" }, "node_modules/@npmcli/run-script/node_modules/are-we-there-yet": { "version": "1.1.7", - "dev": true, "license": "ISC", "dependencies": { "delegates": "^1.0.0", @@ -7397,7 +7382,6 @@ }, "node_modules/@npmcli/run-script/node_modules/gauge": { "version": "2.7.4", - "dev": true, "license": "ISC", "dependencies": { "aproba": "^1.0.3", @@ -7412,7 +7396,6 @@ }, "node_modules/@npmcli/run-script/node_modules/glob": { "version": "7.2.3", - "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -7431,7 +7414,6 @@ }, "node_modules/@npmcli/run-script/node_modules/is-fullwidth-code-point": { "version": "1.0.0", - "dev": true, "license": "MIT", "dependencies": { "number-is-nan": "^1.0.0" @@ -7442,7 +7424,6 @@ }, "node_modules/@npmcli/run-script/node_modules/node-gyp": { "version": "7.1.2", - "dev": true, "license": "MIT", "dependencies": { "env-paths": "^2.2.0", @@ -7465,7 +7446,6 @@ }, "node_modules/@npmcli/run-script/node_modules/npmlog": { "version": "4.1.2", - "dev": true, "license": "ISC", "dependencies": { "are-we-there-yet": "~1.1.2", @@ -7476,7 +7456,6 @@ }, "node_modules/@npmcli/run-script/node_modules/string-width": { "version": "1.0.2", - "dev": true, "license": "MIT", "dependencies": { "code-point-at": "^1.0.0", @@ -7489,7 +7468,6 @@ }, "node_modules/@npmcli/run-script/node_modules/strip-ansi": { "version": "3.0.1", - "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^2.0.0" @@ -11061,7 +11039,6 @@ }, "node_modules/argv-formatter": { "version": "1.0.0", - "dev": true, "license": "MIT" }, "node_modules/aria-query": { @@ -11257,7 +11234,6 @@ }, "node_modules/assert-plus": { "version": "1.0.0", - "dev": true, "license": "MIT", "engines": { "node": ">=0.8" @@ -11318,7 +11294,6 @@ }, "node_modules/asynckit": { "version": "0.4.0", - "devOptional": true, "license": "MIT" }, "node_modules/available-typed-arrays": { @@ -11364,7 +11339,6 @@ }, "node_modules/aws-sign2": { "version": "0.7.0", - "dev": true, "license": "Apache-2.0", "engines": { "node": "*" @@ -12234,7 +12208,6 @@ }, "node_modules/builtins": { "version": "1.0.3", - "dev": true, "license": "MIT" }, "node_modules/bundle-name": { @@ -12267,7 +12240,6 @@ }, "node_modules/cacache": { "version": "15.3.0", - "dev": true, "license": "ISC", "dependencies": { "@npmcli/fs": "^1.0.0", @@ -12295,7 +12267,6 @@ }, "node_modules/cacache/node_modules/glob": { "version": "7.2.3", - "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -12314,7 +12285,6 @@ }, "node_modules/cacache/node_modules/mkdirp": { "version": "1.0.4", - "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -12533,7 +12503,6 @@ }, "node_modules/caseless": { "version": "0.12.0", - "dev": true, "license": "Apache-2.0" }, "node_modules/chai": { @@ -12730,7 +12699,6 @@ }, "node_modules/cli-cursor": { "version": "3.1.0", - "devOptional": true, "license": "MIT", "dependencies": { "restore-cursor": "^3.1.0" @@ -12753,7 +12721,6 @@ "version": "2.6.1", "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", - "devOptional": true, "license": "MIT", "engines": { "node": ">=6" @@ -12840,7 +12807,6 @@ }, "node_modules/code-point-at": { "version": "1.1.0", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -12897,7 +12863,6 @@ }, "node_modules/combined-stream": { "version": "1.0.8", - "devOptional": true, "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" @@ -13469,7 +13434,6 @@ }, "node_modules/dashdash": { "version": "1.14.1", - "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" @@ -13937,7 +13901,6 @@ }, "node_modules/defaults": { "version": "1.0.3", - "devOptional": true, "license": "MIT", "dependencies": { "clone": "^1.0.2" @@ -13945,7 +13908,6 @@ }, "node_modules/defaults/node_modules/clone": { "version": "1.0.4", - "devOptional": true, "license": "MIT", "engines": { "node": ">=0.8" @@ -14012,7 +13974,6 @@ }, "node_modules/delayed-stream": { "version": "1.0.0", - "devOptional": true, "license": "MIT", "engines": { "node": ">=0.4.0" @@ -14427,7 +14388,6 @@ }, "node_modules/duplexer2": { "version": "0.1.4", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "readable-stream": "^2.0.2" @@ -14518,7 +14478,6 @@ }, "node_modules/ecc-jsbn": { "version": "0.1.2", - "dev": true, "license": "MIT", "dependencies": { "jsbn": "~0.1.0", @@ -15669,7 +15628,6 @@ }, "node_modules/extend": { "version": "3.0.2", - "dev": true, "license": "MIT" }, "node_modules/external-editor": { @@ -15731,7 +15689,6 @@ }, "node_modules/extsprintf": { "version": "1.3.0", - "dev": true, "engines": [ "node >=0.6.0" ], @@ -16158,7 +16115,6 @@ }, "node_modules/forever-agent": { "version": "0.6.1", - "dev": true, "license": "Apache-2.0", "engines": { "node": "*" @@ -16472,7 +16428,6 @@ }, "node_modules/getpass": { "version": "0.1.7", - "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" @@ -16480,7 +16435,6 @@ }, "node_modules/git-log-parser": { "version": "1.2.0", - "dev": true, "license": "MIT", "dependencies": { "argv-formatter": "~1.0.0", @@ -16493,7 +16447,6 @@ }, "node_modules/git-log-parser/node_modules/split2": { "version": "1.0.0", - "dev": true, "license": "ISC", "dependencies": { "through2": "~2.0.0" @@ -16921,7 +16874,6 @@ }, "node_modules/har-schema": { "version": "2.0.0", - "dev": true, "license": "ISC", "engines": { "node": ">=4" @@ -16929,7 +16881,6 @@ }, "node_modules/har-validator": { "version": "5.1.5", - "dev": true, "license": "MIT", "dependencies": { "ajv": "^6.12.3", @@ -17177,7 +17128,6 @@ }, "node_modules/hosted-git-info": { "version": "4.1.0", - "devOptional": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -17480,7 +17430,6 @@ }, "node_modules/http-signature": { "version": "1.2.0", - "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", @@ -17580,7 +17529,6 @@ }, "node_modules/ignore-walk": { "version": "3.0.4", - "dev": true, "license": "ISC", "dependencies": { "minimatch": "^3.0.4" @@ -17991,7 +17939,6 @@ }, "node_modules/is-interactive": { "version": "1.0.0", - "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -18235,12 +18182,10 @@ }, "node_modules/is-typedarray": { "version": "1.0.0", - "dev": true, "license": "MIT" }, "node_modules/is-unicode-supported": { "version": "0.1.0", - "devOptional": true, "license": "MIT", "engines": { "node": ">=10" @@ -18336,7 +18281,6 @@ }, "node_modules/isstream": { "version": "0.1.2", - "dev": true, "license": "MIT" }, "node_modules/istanbul-lib-coverage": { @@ -18666,7 +18610,6 @@ }, "node_modules/jsbn": { "version": "0.1.1", - "dev": true, "license": "MIT" }, "node_modules/jsesc": { @@ -18690,12 +18633,10 @@ }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", - "devOptional": true, "license": "MIT" }, "node_modules/json-schema": { "version": "0.4.0", - "dev": true, "license": "(AFL-2.1 OR BSD-3-Clause)" }, "node_modules/json-schema-traverse": { @@ -18745,7 +18686,6 @@ }, "node_modules/jsonparse": { "version": "1.3.1", - "devOptional": true, "engines": [ "node >= 0.2.0" ], @@ -18768,7 +18708,6 @@ }, "node_modules/jsprim": { "version": "1.4.2", - "dev": true, "license": "MIT", "dependencies": { "assert-plus": "1.0.0", @@ -21146,7 +21085,6 @@ }, "node_modules/minipass-fetch": { "version": "1.4.1", - "dev": true, "license": "MIT", "dependencies": { "minipass": "^3.1.0", @@ -21172,7 +21110,6 @@ }, "node_modules/minipass-json-stream": { "version": "1.0.1", - "dev": true, "license": "MIT", "dependencies": { "jsonparse": "^1.3.1", @@ -21990,7 +21927,6 @@ }, "node_modules/nopt": { "version": "5.0.0", - "dev": true, "license": "ISC", "dependencies": { "abbrev": "1" @@ -22051,7 +21987,6 @@ }, "node_modules/npm-bundled": { "version": "1.1.2", - "dev": true, "license": "ISC", "dependencies": { "npm-normalize-package-bin": "^1.0.1" @@ -22059,7 +21994,6 @@ }, "node_modules/npm-install-checks": { "version": "4.0.0", - "dev": true, "license": "BSD-2-Clause", "dependencies": { "semver": "^7.1.1" @@ -22070,7 +22004,6 @@ }, "node_modules/npm-normalize-package-bin": { "version": "1.0.1", - "dev": true, "license": "ISC" }, "node_modules/npm-package-arg": { @@ -22105,7 +22038,6 @@ }, "node_modules/npm-packlist": { "version": "2.2.2", - "dev": true, "license": "ISC", "dependencies": { "glob": "^7.1.6", @@ -22122,7 +22054,6 @@ }, "node_modules/npm-packlist/node_modules/glob": { "version": "7.2.3", - "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -22141,7 +22072,6 @@ }, "node_modules/npm-pick-manifest": { "version": "6.1.1", - "dev": true, "license": "ISC", "dependencies": { "npm-install-checks": "^4.0.0", @@ -22152,7 +22082,6 @@ }, "node_modules/npm-pick-manifest/node_modules/npm-package-arg": { "version": "8.1.5", - "dev": true, "license": "ISC", "dependencies": { "hosted-git-info": "^4.0.1", @@ -22165,7 +22094,6 @@ }, "node_modules/npm-pick-manifest/node_modules/validate-npm-package-name": { "version": "3.0.0", - "dev": true, "license": "ISC", "dependencies": { "builtins": "^1.0.3" @@ -22249,7 +22177,6 @@ }, "node_modules/number-is-nan": { "version": "1.0.1", - "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -22731,7 +22658,6 @@ }, "node_modules/oauth-sign": { "version": "0.9.0", - "dev": true, "license": "Apache-2.0", "engines": { "node": "*" @@ -22957,7 +22883,6 @@ }, "node_modules/ora": { "version": "5.4.1", - "devOptional": true, "license": "MIT", "dependencies": { "bl": "^4.1.0", @@ -22979,7 +22904,6 @@ }, "node_modules/ora/node_modules/bl": { "version": "4.1.0", - "devOptional": true, "license": "MIT", "dependencies": { "buffer": "^5.5.0", @@ -22989,7 +22913,6 @@ }, "node_modules/ora/node_modules/buffer": { "version": "5.7.1", - "devOptional": true, "funding": [ { "type": "github", @@ -23012,7 +22935,6 @@ }, "node_modules/ora/node_modules/log-symbols": { "version": "4.1.0", - "devOptional": true, "license": "MIT", "dependencies": { "chalk": "^4.1.0", @@ -23027,7 +22949,6 @@ }, "node_modules/ora/node_modules/readable-stream": { "version": "3.6.2", - "devOptional": true, "license": "MIT", "dependencies": { "inherits": "^2.0.3", @@ -23300,7 +23221,6 @@ }, "node_modules/pacote": { "version": "11.3.5", - "dev": true, "license": "ISC", "dependencies": { "@npmcli/git": "^2.1.0", @@ -23332,7 +23252,6 @@ }, "node_modules/pacote/node_modules/@tootallnate/once": { "version": "1.1.2", - "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -23340,7 +23259,6 @@ }, "node_modules/pacote/node_modules/agent-base": { "version": "6.0.2", - "dev": true, "license": "MIT", "dependencies": { "debug": "4" @@ -23351,7 +23269,6 @@ }, "node_modules/pacote/node_modules/http-proxy-agent": { "version": "4.0.1", - "dev": true, "license": "MIT", "dependencies": { "@tootallnate/once": "1", @@ -23364,7 +23281,6 @@ }, "node_modules/pacote/node_modules/https-proxy-agent": { "version": "5.0.1", - "dev": true, "license": "MIT", "dependencies": { "agent-base": "6", @@ -23376,7 +23292,6 @@ }, "node_modules/pacote/node_modules/make-fetch-happen": { "version": "9.1.0", - "dev": true, "license": "ISC", "dependencies": { "agentkeepalive": "^4.1.3", @@ -23402,7 +23317,6 @@ }, "node_modules/pacote/node_modules/mkdirp": { "version": "1.0.4", - "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -23413,7 +23327,6 @@ }, "node_modules/pacote/node_modules/npm-package-arg": { "version": "8.1.5", - "dev": true, "license": "ISC", "dependencies": { "hosted-git-info": "^4.0.1", @@ -23426,7 +23339,6 @@ }, "node_modules/pacote/node_modules/npm-registry-fetch": { "version": "11.0.0", - "dev": true, "license": "ISC", "dependencies": { "make-fetch-happen": "^9.0.1", @@ -23442,7 +23354,6 @@ }, "node_modules/pacote/node_modules/socks-proxy-agent": { "version": "6.2.1", - "dev": true, "license": "MIT", "dependencies": { "agent-base": "^6.0.2", @@ -23455,7 +23366,6 @@ }, "node_modules/pacote/node_modules/validate-npm-package-name": { "version": "3.0.0", - "dev": true, "license": "ISC", "dependencies": { "builtins": "^1.0.3" @@ -23632,7 +23542,6 @@ }, "node_modules/path-exists": { "version": "4.0.0", - "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -23736,7 +23645,6 @@ }, "node_modules/performance-now": { "version": "2.1.0", - "dev": true, "license": "MIT" }, "node_modules/picocolors": { @@ -24232,7 +24140,6 @@ }, "node_modules/psl": { "version": "1.9.0", - "dev": true, "license": "MIT" }, "node_modules/public-encrypt": { @@ -24701,7 +24608,6 @@ }, "node_modules/read-package-json-fast": { "version": "2.0.3", - "dev": true, "license": "ISC", "dependencies": { "json-parse-even-better-errors": "^2.3.0", @@ -25145,7 +25051,6 @@ }, "node_modules/request": { "version": "2.88.2", - "dev": true, "license": "Apache-2.0", "dependencies": { "aws-sign2": "~0.7.0", @@ -25175,7 +25080,6 @@ }, "node_modules/request/node_modules/form-data": { "version": "2.3.3", - "dev": true, "license": "MIT", "dependencies": { "asynckit": "^0.4.0", @@ -25188,7 +25092,6 @@ }, "node_modules/request/node_modules/qs": { "version": "6.5.3", - "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.6" @@ -25300,7 +25203,6 @@ }, "node_modules/restore-cursor": { "version": "3.1.0", - "devOptional": true, "license": "MIT", "dependencies": { "onetime": "^5.1.0", @@ -26228,7 +26130,6 @@ }, "node_modules/spawn-error-forwarder": { "version": "1.0.0", - "dev": true, "license": "MIT" }, "node_modules/spawn-wrap": { @@ -26416,7 +26317,6 @@ }, "node_modules/sshpk": { "version": "1.17.0", - "dev": true, "license": "MIT", "dependencies": { "asn1": "~0.2.3", @@ -26440,7 +26340,6 @@ }, "node_modules/ssri": { "version": "8.0.1", - "dev": true, "license": "ISC", "dependencies": { "minipass": "^3.1.1" @@ -26503,7 +26402,6 @@ }, "node_modules/stream-combiner2": { "version": "1.1.1", - "dev": true, "license": "MIT", "dependencies": { "duplexer2": "~0.1.0", @@ -27106,7 +27004,6 @@ }, "node_modules/through2": { "version": "2.0.5", - "devOptional": true, "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", @@ -27188,7 +27085,6 @@ }, "node_modules/toposort": { "version": "2.0.2", - "dev": true, "license": "MIT" }, "node_modules/totalist": { @@ -27201,7 +27097,6 @@ }, "node_modules/tough-cookie": { "version": "2.5.0", - "dev": true, "license": "BSD-3-Clause", "dependencies": { "psl": "^1.1.28", @@ -27223,7 +27118,6 @@ }, "node_modules/traverse": { "version": "0.6.7", - "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -27449,7 +27343,6 @@ }, "node_modules/tunnel-agent": { "version": "0.6.0", - "devOptional": true, "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" @@ -27648,7 +27541,6 @@ }, "node_modules/unique-filename": { "version": "1.1.1", - "dev": true, "license": "ISC", "dependencies": { "unique-slug": "^2.0.0" @@ -27656,7 +27548,6 @@ }, "node_modules/unique-slug": { "version": "2.0.2", - "dev": true, "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4" @@ -27793,7 +27684,6 @@ }, "node_modules/uuid": { "version": "3.4.0", - "dev": true, "license": "MIT", "bin": { "uuid": "bin/uuid" @@ -27834,7 +27724,6 @@ }, "node_modules/verror": { "version": "1.10.0", - "dev": true, "engines": [ "node >=0.6.0" ], @@ -27890,7 +27779,6 @@ }, "node_modules/wcwidth": { "version": "1.0.1", - "devOptional": true, "license": "MIT", "dependencies": { "defaults": "^1.0.3" @@ -29275,6 +29163,7 @@ "@mongodb-js/devtools-github-repo": "^1.0.1", "@mongodb-js/dl-center": "^1.1.1", "@mongodb-js/mongodb-downloader": "^0.3.7", + "@mongodb-js/monorepo-tools": "^1.1.16", "@mongodb-js/signing-utils": "^0.3.7", "@octokit/rest": "^17.9.0", "aws-sdk": "^2.674.0", @@ -29293,7 +29182,6 @@ }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", - "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/command-exists": "^1.2.0", diff --git a/packages/build/package.json b/packages/build/package.json index 774f9cb8c7..4940268c09 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -44,7 +44,6 @@ }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", - "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/command-exists": "^1.2.0", @@ -67,6 +66,7 @@ "@mongodb-js/devtools-github-repo": "^1.0.1", "@mongodb-js/dl-center": "^1.1.1", "@mongodb-js/mongodb-downloader": "^0.3.7", + "@mongodb-js/monorepo-tools": "^1.1.16", "@mongodb-js/signing-utils": "^0.3.7", "@octokit/rest": "^17.9.0", "aws-sdk": "^2.674.0", diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index 21bdf850d3..e55f5081a0 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -59,7 +59,7 @@ export async function bumpMongoshReleasePackages(): Promise { /** Bumps auxiliary packages without setting a new version of mongosh. */ export function bumpAuxiliaryPackages() { - spawnSync('npx', ['bump-monorepo-packages'], { + spawnSync('bump-monorepo-packages', [], { stdio: 'inherit', cwd: PROJECT_ROOT, encoding: 'utf8', From 4da9db1019c2740f109862e7277a6c49aeecadab Mon Sep 17 00:00:00 2001 From: gagik Date: Wed, 8 Jan 2025 15:49:10 +0100 Subject: [PATCH 30/40] remove bump, use version --- .evergreen/install-npm-deps.sh | 2 -- packages/cli-repl/src/constants.ts | 3 +++ packages/cli-repl/src/mongosh-repl.ts | 7 ++++++- packages/e2e-tests/test/e2e.spec.ts | 15 +++++++++++++-- .../src/worker-thread-evaluation-listener.ts | 6 +++++- packages/shell-api/src/shell-api.ts | 5 ++++- packages/shell-api/src/shell-instance-state.ts | 3 +++ 7 files changed, 34 insertions(+), 7 deletions(-) diff --git a/.evergreen/install-npm-deps.sh b/.evergreen/install-npm-deps.sh index 97cffcc7e9..daca8211eb 100644 --- a/.evergreen/install-npm-deps.sh +++ b/.evergreen/install-npm-deps.sh @@ -31,7 +31,5 @@ npm run mark-ci-required-optional-dependencies # along with its types, but npm wouldn't try and compile the addon (npm ci && test -e node_modules/mongodb-client-encryption) || npm ci --ignore-scripts -npm run evergreen-release bump - echo "npm packages after installation" npm ls || true diff --git a/packages/cli-repl/src/constants.ts b/packages/cli-repl/src/constants.ts index 94bfc5c371..bbf5b4d8e5 100644 --- a/packages/cli-repl/src/constants.ts +++ b/packages/cli-repl/src/constants.ts @@ -1,6 +1,9 @@ import i18n from '@mongosh/i18n'; import { colorizeForStderr as clr } from './clr'; +// eslint-disable-next-line @typescript-eslint/no-var-requires +export const MONGOSH_VERSION: string = require('../package.json').version; + export const TELEMETRY_GREETING_MESSAGE = ` ${i18n.__('cli-repl.cli-repl.telemetry')} ${i18n.__('cli-repl.cli-repl.disableTelemetry')}${clr( diff --git a/packages/cli-repl/src/mongosh-repl.ts b/packages/cli-repl/src/mongosh-repl.ts index 80ee338189..e984273e6c 100644 --- a/packages/cli-repl/src/mongosh-repl.ts +++ b/packages/cli-repl/src/mongosh-repl.ts @@ -34,7 +34,11 @@ import { callbackify, promisify } from 'util'; import * as asyncRepl from './async-repl'; import type { StyleDefinition } from './clr'; import clr from './clr'; -import { MONGOSH_WIKI, TELEMETRY_GREETING_MESSAGE } from './constants'; +import { + MONGOSH_VERSION, + MONGOSH_WIKI, + TELEMETRY_GREETING_MESSAGE, +} from './constants'; import formatOutput, { formatError } from './format-output'; import { makeMultilineJSIntoSingleLine } from '@mongosh/js-multiline-to-singleline'; import { LineByLineInput } from './line-by-line-input'; @@ -144,6 +148,7 @@ class MongoshNodeRepl implements EvaluationListener { loadNestingLevel = 0; redactHistory: 'keep' | 'remove' | 'remove-redact' = 'remove'; rawValueToShellResult: WeakMap = new WeakMap(); + version: string = MONGOSH_VERSION; constructor(options: MongoshNodeReplOptions) { this.input = options.input; diff --git a/packages/e2e-tests/test/e2e.spec.ts b/packages/e2e-tests/test/e2e.spec.ts index 9fda3fbf6b..74987edb12 100644 --- a/packages/e2e-tests/test/e2e.spec.ts +++ b/packages/e2e-tests/test/e2e.spec.ts @@ -22,6 +22,7 @@ import { once } from 'events'; import type { AddressInfo } from 'net'; const { EJSON } = bson; import { sleep } from './util-helpers'; +import { MONGOSH_VERSION } from '../../cli-repl/src/constants'; const jsContextFlagCombinations: `--jsContext=${'plain-vm' | 'repl'}`[][] = [ [], @@ -445,9 +446,19 @@ describe('e2e', function () { }); it('version', async function () { - const expected = require('../package.json').version; + const expectedPackageVersion: string = + // eslint-disable-next-line @typescript-eslint/no-var-requires + require('../package.json')['dependencies']['@mongosh/cli-repl']; + // eslint-disable-next-line @typescript-eslint/no-unsafe-argument + const expectedVersionFromRepl = MONGOSH_VERSION; + + expect(expectedPackageVersion).not.null; + expect(expectedPackageVersion).equals(expectedVersionFromRepl); + await shell.executeLine('version()'); - shell.assertContainsOutput(expected); + shell.assertNoErrors(); + shell.assertContainsOutput(expectedPackageVersion); + shell.assertContainsOutput(expectedVersionFromRepl); }); it('fle addon is available', async function () { diff --git a/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts b/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts index 071588a74f..dd669bc2a2 100644 --- a/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts +++ b/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts @@ -7,7 +7,10 @@ import type { RuntimeEvaluationListener } from '@mongosh/browser-runtime-core'; export class WorkerThreadEvaluationListener { exposedListener: Exposed< Required< - Omit + Omit< + RuntimeEvaluationListener, + 'version' | 'onLoad' | 'getCryptLibraryOptions' + > > >; @@ -56,6 +59,7 @@ export class WorkerThreadEvaluationListener { (Promise.resolve() as Promise) ); }, + version: workerRuntime.evaluationListener?.version, }, worker ); diff --git a/packages/shell-api/src/shell-api.ts b/packages/shell-api/src/shell-api.ts index 61e84dec57..8e2998391d 100644 --- a/packages/shell-api/src/shell-api.ts +++ b/packages/shell-api/src/shell-api.ts @@ -289,7 +289,10 @@ export default class ShellApi extends ShellApiClass { } version(): string { - const version = require('../package.json').version; + const version = this._instanceState.evaluationListener.version; + if (!version) { + throw new MongoshInternalError('mongosh version not known'); + } return version; } diff --git a/packages/shell-api/src/shell-instance-state.ts b/packages/shell-api/src/shell-instance-state.ts index 06e281dce9..e0529c4a2e 100644 --- a/packages/shell-api/src/shell-instance-state.ts +++ b/packages/shell-api/src/shell-instance-state.ts @@ -116,6 +116,9 @@ export interface EvaluationListener * options used to access it. */ getCryptLibraryOptions?: () => Promise; + + /** References the mongosh version used by the EvaluationListener */ + version?: string; } /** From 2b912d9c79018f0e0f0c0d77741e02494bcfedde Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 10 Jan 2025 09:26:53 +0100 Subject: [PATCH 31/40] add and fix publish tests --- .../build/src/npm-packages/publish.spec.ts | 84 +++++++++++++++---- packages/build/src/npm-packages/publish.ts | 8 +- packages/build/src/run-publish.ts | 5 +- 3 files changed, 73 insertions(+), 24 deletions(-) diff --git a/packages/build/src/npm-packages/publish.spec.ts b/packages/build/src/npm-packages/publish.spec.ts index ab28a8ce8d..c6968f2016 100644 --- a/packages/build/src/npm-packages/publish.spec.ts +++ b/packages/build/src/npm-packages/publish.spec.ts @@ -8,6 +8,16 @@ describe('npm-packages publishNpmPackages', function () { let listNpmPackages: SinonStub; let markBumpedFilesAsAssumeUnchanged: SinonStub; let spawnSync: SinonStub; + const lernaBin = path.resolve( + __dirname, + '..', + '..', + '..', + '..', + 'node_modules', + '.bin', + 'lerna' + ); beforeEach(function () { listNpmPackages = sinon.stub(); @@ -15,23 +25,65 @@ describe('npm-packages publishNpmPackages', function () { spawnSync = sinon.stub(); }); - it('calls lerna to publish packages for a real version', function () { - const lernaBin = path.resolve( - __dirname, - '..', - '..', - '..', - '..', - 'node_modules', - '.bin', - 'lerna' - ); + it('throws if mongosh is not existent when publishing all', function () { const packages = [{ name: 'packageA', version: '0.7.0' }]; listNpmPackages.returns(packages); + expect(() => + publishNpmPackages( + { isDryRun: false, useAuxiliaryPackagesOnly: false }, + listNpmPackages, + markBumpedFilesAsAssumeUnchanged, + spawnSync + ) + ).throws('mongosh package not found'); + }); + + it('takes mongosh version and pushes tags', function () { + const packages = [ + { name: 'packageA', version: '0.7.0' }, + { name: 'mongosh', version: '1.2.0' }, + ]; + listNpmPackages.returns(packages); + + publishNpmPackages( + { isDryRun: false, useAuxiliaryPackagesOnly: false }, + listNpmPackages, + markBumpedFilesAsAssumeUnchanged, + spawnSync + ); + + expect(spawnSync).calledWith('git', ['tag', '-a', '1.2.0', '-m', '1.2.0']); + expect(spawnSync).calledWith('git', ['push', '--follow-tags']); + }); + + it('does not manually push tags with auxiliary packages', function () { + const packages = [ + { name: 'packageA', version: '0.7.0' }, + { name: 'mongosh', version: '1.2.0' }, + ]; + listNpmPackages.returns(packages); + + publishNpmPackages( + { isDryRun: false, useAuxiliaryPackagesOnly: true }, + listNpmPackages, + markBumpedFilesAsAssumeUnchanged, + spawnSync + ); + + expect(spawnSync).calledWith('git', ['tag', '-a', '1.2.0', '-m', '1.2.0']); + expect(spawnSync).calledWith('git', ['push', '--follow-tags']); + }); + + it('calls lerna to publish packages for a real version', function () { + const packages = [ + { name: 'packageA', version: '0.7.0' }, + { name: 'mongosh', version: '1.2.0' }, + ]; + listNpmPackages.returns(packages); + publishNpmPackages( - false, - false, + { isDryRun: false, useAuxiliaryPackagesOnly: false }, listNpmPackages, markBumpedFilesAsAssumeUnchanged, spawnSync @@ -48,10 +100,7 @@ describe('npm-packages publishNpmPackages', function () { 'from-package', '--no-private', '--no-changelog', - '--no-push', '--exact', - '--no-git-tag-version', - '--force-publish', '--yes', '--no-verify-access', ], @@ -70,8 +119,7 @@ describe('npm-packages publishNpmPackages', function () { try { publishNpmPackages( - false, - false, + { isDryRun: false, useAuxiliaryPackagesOnly: false }, listNpmPackages, markBumpedFilesAsAssumeUnchanged, spawnSync diff --git a/packages/build/src/npm-packages/publish.ts b/packages/build/src/npm-packages/publish.ts index 9ba47f1829..acb1bd90ed 100644 --- a/packages/build/src/npm-packages/publish.ts +++ b/packages/build/src/npm-packages/publish.ts @@ -11,8 +11,7 @@ import { spawnSync as spawnSyncFn } from '../helpers/spawn-sync'; import type { SpawnSyncOptionsWithStringEncoding } from 'child_process'; export function publishNpmPackages( - isDryRun = false, - useAuxiliaryPackagesOnly = false, + { isDryRun = false, useAuxiliaryPackagesOnly = false }, listNpmPackages: typeof listNpmPackagesFn = listNpmPackagesFn, markBumpedFilesAsAssumeUnchangedFn: typeof markBumpedFilesAsAssumeUnchanged = markBumpedFilesAsAssumeUnchanged, spawnSync: typeof spawnSyncFn = spawnSyncFn @@ -35,7 +34,7 @@ export function publishNpmPackages( (packageConfig) => !MONGOSH_RELEASE_PACKAGES.includes(packageConfig.name) ); } - // Lerna requires a clean repository for a publish from-package (--force-publish does not have any effect here) + // Lerna requires a clean repository for a publish from-package // we use git update-index --assume-unchanged on files we know have been bumped markBumpedFilesAsAssumeUnchangedFn(packages, true); try { @@ -47,7 +46,6 @@ export function publishNpmPackages( '--no-private', '--no-changelog', '--exact', - '--force-publish', '--yes', '--no-verify-access', ], @@ -63,7 +61,7 @@ export function publishNpmPackages( )?.version; if (!mongoshVersion) { - throw new Error('Mongosh package not found'); + throw new Error('mongosh package not found'); } spawnSync( diff --git a/packages/build/src/run-publish.ts b/packages/build/src/run-publish.ts index 3fb0ae4fb9..d2bd4d7c09 100644 --- a/packages/build/src/run-publish.ts +++ b/packages/build/src/run-publish.ts @@ -81,7 +81,10 @@ export async function runPublish( // ensures the segment api key to be present in the published packages await writeBuildInfo(config, 'packaged'); - publishNpmPackages(config.isDryRun, config.useAuxiliaryPackagesOnly); + publishNpmPackages({ + isDryRun: config.isDryRun, + useAuxiliaryPackagesOnly: config.useAuxiliaryPackagesOnly, + }); await publishToHomebrew( homebrewCoreGithubRepo, From e2ceaa5fe8a462f42d49813b99231a15c854f686 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 10 Jan 2025 14:13:35 +0100 Subject: [PATCH 32/40] use a shell-api constant and switch to 2.3.8 --- package-lock.json | 525 ++++++++++++++---- package.json | 12 +- packages/browser-runtime-core/package.json | 2 +- packages/build/src/npm-packages/bump.ts | 30 + packages/cli-repl/src/constants.ts | 3 - packages/cli-repl/src/mongosh-repl.ts | 7 +- packages/logging/package.json | 6 +- .../node-runtime-worker-thread/package.json | 10 +- .../src/worker-thread-evaluation-listener.ts | 1 - packages/service-provider-core/package.json | 2 +- packages/shell-api/package.json | 2 +- packages/shell-api/src/mongosh-version.ts | 7 + packages/shell-api/src/shell-api.ts | 7 +- .../shell-api/src/shell-instance-state.ts | 3 - packages/snippet-manager/package.json | 6 +- 15 files changed, 474 insertions(+), 149 deletions(-) create mode 100644 packages/shell-api/src/mongosh-version.ts diff --git a/package-lock.json b/package-lock.json index 272c828a50..6f40548dbb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,24 +17,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/types", - "packages/i18n", "packages/logging", + "packages/node-runtime-worker-thread", "packages/service-provider-core", - "packages/arg-parser", + "packages/snippet-manager", + "packages/types", + "packages/i18n", "packages/service-provider-node-driver", + "packages/arg-parser", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", - "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", + "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", - "packages/node-runtime-worker-thread", - "packages/browser-repl", "packages/connectivity-tests" ], "bin": { @@ -5659,6 +5659,30 @@ "dev": true, "license": "Apache-2.0" }, + "node_modules/@mongodb-js/devtools-connect": { + "version": "3.3.4", + "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", + "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-proxy-support": "^0.4.2", + "@mongodb-js/oidc-http-server-pages": "1.1.3", + "lodash.merge": "^4.6.2", + "mongodb-connection-string-url": "^3.0.0", + "socks": "^2.7.3" + }, + "optionalDependencies": { + "kerberos": "^2.1.0", + "mongodb-client-encryption": "^6.1.0", + "os-dns-native": "^1.2.0", + "resolve-mongodb-srv": "^1.1.1" + }, + "peerDependencies": { + "@mongodb-js/oidc-plugin": "^1.1.0", + "mongodb": "^6.9.0", + "mongodb-log-writer": "^1.4.2" + } + }, "node_modules/@mongodb-js/devtools-github-repo": { "version": "1.2.0", "license": "Apache-2.0", @@ -28839,31 +28863,6 @@ "node": ">=14.15.1" } }, - "packages/arg-parser/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" - }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" - }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" - } - }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", "version": "2.3.7", @@ -29114,7 +29113,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29125,6 +29124,19 @@ "node": ">=14.15.1" } }, + "packages/browser-runtime-core/node_modules/@mongosh/types": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", + "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", "version": "2.3.7", @@ -29661,9 +29673,9 @@ "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/types": "2.3.8", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, @@ -29679,28 +29691,38 @@ "node": ">=14.15.1" } }, - "packages/logging/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", + "packages/logging/node_modules/@mongosh/errors": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", + "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, + "packages/logging/node_modules/@mongosh/history": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.8.tgz", + "integrity": "sha512-u7R9dhk6qnbPoeSYkMu7h1JCkZuzFph6jEYy67e4lIviEL6J99u7hUHxNW70DqruOuoXyKREQ+mafPtxQNxu4w==", "license": "Apache-2.0", "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" + "mongodb-connection-string-url": "^3.0.1", + "mongodb-redact": "^1.1.2" }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" + "engines": { + "node": ">=14.15.1" + } + }, + "packages/logging/node_modules/@mongosh/types": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", + "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" + "engines": { + "node": ">=14.15.1" } }, "packages/mongosh": { @@ -29729,11 +29751,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/browser-runtime-electron": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/browser-runtime-electron": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/service-provider-node-driver": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29746,13 +29768,223 @@ "node": ">=14.15.1" } }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/arg-parser": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.8.tgz", + "integrity": "sha512-oo6glzgsOyZJYijHvWMhnYJOZOI16J/u5y+puRLHL0oNwAaRwumJ1Kx+Zp9gQI9s6C523X80Hrs6op6/fCRp9Q==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.8", + "@mongosh/i18n": "2.3.8", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/async-rewriter2": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/async-rewriter2/-/async-rewriter2-2.3.8.tgz", + "integrity": "sha512-YHt0m2MehX5UBILQqwDL1hToDRc1vtUPoD6Q2HH31iSY3Yer+uL83+BQe5AWaR5IBYGtNbul5IcKFwXCE5hA/w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@babel/core": "^7.22.8", + "@babel/plugin-transform-destructuring": "^7.22.5", + "@babel/plugin-transform-parameters": "^7.22.5", + "@babel/plugin-transform-shorthand-properties": "^7.22.5", + "@babel/types": "^7.22.5" + }, + "bin": { + "async-rewrite": "bin/async-rewrite.js" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/autocomplete": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/autocomplete/-/autocomplete-2.3.8.tgz", + "integrity": "sha512-uiUhqTIFEei/YD1+MJOGJYGXC0tBmbteyDLzIudXYN8oCzvX+hqyZq3wbAQEH0jxF7aUzdAhxKVulIg2HxpIqQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/mongodb-constants": "^0.10.1", + "@mongosh/shell-api": "2.3.8", + "semver": "^7.5.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-core": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-core/-/browser-runtime-core-2.3.8.tgz", + "integrity": "sha512-vn7T95tWi9B1lRrbS0ilctVh+bGWHKmEeKu3cxVJ+mF7gRHY12ZhqfUu4irfq3Aq9RGGL+5EBLM0Kw70ZZMAYA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/autocomplete": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/shell-evaluator": "2.3.8" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-electron": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-electron/-/browser-runtime-electron-2.3.8.tgz", + "integrity": "sha512-O6PuwkNtHbuNkILj+WUNPAvK0y0JNVWCQv8YCGBoXWlwgg58UEbeUhKGoE4IlNRX9LUTWLPMjJe2N6z2P4iZow==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/types": "2.3.8" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/errors": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", + "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/history": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.8.tgz", + "integrity": "sha512-u7R9dhk6qnbPoeSYkMu7h1JCkZuzFph6jEYy67e4lIviEL6J99u7hUHxNW70DqruOuoXyKREQ+mafPtxQNxu4w==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "mongodb-connection-string-url": "^3.0.1", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/i18n": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.8.tgz", + "integrity": "sha512-PbjAR7Dg8fYGRnnGTBvihPt8sHEZbg1BTgPas1jZGki6gUSiI/bwYeP0rOr7jgmvU2GcARJ8tfnxXBCIEIBasA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.8" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-core": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.8.tgz", + "integrity": "sha512-zt7y+iXwPQhSojKzObPRICjKpQwJbOzOdo6yObF5iiG2/FX4Gi8WrVjwVqEAAZ//nVCXkMM7Y0epMhcZX+h5oQ==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-providers": "^3.525.0", + "@mongosh/errors": "2.3.8", + "bson": "^6.10.1", + "mongodb": "^6.12.0", + "mongodb-build-info": "^1.7.2", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + }, + "optionalDependencies": { + "mongodb-client-encryption": "^6.1.0" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-node-driver": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/service-provider-node-driver/-/service-provider-node-driver-2.3.8.tgz", + "integrity": "sha512-lohfxdHosjigTqeXT4gr2IXuLRvnSJ8N/KbnpDsziG40S7b/t31s9t8WPtBWfVu51tOPdst10GjI3RINJyXIsg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4", + "@mongodb-js/oidc-plugin": "^1.1.5", + "@mongosh/errors": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/types": "2.3.8", + "aws4": "^1.12.0", + "mongodb": "^6.12.0", + "mongodb-connection-string-url": "^3.0.1", + "socks": "^2.8.3" + }, + "engines": { + "node": ">=14.15.1" + }, + "optionalDependencies": { + "kerberos": "2.1.0", + "mongodb-client-encryption": "^6.1.0" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-api": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.8.tgz", + "integrity": "sha512-ulzeBdiQ5aGMtRqVxkDc6EYO6cELhDfxlB6XHF/v9C0m85Y+pFcBJnpMvy6vfSorWzBXQB6W0/DXLR/+z7USdg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/arg-parser": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-evaluator": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/shell-evaluator/-/shell-evaluator-2.3.8.tgz", + "integrity": "sha512-txC0yHDOjsy8a8Bg6PIY94M+KDcvHgLGlA/Ar/XoNZFSEAfF7I0Xj0wYf9iP22eqtfoU5FYEsqToVZLyyh+QFg==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongosh/async-rewriter2": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/shell-api": "2.3.8" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/node-runtime-worker-thread/node_modules/@mongosh/types": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", + "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", "version": "2.3.7", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.7", + "@mongosh/errors": "2.3.8", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", @@ -29773,6 +30005,15 @@ "mongodb-client-encryption": "^6.1.0" } }, + "packages/service-provider-core/node_modules/@mongosh/errors": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", + "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", "version": "2.3.7", @@ -29805,30 +30046,6 @@ "mongodb-client-encryption": "^6.1.0" } }, - "packages/service-provider-node-driver/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" - }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" - }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" - } - }, "packages/shell-api": { "name": "@mongosh/shell-api", "version": "2.3.7", @@ -29845,7 +30062,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29857,6 +30074,19 @@ "node": ">=14.15.1" } }, + "packages/shell-api/node_modules/@mongosh/types": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", + "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", "version": "2.3.7", @@ -29886,9 +30116,9 @@ "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -29910,6 +30140,103 @@ "node": ">=14.15.1" } }, + "packages/snippet-manager/node_modules/@mongosh/arg-parser": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.8.tgz", + "integrity": "sha512-oo6glzgsOyZJYijHvWMhnYJOZOI16J/u5y+puRLHL0oNwAaRwumJ1Kx+Zp9gQI9s6C523X80Hrs6op6/fCRp9Q==", + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.8", + "@mongosh/i18n": "2.3.8", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/errors": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", + "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", + "license": "Apache-2.0", + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/history": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.8.tgz", + "integrity": "sha512-u7R9dhk6qnbPoeSYkMu7h1JCkZuzFph6jEYy67e4lIviEL6J99u7hUHxNW70DqruOuoXyKREQ+mafPtxQNxu4w==", + "license": "Apache-2.0", + "dependencies": { + "mongodb-connection-string-url": "^3.0.1", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/i18n": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.8.tgz", + "integrity": "sha512-PbjAR7Dg8fYGRnnGTBvihPt8sHEZbg1BTgPas1jZGki6gUSiI/bwYeP0rOr7jgmvU2GcARJ8tfnxXBCIEIBasA==", + "license": "Apache-2.0", + "dependencies": { + "@mongosh/errors": "2.3.8" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/service-provider-core": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.8.tgz", + "integrity": "sha512-zt7y+iXwPQhSojKzObPRICjKpQwJbOzOdo6yObF5iiG2/FX4Gi8WrVjwVqEAAZ//nVCXkMM7Y0epMhcZX+h5oQ==", + "license": "Apache-2.0", + "dependencies": { + "@aws-sdk/credential-providers": "^3.525.0", + "@mongosh/errors": "2.3.8", + "bson": "^6.10.1", + "mongodb": "^6.12.0", + "mongodb-build-info": "^1.7.2", + "mongodb-connection-string-url": "^3.0.1" + }, + "engines": { + "node": ">=14.15.1" + }, + "optionalDependencies": { + "mongodb-client-encryption": "^6.1.0" + } + }, + "packages/snippet-manager/node_modules/@mongosh/shell-api": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.8.tgz", + "integrity": "sha512-ulzeBdiQ5aGMtRqVxkDc6EYO6cELhDfxlB6XHF/v9C0m85Y+pFcBJnpMvy6vfSorWzBXQB6W0/DXLR/+z7USdg==", + "license": "Apache-2.0", + "dependencies": { + "@mongosh/arg-parser": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "mongodb-redact": "^1.1.2" + }, + "engines": { + "node": ">=14.15.1" + } + }, + "packages/snippet-manager/node_modules/@mongosh/types": { + "version": "2.3.8", + "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", + "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", + "license": "Apache-2.0", + "dependencies": { + "@mongodb-js/devtools-connect": "^3.3.4" + }, + "engines": { + "node": ">=14.15.1" + } + }, "packages/snippet-manager/node_modules/@types/cross-spawn": { "version": "6.0.6", "resolved": "https://registry.npmjs.org/@types/cross-spawn/-/cross-spawn-6.0.6.tgz", @@ -29940,30 +30267,6 @@ "node": ">=14.15.1" } }, - "packages/types/node_modules/@mongodb-js/devtools-connect": { - "version": "3.3.4", - "resolved": "https://registry.npmjs.org/@mongodb-js/devtools-connect/-/devtools-connect-3.3.4.tgz", - "integrity": "sha512-zD1uu/e2+/SbkSjzdxCg8PSVJkRY+/z1h75F1kZ2UPuy41PmLe9f7Lh8zC1rlR+uFUUcUc503QknfmvinnPSOg==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongodb-js/oidc-http-server-pages": "1.1.3", - "lodash.merge": "^4.6.2", - "mongodb-connection-string-url": "^3.0.0", - "socks": "^2.7.3" - }, - "optionalDependencies": { - "kerberos": "^2.1.0", - "mongodb-client-encryption": "^6.1.0", - "os-dns-native": "^1.2.0", - "resolve-mongodb-srv": "^1.1.1" - }, - "peerDependencies": { - "@mongodb-js/oidc-plugin": "^1.1.0", - "mongodb": "^6.9.0", - "mongodb-log-writer": "^1.4.2" - } - }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", "version": "2.3.7", diff --git a/package.json b/package.json index af12edefb6..9a6b14d705 100644 --- a/package.json +++ b/package.json @@ -149,24 +149,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/types", - "packages/i18n", "packages/logging", + "packages/node-runtime-worker-thread", "packages/service-provider-core", - "packages/arg-parser", + "packages/snippet-manager", + "packages/types", + "packages/i18n", "packages/service-provider-node-driver", + "packages/arg-parser", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", - "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", + "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", - "packages/node-runtime-worker-thread", - "packages/browser-repl", "packages/connectivity-tests" ], "overrides": { diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index 4dde65ae77..f1abaeccf1 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index e55f5081a0..18a460cdf9 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -55,6 +55,36 @@ export async function bumpMongoshReleasePackages(): Promise { JSON.stringify(packageJson, null, 2) + '\n' ); } + + await bumpShellApiMongoshVersion(version); +} + +/** Sets the shell-api constant to match the mongosh version. */ +export async function bumpShellApiMongoshVersion(version: string) { + const shellApiVersionFilePath = path.join( + __dirname, + PROJECT_ROOT, + 'packages', + 'shell-api', + 'src', + 'mongosh-version.ts' + ); + + const versionFileContent = await fs.readFile( + shellApiVersionFilePath, + 'utf-8' + ); + + // Write the updated content back to the mongosh-version file + await fs.writeFile( + shellApiVersionFilePath, + // Replace the version inside MONGOSH_VERSION = '...' + versionFileContent.replace( + /MONGOSH_VERSION = '.*'/, + `MONGOSH_VERSION = '${version}'` + ), + 'utf-8' + ); } /** Bumps auxiliary packages without setting a new version of mongosh. */ diff --git a/packages/cli-repl/src/constants.ts b/packages/cli-repl/src/constants.ts index bbf5b4d8e5..94bfc5c371 100644 --- a/packages/cli-repl/src/constants.ts +++ b/packages/cli-repl/src/constants.ts @@ -1,9 +1,6 @@ import i18n from '@mongosh/i18n'; import { colorizeForStderr as clr } from './clr'; -// eslint-disable-next-line @typescript-eslint/no-var-requires -export const MONGOSH_VERSION: string = require('../package.json').version; - export const TELEMETRY_GREETING_MESSAGE = ` ${i18n.__('cli-repl.cli-repl.telemetry')} ${i18n.__('cli-repl.cli-repl.disableTelemetry')}${clr( diff --git a/packages/cli-repl/src/mongosh-repl.ts b/packages/cli-repl/src/mongosh-repl.ts index e984273e6c..80ee338189 100644 --- a/packages/cli-repl/src/mongosh-repl.ts +++ b/packages/cli-repl/src/mongosh-repl.ts @@ -34,11 +34,7 @@ import { callbackify, promisify } from 'util'; import * as asyncRepl from './async-repl'; import type { StyleDefinition } from './clr'; import clr from './clr'; -import { - MONGOSH_VERSION, - MONGOSH_WIKI, - TELEMETRY_GREETING_MESSAGE, -} from './constants'; +import { MONGOSH_WIKI, TELEMETRY_GREETING_MESSAGE } from './constants'; import formatOutput, { formatError } from './format-output'; import { makeMultilineJSIntoSingleLine } from '@mongosh/js-multiline-to-singleline'; import { LineByLineInput } from './line-by-line-input'; @@ -148,7 +144,6 @@ class MongoshNodeRepl implements EvaluationListener { loadNestingLevel = 0; redactHistory: 'keep' | 'remove' | 'remove-redact' = 'remove'; rawValueToShellResult: WeakMap = new WeakMap(); - version: string = MONGOSH_VERSION; constructor(options: MongoshNodeReplOptions) { this.input = options.input; diff --git a/packages/logging/package.json b/packages/logging/package.json index 5298f800d1..616609add1 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -18,9 +18,9 @@ }, "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/types": "2.3.8", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index d83756cf5a..a19f3fca6b 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -37,11 +37,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/browser-runtime-electron": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/browser-runtime-electron": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/service-provider-node-driver": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts b/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts index dd669bc2a2..e2e399c96c 100644 --- a/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts +++ b/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts @@ -59,7 +59,6 @@ export class WorkerThreadEvaluationListener { (Promise.resolve() as Promise) ); }, - version: workerRuntime.evaluationListener?.version, }, worker ); diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 13bbff4fcb..492e901a50 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -44,7 +44,7 @@ }, "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.7", + "@mongosh/errors": "2.3.8", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index a855b16ee3..a766eeae65 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -51,7 +51,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-api/src/mongosh-version.ts b/packages/shell-api/src/mongosh-version.ts new file mode 100644 index 0000000000..e7ed6e6bf1 --- /dev/null +++ b/packages/shell-api/src/mongosh-version.ts @@ -0,0 +1,7 @@ +/** + * NOTE: Do not manually modify this file. + * The MONGOSH_VERSION gets re-generated automatically with scripts/set-mongosh-version.ts + **/ + +/** Current mongosh cli-repl version. */ +export const MONGOSH_VERSION = '2.3.8'; diff --git a/packages/shell-api/src/shell-api.ts b/packages/shell-api/src/shell-api.ts index 8e2998391d..6a7ca56076 100644 --- a/packages/shell-api/src/shell-api.ts +++ b/packages/shell-api/src/shell-api.ts @@ -35,6 +35,7 @@ import type { ClientSideFieldLevelEncryptionOptions } from './field-level-encryp import { dirname } from 'path'; import { ShellUserConfig } from '@mongosh/types'; import i18n from '@mongosh/i18n'; +import { MONGOSH_VERSION } from './mongosh-version'; const instanceStateSymbol = Symbol.for('@@mongosh.instanceState'); const loadCallNestingLevelSymbol = Symbol.for('@@mongosh.loadCallNestingLevel'); @@ -289,11 +290,7 @@ export default class ShellApi extends ShellApiClass { } version(): string { - const version = this._instanceState.evaluationListener.version; - if (!version) { - throw new MongoshInternalError('mongosh version not known'); - } - return version; + return MONGOSH_VERSION; } @returnsPromise diff --git a/packages/shell-api/src/shell-instance-state.ts b/packages/shell-api/src/shell-instance-state.ts index e0529c4a2e..06e281dce9 100644 --- a/packages/shell-api/src/shell-instance-state.ts +++ b/packages/shell-api/src/shell-instance-state.ts @@ -116,9 +116,6 @@ export interface EvaluationListener * options used to access it. */ getCryptLibraryOptions?: () => Promise; - - /** References the mongosh version used by the EvaluationListener */ - version?: string; } /** diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index d64e8e8e1a..f8d0d5676b 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -36,9 +36,9 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", From e7d0a8c1174ec8414c2cac156508ed90fc643abc Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 10 Jan 2025 14:27:08 +0100 Subject: [PATCH 33/40] set all packages to 2.3.8 --- package-lock.json | 10 +++++----- packages/cli-repl/package.json | 2 +- packages/connectivity-tests/package.json | 2 +- packages/e2e-tests/package.json | 2 +- packages/mongosh/package.json | 4 ++-- .../src/worker-thread-evaluation-listener.ts | 5 +---- 6 files changed, 11 insertions(+), 14 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6f40548dbb..7d04339fe1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29294,7 +29294,7 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "2.3.7", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", @@ -29381,7 +29381,7 @@ "version": "2.3.7", "license": "Apache-2.0", "devDependencies": { - "mongosh": "2.3.7" + "mongosh": "2.3.8" } }, "packages/e2e-tests": { @@ -29390,7 +29390,7 @@ "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "2.3.7", + "@mongosh/cli-repl": "2.3.8", "@mongosh/service-provider-core": "2.3.7", "strip-ansi": "^6.0.0" }, @@ -29726,10 +29726,10 @@ } }, "packages/mongosh": { - "version": "2.3.7", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "2.3.7" + "@mongosh/cli-repl": "2.3.8" }, "bin": { "mongosh": "bin/mongosh.js" diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index cc6810437b..f7c2320f39 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "2.3.7", + "version": "2.3.8", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 0ecc111104..9ec07d3b84 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "2.3.7" + "mongosh": "2.3.8" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index a359d9a07c..8734a1c832 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -27,7 +27,7 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "2.3.7", + "@mongosh/cli-repl": "2.3.8", "@mongosh/service-provider-core": "2.3.7", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index d599c5f393..f9474439d7 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "2.3.7", + "version": "2.3.8", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "2.3.7" + "@mongosh/cli-repl": "2.3.8" } } diff --git a/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts b/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts index e2e399c96c..071588a74f 100644 --- a/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts +++ b/packages/node-runtime-worker-thread/src/worker-thread-evaluation-listener.ts @@ -7,10 +7,7 @@ import type { RuntimeEvaluationListener } from '@mongosh/browser-runtime-core'; export class WorkerThreadEvaluationListener { exposedListener: Exposed< Required< - Omit< - RuntimeEvaluationListener, - 'version' | 'onLoad' | 'getCryptLibraryOptions' - > + Omit > >; From fa253deb79ba6c8e9dc20dfd3d8a22d8813bccc1 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 10 Jan 2025 14:34:30 +0100 Subject: [PATCH 34/40] revert to dev version --- package-lock.json | 472 ++++++++---------- packages/arg-parser/package.json | 6 +- packages/async-rewriter2/package.json | 2 +- packages/autocomplete/package.json | 4 +- packages/browser-repl/package.json | 14 +- packages/browser-runtime-core/package.json | 12 +- .../browser-runtime-electron/package.json | 10 +- packages/build/package.json | 3 +- packages/cli-repl/package.json | 30 +- packages/connectivity-tests/package.json | 4 +- packages/e2e-tests/package.json | 6 +- packages/editor/package.json | 12 +- packages/errors/package.json | 2 +- packages/history/package.json | 2 +- packages/i18n/package.json | 4 +- packages/java-shell/package.json | 2 +- .../js-multiline-to-singleline/package.json | 2 +- packages/logging/package.json | 8 +- packages/mongosh/package.json | 4 +- .../node-runtime-worker-thread/package.json | 12 +- packages/service-provider-core/package.json | 4 +- .../service-provider-node-driver/package.json | 8 +- packages/shell-api/package.json | 14 +- packages/shell-evaluator/package.json | 10 +- packages/snippet-manager/package.json | 8 +- packages/types/package.json | 2 +- scripts/docker/package.json | 2 +- 27 files changed, 302 insertions(+), 357 deletions(-) diff --git a/package-lock.json b/package-lock.json index 7d04339fe1..b2894f4e27 100644 --- a/package-lock.json +++ b/package-lock.json @@ -5858,6 +5858,7 @@ "version": "1.1.16", "resolved": "https://registry.npmjs.org/@mongodb-js/monorepo-tools/-/monorepo-tools-1.1.16.tgz", "integrity": "sha512-LiIIGvpvgQl+8r72+GFS4QIcQa1Cp2wdtCRgnpVGbYqVKfr/URMA3j95dsBKrDbOsuFgNQ/6052TZdtTfho63g==", + "dev": true, "license": "SSPL", "dependencies": { "chalk": "^4.1.1", @@ -5880,6 +5881,7 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/find-up": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "locate-path": "^5.0.0", @@ -5891,6 +5893,7 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/locate-path": { "version": "5.0.0", + "dev": true, "license": "MIT", "dependencies": { "p-locate": "^4.1.0" @@ -5901,6 +5904,7 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/p-limit": { "version": "2.3.0", + "dev": true, "license": "MIT", "dependencies": { "p-try": "^2.0.0" @@ -5914,6 +5918,7 @@ }, "node_modules/@mongodb-js/monorepo-tools/node_modules/p-locate": { "version": "4.1.0", + "dev": true, "license": "MIT", "dependencies": { "p-limit": "^2.2.0" @@ -6733,6 +6738,7 @@ }, "node_modules/@npmcli/fs": { "version": "1.1.1", + "dev": true, "license": "ISC", "dependencies": { "@gar/promisify": "^1.0.1", @@ -6741,6 +6747,7 @@ }, "node_modules/@npmcli/git": { "version": "2.1.0", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/promise-spawn": "^1.3.2", @@ -6755,6 +6762,7 @@ }, "node_modules/@npmcli/git/node_modules/mkdirp": { "version": "1.0.4", + "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -6765,6 +6773,7 @@ }, "node_modules/@npmcli/installed-package-contents": { "version": "1.0.7", + "dev": true, "license": "ISC", "dependencies": { "npm-bundled": "^1.1.1", @@ -7184,6 +7193,7 @@ }, "node_modules/@npmcli/move-file": { "version": "1.1.2", + "dev": true, "license": "MIT", "dependencies": { "mkdirp": "^1.0.4", @@ -7195,6 +7205,7 @@ }, "node_modules/@npmcli/move-file/node_modules/mkdirp": { "version": "1.0.4", + "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -7213,6 +7224,7 @@ }, "node_modules/@npmcli/node-gyp": { "version": "1.0.3", + "dev": true, "license": "ISC" }, "node_modules/@npmcli/package-json": { @@ -7351,6 +7363,7 @@ }, "node_modules/@npmcli/promise-spawn": { "version": "1.3.2", + "dev": true, "license": "ISC", "dependencies": { "infer-owner": "^1.0.4" @@ -7377,6 +7390,7 @@ }, "node_modules/@npmcli/run-script": { "version": "1.8.6", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/node-gyp": "^1.0.2", @@ -7387,6 +7401,7 @@ }, "node_modules/@npmcli/run-script/node_modules/ansi-regex": { "version": "2.1.1", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -7394,10 +7409,12 @@ }, "node_modules/@npmcli/run-script/node_modules/aproba": { "version": "1.2.0", + "dev": true, "license": "ISC" }, "node_modules/@npmcli/run-script/node_modules/are-we-there-yet": { "version": "1.1.7", + "dev": true, "license": "ISC", "dependencies": { "delegates": "^1.0.0", @@ -7406,6 +7423,7 @@ }, "node_modules/@npmcli/run-script/node_modules/gauge": { "version": "2.7.4", + "dev": true, "license": "ISC", "dependencies": { "aproba": "^1.0.3", @@ -7420,6 +7438,7 @@ }, "node_modules/@npmcli/run-script/node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -7438,6 +7457,7 @@ }, "node_modules/@npmcli/run-script/node_modules/is-fullwidth-code-point": { "version": "1.0.0", + "dev": true, "license": "MIT", "dependencies": { "number-is-nan": "^1.0.0" @@ -7448,6 +7468,7 @@ }, "node_modules/@npmcli/run-script/node_modules/node-gyp": { "version": "7.1.2", + "dev": true, "license": "MIT", "dependencies": { "env-paths": "^2.2.0", @@ -7470,6 +7491,7 @@ }, "node_modules/@npmcli/run-script/node_modules/npmlog": { "version": "4.1.2", + "dev": true, "license": "ISC", "dependencies": { "are-we-there-yet": "~1.1.2", @@ -7480,6 +7502,7 @@ }, "node_modules/@npmcli/run-script/node_modules/string-width": { "version": "1.0.2", + "dev": true, "license": "MIT", "dependencies": { "code-point-at": "^1.0.0", @@ -7492,6 +7515,7 @@ }, "node_modules/@npmcli/run-script/node_modules/strip-ansi": { "version": "3.0.1", + "dev": true, "license": "MIT", "dependencies": { "ansi-regex": "^2.0.0" @@ -11063,6 +11087,7 @@ }, "node_modules/argv-formatter": { "version": "1.0.0", + "dev": true, "license": "MIT" }, "node_modules/aria-query": { @@ -11258,6 +11283,7 @@ }, "node_modules/assert-plus": { "version": "1.0.0", + "dev": true, "license": "MIT", "engines": { "node": ">=0.8" @@ -11318,6 +11344,7 @@ }, "node_modules/asynckit": { "version": "0.4.0", + "devOptional": true, "license": "MIT" }, "node_modules/available-typed-arrays": { @@ -11363,6 +11390,7 @@ }, "node_modules/aws-sign2": { "version": "0.7.0", + "dev": true, "license": "Apache-2.0", "engines": { "node": "*" @@ -12232,6 +12260,7 @@ }, "node_modules/builtins": { "version": "1.0.3", + "dev": true, "license": "MIT" }, "node_modules/bundle-name": { @@ -12264,6 +12293,7 @@ }, "node_modules/cacache": { "version": "15.3.0", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/fs": "^1.0.0", @@ -12291,6 +12321,7 @@ }, "node_modules/cacache/node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -12309,6 +12340,7 @@ }, "node_modules/cacache/node_modules/mkdirp": { "version": "1.0.4", + "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -12527,6 +12559,7 @@ }, "node_modules/caseless": { "version": "0.12.0", + "dev": true, "license": "Apache-2.0" }, "node_modules/chai": { @@ -12723,6 +12756,7 @@ }, "node_modules/cli-cursor": { "version": "3.1.0", + "devOptional": true, "license": "MIT", "dependencies": { "restore-cursor": "^3.1.0" @@ -12745,6 +12779,7 @@ "version": "2.6.1", "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.1.tgz", "integrity": "sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g==", + "devOptional": true, "license": "MIT", "engines": { "node": ">=6" @@ -12831,6 +12866,7 @@ }, "node_modules/code-point-at": { "version": "1.1.0", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -12887,6 +12923,7 @@ }, "node_modules/combined-stream": { "version": "1.0.8", + "devOptional": true, "license": "MIT", "dependencies": { "delayed-stream": "~1.0.0" @@ -13458,6 +13495,7 @@ }, "node_modules/dashdash": { "version": "1.14.1", + "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" @@ -13925,6 +13963,7 @@ }, "node_modules/defaults": { "version": "1.0.3", + "devOptional": true, "license": "MIT", "dependencies": { "clone": "^1.0.2" @@ -13932,6 +13971,7 @@ }, "node_modules/defaults/node_modules/clone": { "version": "1.0.4", + "devOptional": true, "license": "MIT", "engines": { "node": ">=0.8" @@ -13998,6 +14038,7 @@ }, "node_modules/delayed-stream": { "version": "1.0.0", + "devOptional": true, "license": "MIT", "engines": { "node": ">=0.4.0" @@ -14412,6 +14453,7 @@ }, "node_modules/duplexer2": { "version": "0.1.4", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "readable-stream": "^2.0.2" @@ -14502,6 +14544,7 @@ }, "node_modules/ecc-jsbn": { "version": "0.1.2", + "dev": true, "license": "MIT", "dependencies": { "jsbn": "~0.1.0", @@ -15652,6 +15695,7 @@ }, "node_modules/extend": { "version": "3.0.2", + "dev": true, "license": "MIT" }, "node_modules/external-editor": { @@ -15713,6 +15757,7 @@ }, "node_modules/extsprintf": { "version": "1.3.0", + "dev": true, "engines": [ "node >=0.6.0" ], @@ -16139,6 +16184,7 @@ }, "node_modules/forever-agent": { "version": "0.6.1", + "dev": true, "license": "Apache-2.0", "engines": { "node": "*" @@ -16452,6 +16498,7 @@ }, "node_modules/getpass": { "version": "0.1.7", + "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0" @@ -16459,6 +16506,7 @@ }, "node_modules/git-log-parser": { "version": "1.2.0", + "dev": true, "license": "MIT", "dependencies": { "argv-formatter": "~1.0.0", @@ -16471,6 +16519,7 @@ }, "node_modules/git-log-parser/node_modules/split2": { "version": "1.0.0", + "dev": true, "license": "ISC", "dependencies": { "through2": "~2.0.0" @@ -16898,6 +16947,7 @@ }, "node_modules/har-schema": { "version": "2.0.0", + "dev": true, "license": "ISC", "engines": { "node": ">=4" @@ -16905,6 +16955,7 @@ }, "node_modules/har-validator": { "version": "5.1.5", + "dev": true, "license": "MIT", "dependencies": { "ajv": "^6.12.3", @@ -17152,6 +17203,7 @@ }, "node_modules/hosted-git-info": { "version": "4.1.0", + "devOptional": true, "license": "ISC", "dependencies": { "lru-cache": "^6.0.0" @@ -17454,6 +17506,7 @@ }, "node_modules/http-signature": { "version": "1.2.0", + "dev": true, "license": "MIT", "dependencies": { "assert-plus": "^1.0.0", @@ -17553,6 +17606,7 @@ }, "node_modules/ignore-walk": { "version": "3.0.4", + "dev": true, "license": "ISC", "dependencies": { "minimatch": "^3.0.4" @@ -17963,6 +18017,7 @@ }, "node_modules/is-interactive": { "version": "1.0.0", + "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -18206,10 +18261,12 @@ }, "node_modules/is-typedarray": { "version": "1.0.0", + "dev": true, "license": "MIT" }, "node_modules/is-unicode-supported": { "version": "0.1.0", + "devOptional": true, "license": "MIT", "engines": { "node": ">=10" @@ -18305,6 +18362,7 @@ }, "node_modules/isstream": { "version": "0.1.2", + "dev": true, "license": "MIT" }, "node_modules/istanbul-lib-coverage": { @@ -18634,6 +18692,7 @@ }, "node_modules/jsbn": { "version": "0.1.1", + "dev": true, "license": "MIT" }, "node_modules/jsesc": { @@ -18657,10 +18716,12 @@ }, "node_modules/json-parse-even-better-errors": { "version": "2.3.1", + "devOptional": true, "license": "MIT" }, "node_modules/json-schema": { "version": "0.4.0", + "dev": true, "license": "(AFL-2.1 OR BSD-3-Clause)" }, "node_modules/json-schema-traverse": { @@ -18710,6 +18771,7 @@ }, "node_modules/jsonparse": { "version": "1.3.1", + "devOptional": true, "engines": [ "node >= 0.2.0" ], @@ -18732,6 +18794,7 @@ }, "node_modules/jsprim": { "version": "1.4.2", + "dev": true, "license": "MIT", "dependencies": { "assert-plus": "1.0.0", @@ -21109,6 +21172,7 @@ }, "node_modules/minipass-fetch": { "version": "1.4.1", + "dev": true, "license": "MIT", "dependencies": { "minipass": "^3.1.0", @@ -21134,6 +21198,7 @@ }, "node_modules/minipass-json-stream": { "version": "1.0.1", + "dev": true, "license": "MIT", "dependencies": { "jsonparse": "^1.3.1", @@ -21951,6 +22016,7 @@ }, "node_modules/nopt": { "version": "5.0.0", + "dev": true, "license": "ISC", "dependencies": { "abbrev": "1" @@ -22011,6 +22077,7 @@ }, "node_modules/npm-bundled": { "version": "1.1.2", + "dev": true, "license": "ISC", "dependencies": { "npm-normalize-package-bin": "^1.0.1" @@ -22018,6 +22085,7 @@ }, "node_modules/npm-install-checks": { "version": "4.0.0", + "dev": true, "license": "BSD-2-Clause", "dependencies": { "semver": "^7.1.1" @@ -22028,6 +22096,7 @@ }, "node_modules/npm-normalize-package-bin": { "version": "1.0.1", + "dev": true, "license": "ISC" }, "node_modules/npm-package-arg": { @@ -22062,6 +22131,7 @@ }, "node_modules/npm-packlist": { "version": "2.2.2", + "dev": true, "license": "ISC", "dependencies": { "glob": "^7.1.6", @@ -22078,6 +22148,7 @@ }, "node_modules/npm-packlist/node_modules/glob": { "version": "7.2.3", + "dev": true, "license": "ISC", "dependencies": { "fs.realpath": "^1.0.0", @@ -22096,6 +22167,7 @@ }, "node_modules/npm-pick-manifest": { "version": "6.1.1", + "dev": true, "license": "ISC", "dependencies": { "npm-install-checks": "^4.0.0", @@ -22106,6 +22178,7 @@ }, "node_modules/npm-pick-manifest/node_modules/npm-package-arg": { "version": "8.1.5", + "dev": true, "license": "ISC", "dependencies": { "hosted-git-info": "^4.0.1", @@ -22118,6 +22191,7 @@ }, "node_modules/npm-pick-manifest/node_modules/validate-npm-package-name": { "version": "3.0.0", + "dev": true, "license": "ISC", "dependencies": { "builtins": "^1.0.3" @@ -22201,6 +22275,7 @@ }, "node_modules/number-is-nan": { "version": "1.0.1", + "dev": true, "license": "MIT", "engines": { "node": ">=0.10.0" @@ -22682,6 +22757,7 @@ }, "node_modules/oauth-sign": { "version": "0.9.0", + "dev": true, "license": "Apache-2.0", "engines": { "node": "*" @@ -22907,6 +22983,7 @@ }, "node_modules/ora": { "version": "5.4.1", + "devOptional": true, "license": "MIT", "dependencies": { "bl": "^4.1.0", @@ -22928,6 +23005,7 @@ }, "node_modules/ora/node_modules/bl": { "version": "4.1.0", + "devOptional": true, "license": "MIT", "dependencies": { "buffer": "^5.5.0", @@ -22937,6 +23015,7 @@ }, "node_modules/ora/node_modules/buffer": { "version": "5.7.1", + "devOptional": true, "funding": [ { "type": "github", @@ -22959,6 +23038,7 @@ }, "node_modules/ora/node_modules/log-symbols": { "version": "4.1.0", + "devOptional": true, "license": "MIT", "dependencies": { "chalk": "^4.1.0", @@ -22973,6 +23053,7 @@ }, "node_modules/ora/node_modules/readable-stream": { "version": "3.6.2", + "devOptional": true, "license": "MIT", "dependencies": { "inherits": "^2.0.3", @@ -23245,6 +23326,7 @@ }, "node_modules/pacote": { "version": "11.3.5", + "dev": true, "license": "ISC", "dependencies": { "@npmcli/git": "^2.1.0", @@ -23276,6 +23358,7 @@ }, "node_modules/pacote/node_modules/@tootallnate/once": { "version": "1.1.2", + "dev": true, "license": "MIT", "engines": { "node": ">= 6" @@ -23283,6 +23366,7 @@ }, "node_modules/pacote/node_modules/agent-base": { "version": "6.0.2", + "dev": true, "license": "MIT", "dependencies": { "debug": "4" @@ -23293,6 +23377,7 @@ }, "node_modules/pacote/node_modules/http-proxy-agent": { "version": "4.0.1", + "dev": true, "license": "MIT", "dependencies": { "@tootallnate/once": "1", @@ -23305,6 +23390,7 @@ }, "node_modules/pacote/node_modules/https-proxy-agent": { "version": "5.0.1", + "dev": true, "license": "MIT", "dependencies": { "agent-base": "6", @@ -23316,6 +23402,7 @@ }, "node_modules/pacote/node_modules/make-fetch-happen": { "version": "9.1.0", + "dev": true, "license": "ISC", "dependencies": { "agentkeepalive": "^4.1.3", @@ -23341,6 +23428,7 @@ }, "node_modules/pacote/node_modules/mkdirp": { "version": "1.0.4", + "dev": true, "license": "MIT", "bin": { "mkdirp": "bin/cmd.js" @@ -23351,6 +23439,7 @@ }, "node_modules/pacote/node_modules/npm-package-arg": { "version": "8.1.5", + "dev": true, "license": "ISC", "dependencies": { "hosted-git-info": "^4.0.1", @@ -23363,6 +23452,7 @@ }, "node_modules/pacote/node_modules/npm-registry-fetch": { "version": "11.0.0", + "dev": true, "license": "ISC", "dependencies": { "make-fetch-happen": "^9.0.1", @@ -23378,6 +23468,7 @@ }, "node_modules/pacote/node_modules/socks-proxy-agent": { "version": "6.2.1", + "dev": true, "license": "MIT", "dependencies": { "agent-base": "^6.0.2", @@ -23390,6 +23481,7 @@ }, "node_modules/pacote/node_modules/validate-npm-package-name": { "version": "3.0.0", + "dev": true, "license": "ISC", "dependencies": { "builtins": "^1.0.3" @@ -23566,6 +23658,7 @@ }, "node_modules/path-exists": { "version": "4.0.0", + "devOptional": true, "license": "MIT", "engines": { "node": ">=8" @@ -23669,6 +23762,7 @@ }, "node_modules/performance-now": { "version": "2.1.0", + "dev": true, "license": "MIT" }, "node_modules/picocolors": { @@ -24164,6 +24258,7 @@ }, "node_modules/psl": { "version": "1.9.0", + "dev": true, "license": "MIT" }, "node_modules/public-encrypt": { @@ -24632,6 +24727,7 @@ }, "node_modules/read-package-json-fast": { "version": "2.0.3", + "dev": true, "license": "ISC", "dependencies": { "json-parse-even-better-errors": "^2.3.0", @@ -25075,6 +25171,7 @@ }, "node_modules/request": { "version": "2.88.2", + "dev": true, "license": "Apache-2.0", "dependencies": { "aws-sign2": "~0.7.0", @@ -25104,6 +25201,7 @@ }, "node_modules/request/node_modules/form-data": { "version": "2.3.3", + "dev": true, "license": "MIT", "dependencies": { "asynckit": "^0.4.0", @@ -25116,6 +25214,7 @@ }, "node_modules/request/node_modules/qs": { "version": "6.5.3", + "dev": true, "license": "BSD-3-Clause", "engines": { "node": ">=0.6" @@ -25227,6 +25326,7 @@ }, "node_modules/restore-cursor": { "version": "3.1.0", + "devOptional": true, "license": "MIT", "dependencies": { "onetime": "^5.1.0", @@ -26154,6 +26254,7 @@ }, "node_modules/spawn-error-forwarder": { "version": "1.0.0", + "dev": true, "license": "MIT" }, "node_modules/spawn-wrap": { @@ -26341,6 +26442,7 @@ }, "node_modules/sshpk": { "version": "1.17.0", + "dev": true, "license": "MIT", "dependencies": { "asn1": "~0.2.3", @@ -26364,6 +26466,7 @@ }, "node_modules/ssri": { "version": "8.0.1", + "dev": true, "license": "ISC", "dependencies": { "minipass": "^3.1.1" @@ -26426,6 +26529,7 @@ }, "node_modules/stream-combiner2": { "version": "1.1.1", + "dev": true, "license": "MIT", "dependencies": { "duplexer2": "~0.1.0", @@ -27028,6 +27132,7 @@ }, "node_modules/through2": { "version": "2.0.5", + "devOptional": true, "license": "MIT", "dependencies": { "readable-stream": "~2.3.6", @@ -27109,6 +27214,7 @@ }, "node_modules/toposort": { "version": "2.0.2", + "dev": true, "license": "MIT" }, "node_modules/totalist": { @@ -27121,6 +27227,7 @@ }, "node_modules/tough-cookie": { "version": "2.5.0", + "dev": true, "license": "BSD-3-Clause", "dependencies": { "psl": "^1.1.28", @@ -27142,6 +27249,7 @@ }, "node_modules/traverse": { "version": "0.6.7", + "dev": true, "license": "MIT", "funding": { "url": "https://github.com/sponsors/ljharb" @@ -27367,6 +27475,7 @@ }, "node_modules/tunnel-agent": { "version": "0.6.0", + "devOptional": true, "license": "Apache-2.0", "dependencies": { "safe-buffer": "^5.0.1" @@ -27565,6 +27674,7 @@ }, "node_modules/unique-filename": { "version": "1.1.1", + "dev": true, "license": "ISC", "dependencies": { "unique-slug": "^2.0.0" @@ -27572,6 +27682,7 @@ }, "node_modules/unique-slug": { "version": "2.0.2", + "dev": true, "license": "ISC", "dependencies": { "imurmurhash": "^0.1.4" @@ -27708,6 +27819,7 @@ }, "node_modules/uuid": { "version": "3.4.0", + "dev": true, "license": "MIT", "bin": { "uuid": "bin/uuid" @@ -27748,6 +27860,7 @@ }, "node_modules/verror": { "version": "1.10.0", + "dev": true, "engines": [ "node >=0.6.0" ], @@ -27803,6 +27916,7 @@ }, "node_modules/wcwidth": { "version": "1.0.1", + "devOptional": true, "license": "MIT", "dependencies": { "defaults": "^1.0.3" @@ -28842,11 +28956,11 @@ }, "packages/arg-parser": { "name": "@mongosh/arg-parser", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.3.7", - "@mongosh/i18n": "2.3.7", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { @@ -28865,7 +28979,7 @@ }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.22.8", @@ -28892,11 +29006,11 @@ }, "packages/autocomplete": { "name": "@mongosh/autocomplete", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-api": "0.0.0-dev.0", "semver": "^7.5.4" }, "devDependencies": { @@ -28914,15 +29028,15 @@ }, "packages/browser-repl": { "name": "@mongosh/browser-repl", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/node-runtime-worker-thread": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -29101,19 +29215,19 @@ }, "packages/browser-runtime-core": { "name": "@mongosh/browser-runtime-core", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/autocomplete": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7" + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.8", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29139,18 +29253,18 @@ }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7" + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -29169,7 +29283,7 @@ }, "packages/build": { "name": "@mongosh/build", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-github-repo": "^1.0.1", @@ -29194,6 +29308,7 @@ }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/command-exists": "^1.2.0", @@ -29294,24 +29409,24 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "2.3.8", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "2.3.7", - "@mongosh/autocomplete": "2.3.7", - "@mongosh/editor": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/logging": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/snippet-manager": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/editor": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/logging": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/snippet-manager": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -29378,20 +29493,20 @@ }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "devDependencies": { - "mongosh": "2.3.8" + "mongosh": "0.0.0-dev.0" } }, "packages/e2e-tests": { "name": "@mongosh/e2e-tests", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "2.3.8", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/cli-repl": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "strip-ansi": "^6.0.0" }, "devDependencies": { @@ -29501,14 +29616,14 @@ }, "packages/editor": { "name": "@mongosh/editor", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "js-beautify": "^1.15.1" }, "devDependencies": { @@ -29526,7 +29641,7 @@ }, "packages/errors": { "name": "@mongosh/errors", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29545,7 +29660,7 @@ }, "packages/history": { "name": "@mongosh/history", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "mongodb-connection-string-url": "^3.0.1", @@ -29566,10 +29681,10 @@ }, "packages/i18n": { "name": "@mongosh/i18n", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "2.3.7" + "@mongosh/errors": "0.0.0-dev.0" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29585,7 +29700,7 @@ }, "packages/java-shell": { "name": "@mongosh/java-shell", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "SSPL", "devDependencies": { "@mongodb-js/tsconfig-mongosh": "^1.0.0", @@ -29648,7 +29763,7 @@ }, "packages/js-multiline-to-singleline": { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.12", @@ -29669,13 +29784,13 @@ }, "packages/logging": { "name": "@mongosh/logging", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.3.8", - "@mongosh/history": "2.3.8", - "@mongosh/types": "2.3.8", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, @@ -29691,45 +29806,11 @@ "node": ">=14.15.1" } }, - "packages/logging/node_modules/@mongosh/errors": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", - "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, - "packages/logging/node_modules/@mongosh/history": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.8.tgz", - "integrity": "sha512-u7R9dhk6qnbPoeSYkMu7h1JCkZuzFph6jEYy67e4lIviEL6J99u7hUHxNW70DqruOuoXyKREQ+mafPtxQNxu4w==", - "license": "Apache-2.0", - "dependencies": { - "mongodb-connection-string-url": "^3.0.1", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/logging/node_modules/@mongosh/types": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", - "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/mongosh": { - "version": "2.3.8", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "2.3.8" + "@mongosh/cli-repl": "0.0.0-dev.0" }, "bin": { "mongosh": "bin/mongosh.js" @@ -29740,7 +29821,7 @@ }, "packages/node-runtime-worker-thread": { "name": "@mongosh/node-runtime-worker-thread", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", @@ -29751,11 +29832,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "2.3.8", - "@mongosh/browser-runtime-electron": "2.3.8", - "@mongosh/service-provider-core": "2.3.8", - "@mongosh/service-provider-node-driver": "2.3.8", - "@mongosh/types": "2.3.8", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-electron": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29818,37 +29899,6 @@ "node": ">=14.15.1" } }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-core": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-core/-/browser-runtime-core-2.3.8.tgz", - "integrity": "sha512-vn7T95tWi9B1lRrbS0ilctVh+bGWHKmEeKu3cxVJ+mF7gRHY12ZhqfUu4irfq3Aq9RGGL+5EBLM0Kw70ZZMAYA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/autocomplete": "2.3.8", - "@mongosh/service-provider-core": "2.3.8", - "@mongosh/shell-api": "2.3.8", - "@mongosh/shell-evaluator": "2.3.8" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/browser-runtime-electron": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/browser-runtime-electron/-/browser-runtime-electron-2.3.8.tgz", - "integrity": "sha512-O6PuwkNtHbuNkILj+WUNPAvK0y0JNVWCQv8YCGBoXWlwgg58UEbeUhKGoE4IlNRX9LUTWLPMjJe2N6z2P4iZow==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/browser-runtime-core": "2.3.8", - "@mongosh/service-provider-core": "2.3.8", - "@mongosh/types": "2.3.8" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/node-runtime-worker-thread/node_modules/@mongosh/errors": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", @@ -29886,52 +29936,6 @@ "node": ">=14.15.1" } }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-core": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.8.tgz", - "integrity": "sha512-zt7y+iXwPQhSojKzObPRICjKpQwJbOzOdo6yObF5iiG2/FX4Gi8WrVjwVqEAAZ//nVCXkMM7Y0epMhcZX+h5oQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.8", - "bson": "^6.10.1", - "mongodb": "^6.12.0", - "mongodb-build-info": "^1.7.2", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - }, - "optionalDependencies": { - "mongodb-client-encryption": "^6.1.0" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/service-provider-node-driver": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/service-provider-node-driver/-/service-provider-node-driver-2.3.8.tgz", - "integrity": "sha512-lohfxdHosjigTqeXT4gr2IXuLRvnSJ8N/KbnpDsziG40S7b/t31s9t8WPtBWfVu51tOPdst10GjI3RINJyXIsg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4", - "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.8", - "@mongosh/service-provider-core": "2.3.8", - "@mongosh/types": "2.3.8", - "aws4": "^1.12.0", - "mongodb": "^6.12.0", - "mongodb-connection-string-url": "^3.0.1", - "socks": "^2.8.3" - }, - "engines": { - "node": ">=14.15.1" - }, - "optionalDependencies": { - "kerberos": "2.1.0", - "mongodb-client-encryption": "^6.1.0" - } - }, "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-api": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.8.tgz", @@ -29965,26 +29969,13 @@ "node": ">=14.15.1" } }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/types": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", - "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.8", + "@mongosh/errors": "0.0.0-dev.0", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", @@ -30005,25 +29996,16 @@ "mongodb-client-encryption": "^6.1.0" } }, - "packages/service-provider-core/node_modules/@mongosh/errors": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", - "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", @@ -30048,21 +30030,21 @@ }, "packages/shell-api": { "name": "@mongosh/shell-api", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/arg-parser": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "mongodb-redact": "^1.1.2" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.8", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -30089,18 +30071,18 @@ }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { - "@mongosh/async-rewriter2": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/shell-api": "2.3.7" + "@mongosh/async-rewriter2": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongosh/types": "0.0.0-dev.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -30112,13 +30094,13 @@ }, "packages/snippet-manager": { "name": "@mongosh/snippet-manager", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.3.8", - "@mongosh/shell-api": "2.3.8", - "@mongosh/types": "2.3.8", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -30154,15 +30136,6 @@ "node": ">=14.15.1" } }, - "packages/snippet-manager/node_modules/@mongosh/errors": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", - "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, "packages/snippet-manager/node_modules/@mongosh/history": { "version": "2.3.8", "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.8.tgz", @@ -30208,35 +30181,6 @@ "mongodb-client-encryption": "^6.1.0" } }, - "packages/snippet-manager/node_modules/@mongosh/shell-api": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.8.tgz", - "integrity": "sha512-ulzeBdiQ5aGMtRqVxkDc6EYO6cELhDfxlB6XHF/v9C0m85Y+pFcBJnpMvy6vfSorWzBXQB6W0/DXLR/+z7USdg==", - "license": "Apache-2.0", - "dependencies": { - "@mongosh/arg-parser": "2.3.8", - "@mongosh/errors": "2.3.8", - "@mongosh/history": "2.3.8", - "@mongosh/i18n": "2.3.8", - "@mongosh/service-provider-core": "2.3.8", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/types": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/types/-/types-2.3.8.tgz", - "integrity": "sha512-WFx/SPMWwQIcCeSBlYiIEbVg3YEYKo6Dr+IKVBpUw6Vr82CGQ1zZXRChIhdhu/H7jo3O+kdeGOPIftn0kvYmLA==", - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/devtools-connect": "^3.3.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/snippet-manager/node_modules/@types/cross-spawn": { "version": "6.0.6", "resolved": "https://registry.npmjs.org/@types/cross-spawn/-/cross-spawn-6.0.6.tgz", @@ -30249,7 +30193,7 @@ }, "packages/types": { "name": "@mongosh/types", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4" @@ -30269,7 +30213,7 @@ }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", - "version": "2.3.7", + "version": "0.0.0-dev.0", "license": "Apache-2.0", "dependencies": { "mongodb-crypt-library-version": "^1.0.5" diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index eec57eefd1..c784148e70 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/arg-parser", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell CLI Argument List Parser Package", "main": "./lib/index.js", "repository": { @@ -35,8 +35,8 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.3.7", - "@mongosh/i18n": "2.3.7", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index 17bd4cad1b..0d2e5be0e2 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/async-rewriter2", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Async Rewriter Package", "main": "./lib/index.js", "scripts": { diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index da6523f0c5..b3d2e4b97a 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/autocomplete", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Autocomplete Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -44,7 +44,7 @@ }, "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.7", + "@mongosh/shell-api": "0.0.0-dev.0", "semver": "^7.5.4" } } diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index 75ddf4eaeb..b4dfeeed01 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-repl", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "Browser presentation component for Mongo Shell", "engines": { "node": ">=14.15.1" @@ -56,12 +56,12 @@ ] }, "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/node-runtime-worker-thread": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "numeral": "^2.0.6", "text-table": "^0.2.0" }, diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index f1abaeccf1..723871e736 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-core", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "Mongosh browser runtime core", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.8", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -49,9 +49,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/autocomplete": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7" + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0" } } diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index 5295b00c8a..70946b7d06 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-electron", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "Mongosh browser runtime electron", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "2.3.7", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -50,8 +50,8 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/browser-runtime-core": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7" + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0" } } diff --git a/packages/build/package.json b/packages/build/package.json index 4940268c09..a26d0bcfd0 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/build", - "version": "2.3.7", + "version": "0.0.0-dev.0", "private": true, "description": "MongoDB Shell Build Tools", "main": "lib/index.js", @@ -44,6 +44,7 @@ }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", + "@mongodb-js/monorepo-tools": "^1.1.10", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", "@types/command-exists": "^1.2.0", diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index f7c2320f39..43c7354437 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "2.3.8", + "version": "0.0.0-dev.0", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", @@ -63,20 +63,20 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "2.3.7", - "@mongosh/autocomplete": "2.3.7", - "@mongosh/editor": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/logging": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/service-provider-node-driver": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/snippet-manager": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/autocomplete": "0.0.0-dev.0", + "@mongosh/editor": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/logging": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/snippet-manager": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 9ec07d3b84..4ef44a9b2f 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/connectivity-tests", - "version": "2.3.7", + "version": "0.0.0-dev.0", "private": true, "license": "Apache-2.0", "scripts": { @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "2.3.8" + "mongosh": "0.0.0-dev.0" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 8734a1c832..326647057c 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/e2e-tests", - "version": "2.3.7", + "version": "0.0.0-dev.0", "private": true, "description": "MongoDB Shell E2E Tests Package", "homepage": "https://github.com/mongodb-js/mongosh", @@ -27,8 +27,8 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "2.3.8", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/cli-repl": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" }, diff --git a/packages/editor/package.json b/packages/editor/package.json index df6d22f49a..57e07395a5 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/editor", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell External Editor", "main": "./lib/index.js", "repository": { @@ -35,11 +35,11 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/js-multiline-to-singleline": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/shell-api": "2.3.7", - "@mongosh/shell-evaluator": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-evaluator": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "js-beautify": "^1.15.1" }, "devDependencies": { diff --git a/packages/errors/package.json b/packages/errors/package.json index b2771b58f7..4736c169ba 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/errors", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Errors Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/history/package.json b/packages/history/package.json index 79eaafd586..21df6a136a 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/history", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell History Package", "main": "./lib/index.js", "repository": { diff --git a/packages/i18n/package.json b/packages/i18n/package.json index 6fd1fee90c..e717cf7622 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/i18n", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell i18n Project", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,7 +36,7 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "2.3.7" + "@mongosh/errors": "0.0.0-dev.0" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index 53458cd021..f541d15ef0 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/java-shell", - "version": "2.3.7", + "version": "0.0.0-dev.0", "private": true, "description": "Java application that uses mongosh-shell-api node module and MongoDB java driver to run mongo shell on JVM", "config": { diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index 7775447634..06b21592a4 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/js-multiline-to-singleline", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "Make multiline JS into a single line", "main": "./lib/index.js", "repository": { diff --git a/packages/logging/package.json b/packages/logging/package.json index 616609add1..bcaf186071 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/logging", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Logging Utilities Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -18,9 +18,9 @@ }, "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "2.3.8", - "@mongosh/history": "2.3.8", - "@mongosh/types": "2.3.8", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index f9474439d7..dc77b76af1 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "2.3.8", + "version": "0.0.0-dev.0", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "2.3.8" + "@mongosh/cli-repl": "0.0.0-dev.0" } } diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index a19f3fca6b..211205f6bf 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/node-runtime-worker-thread", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB shell runtime that lives in a worker thread", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -37,11 +37,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "2.3.8", - "@mongosh/browser-runtime-electron": "2.3.8", - "@mongosh/service-provider-core": "2.3.8", - "@mongosh/service-provider-node-driver": "2.3.8", - "@mongosh/types": "2.3.8", + "@mongosh/browser-runtime-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-electron": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 492e901a50..94847a855f 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-core", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Core Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -44,7 +44,7 @@ }, "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.8", + "@mongosh/errors": "0.0.0-dev.0", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index f193c2d8ba..4f9d721060 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-node-driver", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Server Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", - "@mongosh/types": "2.3.7", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index a766eeae65..429920d6dd 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-api", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell API Classes Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,18 +40,18 @@ "build" ], "dependencies": { - "@mongosh/arg-parser": "2.3.7", - "@mongosh/errors": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/i18n": "2.3.7", - "@mongosh/service-provider-core": "2.3.7", + "@mongosh/arg-parser": "0.0.0-dev.0", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/service-provider-core": "0.0.0-dev.0", "mongodb-redact": "^1.1.2" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.8", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index e8ab586882..7952764eef 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-evaluator", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Top Level API Package", "main": "./lib/index.js", "scripts": { @@ -38,15 +38,15 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "2.3.7", + "@mongosh/types": "0.0.0-dev.0", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, "dependencies": { - "@mongosh/async-rewriter2": "2.3.7", - "@mongosh/history": "2.3.7", - "@mongosh/shell-api": "2.3.7" + "@mongosh/async-rewriter2": "0.0.0-dev.0", + "@mongosh/history": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0" } } diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index f8d0d5676b..5684fbe12b 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/snippet-manager", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "MongoDB Shell Snippet Manager", "main": "./lib/index.js", "repository": { @@ -36,9 +36,9 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "2.3.8", - "@mongosh/shell-api": "2.3.8", - "@mongosh/types": "2.3.8", + "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/types": "0.0.0-dev.0", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", diff --git a/packages/types/package.json b/packages/types/package.json index 41e1744ca8..7c7e7d7559 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/types", - "version": "2.3.7", + "version": "0.0.0-dev.0", "description": "Types for mongosh internals", "author": "Anna Henningsen ", "homepage": "https://github.com/mongodb-js/mongosh/tree/main/packages/types#readme", diff --git a/scripts/docker/package.json b/scripts/docker/package.json index a22064f372..9560b97a80 100644 --- a/scripts/docker/package.json +++ b/scripts/docker/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/docker-build-scripts", - "version": "2.3.7", + "version": "0.0.0-dev.0", "private": true, "description": "MongoDB Shell Build Docker Images", "config": { From 9c4c358143d2b64bb5501582d38a0b6d3105ca22 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 10 Jan 2025 14:36:19 +0100 Subject: [PATCH 35/40] use 2.3.8 --- package-lock.json | 377 +++++------------- package.json | 12 +- packages/arg-parser/package.json | 6 +- packages/async-rewriter2/package.json | 2 +- packages/autocomplete/package.json | 4 +- packages/browser-repl/package.json | 14 +- packages/browser-runtime-core/package.json | 12 +- .../browser-runtime-electron/package.json | 10 +- packages/build/package.json | 2 +- packages/cli-repl/package.json | 30 +- packages/connectivity-tests/package.json | 4 +- packages/e2e-tests/package.json | 6 +- packages/editor/package.json | 12 +- packages/errors/package.json | 2 +- packages/history/package.json | 2 +- packages/i18n/package.json | 4 +- packages/java-shell/package.json | 2 +- .../js-multiline-to-singleline/package.json | 2 +- packages/logging/package.json | 8 +- packages/mongosh/package.json | 4 +- .../node-runtime-worker-thread/package.json | 12 +- packages/service-provider-core/package.json | 4 +- .../service-provider-node-driver/package.json | 8 +- packages/shell-api/package.json | 14 +- packages/shell-evaluator/package.json | 10 +- packages/snippet-manager/package.json | 8 +- packages/types/package.json | 2 +- scripts/docker/package.json | 2 +- 28 files changed, 198 insertions(+), 377 deletions(-) diff --git a/package-lock.json b/package-lock.json index b2894f4e27..dae0c8e897 100644 --- a/package-lock.json +++ b/package-lock.json @@ -17,24 +17,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/logging", - "packages/node-runtime-worker-thread", - "packages/service-provider-core", - "packages/snippet-manager", "packages/types", "packages/i18n", - "packages/service-provider-node-driver", + "packages/logging", + "packages/service-provider-core", "packages/arg-parser", + "packages/service-provider-node-driver", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", + "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", - "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", + "packages/node-runtime-worker-thread", + "packages/browser-repl", "packages/connectivity-tests" ], "bin": { @@ -28956,11 +28956,11 @@ }, "packages/arg-parser": { "name": "@mongosh/arg-parser", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/i18n": "2.3.8", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { @@ -28979,7 +28979,7 @@ }, "packages/async-rewriter2": { "name": "@mongosh/async-rewriter2", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.22.8", @@ -29006,11 +29006,11 @@ }, "packages/autocomplete": { "name": "@mongosh/autocomplete", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-api": "2.3.8", "semver": "^7.5.4" }, "devDependencies": { @@ -29028,15 +29028,15 @@ }, "packages/browser-repl": { "name": "@mongosh/browser-repl", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/node-runtime-worker-thread": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", "numeral": "^2.0.6", "text-table": "^0.2.0" }, @@ -29215,19 +29215,19 @@ }, "packages/browser-runtime-core": { "name": "@mongosh/browser-runtime-core", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0" + "@mongosh/autocomplete": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/shell-evaluator": "2.3.8" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29253,18 +29253,18 @@ }, "packages/browser-runtime-electron": { "name": "@mongosh/browser-runtime-electron", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0" + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/types": "2.3.8" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "2.3.8", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -29283,7 +29283,7 @@ }, "packages/build": { "name": "@mongosh/build", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-github-repo": "^1.0.1", @@ -29409,24 +29409,24 @@ }, "packages/cli-repl": { "name": "@mongosh/cli-repl", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/editor": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/logging": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/snippet-manager": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.8", + "@mongosh/autocomplete": "2.3.8", + "@mongosh/editor": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/js-multiline-to-singleline": "2.3.8", + "@mongosh/logging": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/service-provider-node-driver": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/shell-evaluator": "2.3.8", + "@mongosh/snippet-manager": "2.3.8", + "@mongosh/types": "2.3.8", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", @@ -29493,20 +29493,20 @@ }, "packages/connectivity-tests": { "name": "@mongosh/connectivity-tests", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "devDependencies": { - "mongosh": "0.0.0-dev.0" + "mongosh": "2.3.8" } }, "packages/e2e-tests": { "name": "@mongosh/e2e-tests", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/cli-repl": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/cli-repl": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", "strip-ansi": "^6.0.0" }, "devDependencies": { @@ -29616,14 +29616,14 @@ }, "packages/editor": { "name": "@mongosh/editor", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/shell-evaluator": "2.3.8", + "@mongosh/types": "2.3.8", "js-beautify": "^1.15.1" }, "devDependencies": { @@ -29641,7 +29641,7 @@ }, "packages/errors": { "name": "@mongosh/errors", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29660,7 +29660,7 @@ }, "packages/history": { "name": "@mongosh/history", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "mongodb-connection-string-url": "^3.0.1", @@ -29681,10 +29681,10 @@ }, "packages/i18n": { "name": "@mongosh/i18n", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/errors": "0.0.0-dev.0" + "@mongosh/errors": "2.3.8" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", @@ -29700,7 +29700,7 @@ }, "packages/java-shell": { "name": "@mongosh/java-shell", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "SSPL", "devDependencies": { "@mongodb-js/tsconfig-mongosh": "^1.0.0", @@ -29763,7 +29763,7 @@ }, "packages/js-multiline-to-singleline": { "name": "@mongosh/js-multiline-to-singleline", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@babel/core": "^7.16.12", @@ -29784,13 +29784,13 @@ }, "packages/logging": { "name": "@mongosh/logging", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/types": "2.3.8", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, @@ -29807,10 +29807,10 @@ } }, "packages/mongosh": { - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0" + "@mongosh/cli-repl": "2.3.8" }, "bin": { "mongosh": "bin/mongosh.js" @@ -29821,7 +29821,7 @@ }, "packages/node-runtime-worker-thread": { "name": "@mongosh/node-runtime-worker-thread", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "interruptor": "^1.0.1", @@ -29832,11 +29832,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/browser-runtime-electron": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/browser-runtime-electron": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/service-provider-node-driver": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -29849,133 +29849,13 @@ "node": ">=14.15.1" } }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/arg-parser": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.8.tgz", - "integrity": "sha512-oo6glzgsOyZJYijHvWMhnYJOZOI16J/u5y+puRLHL0oNwAaRwumJ1Kx+Zp9gQI9s6C523X80Hrs6op6/fCRp9Q==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.8", - "@mongosh/i18n": "2.3.8", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/async-rewriter2": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/async-rewriter2/-/async-rewriter2-2.3.8.tgz", - "integrity": "sha512-YHt0m2MehX5UBILQqwDL1hToDRc1vtUPoD6Q2HH31iSY3Yer+uL83+BQe5AWaR5IBYGtNbul5IcKFwXCE5hA/w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@babel/core": "^7.22.8", - "@babel/plugin-transform-destructuring": "^7.22.5", - "@babel/plugin-transform-parameters": "^7.22.5", - "@babel/plugin-transform-shorthand-properties": "^7.22.5", - "@babel/types": "^7.22.5" - }, - "bin": { - "async-rewrite": "bin/async-rewrite.js" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/autocomplete": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/autocomplete/-/autocomplete-2.3.8.tgz", - "integrity": "sha512-uiUhqTIFEei/YD1+MJOGJYGXC0tBmbteyDLzIudXYN8oCzvX+hqyZq3wbAQEH0jxF7aUzdAhxKVulIg2HxpIqQ==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "2.3.8", - "semver": "^7.5.4" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/errors": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/errors/-/errors-2.3.8.tgz", - "integrity": "sha512-r7J2PxZec+Li0V6R7Mn1BgeTR9uyT2bYOqmXf1LApkuODTkjmrgZlZOwBl184eqF3jkLI7ZadUqZe8TBColXfw==", - "dev": true, - "license": "Apache-2.0", - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/history": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.8.tgz", - "integrity": "sha512-u7R9dhk6qnbPoeSYkMu7h1JCkZuzFph6jEYy67e4lIviEL6J99u7hUHxNW70DqruOuoXyKREQ+mafPtxQNxu4w==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "mongodb-connection-string-url": "^3.0.1", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/i18n": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.8.tgz", - "integrity": "sha512-PbjAR7Dg8fYGRnnGTBvihPt8sHEZbg1BTgPas1jZGki6gUSiI/bwYeP0rOr7jgmvU2GcARJ8tfnxXBCIEIBasA==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.8" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-api": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/shell-api/-/shell-api-2.3.8.tgz", - "integrity": "sha512-ulzeBdiQ5aGMtRqVxkDc6EYO6cELhDfxlB6XHF/v9C0m85Y+pFcBJnpMvy6vfSorWzBXQB6W0/DXLR/+z7USdg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/arg-parser": "2.3.8", - "@mongosh/errors": "2.3.8", - "@mongosh/history": "2.3.8", - "@mongosh/i18n": "2.3.8", - "@mongosh/service-provider-core": "2.3.8", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/node-runtime-worker-thread/node_modules/@mongosh/shell-evaluator": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/shell-evaluator/-/shell-evaluator-2.3.8.tgz", - "integrity": "sha512-txC0yHDOjsy8a8Bg6PIY94M+KDcvHgLGlA/Ar/XoNZFSEAfF7I0Xj0wYf9iP22eqtfoU5FYEsqToVZLyyh+QFg==", - "dev": true, - "license": "Apache-2.0", - "dependencies": { - "@mongosh/async-rewriter2": "2.3.8", - "@mongosh/history": "2.3.8", - "@mongosh/shell-api": "2.3.8" - }, - "engines": { - "node": ">=14.15.1" - } - }, "packages/service-provider-core": { "name": "@mongosh/service-provider-core", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", @@ -29998,14 +29878,14 @@ }, "packages/service-provider-node-driver": { "name": "@mongosh/service-provider-node-driver", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/types": "2.3.8", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", @@ -30030,21 +29910,21 @@ }, "packages/shell-api": { "name": "@mongosh/shell-api", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", "mongodb-redact": "^1.1.2" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -30071,18 +29951,18 @@ }, "packages/shell-evaluator": { "name": "@mongosh/shell-evaluator", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { - "@mongosh/async-rewriter2": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0" + "@mongosh/async-rewriter2": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/shell-api": "2.3.8" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.8", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -30094,13 +29974,13 @@ }, "packages/snippet-manager": { "name": "@mongosh/snippet-manager", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", @@ -30122,65 +30002,6 @@ "node": ">=14.15.1" } }, - "packages/snippet-manager/node_modules/@mongosh/arg-parser": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/arg-parser/-/arg-parser-2.3.8.tgz", - "integrity": "sha512-oo6glzgsOyZJYijHvWMhnYJOZOI16J/u5y+puRLHL0oNwAaRwumJ1Kx+Zp9gQI9s6C523X80Hrs6op6/fCRp9Q==", - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.8", - "@mongosh/i18n": "2.3.8", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/history": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/history/-/history-2.3.8.tgz", - "integrity": "sha512-u7R9dhk6qnbPoeSYkMu7h1JCkZuzFph6jEYy67e4lIviEL6J99u7hUHxNW70DqruOuoXyKREQ+mafPtxQNxu4w==", - "license": "Apache-2.0", - "dependencies": { - "mongodb-connection-string-url": "^3.0.1", - "mongodb-redact": "^1.1.2" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/i18n": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/i18n/-/i18n-2.3.8.tgz", - "integrity": "sha512-PbjAR7Dg8fYGRnnGTBvihPt8sHEZbg1BTgPas1jZGki6gUSiI/bwYeP0rOr7jgmvU2GcARJ8tfnxXBCIEIBasA==", - "license": "Apache-2.0", - "dependencies": { - "@mongosh/errors": "2.3.8" - }, - "engines": { - "node": ">=14.15.1" - } - }, - "packages/snippet-manager/node_modules/@mongosh/service-provider-core": { - "version": "2.3.8", - "resolved": "https://registry.npmjs.org/@mongosh/service-provider-core/-/service-provider-core-2.3.8.tgz", - "integrity": "sha512-zt7y+iXwPQhSojKzObPRICjKpQwJbOzOdo6yObF5iiG2/FX4Gi8WrVjwVqEAAZ//nVCXkMM7Y0epMhcZX+h5oQ==", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "2.3.8", - "bson": "^6.10.1", - "mongodb": "^6.12.0", - "mongodb-build-info": "^1.7.2", - "mongodb-connection-string-url": "^3.0.1" - }, - "engines": { - "node": ">=14.15.1" - }, - "optionalDependencies": { - "mongodb-client-encryption": "^6.1.0" - } - }, "packages/snippet-manager/node_modules/@types/cross-spawn": { "version": "6.0.6", "resolved": "https://registry.npmjs.org/@types/cross-spawn/-/cross-spawn-6.0.6.tgz", @@ -30193,7 +30014,7 @@ }, "packages/types": { "name": "@mongosh/types", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4" @@ -30213,7 +30034,7 @@ }, "scripts/docker": { "name": "@mongosh/docker-build-scripts", - "version": "0.0.0-dev.0", + "version": "2.3.8", "license": "Apache-2.0", "dependencies": { "mongodb-crypt-library-version": "^1.0.5" diff --git a/package.json b/package.json index 9a6b14d705..af12edefb6 100644 --- a/package.json +++ b/package.json @@ -149,24 +149,24 @@ "packages/history", "packages/java-shell", "packages/js-multiline-to-singleline", - "packages/logging", - "packages/node-runtime-worker-thread", - "packages/service-provider-core", - "packages/snippet-manager", "packages/types", "packages/i18n", - "packages/service-provider-node-driver", + "packages/logging", + "packages/service-provider-core", "packages/arg-parser", + "packages/service-provider-node-driver", "packages/shell-api", "packages/autocomplete", "packages/shell-evaluator", + "packages/snippet-manager", "packages/browser-runtime-core", "packages/editor", - "packages/browser-repl", "packages/browser-runtime-electron", "packages/cli-repl", "packages/e2e-tests", "packages/mongosh", + "packages/node-runtime-worker-thread", + "packages/browser-repl", "packages/connectivity-tests" ], "overrides": { diff --git a/packages/arg-parser/package.json b/packages/arg-parser/package.json index c784148e70..7380137525 100644 --- a/packages/arg-parser/package.json +++ b/packages/arg-parser/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/arg-parser", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell CLI Argument List Parser Package", "main": "./lib/index.js", "repository": { @@ -35,8 +35,8 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/i18n": "2.3.8", "mongodb-connection-string-url": "^3.0.1" }, "devDependencies": { diff --git a/packages/async-rewriter2/package.json b/packages/async-rewriter2/package.json index 0d2e5be0e2..068d1349c1 100644 --- a/packages/async-rewriter2/package.json +++ b/packages/async-rewriter2/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/async-rewriter2", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell Async Rewriter Package", "main": "./lib/index.js", "scripts": { diff --git a/packages/autocomplete/package.json b/packages/autocomplete/package.json index b3d2e4b97a..788972f91c 100644 --- a/packages/autocomplete/package.json +++ b/packages/autocomplete/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/autocomplete", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell Autocomplete Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -44,7 +44,7 @@ }, "dependencies": { "@mongodb-js/mongodb-constants": "^0.10.1", - "@mongosh/shell-api": "0.0.0-dev.0", + "@mongosh/shell-api": "2.3.8", "semver": "^7.5.4" } } diff --git a/packages/browser-repl/package.json b/packages/browser-repl/package.json index b4dfeeed01..d48c4df3ff 100644 --- a/packages/browser-repl/package.json +++ b/packages/browser-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-repl", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "Browser presentation component for Mongo Shell", "engines": { "node": ">=14.15.1" @@ -56,12 +56,12 @@ ] }, "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/node-runtime-worker-thread": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/node-runtime-worker-thread": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", "numeral": "^2.0.6", "text-table": "^0.2.0" }, diff --git a/packages/browser-runtime-core/package.json b/packages/browser-runtime-core/package.json index 723871e736..1226da3c9f 100644 --- a/packages/browser-runtime-core/package.json +++ b/packages/browser-runtime-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-core", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "Mongosh browser runtime core", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", @@ -49,9 +49,9 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0" + "@mongosh/autocomplete": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/shell-evaluator": "2.3.8" } } diff --git a/packages/browser-runtime-electron/package.json b/packages/browser-runtime-electron/package.json index 70946b7d06..592cd4ae5b 100644 --- a/packages/browser-runtime-electron/package.json +++ b/packages/browser-runtime-electron/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/browser-runtime-electron", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "Mongosh browser runtime electron", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -41,7 +41,7 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", + "@mongosh/service-provider-node-driver": "2.3.8", "@types/sinon": "^7.5.1", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", @@ -50,8 +50,8 @@ "rimraf": "^3.0.2" }, "dependencies": { - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0" + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/types": "2.3.8" } } diff --git a/packages/build/package.json b/packages/build/package.json index a26d0bcfd0..52e71fa78b 100644 --- a/packages/build/package.json +++ b/packages/build/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/build", - "version": "0.0.0-dev.0", + "version": "2.3.8", "private": true, "description": "MongoDB Shell Build Tools", "main": "lib/index.js", diff --git a/packages/cli-repl/package.json b/packages/cli-repl/package.json index 43c7354437..092d810c19 100644 --- a/packages/cli-repl/package.json +++ b/packages/cli-repl/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/cli-repl", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell CLI REPL Package", "homepage": "https://github.com/mongodb-js/mongosh", "author": "Compass Team ", @@ -63,20 +63,20 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/autocomplete": "0.0.0-dev.0", - "@mongosh/editor": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/logging": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/snippet-manager": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.8", + "@mongosh/autocomplete": "2.3.8", + "@mongosh/editor": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/js-multiline-to-singleline": "2.3.8", + "@mongosh/logging": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/service-provider-node-driver": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/shell-evaluator": "2.3.8", + "@mongosh/snippet-manager": "2.3.8", + "@mongosh/types": "2.3.8", "@segment/analytics-node": "^1.3.0", "ansi-escape-sequences": "^5.1.2", "askcharacter": "^2.0.4", diff --git a/packages/connectivity-tests/package.json b/packages/connectivity-tests/package.json index 4ef44a9b2f..b9d76c9881 100644 --- a/packages/connectivity-tests/package.json +++ b/packages/connectivity-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/connectivity-tests", - "version": "0.0.0-dev.0", + "version": "2.3.8", "private": true, "license": "Apache-2.0", "scripts": { @@ -11,7 +11,7 @@ "test-ci-coverage": "nyc --no-clean --cwd ../.. --reporter=none npm run test-ci" }, "devDependencies": { - "mongosh": "0.0.0-dev.0" + "mongosh": "2.3.8" }, "mongosh": { "unitTestsOnly": true, diff --git a/packages/e2e-tests/package.json b/packages/e2e-tests/package.json index 326647057c..a4c2c4dd40 100644 --- a/packages/e2e-tests/package.json +++ b/packages/e2e-tests/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/e2e-tests", - "version": "0.0.0-dev.0", + "version": "2.3.8", "private": true, "description": "MongoDB Shell E2E Tests Package", "homepage": "https://github.com/mongodb-js/mongosh", @@ -27,8 +27,8 @@ "node": ">=16.15.0" }, "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/cli-repl": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", "@mongodb-js/oidc-plugin": "^1.1.5", "strip-ansi": "^6.0.0" }, diff --git a/packages/editor/package.json b/packages/editor/package.json index 57e07395a5..98cf3eb3e1 100644 --- a/packages/editor/package.json +++ b/packages/editor/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/editor", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell External Editor", "main": "./lib/index.js", "repository": { @@ -35,11 +35,11 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/js-multiline-to-singleline": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/shell-evaluator": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/js-multiline-to-singleline": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/shell-evaluator": "2.3.8", + "@mongosh/types": "2.3.8", "js-beautify": "^1.15.1" }, "devDependencies": { diff --git a/packages/errors/package.json b/packages/errors/package.json index 4736c169ba..b6469963c2 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/errors", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell Errors Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", diff --git a/packages/history/package.json b/packages/history/package.json index 21df6a136a..d214420757 100644 --- a/packages/history/package.json +++ b/packages/history/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/history", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell History Package", "main": "./lib/index.js", "repository": { diff --git a/packages/i18n/package.json b/packages/i18n/package.json index e717cf7622..936e2c5d83 100644 --- a/packages/i18n/package.json +++ b/packages/i18n/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/i18n", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell i18n Project", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -36,7 +36,7 @@ "unitTestsOnly": true }, "dependencies": { - "@mongosh/errors": "0.0.0-dev.0" + "@mongosh/errors": "2.3.8" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", diff --git a/packages/java-shell/package.json b/packages/java-shell/package.json index f541d15ef0..30d3965839 100644 --- a/packages/java-shell/package.json +++ b/packages/java-shell/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/java-shell", - "version": "0.0.0-dev.0", + "version": "2.3.8", "private": true, "description": "Java application that uses mongosh-shell-api node module and MongoDB java driver to run mongo shell on JVM", "config": { diff --git a/packages/js-multiline-to-singleline/package.json b/packages/js-multiline-to-singleline/package.json index 06b21592a4..596246631e 100644 --- a/packages/js-multiline-to-singleline/package.json +++ b/packages/js-multiline-to-singleline/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/js-multiline-to-singleline", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "Make multiline JS into a single line", "main": "./lib/index.js", "repository": { diff --git a/packages/logging/package.json b/packages/logging/package.json index bcaf186071..967d024517 100644 --- a/packages/logging/package.json +++ b/packages/logging/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/logging", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell Logging Utilities Package", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -18,9 +18,9 @@ }, "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/types": "2.3.8", "mongodb-log-writer": "^1.4.2", "mongodb-redact": "^1.1.2" }, diff --git a/packages/mongosh/package.json b/packages/mongosh/package.json index dc77b76af1..f9474439d7 100644 --- a/packages/mongosh/package.json +++ b/packages/mongosh/package.json @@ -1,6 +1,6 @@ { "name": "mongosh", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell CLI REPL", "keywords": [ "mongosh", @@ -39,6 +39,6 @@ "variants": [] }, "dependencies": { - "@mongosh/cli-repl": "0.0.0-dev.0" + "@mongosh/cli-repl": "2.3.8" } } diff --git a/packages/node-runtime-worker-thread/package.json b/packages/node-runtime-worker-thread/package.json index 211205f6bf..ba95647634 100644 --- a/packages/node-runtime-worker-thread/package.json +++ b/packages/node-runtime-worker-thread/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/node-runtime-worker-thread", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB shell runtime that lives in a worker thread", "homepage": "https://github.com/mongodb-js/mongosh", "license": "Apache-2.0", @@ -37,11 +37,11 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/browser-runtime-core": "0.0.0-dev.0", - "@mongosh/browser-runtime-electron": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/service-provider-node-driver": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/browser-runtime-core": "2.3.8", + "@mongosh/browser-runtime-electron": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/service-provider-node-driver": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/service-provider-core/package.json b/packages/service-provider-core/package.json index 94847a855f..9fad620389 100644 --- a/packages/service-provider-core/package.json +++ b/packages/service-provider-core/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-core", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell Core Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -44,7 +44,7 @@ }, "dependencies": { "@aws-sdk/credential-providers": "^3.525.0", - "@mongosh/errors": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", "bson": "^6.10.1", "mongodb": "^6.12.0", "mongodb-build-info": "^1.7.2", diff --git a/packages/service-provider-node-driver/package.json b/packages/service-provider-node-driver/package.json index 4f9d721060..5a40ff8e46 100644 --- a/packages/service-provider-node-driver/package.json +++ b/packages/service-provider-node-driver/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/service-provider-node-driver", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell Server Service Provider Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -49,9 +49,9 @@ "dependencies": { "@mongodb-js/devtools-connect": "^3.3.4", "@mongodb-js/oidc-plugin": "^1.1.5", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", + "@mongosh/types": "2.3.8", "aws4": "^1.12.0", "mongodb": "^6.12.0", "mongodb-connection-string-url": "^3.0.1", diff --git a/packages/shell-api/package.json b/packages/shell-api/package.json index 429920d6dd..97e0aa31c1 100644 --- a/packages/shell-api/package.json +++ b/packages/shell-api/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-api", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell API Classes Package", "main": "lib/index.js", "types": "lib/index.d.ts", @@ -40,18 +40,18 @@ "build" ], "dependencies": { - "@mongosh/arg-parser": "0.0.0-dev.0", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/i18n": "0.0.0-dev.0", - "@mongosh/service-provider-core": "0.0.0-dev.0", + "@mongosh/arg-parser": "2.3.8", + "@mongosh/errors": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/i18n": "2.3.8", + "@mongosh/service-provider-core": "2.3.8", "mongodb-redact": "^1.1.2" }, "devDependencies": { "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "depcheck": "^1.4.7", "eslint": "^7.25.0", diff --git a/packages/shell-evaluator/package.json b/packages/shell-evaluator/package.json index 7952764eef..d686c86d9a 100644 --- a/packages/shell-evaluator/package.json +++ b/packages/shell-evaluator/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/shell-evaluator", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Top Level API Package", "main": "./lib/index.js", "scripts": { @@ -38,15 +38,15 @@ "@mongodb-js/eslint-config-mongosh": "^1.0.0", "@mongodb-js/prettier-config-devtools": "^1.0.1", "@mongodb-js/tsconfig-mongosh": "^1.0.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/types": "2.3.8", "@types/sinon-chai": "^3.2.4", "depcheck": "^1.4.7", "eslint": "^7.25.0", "prettier": "^2.8.8" }, "dependencies": { - "@mongosh/async-rewriter2": "0.0.0-dev.0", - "@mongosh/history": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0" + "@mongosh/async-rewriter2": "2.3.8", + "@mongosh/history": "2.3.8", + "@mongosh/shell-api": "2.3.8" } } diff --git a/packages/snippet-manager/package.json b/packages/snippet-manager/package.json index 5684fbe12b..66c062030b 100644 --- a/packages/snippet-manager/package.json +++ b/packages/snippet-manager/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/snippet-manager", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "MongoDB Shell Snippet Manager", "main": "./lib/index.js", "repository": { @@ -36,9 +36,9 @@ }, "dependencies": { "@mongodb-js/devtools-proxy-support": "^0.4.2", - "@mongosh/errors": "0.0.0-dev.0", - "@mongosh/shell-api": "0.0.0-dev.0", - "@mongosh/types": "0.0.0-dev.0", + "@mongosh/errors": "2.3.8", + "@mongosh/shell-api": "2.3.8", + "@mongosh/types": "2.3.8", "bson": "^6.10.1", "cross-spawn": "^7.0.5", "escape-string-regexp": "^4.0.0", diff --git a/packages/types/package.json b/packages/types/package.json index 7c7e7d7559..89c916e1e9 100644 --- a/packages/types/package.json +++ b/packages/types/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/types", - "version": "0.0.0-dev.0", + "version": "2.3.8", "description": "Types for mongosh internals", "author": "Anna Henningsen ", "homepage": "https://github.com/mongodb-js/mongosh/tree/main/packages/types#readme", diff --git a/scripts/docker/package.json b/scripts/docker/package.json index 9560b97a80..f2ae2c0daf 100644 --- a/scripts/docker/package.json +++ b/scripts/docker/package.json @@ -1,6 +1,6 @@ { "name": "@mongosh/docker-build-scripts", - "version": "0.0.0-dev.0", + "version": "2.3.8", "private": true, "description": "MongoDB Shell Build Docker Images", "config": { From bb111a5a6f787304d18797188aa1537b5f504ce0 Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 10 Jan 2025 15:20:57 +0100 Subject: [PATCH 36/40] fix tests and match with mongosh --version --- .../build/src/npm-packages/publish.spec.ts | 10 ++++++++-- packages/e2e-tests/test/e2e.spec.ts | 19 ++++++++++++------- packages/shell-api/src/mongosh-version.ts | 2 +- 3 files changed, 21 insertions(+), 10 deletions(-) diff --git a/packages/build/src/npm-packages/publish.spec.ts b/packages/build/src/npm-packages/publish.spec.ts index c6968f2016..821b8fe888 100644 --- a/packages/build/src/npm-packages/publish.spec.ts +++ b/packages/build/src/npm-packages/publish.spec.ts @@ -71,8 +71,14 @@ describe('npm-packages publishNpmPackages', function () { spawnSync ); - expect(spawnSync).calledWith('git', ['tag', '-a', '1.2.0', '-m', '1.2.0']); - expect(spawnSync).calledWith('git', ['push', '--follow-tags']); + expect(spawnSync).not.calledWith('git', [ + 'tag', + '-a', + '1.2.0', + '-m', + '1.2.0', + ]); + expect(spawnSync).not.calledWith('git', ['push', '--follow-tags']); }); it('calls lerna to publish packages for a real version', function () { diff --git a/packages/e2e-tests/test/e2e.spec.ts b/packages/e2e-tests/test/e2e.spec.ts index 74987edb12..aa3e2e90af 100644 --- a/packages/e2e-tests/test/e2e.spec.ts +++ b/packages/e2e-tests/test/e2e.spec.ts @@ -22,7 +22,6 @@ import { once } from 'events'; import type { AddressInfo } from 'net'; const { EJSON } = bson; import { sleep } from './util-helpers'; -import { MONGOSH_VERSION } from '../../cli-repl/src/constants'; const jsContextFlagCombinations: `--jsContext=${'plain-vm' | 'repl'}`[][] = [ [], @@ -34,11 +33,15 @@ describe('e2e', function () { const testServer = startSharedTestServer(); describe('--version', function () { - it('shows version', async function () { + it('shows version which matches @mongosh/cli-repl', async function () { + const expectedPackageVersion: string = + // eslint-disable-next-line @typescript-eslint/no-var-requires + require('../package.json')['dependencies']['@mongosh/cli-repl']; + const shell = this.startTestShell({ args: ['--version'] }); await shell.waitForSuccessfulExit(); - shell.assertContainsOutput(require('../package.json').version); + shell.assertContainsOutput(expectedPackageVersion); }); }); @@ -449,16 +452,18 @@ describe('e2e', function () { const expectedPackageVersion: string = // eslint-disable-next-line @typescript-eslint/no-var-requires require('../package.json')['dependencies']['@mongosh/cli-repl']; - // eslint-disable-next-line @typescript-eslint/no-unsafe-argument - const expectedVersionFromRepl = MONGOSH_VERSION; expect(expectedPackageVersion).not.null; - expect(expectedPackageVersion).equals(expectedVersionFromRepl); + + const versionShell = this.startTestShell({ args: ['--version'] }); + await versionShell.waitForSuccessfulExit(); + + const versionFromShell = versionShell.output; await shell.executeLine('version()'); shell.assertNoErrors(); shell.assertContainsOutput(expectedPackageVersion); - shell.assertContainsOutput(expectedVersionFromRepl); + shell.assertContainsOutput(versionFromShell); }); it('fle addon is available', async function () { diff --git a/packages/shell-api/src/mongosh-version.ts b/packages/shell-api/src/mongosh-version.ts index e7ed6e6bf1..4fc9a1c5c5 100644 --- a/packages/shell-api/src/mongosh-version.ts +++ b/packages/shell-api/src/mongosh-version.ts @@ -1,6 +1,6 @@ /** * NOTE: Do not manually modify this file. - * The MONGOSH_VERSION gets re-generated automatically with scripts/set-mongosh-version.ts + * The MONGOSH_VERSION gets generated automatically during mongosh releases. **/ /** Current mongosh cli-repl version. */ From 4d4de5a8d32e6f4313f7f76477d339cf829e909a Mon Sep 17 00:00:00 2001 From: gagik Date: Fri, 10 Jan 2025 17:38:18 +0100 Subject: [PATCH 37/40] add basic bump tests, update evergreen config, and review fixes --- .evergreen.yml | 2 + .github/workflows/bump-auxiliary-packages.yml | 4 +- .../workflows/publish-auxiliary-packages.yml | 2 +- packages/build/src/npm-packages/bump.spec.ts | 69 +++++++++++++++++++ packages/build/src/npm-packages/bump.ts | 6 +- 5 files changed, 76 insertions(+), 7 deletions(-) create mode 100644 packages/build/src/npm-packages/bump.spec.ts diff --git a/.evergreen.yml b/.evergreen.yml index 5824b0e58f..7240a77ef5 100644 --- a/.evergreen.yml +++ b/.evergreen.yml @@ -4274,6 +4274,8 @@ functions: source .evergreen/setup-env.sh export PUPPETEER_SKIP_DOWNLOAD="true" npm run evergreen-release draft + git add . + git commit --no-allow-empty -m "chore(release): bump to prepare for mongosh release" } release_publish_download_and_list_artifacts: diff --git a/.github/workflows/bump-auxiliary-packages.yml b/.github/workflows/bump-auxiliary-packages.yml index 469b648690..9022fcd4bd 100644 --- a/.github/workflows/bump-auxiliary-packages.yml +++ b/.github/workflows/bump-auxiliary-packages.yml @@ -37,12 +37,10 @@ jobs: npm ci - name: Bump packages - env: - LAST_BUMP_COMMIT_MESSAGE: "chore(release): bump auxiliary packages" run: | npm run bump-auxiliary git add . - git commit --no-allow-empty -m "$LAST_BUMP_COMMIT_MESSAGE" || true + git commit --no-allow-empty -m "chore(release): bump auxiliary packages" || true - name: Create Pull Request uses: peter-evans/create-pull-request@5e914681df9dc83aa4e4905692ca88beb2f9e91f # 7.0.5 diff --git a/.github/workflows/publish-auxiliary-packages.yml b/.github/workflows/publish-auxiliary-packages.yml index 4f2bbd94fe..d3782536aa 100644 --- a/.github/workflows/publish-auxiliary-packages.yml +++ b/.github/workflows/publish-auxiliary-packages.yml @@ -13,7 +13,7 @@ jobs: publish: if: | github.event_name == 'workflow_dispatch' || - startsWith(github.event.head_commit.message, 'chore(release): bump auxiliary package versions') + startsWith(github.event.head_commit.message, 'chore(release): bump auxiliary packages') runs-on: ubuntu-latest diff --git a/packages/build/src/npm-packages/bump.spec.ts b/packages/build/src/npm-packages/bump.spec.ts new file mode 100644 index 0000000000..fb64aacbc7 --- /dev/null +++ b/packages/build/src/npm-packages/bump.spec.ts @@ -0,0 +1,69 @@ +import { expect } from 'chai'; +import type { SinonStub } from 'sinon'; +import sinon from 'sinon'; +import { + bumpMongoshReleasePackages, + updateShellApiMongoshVersion, +} from './bump'; +import { promises as fs } from 'fs'; +import path from 'path'; +import { PROJECT_ROOT } from './constants'; +import * as monorepoTools from '@mongodb-js/monorepo-tools'; + +describe('npm-packages bump', function () { + let fsReadFile: SinonStub; + let fsWriteFile: SinonStub; + + beforeEach(function () { + fsReadFile = sinon.stub(fs, 'readFile'); + + fsWriteFile = sinon.stub(fs, 'writeFile'); + fsWriteFile.resolves(); + }); + + afterEach(function () { + sinon.restore(); + }); + + describe('bumpMongoshReleasePackages', function () { + it('throws if MONGOSH_RELEASE_VERSION is not set', async function () { + process.env.MONGOSH_RELEASE_VERSION = ''; + + try { + await bumpMongoshReleasePackages(); + expect.fail('did not error'); + } catch (error) { + expect(error).instanceOf(Error); + expect((error as Error).message).equals( + 'MONGOSH_RELEASE_VERSION version not specified during mongosh bump' + ); + } + }); + }); + + describe('updateShellApiMongoshVersion', function () { + it('updates the file to the set version', async function () { + fsReadFile.resolves(` + /** Current mongosh cli-repl version. */ + export const MONGOSH_VERSION = '2.3.8';`); + + const newVersion = '3.0.0'; + await updateShellApiMongoshVersion(newVersion); + + expect(fsWriteFile).calledWith( + path.join( + __dirname, + PROJECT_ROOT, + 'packages', + 'shell-api', + 'src', + 'mongosh-version.ts' + ), + ` + /** Current mongosh cli-repl version. */ + export const MONGOSH_VERSION = '${newVersion}';`, + 'utf-8' + ); + }); + }); +}); diff --git a/packages/build/src/npm-packages/bump.ts b/packages/build/src/npm-packages/bump.ts index 18a460cdf9..f4c337e2df 100644 --- a/packages/build/src/npm-packages/bump.ts +++ b/packages/build/src/npm-packages/bump.ts @@ -56,11 +56,11 @@ export async function bumpMongoshReleasePackages(): Promise { ); } - await bumpShellApiMongoshVersion(version); + await updateShellApiMongoshVersion(version); } -/** Sets the shell-api constant to match the mongosh version. */ -export async function bumpShellApiMongoshVersion(version: string) { +/** Updates the shell-api constant to match the mongosh version. */ +export async function updateShellApiMongoshVersion(version: string) { const shellApiVersionFilePath = path.join( __dirname, PROJECT_ROOT, From 755e87a6dd5702f5e111b9028a67f6abb7c6e5e3 Mon Sep 17 00:00:00 2001 From: Gagik Amaryan Date: Fri, 10 Jan 2025 17:38:52 +0100 Subject: [PATCH 38/40] Update .github/workflows/publish-auxiliary-packages.yml Co-authored-by: Nikola Irinchev --- .github/workflows/publish-auxiliary-packages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish-auxiliary-packages.yml b/.github/workflows/publish-auxiliary-packages.yml index d3782536aa..6b9fa6d44f 100644 --- a/.github/workflows/publish-auxiliary-packages.yml +++ b/.github/workflows/publish-auxiliary-packages.yml @@ -31,7 +31,7 @@ jobs: ref: ${{ github.head_ref }} - name: "Use Node.js 20" - uses: actions/setup-node@v3 + uses: actions/setup-node@v4 with: node-version: 20.16.0 From f0e985b4abfcd3a605ad8918e5de7d846cc2e609 Mon Sep 17 00:00:00 2001 From: gagik Date: Mon, 13 Jan 2025 12:30:50 +0100 Subject: [PATCH 39/40] use token from bot --- .github/workflows/bump-auxiliary-packages.yml | 12 +++++++----- .github/workflows/publish-auxiliary-packages.yml | 8 ++++++-- packages/build/src/npm-packages/bump.spec.ts | 1 - 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/bump-auxiliary-packages.yml b/.github/workflows/bump-auxiliary-packages.yml index 9022fcd4bd..1a5349bbab 100644 --- a/.github/workflows/bump-auxiliary-packages.yml +++ b/.github/workflows/bump-auxiliary-packages.yml @@ -10,18 +10,21 @@ jobs: name: Bump packages runs-on: ubuntu-latest steps: - - name: Create Github App Token - uses: mongodb-js/devtools-shared/actions/setup-bot-token@main + - uses: mongodb-js/devtools-shared/actions/setup-bot-token@main id: app-token with: app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} - private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} - + private-key: ${{ secrets.DEVTOOLS_BOT_PRIVATE_KEY }} - uses: actions/checkout@v4 with: # don't checkout a detatched HEAD ref: ${{ github.head_ref }} + # this is important so git log can pick up on + # the whole history to generate the list of AUTHORS + fetch-depth: "0" + token: ${{ steps.app-token.outputs.token }} + - uses: actions/setup-node@v4 with: node-version: 20.16.0 @@ -33,7 +36,6 @@ jobs: - name: Install Dependencies run: | - npm -v npm ci - name: Bump packages diff --git a/.github/workflows/publish-auxiliary-packages.yml b/.github/workflows/publish-auxiliary-packages.yml index 6b9fa6d44f..22d8af4e80 100644 --- a/.github/workflows/publish-auxiliary-packages.yml +++ b/.github/workflows/publish-auxiliary-packages.yml @@ -18,8 +18,7 @@ jobs: runs-on: ubuntu-latest steps: - - name: Create Github App Token - uses: mongodb-js/devtools-shared/actions/setup-bot-token@main + - uses: mongodb-js/devtools-shared/actions/setup-bot-token@main id: app-token with: app-id: ${{ vars.DEVTOOLS_BOT_APP_ID }} @@ -30,6 +29,11 @@ jobs: # don't checkout a detatched HEAD ref: ${{ github.head_ref }} + # this is important so git log can pick up on + # the whole history to generate the list of AUTHORS + fetch-depth: "0" + token: ${{ steps.app-token.outputs.token }} + - name: "Use Node.js 20" uses: actions/setup-node@v4 with: diff --git a/packages/build/src/npm-packages/bump.spec.ts b/packages/build/src/npm-packages/bump.spec.ts index fb64aacbc7..e8a7ee05dd 100644 --- a/packages/build/src/npm-packages/bump.spec.ts +++ b/packages/build/src/npm-packages/bump.spec.ts @@ -8,7 +8,6 @@ import { import { promises as fs } from 'fs'; import path from 'path'; import { PROJECT_ROOT } from './constants'; -import * as monorepoTools from '@mongodb-js/monorepo-tools'; describe('npm-packages bump', function () { let fsReadFile: SinonStub; From 28b8c37dd31177e56e4bb52639f00f2f448ed2be Mon Sep 17 00:00:00 2001 From: gagik Date: Tue, 14 Jan 2025 13:05:08 +0100 Subject: [PATCH 40/40] minor change to test --- packages/e2e-tests/test/e2e.spec.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/e2e-tests/test/e2e.spec.ts b/packages/e2e-tests/test/e2e.spec.ts index aa3e2e90af..6f6eb79add 100644 --- a/packages/e2e-tests/test/e2e.spec.ts +++ b/packages/e2e-tests/test/e2e.spec.ts @@ -33,7 +33,7 @@ describe('e2e', function () { const testServer = startSharedTestServer(); describe('--version', function () { - it('shows version which matches @mongosh/cli-repl', async function () { + it('shows version and matches @mongosh/cli-repl', async function () { const expectedPackageVersion: string = // eslint-disable-next-line @typescript-eslint/no-var-requires require('../package.json')['dependencies']['@mongosh/cli-repl'];