@gooddata/sdk-backend-mockingbird 11.19.0-alpha.1 → 11.19.0-alpha.11

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.
package/README.md CHANGED
@@ -15,23 +15,23 @@ This implementation of Analytical Backend SPI focuses on the execution branch of
15
15
  and sets up Prepared Execution just like any other implementation would. When the prepared execution
16
16
  is started (execute()) it either (based on configuration):
17
17
 
18
- - Returns an empty result which only contains execution definition and has the result dimensions empty.
19
- Reading any data views from this result will return empty data views.
18
+ - Returns an empty result which only contains execution definition and has the result dimensions empty.
19
+ Reading any data views from this result will return empty data views.
20
20
 
21
- - Returns an empty result which only contains execution definition and has the result dimensions empty.
22
- Reading any data views from this result will yield NoDataError
21
+ - Returns an empty result which only contains execution definition and has the result dimensions empty.
22
+ Reading any data views from this result will yield NoDataError
23
23
 
24
24
  (Note: this is closer to how real backend implementations behave)
25
25
 
26
26
  Purpose:
27
27
 
28
- - use in unit tests which need to verify whether the execution is prepared correctly
29
- for instance functions which transform props => prepared execution
28
+ - use in unit tests which need to verify whether the execution is prepared correctly
29
+ for instance functions which transform props => prepared execution
30
30
 
31
- - use in unit tests which need to verify whether code works correctly with execution definition
32
- stored in result / data view / data view facade
31
+ - use in unit tests which need to verify whether code works correctly with execution definition
32
+ stored in result / data view / data view facade
33
33
 
34
- - use in component-level 'smoke tests' (e.g. something renders or happens, we don't care about the details)
34
+ - use in component-level 'smoke tests' (e.g. something renders or happens, we don't care about the details)
35
35
 
36
36
  ## Legacy Recorded Backend
37
37
 
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  // (C) 2019-2026 GoodData Corporation
2
- /* eslint-disable no-barrel-files/no-barrel-files */
2
+ /* oxlint-disable no-barrel-files/no-barrel-files */
3
3
  /**
4
4
  * This package provides a mock Analytical Backend implementation used mainly for testing.
5
5
  *
@@ -180,7 +180,7 @@ class RecordedAvailableCatalogFactory {
180
180
  // availability not implemented yet
181
181
  return this;
182
182
  };
183
- // eslint-disable-next-line sonarjs/no-identical-functions
183
+ // oxlint-disable-next-line sonarjs/no-identical-functions
184
184
  withGroups(loadGroups) {
185
185
  return this.withOptions({
186
186
  loadGroups,
@@ -1,4 +1,4 @@
1
- // (C) 2019-2025 GoodData Corporation
1
+ // (C) 2019-2026 GoodData Corporation
2
2
  import { invariant } from "ts-invariant";
3
3
  import { InMemoryPaging } from "@gooddata/sdk-backend-base";
4
4
  import { NotImplemented, UnexpectedResponseError, } from "@gooddata/sdk-backend-spi";
@@ -103,7 +103,7 @@ class RecordedFilterElements {
103
103
  this.recordings = recordings;
104
104
  this.ref = filterObjRef(filter);
105
105
  }
106
- // eslint-disable-next-line sonarjs/no-identical-functions
106
+ // oxlint-disable-next-line sonarjs/no-identical-functions
107
107
  withLimit(limit) {
108
108
  invariant(limit > 0, "Limit must be positive number");
109
109
  this.limit = limit;
package/package.json CHANGED
@@ -1,34 +1,34 @@
1
1
  {
2
2
  "name": "@gooddata/sdk-backend-mockingbird",
3
- "version": "11.19.0-alpha.1",
3
+ "version": "11.19.0-alpha.11",
4
4
  "description": "Mock GoodData Backend SPI implementation",
5
+ "license": "MIT",
6
+ "author": "GoodData",
5
7
  "repository": {
6
8
  "type": "git",
7
9
  "url": "https://github.com/gooddata/gooddata-ui-sdk.git",
8
10
  "directory": "libs/sdk-backend-mockingbird"
9
11
  },
10
- "license": "MIT",
11
- "author": "GoodData",
12
- "sideEffects": false,
13
- "type": "module",
14
- "exports": "./esm/index.js",
15
- "browser": "./esm/index.js",
16
- "types": "./esm/index.d.ts",
17
12
  "files": [
18
13
  "esm/**/*.js",
19
14
  "esm/**/*.json",
20
15
  "esm/**/*.d.ts",
21
16
  "esm/**/*.map"
22
17
  ],
18
+ "type": "module",
19
+ "sideEffects": false,
20
+ "browser": "./esm/index.js",
21
+ "types": "./esm/index.d.ts",
22
+ "exports": "./esm/index.js",
23
23
  "dependencies": {
24
- "lodash-es": "^4.17.21",
24
+ "lodash-es": "^4.17.23",
25
25
  "ts-invariant": "^0.7.5",
26
26
  "tslib": "2.8.1",
27
27
  "uuid": "^11.1.0",
28
- "@gooddata/sdk-backend-spi": "11.19.0-alpha.1",
29
- "@gooddata/sdk-model": "11.19.0-alpha.1",
30
- "@gooddata/sdk-backend-base": "11.19.0-alpha.1",
31
- "@gooddata/util": "11.19.0-alpha.1"
28
+ "@gooddata/sdk-backend-spi": "11.19.0-alpha.11",
29
+ "@gooddata/util": "11.19.0-alpha.11",
30
+ "@gooddata/sdk-model": "11.19.0-alpha.11",
31
+ "@gooddata/sdk-backend-base": "11.19.0-alpha.11"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.17.0",
@@ -37,24 +37,22 @@
37
37
  "@typescript-eslint/eslint-plugin": "8.52.0",
38
38
  "@typescript-eslint/parser": "8.52.0",
39
39
  "dependency-cruiser": "^14.1.2",
40
- "eslint": "^8.57.1",
41
- "eslint-config-prettier": "10.1.8",
42
- "eslint-plugin-header": "3.1.1",
43
- "eslint-plugin-import": "2.32.0",
40
+ "eslint": "^9.39.2",
41
+ "eslint-import-resolver-typescript": "4.4.4",
42
+ "eslint-plugin-headers": "1.3.3",
44
43
  "eslint-plugin-import-esm": "1.2.1",
44
+ "eslint-plugin-import-x": "4.16.1",
45
45
  "eslint-plugin-jsdoc": "62.1.0",
46
46
  "eslint-plugin-no-barrel-files": "1.2.2",
47
- "eslint-plugin-no-only-tests": "2.6.0",
48
- "eslint-plugin-prettier": "5.5.4",
49
- "eslint-plugin-regexp": "1.15.0",
50
47
  "eslint-plugin-sonarjs": "3.0.6",
51
- "eslint-plugin-tsdoc": "0.2.14",
52
48
  "npm-run-all": "^4.1.5",
53
- "prettier": "^3.6.2",
49
+ "oxfmt": "0.27.0",
50
+ "oxlint": "^1.43.0",
54
51
  "typescript": "5.9.3",
55
52
  "vitest": "4.0.8",
56
- "@gooddata/eslint-config": "11.19.0-alpha.1",
57
- "@gooddata/reference-workspace": "11.19.0-alpha.1"
53
+ "@gooddata/eslint-config": "11.19.0-alpha.11",
54
+ "@gooddata/oxlint-config": "11.19.0-alpha.11",
55
+ "@gooddata/reference-workspace": "11.19.0-alpha.11"
58
56
  },
59
57
  "scripts": {
60
58
  "_phase:build": "npm run build",
@@ -66,13 +64,17 @@
66
64
  "build-ts": "tsc -p tsconfig.build.json",
67
65
  "clean": "../../common/scripts/clean-command-state.sh && rm -rf ci dist esm coverage *.log tsconfig.tsbuildinfo",
68
66
  "dep-cruiser": "depcruise --validate .dependency-cruiser.cjs --output-type err-long src/",
69
- "eslint": "eslint -c .eslintrc.cjs --ignore-path ../.eslintignore .",
70
- "eslint-fix": "eslint -c .eslintrc.cjs --ignore-path ../.eslintignore . --fix",
71
- "prettier-check": "prettier --no-error-on-unmatched-pattern --check '{src,test}/**/*.{json,scss,md,yaml,html}'",
72
- "prettier-write": "prettier --no-error-on-unmatched-pattern --write '{src,test}/**/*.{json,scss,md,yaml,html}'",
67
+ "eslint": "eslint .",
68
+ "eslint-fix": "eslint . --fix",
69
+ "oxfmt-check": "oxfmt --check .",
70
+ "oxfmt-write": "oxfmt .",
73
71
  "test": "vitest watch",
74
72
  "test-once": "vitest run",
75
- "validate": "npm run dep-cruiser && npm run eslint && npm run prettier-check",
76
- "validate-esm": "node --input-type=module --eval 'import \"@gooddata/sdk-backend-mockingbird\"'"
73
+ "validate": "npm run lint && npm run dep-cruiser && npm run oxfmt-check",
74
+ "validate-esm": "node --input-type=module --eval 'import \"@gooddata/sdk-backend-mockingbird\"'",
75
+ "lint": "npm run oxlint && npm run eslint",
76
+ "lint-fix": "npm run oxlint-fix && npm run eslint-fix",
77
+ "oxlint": "oxlint .",
78
+ "oxlint-fix": "oxlint . --fix"
77
79
  }
78
80
  }