@mongodb-js/compass-query-history 8.25.0 → 9.0.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,114 @@
1
+ /*!
2
+ Copyright (c) 2018 Jed Watson.
3
+ Licensed under the MIT License (MIT), see
4
+ http://jedwatson.github.io/classnames
5
+ */
6
+
7
+ /*!
8
+ * Copyright 2010 LearnBoost <dev@learnboost.com>
9
+ *
10
+ * Licensed under the Apache License, Version 2.0 (the "License");
11
+ * you may not use this file except in compliance with the License.
12
+ * You may obtain a copy of the License at
13
+ *
14
+ * http://www.apache.org/licenses/LICENSE-2.0
15
+ *
16
+ * Unless required by applicable law or agreed to in writing, software
17
+ * distributed under the License is distributed on an "AS IS" BASIS,
18
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19
+ * See the License for the specific language governing permissions and
20
+ * limitations under the License.
21
+ */
22
+
23
+ /*!
24
+ * Copyright (c) 2015, Salesforce.com, Inc.
25
+ * All rights reserved.
26
+ *
27
+ * Redistribution and use in source and binary forms, with or without
28
+ * modification, are permitted provided that the following conditions are met:
29
+ *
30
+ * 1. Redistributions of source code must retain the above copyright notice,
31
+ * this list of conditions and the following disclaimer.
32
+ *
33
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
34
+ * this list of conditions and the following disclaimer in the documentation
35
+ * and/or other materials provided with the distribution.
36
+ *
37
+ * 3. Neither the name of Salesforce.com nor the names of its contributors may
38
+ * be used to endorse or promote products derived from this software without
39
+ * specific prior written permission.
40
+ *
41
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
42
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
45
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
46
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
47
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
48
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
49
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
50
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
51
+ * POSSIBILITY OF SUCH DAMAGE.
52
+ */
53
+
54
+ /*!
55
+ * Copyright (c) 2018, Salesforce.com, Inc.
56
+ * All rights reserved.
57
+ *
58
+ * Redistribution and use in source and binary forms, with or without
59
+ * modification, are permitted provided that the following conditions are met:
60
+ *
61
+ * 1. Redistributions of source code must retain the above copyright notice,
62
+ * this list of conditions and the following disclaimer.
63
+ *
64
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
65
+ * this list of conditions and the following disclaimer in the documentation
66
+ * and/or other materials provided with the distribution.
67
+ *
68
+ * 3. Neither the name of Salesforce.com nor the names of its contributors may
69
+ * be used to endorse or promote products derived from this software without
70
+ * specific prior written permission.
71
+ *
72
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
73
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
74
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
75
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
76
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
77
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
78
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
79
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
80
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
81
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
82
+ * POSSIBILITY OF SUCH DAMAGE.
83
+ */
84
+
85
+ /*!
86
+ * mime-db
87
+ * Copyright(c) 2014 Jonathan Ong
88
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
89
+ * MIT Licensed
90
+ */
91
+
92
+ /*!
93
+ * mime-types
94
+ * Copyright(c) 2014 Jonathan Ong
95
+ * Copyright(c) 2015 Douglas Christopher Wilson
96
+ * MIT Licensed
97
+ */
98
+
99
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
100
+
101
+ /**
102
+ * @license
103
+ * Lodash <https://lodash.com/>
104
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
105
+ * Released under MIT license <https://lodash.com/license>
106
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
107
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
108
+ */
109
+
110
+ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
111
+
112
+ //! moment.js
113
+
114
+ //! moment.js locale configuration
package/package.json CHANGED
@@ -1,155 +1,110 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-query-history",
3
3
  "productName": "Query History plugin",
4
- "version": "8.25.0",
5
- "apiVersion": "3.0.0",
6
- "description": "The query history sidebar.",
7
- "main": "lib/index.js",
8
- "compass:main": "src/index.js",
9
- "compass:exports": {
10
- ".": "./src/index.js"
11
- },
12
- "homepage": "https://github.com/mongodb-js/compass",
13
- "license": "SSPL",
4
+ "description": "The query history sidebar of Compass",
5
+ "version": "9.0.0",
14
6
  "author": {
15
7
  "name": "MongoDB Inc",
16
8
  "email": "compass@mongodb.com"
17
9
  },
18
- "bugs": {
19
- "url": "https://jira.mongodb.org/projects/COMPASS/issues",
20
- "email": "compass@mongodb.com"
10
+ "publishConfig": {
11
+ "access": "public"
21
12
  },
22
13
  "repository": {
23
14
  "type": "git",
24
15
  "url": "https://github.com/mongodb-js/compass.git"
25
16
  },
17
+ "license": "SSPL",
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
+ },
26
35
  "scripts": {
27
- "clean": "rimraf lib",
28
- "precompile": "npm run clean",
29
- "compile": "cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js",
30
- "start": "webpack-dev-server --config ./config/webpack.dev.config.js",
31
- "start:watch": "npm run clean && webpack --config ./config/webpack.watch.config.js",
32
- "start:prod": "npm run compile && electron --noDevServer ./electron",
33
- "test": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\"",
34
- "test-watch": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\" --watch",
35
- "test-electron": "xvfb-maybe cross-env NODE_ENV=test karma start",
36
- "test-cov": "nyc npm run test",
37
- "check": "npm run lint && npm run depcheck",
36
+ "bootstrap": "npm run compile",
38
37
  "prepublishOnly": "npm run compile && compass-scripts check-exports-exist",
39
- "lint": "eslint \"./src/**/*.{js,jsx}\" \"./test/**/*.js\" \"./electron/**/*.js\" \"./config/**/*.{js,jsx}\"",
40
- "depcheck": "depcheck",
41
- "test-ci": "npm run test",
42
- "test-ci-electron": "echo \"TODO(COMPASS-5555): These tests are broken and disabled for now\"",
43
- "bootstrap": "npm run compile"
38
+ "compile": "npm run webpack -- --mode production",
39
+ "prewebpack": "rimraf ./dist",
40
+ "webpack": "webpack-compass",
41
+ "start": "npm run webpack serve -- --mode development",
42
+ "analyze": "npm run webpack -- --mode production --analyze",
43
+ "typecheck": "tsc --noEmit",
44
+ "eslint": "eslint",
45
+ "prettier": "prettier",
46
+ "lint": "npm run eslint . && npm run prettier -- --check .",
47
+ "depcheck": "compass-scripts check-peer-deps && depcheck",
48
+ "check": "npm run typecheck && npm run lint && npm run depcheck",
49
+ "check-ci": "npm run check",
50
+ "test": "mocha",
51
+ "test-electron": "xvfb-maybe electron-mocha --no-sandbox",
52
+ "test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
53
+ "test-watch": "npm run test -- --watch",
54
+ "test-ci": "npm run test-cov",
55
+ "test-ci-electron": "npm run test-electron",
56
+ "reformat": "npm run prettier -- --write ."
44
57
  },
45
58
  "dependencies": {
46
- "@mongodb-js/compass-logging": "^0.13.0",
59
+ "@mongodb-js/compass-components": "^1.0.0",
60
+ "@mongodb-js/compass-logging": "^1.0.0",
47
61
  "bson": "^4.4.1",
48
- "lodash": "^4.17.15",
49
- "mongodb-data-service": "^21.23.0"
62
+ "hadron-react-components": "^6.0.0",
63
+ "mongodb-data-service": "^22.0.0",
64
+ "react": "^16.14.0",
65
+ "storage-mixin": "^5.0.0"
50
66
  },
51
67
  "peerDependencies": {
52
- "@mongodb-js/compass-components": "^0.16.0",
68
+ "@mongodb-js/compass-components": "^1.0.0",
69
+ "@mongodb-js/compass-logging": "^1.0.0",
53
70
  "bson": "^4.4.1",
54
- "debug": "*",
55
- "hadron-react-components": "^5.16.0",
56
- "mongodb-query-parser": "^2.4.6",
57
- "prop-types": "^15.7.2",
71
+ "hadron-react-components": "^6.0.0",
72
+ "mongodb-data-service": "^22.0.0",
58
73
  "react": "^16.14.0",
59
- "react-dom": "^16.14.0",
60
- "react-fontawesome": "^1.6.1",
61
- "react-tooltip": "^3.11.1",
62
- "reflux": "^0.4.1",
63
- "reflux-state-mixin": "github:mongodb-js/reflux-state-mixin",
64
- "storage-mixin": "^4.14.0"
74
+ "storage-mixin": "^5.0.0"
65
75
  },
66
76
  "devDependencies": {
67
- "@babel/cli": "^7.14.3",
68
- "@babel/core": "^7.14.3",
69
- "@babel/plugin-proposal-decorators": "^7.14.2",
70
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
71
- "@babel/preset-env": "^7.14.2",
72
- "@babel/preset-react": "^7.13.13",
73
- "@babel/register": "^7.13.16",
74
- "@mongodb-js/compass-components": "^0.16.0",
77
+ "@electron/remote": "^2.0.8",
78
+ "@mongodb-js/eslint-config-compass": "^1.0.0",
79
+ "@mongodb-js/mocha-config-compass": "^1.0.0",
80
+ "@mongodb-js/prettier-config-compass": "^1.0.0",
81
+ "@mongodb-js/tsconfig-compass": "^1.0.0",
82
+ "@mongodb-js/webpack-config-compass": "^1.0.0",
83
+ "@testing-library/react": "^12.1.4",
84
+ "@testing-library/user-event": "^13.5.0",
75
85
  "ampersand-model": "^8.0.1",
76
86
  "ampersand-rest-collection": "^6.0.0",
77
- "autoprefixer": "^9.4.6",
78
- "babel-loader": "^8.2.2",
79
- "bson": "^4.4.1",
80
87
  "chai": "^4.1.2",
81
- "chai-enzyme": "1.0.0-beta.1",
82
- "cheerio": "^1.0.0-rc.2",
83
88
  "classnames": "^2.2.6",
84
- "core-js": "^3.12.1",
85
- "cross-env": "^7.0.0",
86
- "css-loader": "^4.3.0",
87
- "debug": "4.3.0",
88
89
  "depcheck": "^1.4.1",
89
- "electron": "^13.5.1",
90
+ "electron": "^15.5.7",
90
91
  "enzyme": "^3.11.0",
91
- "enzyme-adapter-react-16": "^1.15.2",
92
92
  "eslint": "^7.25.0",
93
- "eslint-config-mongodb-js": "^5.0.3",
94
- "eslint-plugin-react": "^7.24.0",
95
- "extract-text-webpack-plugin": "^4.0.0-beta.0",
96
- "file-loader": "^5.1.0",
97
- "font-awesome": "^4.7.0",
98
- "hadron-app": "^4.25.0",
99
- "hadron-app-registry": "^8.13.0",
100
- "hadron-react-components": "^5.16.0",
101
- "har-validator": "^5.1.3",
102
- "html-webpack-plugin": "^3.2.0",
103
- "ignore-loader": "^0.1.2",
104
- "inject-loader": "^4.0.1",
105
- "istanbul-instrumenter-loader": "^3.0.1",
106
- "jsdom": "^16.7.0",
107
- "jsdom-global": "^3.0.2",
108
- "karma": "^6.3.4",
109
- "karma-chai": "^0.1.0",
110
- "karma-chai-sinon": "^0.1.5",
111
- "karma-electron": "^7.0.0",
112
- "karma-mocha": "^1.3.0",
113
- "karma-mocha-reporter": "^2.2.5",
114
- "karma-sinon": "^1.0.5",
115
- "karma-sourcemap-loader": "^0.3.8",
116
- "karma-webpack": "^4.0.2",
117
- "less": "^3.11.1",
118
- "less-loader": "^7.3.0",
119
- "mime-db": "^1.27.0",
120
- "mocha": "^5.0.0",
121
- "mocha-webpack": "^2.0.0-beta.0",
122
- "mongodb-connection-model": "^21.18.0",
93
+ "hadron-app-registry": "^9.0.0",
94
+ "lodash": "^4.17.15",
95
+ "mocha": "^8.4.0",
123
96
  "mongodb-ns": "^2.4.0",
124
97
  "mongodb-query-parser": "^2.4.6",
125
- "mongodb-reflux-store": "^0.0.1",
126
- "node-loader": "^0.6.0",
127
98
  "nyc": "^15.0.0",
128
- "peer-deps-externals-webpack-plugin": "^1.0.4",
129
- "postcss-loader": "^2.1.6",
130
99
  "prop-types": "^15.7.2",
131
- "react": "^16.14.0",
132
100
  "react-dom": "^16.14.0",
133
- "react-hot-loader": "^4.13.0",
101
+ "react-fontawesome": "^1.6.1",
102
+ "react-tooltip": "^3.11.1",
134
103
  "reflux": "^0.4.1",
135
104
  "reflux-state-mixin": "github:mongodb-js/reflux-state-mixin",
136
- "rimraf": "^3.0.1",
137
- "semver": "^5.4.1",
138
- "shebang-loader": "^0.0.1",
139
- "sinon": "^8.1.1",
140
- "sinon-chai": "^3.4.0",
141
- "sshpk": "^1.13.0",
142
- "storage-mixin": "^4.14.0",
143
- "style-loader": "^2.0.0",
144
- "tough-cookie": "^2.3.2",
145
- "url-loader": "^3.0.0",
146
- "uuid": "^3.1.0",
147
- "webpack": "^4.46.0",
148
- "webpack-bundle-analyzer": "^3.0.3",
149
- "webpack-cli": "^3.3.12",
150
- "webpack-dev-server": "^3.11.2",
151
- "webpack-merge": "^4.2.2",
152
- "webpack-node-externals": "^3.0.0"
105
+ "rimraf": "^3.0.2",
106
+ "sinon": "^9.2.3",
107
+ "uuid": "^3.1.0"
153
108
  },
154
- "gitHead": "757aed43862951a083137bffa1815c621a377440"
109
+ "gitHead": "a30734888ab496a07d58e26870e5e33b374e98f7"
155
110
  }
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,18 +0,0 @@
1
- ignores: [
2
- "@babel/cli",
3
- "@babel/register",
4
- "core-js",
5
- "font-awesome",
6
- "har-validator",
7
- "inject-loader",
8
- "karma-electron",
9
- "karma-sourcemap-loader",
10
- "karma-webpack",
11
- "mime-db",
12
- "mongodb-connection-model",
13
- "sshpk",
14
- "tough-cookie",
15
- "webpack-bundle-analyzer",
16
- "webpack-cli",
17
- "mongodb-compass"
18
- ]