@mongodb-js/compass-query-history 8.23.0 → 8.26.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,198 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /*!
8
+ localForage -- Offline Storage, Improved
9
+ Version 1.9.0
10
+ https://localforage.github.io/localForage
11
+ (c) 2013-2017 Mozilla, Apache License 2.0
12
+ */
13
+
14
+ /*!
15
+ Copyright (c) 2018 Jed Watson.
16
+ Licensed under the MIT License (MIT), see
17
+ http://jedwatson.github.io/classnames
18
+ */
19
+
20
+ /*!
21
+ * Copyright 2010 LearnBoost <dev@learnboost.com>
22
+ *
23
+ * Licensed under the Apache License, Version 2.0 (the "License");
24
+ * you may not use this file except in compliance with the License.
25
+ * You may obtain a copy of the License at
26
+ *
27
+ * http://www.apache.org/licenses/LICENSE-2.0
28
+ *
29
+ * Unless required by applicable law or agreed to in writing, software
30
+ * distributed under the License is distributed on an "AS IS" BASIS,
31
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
32
+ * See the License for the specific language governing permissions and
33
+ * limitations under the License.
34
+ */
35
+
36
+ /*!
37
+ * Copyright (c) 2015, Salesforce.com, Inc.
38
+ * All rights reserved.
39
+ *
40
+ * Redistribution and use in source and binary forms, with or without
41
+ * modification, are permitted provided that the following conditions are met:
42
+ *
43
+ * 1. Redistributions of source code must retain the above copyright notice,
44
+ * this list of conditions and the following disclaimer.
45
+ *
46
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
47
+ * this list of conditions and the following disclaimer in the documentation
48
+ * and/or other materials provided with the distribution.
49
+ *
50
+ * 3. Neither the name of Salesforce.com nor the names of its contributors may
51
+ * be used to endorse or promote products derived from this software without
52
+ * specific prior written permission.
53
+ *
54
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
55
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
56
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
57
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
58
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
59
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
60
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
61
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
62
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
63
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
64
+ * POSSIBILITY OF SUCH DAMAGE.
65
+ */
66
+
67
+ /*!
68
+ * Copyright (c) 2018, Salesforce.com, Inc.
69
+ * All rights reserved.
70
+ *
71
+ * Redistribution and use in source and binary forms, with or without
72
+ * modification, are permitted provided that the following conditions are met:
73
+ *
74
+ * 1. Redistributions of source code must retain the above copyright notice,
75
+ * this list of conditions and the following disclaimer.
76
+ *
77
+ * 2. Redistributions in binary form must reproduce the above copyright notice,
78
+ * this list of conditions and the following disclaimer in the documentation
79
+ * and/or other materials provided with the distribution.
80
+ *
81
+ * 3. Neither the name of Salesforce.com nor the names of its contributors may
82
+ * be used to endorse or promote products derived from this software without
83
+ * specific prior written permission.
84
+ *
85
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
86
+ * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
87
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
88
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
89
+ * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
90
+ * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
91
+ * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
92
+ * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
93
+ * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
94
+ * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
95
+ * POSSIBILITY OF SUCH DAMAGE.
96
+ */
97
+
98
+ /*!
99
+ * Programatically add the following
100
+ */
101
+
102
+ /*!
103
+ * mime-db
104
+ * Copyright(c) 2014 Jonathan Ong
105
+ * Copyright(c) 2015-2022 Douglas Christopher Wilson
106
+ * MIT Licensed
107
+ */
108
+
109
+ /*!
110
+ * mime-types
111
+ * Copyright(c) 2014 Jonathan Ong
112
+ * Copyright(c) 2015 Douglas Christopher Wilson
113
+ * MIT Licensed
114
+ */
115
+
116
+ /*!
117
+ * focus-trap 6.5.1
118
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
119
+ */
120
+
121
+ /*!
122
+ * tabbable 5.2.0
123
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
124
+ */
125
+
126
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
127
+
128
+ /**
129
+ * @license
130
+ * Lodash <https://lodash.com/>
131
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
132
+ * Released under MIT license <https://lodash.com/license>
133
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
134
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
135
+ */
136
+
137
+ /**
138
+ * @preserve
139
+ * JS Implementation of incremental MurmurHash3 (r150) (as of May 10, 2013)
140
+ *
141
+ * @author <a href="mailto:jensyt@gmail.com">Jens Taylor</a>
142
+ * @see http://github.com/homebrewing/brauhaus-diff
143
+ * @author <a href="mailto:gary.court@gmail.com">Gary Court</a>
144
+ * @see http://github.com/garycourt/murmurhash-js
145
+ * @author <a href="mailto:aappleby@gmail.com">Austin Appleby</a>
146
+ * @see http://sites.google.com/site/murmurhash/
147
+ */
148
+
149
+ /** @license React v0.19.1
150
+ * scheduler.production.min.js
151
+ *
152
+ * Copyright (c) Facebook, Inc. and its affiliates.
153
+ *
154
+ * This source code is licensed under the MIT license found in the
155
+ * LICENSE file in the root directory of this source tree.
156
+ */
157
+
158
+ /** @license React v16.13.1
159
+ * react-is.production.min.js
160
+ *
161
+ * Copyright (c) Facebook, Inc. and its affiliates.
162
+ *
163
+ * This source code is licensed under the MIT license found in the
164
+ * LICENSE file in the root directory of this source tree.
165
+ */
166
+
167
+ /** @license React v16.14.0
168
+ * react-dom.production.min.js
169
+ *
170
+ * Copyright (c) Facebook, Inc. and its affiliates.
171
+ *
172
+ * This source code is licensed under the MIT license found in the
173
+ * LICENSE file in the root directory of this source tree.
174
+ */
175
+
176
+ /** @license React v16.14.0
177
+ * react.production.min.js
178
+ *
179
+ * Copyright (c) Facebook, Inc. and its affiliates.
180
+ *
181
+ * This source code is licensed under the MIT license found in the
182
+ * LICENSE file in the root directory of this source tree.
183
+ */
184
+
185
+ /** @license React v17.0.2
186
+ * react-is.production.min.js
187
+ *
188
+ * Copyright (c) Facebook, Inc. and its affiliates.
189
+ *
190
+ * This source code is licensed under the MIT license found in the
191
+ * LICENSE file in the root directory of this source tree.
192
+ */
193
+
194
+ /** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */
195
+
196
+ //! moment.js
197
+
198
+ //! moment.js locale configuration
package/package.json CHANGED
@@ -1,58 +1,71 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-query-history",
3
3
  "productName": "Query History plugin",
4
- "version": "8.23.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": "8.26.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
+ "require": "./dist/index.js",
30
+ "browser": "./dist/browser.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}\"",
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 .",
40
47
  "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"
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.12.0",
59
+ "@mongodb-js/compass-logging": "^0.14.0",
47
60
  "bson": "^4.4.1",
48
- "highlight.js": "^9.12.0",
49
61
  "lodash": "^4.17.15",
50
- "mongodb-data-service": "^21.21.0"
62
+ "mongodb-data-service": "^21.24.0"
51
63
  },
52
64
  "peerDependencies": {
65
+ "@mongodb-js/compass-components": "^0.17.0",
53
66
  "bson": "^4.4.1",
54
67
  "debug": "*",
55
- "hadron-react-components": "^5.15.0",
68
+ "hadron-react-components": "^5.17.0",
56
69
  "mongodb-query-parser": "^2.4.6",
57
70
  "prop-types": "^15.7.2",
58
71
  "react": "^16.14.0",
@@ -64,91 +77,37 @@
64
77
  "storage-mixin": "^4.14.0"
65
78
  },
66
79
  "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",
80
+ "@mongodb-js/compass-components": "^0.17.0",
81
+ "@mongodb-js/eslint-config-compass": "^0.11.0",
82
+ "@mongodb-js/mocha-config-compass": "^0.12.0",
83
+ "@mongodb-js/prettier-config-compass": "^0.6.0",
84
+ "@mongodb-js/tsconfig-compass": "^0.7.0",
85
+ "@mongodb-js/webpack-config-compass": "^0.11.0",
74
86
  "ampersand-model": "^8.0.1",
75
87
  "ampersand-rest-collection": "^6.0.0",
76
- "autoprefixer": "^9.4.6",
77
- "babel-loader": "^8.2.2",
78
88
  "bson": "^4.4.1",
79
89
  "chai": "^4.1.2",
80
- "chai-enzyme": "1.0.0-beta.1",
81
- "cheerio": "^1.0.0-rc.2",
82
90
  "classnames": "^2.2.6",
83
- "core-js": "^3.12.1",
84
- "cross-env": "^7.0.0",
85
- "css-loader": "^4.3.0",
86
91
  "debug": "4.3.0",
87
92
  "depcheck": "^1.4.1",
88
93
  "electron": "^13.5.1",
89
94
  "enzyme": "^3.11.0",
90
- "enzyme-adapter-react-16": "^1.15.2",
91
95
  "eslint": "^7.25.0",
92
- "eslint-config-mongodb-js": "^5.0.3",
93
- "eslint-plugin-react": "^7.24.0",
94
- "extract-text-webpack-plugin": "^4.0.0-beta.0",
95
- "file-loader": "^5.1.0",
96
- "font-awesome": "^4.7.0",
97
- "hadron-app": "^4.23.0",
98
- "hadron-app-registry": "^8.12.0",
99
- "hadron-react-components": "^5.15.0",
100
- "har-validator": "^5.1.3",
101
- "html-webpack-plugin": "^3.2.0",
102
- "ignore-loader": "^0.1.2",
103
- "inject-loader": "^4.0.1",
104
- "istanbul-instrumenter-loader": "^3.0.1",
105
- "jsdom": "^16.7.0",
106
- "jsdom-global": "^3.0.2",
107
- "karma": "^6.3.4",
108
- "karma-chai": "^0.1.0",
109
- "karma-chai-sinon": "^0.1.5",
110
- "karma-electron": "^7.0.0",
111
- "karma-mocha": "^1.3.0",
112
- "karma-mocha-reporter": "^2.2.5",
113
- "karma-sinon": "^1.0.5",
114
- "karma-sourcemap-loader": "^0.3.8",
115
- "karma-webpack": "^4.0.2",
116
- "less": "^3.11.1",
117
- "less-loader": "^7.3.0",
118
- "mime-db": "^1.27.0",
119
- "mocha": "^5.0.0",
120
- "mocha-webpack": "^2.0.0-beta.0",
121
- "mongodb-connection-model": "^21.17.0",
96
+ "hadron-app-registry": "^8.14.0",
97
+ "hadron-react-components": "^5.17.0",
98
+ "mocha": "^8.4.0",
122
99
  "mongodb-ns": "^2.4.0",
123
100
  "mongodb-query-parser": "^2.4.6",
124
- "mongodb-reflux-store": "^0.0.1",
125
- "node-loader": "^0.6.0",
126
101
  "nyc": "^15.0.0",
127
- "peer-deps-externals-webpack-plugin": "^1.0.4",
128
- "postcss-loader": "^2.1.6",
129
102
  "prop-types": "^15.7.2",
130
103
  "react": "^16.14.0",
131
104
  "react-dom": "^16.14.0",
132
- "react-hot-loader": "^4.13.0",
133
105
  "reflux": "^0.4.1",
134
106
  "reflux-state-mixin": "github:mongodb-js/reflux-state-mixin",
135
- "rimraf": "^3.0.1",
136
- "semver": "^5.4.1",
137
- "shebang-loader": "^0.0.1",
138
- "sinon": "^8.1.1",
139
- "sinon-chai": "^3.4.0",
140
- "sshpk": "^1.13.0",
107
+ "rimraf": "^3.0.2",
108
+ "sinon": "^9.2.3",
141
109
  "storage-mixin": "^4.14.0",
142
- "style-loader": "^2.0.0",
143
- "tough-cookie": "^2.3.2",
144
- "url-loader": "^3.0.0",
145
- "uuid": "^3.1.0",
146
- "webpack": "^4.46.0",
147
- "webpack-bundle-analyzer": "^3.0.3",
148
- "webpack-cli": "^3.3.12",
149
- "webpack-dev-server": "^3.11.2",
150
- "webpack-merge": "^4.2.2",
151
- "webpack-node-externals": "^3.0.0"
110
+ "uuid": "^3.1.0"
152
111
  },
153
- "gitHead": "63c32b940f523e4c3e45b86a5aecaeadef93253f"
112
+ "gitHead": "9f5498524c3e50d351f6f36fb015ff14163a39cf"
154
113
  }
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
- ]