@mongodb-js/compass-aggregations 8.19.1 → 8.19.2

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,106 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /*!
8
+ Copyright (c) 2017 Jed Watson.
9
+ Licensed under the MIT License (MIT), see
10
+ http://jedwatson.github.io/react-select
11
+ */
12
+
13
+ /*!
14
+ Copyright (c) 2018 Jed Watson.
15
+ Licensed under the MIT License (MIT), see
16
+ http://jedwatson.github.io/classnames
17
+ */
18
+
19
+ /*!
20
+ * Programatically add the following
21
+ */
22
+
23
+ /*!
24
+ * focus-trap 6.5.1
25
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
26
+ */
27
+
28
+ /*!
29
+ * tabbable 5.2.0
30
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
31
+ */
32
+
33
+ /**
34
+ * @license
35
+ * Lodash <https://lodash.com/>
36
+ * Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
37
+ * Released under MIT license <https://lodash.com/license>
38
+ * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
39
+ * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
40
+ */
41
+
42
+ /**
43
+ * ag-grid-community - Advanced Data Grid / Data Table supporting Javascript / React / AngularJS / Web Components
44
+ * @version v20.2.0
45
+ * @link http://www.ag-grid.com/
46
+ * @license MIT
47
+ */
48
+
49
+ /** @license React v0.19.1
50
+ * scheduler.production.min.js
51
+ *
52
+ * Copyright (c) Facebook, Inc. and its affiliates.
53
+ *
54
+ * This source code is licensed under the MIT license found in the
55
+ * LICENSE file in the root directory of this source tree.
56
+ */
57
+
58
+ /** @license React v16.13.1
59
+ * react-is.production.min.js
60
+ *
61
+ * Copyright (c) Facebook, Inc. and its affiliates.
62
+ *
63
+ * This source code is licensed under the MIT license found in the
64
+ * LICENSE file in the root directory of this source tree.
65
+ */
66
+
67
+ /** @license React v16.14.0
68
+ * react-dom.production.min.js
69
+ *
70
+ * Copyright (c) Facebook, Inc. and its affiliates.
71
+ *
72
+ * This source code is licensed under the MIT license found in the
73
+ * LICENSE file in the root directory of this source tree.
74
+ */
75
+
76
+ /** @license React v16.14.0
77
+ * react.production.min.js
78
+ *
79
+ * Copyright (c) Facebook, Inc. and its affiliates.
80
+ *
81
+ * This source code is licensed under the MIT license found in the
82
+ * LICENSE file in the root directory of this source tree.
83
+ */
84
+
85
+ /** @license React v17.0.2
86
+ * react-is.production.min.js
87
+ *
88
+ * Copyright (c) Facebook, Inc. and its affiliates.
89
+ *
90
+ * This source code is licensed under the MIT license found in the
91
+ * LICENSE file in the root directory of this source tree.
92
+ */
93
+
94
+ //! Copyright (c) JS Foundation and other contributors
95
+
96
+ //! github.com/moment/moment-timezone
97
+
98
+ //! license : MIT
99
+
100
+ //! moment-timezone.js
101
+
102
+ //! moment.js
103
+
104
+ //! moment.js locale configuration
105
+
106
+ //! version : 0.5.33
package/package.json CHANGED
@@ -1,52 +1,51 @@
1
1
  {
2
2
  "name": "@mongodb-js/compass-aggregations",
3
3
  "productName": "Aggregations plugin",
4
- "version": "8.19.1",
4
+ "version": "8.19.2",
5
5
  "apiVersion": "3.0.0",
6
6
  "description": "Compass Aggregation Pipeline Builder",
7
7
  "main": "lib/index.js",
8
8
  "exports": {
9
9
  "webpack": "./src/index.js",
10
+ "browser": "./lib/browser.js",
10
11
  "require": "./lib/index.js"
11
12
  },
12
13
  "scripts": {
13
- "clean": "rimraf lib",
14
- "precompile": "npm run clean",
15
- "compile": "cross-env NODE_ENV=production webpack --config ./config/webpack.prod.config.js",
16
- "prestart": "electron-rebuild --force --only keytar",
17
- "start": "cross-env NODE_ENV=development webpack-dev-server --config ./config/webpack.dev.config.js",
18
- "start:watch": "npm run clean && webpack --config ./config/webpack.watch.config.js",
19
- "test": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\"",
20
- "test:dev": "cross-env NODE_ENV=test mocha-webpack",
21
- "test:watch": "cross-env NODE_ENV=test mocha-webpack \"./src/**/*.spec.js\" --watch",
22
- "test:karma": "cross-env NODE_ENV=test karma start",
23
- "cover": "nyc npm run test",
24
- "check": "npm run lint && npm run depcheck",
25
- "preanalyze": "mkdir -p .ghpages && cross-env NODE_ENV=production webpack --profile --json --config ./config/webpack.prod.config.js > .ghpages/stats.json",
26
- "analyze": "webpack-bundle-analyzer .ghpages/stats.json --no-open --report .ghpages/report.html --mode static --bundleDir lib",
27
14
  "prepublishOnly": "npm run compile",
28
- "lint": "eslint \"./src/**/*.{js,jsx}\" \"./test/**/*.js\" \"./electron/**/*.js\" \"./config/**/*.{js,jsx}\"",
15
+ "compile": "npm run webpack -- --mode production",
16
+ "prewebpack": "rimraf ./lib",
17
+ "webpack": "webpack-compass",
18
+ "start": "npm run webpack serve -- --mode development",
19
+ "analyze": "npm run webpack -- --mode production --analyze",
20
+ "typecheck": "tsc --noEmit",
29
21
  "depcheck": "depcheck",
30
- "test-ci": "npm run test",
31
- "bootstrap": "npm run compile"
22
+ "eslint": "eslint",
23
+ "lint": "npm run eslint .",
24
+ "check": "npm run typecheck && npm run lint && npm run depcheck",
25
+ "check-ci": "npm run check",
26
+ "test": "mocha",
27
+ "test-electron": "xvfb-maybe electron-mocha --no-sandbox",
28
+ "test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
29
+ "test-watch": "npm run test -- --watch",
30
+ "test-ci": "npm run test-cov && npm run test-electron"
32
31
  },
33
32
  "license": "SSPL",
34
33
  "peerDependencies": {
35
- "@mongodb-js/compass-components": "^0.10.0",
36
- "@mongodb-js/compass-crud": "^12.19.1",
37
- "@mongodb-js/compass-export-to-language": "^7.18.1",
38
- "@mongodb-js/compass-field-store": "^7.18.1",
34
+ "@mongodb-js/compass-components": "^0.10.1",
35
+ "@mongodb-js/compass-crud": "^12.19.2",
36
+ "@mongodb-js/compass-export-to-language": "^7.18.2",
37
+ "@mongodb-js/compass-field-store": "^7.18.2",
39
38
  "ace-builds": "^1.4.3",
40
39
  "async": "^3.2.0",
41
40
  "bson": "*",
42
41
  "electron": "^13.5.1",
43
42
  "hadron-react-bson": "^5.7.0",
44
43
  "hadron-react-buttons": "^5.6.0",
45
- "hadron-react-components": "^5.10.0",
44
+ "hadron-react-components": "^5.10.1",
46
45
  "mongodb-ace-autocompleter": "*",
47
46
  "mongodb-ace-mode": "^1.5.0",
48
47
  "mongodb-ace-theme": "^1.5.0",
49
- "mongodb-data-service": "^21.16.1",
48
+ "mongodb-data-service": "^21.16.2",
50
49
  "mongodb-js-metrics": "^7.7.0",
51
50
  "mongodb-query-parser": "^2.4.3",
52
51
  "prop-types": "^15.7.2",
@@ -56,104 +55,53 @@
56
55
  "react-dom": "^16.14.0"
57
56
  },
58
57
  "devDependencies": {
59
- "@babel/cli": "^7.14.3",
60
- "@babel/core": "^7.14.3",
61
- "@babel/plugin-proposal-decorators": "^7.14.2",
62
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
63
- "@babel/preset-env": "^7.14.2",
64
- "@babel/preset-react": "^7.13.13",
65
- "@babel/register": "^7.13.16",
66
- "@hot-loader/react-dom": "^16.9.0",
67
- "@mongodb-js/compass-components": "^0.10.0",
68
- "@mongodb-js/compass-crud": "^12.19.1",
69
- "@mongodb-js/compass-export-to-language": "^7.18.1",
70
- "@mongodb-js/compass-field-store": "^7.18.1",
58
+ "@mongodb-js/compass-components": "^0.10.1",
59
+ "@mongodb-js/compass-crud": "^12.19.2",
60
+ "@mongodb-js/compass-export-to-language": "^7.18.2",
61
+ "@mongodb-js/compass-field-store": "^7.18.2",
62
+ "@mongodb-js/eslint-config-compass": "^0.6.1",
63
+ "@mongodb-js/mocha-config-compass": "^0.8.1",
64
+ "@mongodb-js/prettier-config-compass": "^0.4.0",
65
+ "@mongodb-js/tsconfig-compass": "^0.5.0",
66
+ "@mongodb-js/webpack-config-compass": "^0.5.1",
71
67
  "ace-builds": "^1.4.3",
72
68
  "async": "^3.2.0",
73
- "autoprefixer": "^9.4.10",
74
- "babel-loader": "^8.2.2",
75
- "chai": "^4.2.0",
76
- "chai-as-promised": "^7.1.1",
77
- "chai-enzyme": "1.0.0-beta.1",
69
+ "chai": "^4.3.6",
78
70
  "classnames": "^2.2.6",
79
- "core-js": "^3.12.1",
80
- "cross-env": "^7.0.0",
81
- "css-loader": "^4.3.0",
82
71
  "debug": "4.3.0",
83
72
  "depcheck": "^1.4.1",
84
73
  "electron": "^13.5.1",
85
74
  "enzyme": "^3.11.0",
86
- "enzyme-adapter-react-16": "^1.15.2",
87
75
  "eslint": "^7.25.0",
88
- "eslint-config-mongodb-js": "^5.0.3",
89
- "eslint-plugin-react": "^7.24.0",
90
- "extract-text-webpack-plugin": "^4.0.0-beta.0",
91
- "file-loader": "^5.1.0",
92
- "font-awesome": "^4.7.0",
93
- "hadron-app": "^4.18.1",
94
- "hadron-app-registry": "^8.8.0",
76
+ "hadron-app": "^4.18.2",
77
+ "hadron-app-registry": "^8.8.1",
95
78
  "hadron-document": "^7.7.0",
96
79
  "hadron-react-bson": "^5.7.0",
97
80
  "hadron-react-buttons": "^5.6.0",
98
- "hadron-react-components": "^5.10.0",
99
- "html-webpack-plugin": "^3.2.0",
100
- "ignore-loader": "^0.1.2",
101
- "istanbul-instrumenter-loader": "^3.0.1",
102
- "jquery": "^3.3.1",
103
- "jsdom": "^16.7.0",
104
- "jsdom-global": "^3.0.2",
105
- "karma": "^6.3.4",
106
- "karma-chai": "^0.1.0",
107
- "karma-chai-sinon": "^0.1.5",
108
- "karma-electron": "^7.0.0",
109
- "karma-mocha": "^1.3.0",
110
- "karma-mocha-reporter": "^2.2.5",
111
- "karma-sinon": "^1.0.5",
112
- "karma-sourcemap-loader": "^0.3.8",
113
- "karma-webpack": "^4.0.2",
114
- "less": "^3.11.1",
115
- "less-loader": "^7.3.0",
116
- "mocha": "^7.0.1",
117
- "mocha-webpack": "^2.0.0-beta.0",
118
- "mongodb-ace-autocompleter": "^0.10.0",
81
+ "hadron-react-components": "^5.10.1",
82
+ "mocha": "^8.4.0",
83
+ "mongodb-ace-autocompleter": "^0.10.1",
119
84
  "mongodb-ace-mode": "^1.5.0",
120
85
  "mongodb-ace-theme": "^1.5.0",
121
- "mongodb-connection-model": "^21.12.1",
122
- "mongodb-data-service": "^21.16.1",
86
+ "mongodb-connection-model": "^21.12.2",
87
+ "mongodb-data-service": "^21.16.2",
123
88
  "mongodb-js-metrics": "^7.7.0",
124
89
  "mongodb-query-parser": "^2.4.3",
125
90
  "mongodb-reflux-store": "^0.0.1",
126
- "mongodb-schema": "^8.2.5",
127
- "mongodb-stitch-browser-sdk": "^4.8.0",
128
- "nise": "4.0.2",
129
- "node-loader": "^0.6.0",
130
- "nyc": "^15.0.0",
131
- "peer-deps-externals-webpack-plugin": "^1.0.4",
132
- "postcss-loader": "^2.1.6",
91
+ "nyc": "^15.1.0",
133
92
  "prop-types": "^15.7.2",
134
93
  "react": "^16.14.0",
135
94
  "react-ace": "^9.5.0",
136
95
  "react-dom": "^16.14.0",
137
- "react-hot-loader": "^4.13.0",
138
96
  "reflux": "^0.4.1",
139
97
  "reflux-state-mixin": "github:mongodb-js/reflux-state-mixin",
140
- "resolve": "^1.15.1",
141
98
  "rimraf": "^3.0.0",
142
- "shebang-loader": "^0.0.1",
143
- "sinon": "^9.0.0",
144
- "sinon-chai": "^3.3.0",
145
- "style-loader": "^2.0.0",
146
- "url-loader": "^3.0.0",
147
- "webpack": "^4.46.0",
148
- "webpack-bundle-analyzer": "^3.1.0",
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"
99
+ "sinon": "^9.2.3",
100
+ "xvfb-maybe": "^0.2.1"
153
101
  },
154
102
  "dependencies": {
155
- "@mongodb-js/compass-logging": "^0.7.0",
156
- "@mongodb-js/mongodb-redux-common": "^1.8.0",
103
+ "@mongodb-js/compass-logging": "^0.7.1",
104
+ "@mongodb-js/mongodb-redux-common": "^1.8.1",
157
105
  "acorn-loose": "^8.0.2",
158
106
  "astring": "^1.7.0",
159
107
  "bson": "*",
@@ -171,8 +119,7 @@
171
119
  "react-select-plus": "^1.2.0",
172
120
  "redux": "^4.1.2",
173
121
  "redux-thunk": "^2.3.0",
174
- "semver": "^5.7.1",
175
- "storage-mixin": "^4.10.0"
122
+ "semver": "^5.7.1"
176
123
  },
177
124
  "homepage": "https://github.com/mongodb-js/compass",
178
125
  "bugs": {
@@ -183,5 +130,5 @@
183
130
  "type": "git",
184
131
  "url": "https://github.com/mongodb-js/compass.git"
185
132
  },
186
- "gitHead": "38680b2f9463d22a71105b6a7721883feecd54c9"
133
+ "gitHead": "d51426c38f3ad0be209769e18365824c710dbc2d"
187
134
  }
@@ -0,0 +1,5 @@
1
+ {
2
+ "extends": "./tsconfig.json",
3
+ "include": ["**/*"],
4
+ "exclude": ["node_modules", "lib"]
5
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ {
2
+ "extends": "@mongodb-js/tsconfig-compass/tsconfig.react.json",
3
+ "compilerOptions": {
4
+ "outDir": "dist",
5
+ "allowJs": true
6
+ },
7
+ "include": ["src/**/*"],
8
+ "exclude": ["./src/**/*.spec.*"]
9
+ }
@@ -0,0 +1,2 @@
1
+ const { compassPluginConfig } = require('@mongodb-js/webpack-config-compass');
2
+ module.exports = compassPluginConfig;
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