@mongodb-js/compass-shell 3.3.0 → 3.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,71 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /**
8
+ * @license
9
+ * Lodash <https://lodash.com/>
10
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
11
+ * Released under MIT license <https://lodash.com/license>
12
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
13
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
14
+ */
15
+
16
+ /**
17
+ * @license React
18
+ * react-is.production.min.js
19
+ *
20
+ * Copyright (c) Facebook, Inc. and its affiliates.
21
+ *
22
+ * This source code is licensed under the MIT license found in the
23
+ * LICENSE file in the root directory of this source tree.
24
+ */
25
+
26
+ /**
27
+ * @license React
28
+ * use-sync-external-store-shim.production.min.js
29
+ *
30
+ * Copyright (c) Facebook, Inc. and its affiliates.
31
+ *
32
+ * This source code is licensed under the MIT license found in the
33
+ * LICENSE file in the root directory of this source tree.
34
+ */
35
+
36
+ /**
37
+ * @license React
38
+ * use-sync-external-store-shim/with-selector.production.min.js
39
+ *
40
+ * Copyright (c) Facebook, Inc. and its affiliates.
41
+ *
42
+ * This source code is licensed under the MIT license found in the
43
+ * LICENSE file in the root directory of this source tree.
44
+ */
45
+
46
+ /** @license React v0.20.2
47
+ * scheduler.production.min.js
48
+ *
49
+ * Copyright (c) Facebook, Inc. and its affiliates.
50
+ *
51
+ * This source code is licensed under the MIT license found in the
52
+ * LICENSE file in the root directory of this source tree.
53
+ */
54
+
55
+ /** @license React v16.13.1
56
+ * react-is.production.min.js
57
+ *
58
+ * Copyright (c) Facebook, Inc. and its affiliates.
59
+ *
60
+ * This source code is licensed under the MIT license found in the
61
+ * LICENSE file in the root directory of this source tree.
62
+ */
63
+
64
+ /** @license React v17.0.2
65
+ * react-dom.production.min.js
66
+ *
67
+ * Copyright (c) Facebook, Inc. and its affiliates.
68
+ *
69
+ * This source code is licensed under the MIT license found in the
70
+ * LICENSE file in the root directory of this source tree.
71
+ */
package/package.json CHANGED
@@ -1,129 +1,99 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-shell",
3
3
  "productName": "Compass Shell plugin",
4
- "version": "3.3.0",
5
- "apiVersion": "3.0.0",
4
+ "version": "3.5.0",
6
5
  "description": "Compass Shell Plugin",
7
- "main": "lib/index.js",
8
- "compass:main": "src/index.js",
9
- "compass:exports": {
10
- ".": "./src/index.js"
6
+ "author": {
7
+ "name": "MongoDB Inc",
8
+ "email": "compass@mongodb.com"
11
9
  },
12
- "scripts": {
13
- "prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
14
- "clean": "rimraf lib",
15
- "precompile": "npm run clean",
16
- "compile": "cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js",
17
- "compile:watch": "cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js --watch",
18
- "test": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\"",
19
- "test-ci": "npm run test",
20
- "test-ci-electron": "echo \"TODO(COMPASS-5555): These tests are broken and disabled for now\"",
21
- "test-watch": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\" --watch",
22
- "test-electron": "xvfb-maybe cross-env NODE_ENV=test karma start",
23
- "test-cov": "echo",
24
- "check": "npm run lint && npm run depcheck",
25
- "lint": "eslint \"./src/**/*.{js,jsx}\" \"./test/**/*.js\" \"./config/**/*.{js,jsx}\"",
26
- "depcheck": "compass-scripts check-peer-deps && depcheck",
27
- "bootstrap": "npm run compile"
10
+ "publishConfig": {
11
+ "access": "public"
28
12
  },
29
13
  "repository": {
30
14
  "type": "git",
31
15
  "url": "https://github.com/mongodb-js/compass.git"
32
16
  },
33
- "config": {
34
- "unsafe-perm": true
35
- },
36
17
  "license": "SSPL",
37
- "publishConfig": {
38
- "access": "public"
18
+ "homepage": "https://github.com/mongodb-js/compass",
19
+ "bugs": {
20
+ "url": "https://jira.mongodb.org/projects/COMPASS/issues",
21
+ "email": "compass@mongodb.com"
22
+ },
23
+ "files": [
24
+ "dist"
25
+ ],
26
+ "main": "dist/index.js",
27
+ "compass:main": "src/index.ts",
28
+ "exports": {
29
+ "browser": "./dist/browser.js",
30
+ "require": "./dist/index.js"
31
+ },
32
+ "compass:exports": {
33
+ ".": "./src/index.ts"
34
+ },
35
+ "scripts": {
36
+ "prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
37
+ "compile": "npm run webpack -- --mode production",
38
+ "prewebpack": "rimraf ./dist",
39
+ "webpack": "webpack-compass",
40
+ "start": "npm run webpack serve -- --mode development",
41
+ "analyze": "npm run webpack -- --mode production --analyze",
42
+ "typecheck": "tsc --noEmit",
43
+ "eslint": "eslint",
44
+ "prettier": "prettier",
45
+ "lint": "npm run eslint . && npm run prettier -- --check .",
46
+ "depcheck": "compass-scripts check-peer-deps && depcheck",
47
+ "check": "npm run typecheck && npm run lint && npm run depcheck",
48
+ "check-ci": "npm run check",
49
+ "test": "mocha",
50
+ "test-electron": "xvfb-maybe electron-mocha --no-sandbox",
51
+ "test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
52
+ "test-watch": "npm run test -- --watch",
53
+ "test-ci": "npm run test-cov",
54
+ "test-ci-electron": "echo \"TODO(COMPASS-5555): These tests are broken and disabled for now\"",
55
+ "reformat": "npm run prettier -- --write ."
39
56
  },
40
57
  "dependencies": {
41
- "@mongodb-js/compass-components": "^1.3.0",
42
- "@mongodb-js/compass-logging": "^1.1.1",
43
- "@mongodb-js/compass-utils": "^0.1.1",
44
- "@mongodb-js/mongodb-redux-common": "^2.0.2",
45
- "@mongosh/node-runtime-worker-thread": "^1.6.0",
46
- "react": "^16.14.0"
58
+ "@mongodb-js/compass-components": "^1.5.0",
59
+ "@mongodb-js/compass-logging": "^1.1.2",
60
+ "@mongodb-js/compass-utils": "^0.2.0",
61
+ "@mongodb-js/mongodb-redux-common": "^2.0.4",
62
+ "@mongosh/node-runtime-worker-thread": "^1.6.2",
63
+ "compass-preferences-model": "^2.5.0"
47
64
  },
48
65
  "peerDependencies": {
49
- "@mongodb-js/compass-components": "^1.3.0",
50
- "@mongodb-js/compass-logging": "^1.1.1",
51
- "@mongodb-js/compass-utils": "^0.1.1",
52
- "@mongodb-js/mongodb-redux-common": "^2.0.2",
53
- "@mongosh/node-runtime-worker-thread": "^1.6.0",
54
- "react": "^16.14.0"
66
+ "@mongodb-js/compass-components": "^1.5.0",
67
+ "@mongodb-js/compass-logging": "^1.1.2",
68
+ "@mongodb-js/compass-utils": "^0.2.0",
69
+ "@mongodb-js/mongodb-redux-common": "^2.0.4",
70
+ "@mongosh/node-runtime-worker-thread": "^1.6.2",
71
+ "compass-preferences-model": "^2.5.0",
72
+ "react": "^17.0.2"
55
73
  },
56
74
  "devDependencies": {
57
- "@babel/cli": "^7.14.3",
58
- "@babel/core": "^7.14.3",
59
- "@babel/plugin-proposal-decorators": "^7.14.2",
60
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
61
- "@babel/preset-env": "^7.14.2",
62
- "@babel/preset-react": "^7.13.13",
63
- "@babel/register": "^7.13.16",
64
- "@hot-loader/react-dom": "^16.9.0",
65
- "@leafygreen-ui/code": "^12.1.1",
66
- "@mongosh/browser-repl": "^1.6.0",
67
- "@mongosh/logging": "^1.6.0",
68
- "@mongosh/service-provider-core": "^1.6.0",
69
- "autoprefixer": "^9.4.6",
70
- "babel-loader": "^8.2.2",
75
+ "@mongodb-js/eslint-config-compass": "^1.0.2",
76
+ "@mongodb-js/mocha-config-compass": "^1.0.2",
77
+ "@mongodb-js/prettier-config-compass": "^1.0.0",
78
+ "@mongodb-js/tsconfig-compass": "^1.0.1",
79
+ "@mongodb-js/webpack-config-compass": "^1.0.5",
80
+ "@mongosh/browser-repl": "^1.6.2",
81
+ "@mongosh/logging": "^1.6.2",
71
82
  "chai": "^4.2.0",
72
- "chai-enzyme": "1.0.0-beta.0",
73
- "core-js": "^3.12.1",
74
- "cross-env": "^5.0.1",
75
83
  "depcheck": "^1.4.1",
84
+ "electron": "^22.0.2",
76
85
  "enzyme": "^3.11.0",
77
- "enzyme-adapter-react-16": "^1.15.2",
78
86
  "eslint": "^7.25.0",
79
- "eslint-config-mongodb-js": "^5.0.3",
80
- "eslint-plugin-react": "^7.24.0",
81
- "file-loader": "^5.1.0",
82
- "font-awesome": "^4.7.0",
83
- "hadron-ipc": "^3.1.0",
84
- "html-webpack-plugin": "^3.2.0",
85
- "ignore-loader": "^0.1.2",
86
- "istanbul-instrumenter-loader": "^3.0.1",
87
- "jsdom": "^16.7.0",
88
- "jsdom-global": "^3.0.2",
89
- "karma": "^6.3.4",
90
- "karma-chai": "^0.1.0",
91
- "karma-chai-sinon": "^0.1.5",
92
- "karma-electron": "^7.0.0",
93
- "karma-mocha": "^1.3.0",
94
- "karma-mocha-reporter": "^2.2.5",
95
- "karma-sinon": "^1.0.5",
96
- "karma-sourcemap-loader": "^0.3.8",
97
- "karma-webpack": "^4.0.2",
98
- "mocha": "^5.2.0",
99
- "mocha-webpack": "^2.0.0-beta.0",
100
- "mongodb-reflux-store": "^0.0.1",
101
- "node-loader": "^0.6.0",
102
- "nyc": "^13.1.0",
103
- "peer-deps-externals-webpack-plugin": "^1.0.4",
87
+ "hadron-app-registry": "9.0.3",
88
+ "hadron-ipc": "^3.1.1",
89
+ "mocha": "^8.4.0",
90
+ "nyc": "^15.1.0",
104
91
  "prop-types": "^15.7.2",
105
- "react-ace": "^9.5.0",
106
- "react-dom": "^16.14.0",
107
- "react-hot-loader": "^4.13.0",
108
- "react-redux": "^8.0.2",
109
- "react-tooltip": "^3.11.1",
92
+ "react-dom": "^17.0.2",
93
+ "react-redux": "^8.0.5",
110
94
  "redux": "^4.2.0",
111
- "resolve": "^1.15.1",
112
- "rimraf": "^2.6.1",
113
- "shebang-loader": "^0.0.1",
114
- "sinon": "^7.2.5",
115
- "sinon-chai": "^3.3.0",
116
- "url-loader": "^3.0.0",
117
- "webpack": "^4.46.0",
118
- "webpack-bundle-analyzer": "^3.0.3",
119
- "webpack-cli": "^3.3.12",
120
- "webpack-merge": "^4.2.2",
121
- "webpack-node-externals": "^3.0.0"
122
- },
123
- "homepage": "https://github.com/mongodb-js/compass",
124
- "bugs": {
125
- "url": "https://jira.mongodb.org/projects/COMPASS/issues",
126
- "email": "compass@mongodb.com"
95
+ "rimraf": "^3.0.2",
96
+ "sinon": "^9.2.3"
127
97
  },
128
- "gitHead": "10815be8fd57f3bfd89d061e1592eb7136d4a0fb"
98
+ "gitHead": "cfe9a829fd77fc84e090f2c7b38663167071ebc5"
129
99
  }
package/.babelrc.js DELETED
@@ -1,24 +0,0 @@
1
- module.exports = (api) => {
2
- api.cache.using(() => process.env.NODE_ENV);
3
-
4
- return {
5
- presets: [
6
- [
7
- require.resolve('@babel/preset-env'),
8
- {
9
- modules: api.env('test') ? 'commonjs' : false,
10
- useBuiltIns: 'usage',
11
- corejs: { version: '3.12', proposals: true }
12
- }
13
- ],
14
- require.resolve('@babel/preset-react')
15
- ],
16
- plugins: [
17
- require.resolve('@babel/plugin-syntax-dynamic-import'),
18
- [require.resolve('@babel/plugin-proposal-decorators'), { legacy: true }],
19
- // TODO: Replace with 'fast-refresh'
20
- // https://github.com/gaearon/react-hot-loader#moving-towards-next-step
21
- api.env('development') && require.resolve('react-hot-loader/babel')
22
- ].filter(Boolean)
23
- };
24
- }
package/.browserslistrc DELETED
@@ -1 +0,0 @@
1
- Electron >= 6
package/.depcheckrc DELETED
@@ -1,25 +0,0 @@
1
- ignores: [
2
- "@mongosh/node-runtime-worker-thread",
3
- "@mongosh/service-provider-core",
4
- "@babel/cli",
5
- "@babel/register",
6
- "core-js",
7
- "font-awesome",
8
- "karma-chai",
9
- "karma-chai-sinon",
10
- "karma-electron",
11
- "karma-mocha",
12
- "karma-mocha-reporter",
13
- "karma-sinon",
14
- "karma-sourcemap-loader",
15
- "karma-webpack",
16
- "mongodb-reflux-store",
17
- "nyc",
18
- "react-tooltip",
19
- "resolve",
20
- "webpack-bundle-analyzer",
21
- "webpack-cli",
22
- "mongodb-compass",
23
- "@hot-loader/react-dom",
24
- "url-loader"
25
- ]
package/AUTHORS DELETED
@@ -1,9 +0,0 @@
1
- Maurizio Casimirri <maurizio.cas@gmail.com>
2
- Durran Jordan <durran@gmail.com>
3
- Massimiliano Marcon <me@marcon.me>
4
- Rhys Howell <rhys@rhysh@live.com>
5
- Anna Herlihy <herlihyap@gmail.com>
6
- Irina Shestak <shestak.irina@gmail.com>
7
- Anna Henningsen <anna@addaleax.net>
8
- Sergey Petushkov <petushkov.sergey@gmail.com>
9
- github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>