Skip to content

Commit 5e29b9f

Browse files
gribnoysupaddaleax
andauthored
chore(data-service): consolidate all op logging in a decorator COMPASS-6624 (#4271)
* chore(webpack-config): update babel to support latest decorators spec * chore(data-service): refactor common op logic to decorator * chore(data-service): isPromise -> isPromiseLike Co-authored-by: Anna Henningsen <[email protected]> * chore(data-serivce): next available log id * chore: disable source maps and compact for istanbul transforms both are resource expensive and cause coverage tasks to crash with OOM * chore(e2e): update expected log message --------- Co-authored-by: Anna Henningsen <[email protected]>
1 parent 259fb95 commit 5e29b9f

File tree

47 files changed

+1702
-1938
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+1702
-1938
lines changed

configs/eslint-plugin-compass/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"check": "npm run lint && npm run depcheck",
3232
"check-ci": "npm run check",
3333
"test": "mocha",
34-
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
34+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
3535
"test-watch": "npm run test -- --watch",
3636
"test-ci": "npm run test-cov",
3737
"reformat": "npm run prettier -- --write . && npm run eslint . --fix"

configs/webpack-config-compass/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@
5858
"typescript": "^5.0.4"
5959
},
6060
"dependencies": {
61-
"@babel/core": "^7.18.6",
62-
"@babel/plugin-proposal-decorators": "^7.18.6",
63-
"@babel/plugin-transform-runtime": "^7.18.6",
64-
"@babel/preset-env": "^7.15.6",
61+
"@babel/core": "^7.21.4",
62+
"@babel/plugin-proposal-decorators": "^7.21.0",
63+
"@babel/plugin-transform-runtime": "^7.21.4",
64+
"@babel/preset-env": "^7.21.4",
6565
"@babel/preset-react": "^7.18.6",
66-
"@babel/preset-typescript": "^7.18.6",
67-
"@babel/runtime": "^7.18.6",
66+
"@babel/preset-typescript": "^7.21.4",
67+
"@babel/runtime": "^7.21.0",
6868
"@cerner/duplicate-package-checker-webpack-plugin": "^2.1.0",
6969
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.5",
7070
"babel-loader": "^8.2.5",

configs/webpack-config-compass/src/loaders.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export const javascriptLoader = (args: ConfigArgs, web = false) => ({
9696
],
9797
[
9898
require.resolve('@babel/plugin-proposal-decorators'),
99-
{ legacy: true },
99+
{ version: '2023-01' },
100100
],
101101
args.coverage && [
102102
'istanbul',

package-lock.json

Lines changed: 1251 additions & 1279 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/compass-aggregations/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"check-ci": "npm run check",
3131
"test": "mocha",
3232
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
33-
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
33+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
3434
"test-watch": "npm run test -- --watch",
3535
"test-ci": "npm run test-cov",
3636
"test-ci-electron": "npm run test-electron",

packages/compass-app-stores/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"check-ci": "npm run check",
5050
"test": "mocha",
5151
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
52-
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
52+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
5353
"test-watch": "npm run test -- --watch",
5454
"test-ci": "npm run test-cov",
5555
"test-ci-electron": "npm run test-electron",

packages/compass-collection/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
"check-ci": "npm run check",
5151
"test": "mocha",
5252
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
53-
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
53+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
5454
"test-watch": "npm run test -- --watch",
5555
"test-ci": "npm run test-cov",
5656
"test-ci-electron": "npm run test-electron",

packages/compass-components/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"check": "npm run lint && npm run depcheck",
2626
"check-ci": "npm run check",
2727
"test": "mocha",
28-
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
28+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
2929
"test-watch": "npm run test -- --watch",
3030
"test-ci": "npm run test-cov",
3131
"reformat": "npm run prettier -- --write . && npm run eslint . --fix"

packages/compass-connection-import-export/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"check": "npm run typecheck && npm run lint && npm run depcheck",
4646
"check-ci": "npm run check",
4747
"test": "mocha",
48-
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
48+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
4949
"test-watch": "npm run test -- --watch",
5050
"test-ci": "npm run test-cov",
5151
"reformat": "npm run prettier -- --write . && npm run eslint . --fix"

packages/compass-connections/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"check-ci": "npm run check",
4242
"test": "mocha",
4343
"test-electron": "xvfb-maybe electron-mocha --no-sandbox",
44-
"test-cov": "nyc -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
44+
"test-cov": "nyc --compact=false --produce-source-map=false -x \"**/*.spec.*\" --reporter=lcov --reporter=text --reporter=html npm run test",
4545
"test-watch": "npm run test -- --watch",
4646
"test-ci": "npm run test-cov",
4747
"test-ci-electron": "npm run test-electron",

0 commit comments

Comments
 (0)