@feathersjs/adapter-tests 5.0.0-pre.33 → 5.0.0-pre.35
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/CHANGELOG.md +12 -0
- package/lib/basic.js +0 -18
- package/lib/basic.js.map +1 -1
- package/lib/declarations.d.ts +8 -8
- package/package.json +7 -7
- package/src/basic.ts +0 -24
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [5.0.0-pre.35](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.34...v5.0.0-pre.35) (2023-01-12)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **generators:** Move core code generators to shared generators package ([#2982](https://github.com/feathersjs/feathers/issues/2982)) ([0328d22](https://github.com/feathersjs/feathers/commit/0328d2292153870bc43958f73d2c6f288a8cec17))
|
|
11
|
+
|
|
12
|
+
# [5.0.0-pre.34](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.33...v5.0.0-pre.34) (2022-12-14)
|
|
13
|
+
|
|
14
|
+
### Features
|
|
15
|
+
|
|
16
|
+
- **adapter:** Add patch data type to adapters and refactor AdapterBase usage ([#2906](https://github.com/feathersjs/feathers/issues/2906)) ([9ddc2e6](https://github.com/feathersjs/feathers/commit/9ddc2e6b028f026f939d6af68125847e5c6734b4))
|
|
17
|
+
|
|
6
18
|
# [5.0.0-pre.33](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.32...v5.0.0-pre.33) (2022-11-08)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @feathersjs/adapter-tests
|
package/lib/basic.js
CHANGED
|
@@ -38,24 +38,6 @@ exports.default = (test, app, _errors, serviceName, idProp) => {
|
|
|
38
38
|
test('._remove', () => {
|
|
39
39
|
assert_1.default.strictEqual(typeof service._remove, 'function');
|
|
40
40
|
});
|
|
41
|
-
test('.$get', () => {
|
|
42
|
-
assert_1.default.strictEqual(typeof service.$get, 'function');
|
|
43
|
-
});
|
|
44
|
-
test('.$find', () => {
|
|
45
|
-
assert_1.default.strictEqual(typeof service.$find, 'function');
|
|
46
|
-
});
|
|
47
|
-
test('.$create', () => {
|
|
48
|
-
assert_1.default.strictEqual(typeof service.$create, 'function');
|
|
49
|
-
});
|
|
50
|
-
test('.$update', () => {
|
|
51
|
-
assert_1.default.strictEqual(typeof service.$update, 'function');
|
|
52
|
-
});
|
|
53
|
-
test('.$patch', () => {
|
|
54
|
-
assert_1.default.strictEqual(typeof service.$patch, 'function');
|
|
55
|
-
});
|
|
56
|
-
test('.$remove', () => {
|
|
57
|
-
assert_1.default.strictEqual(typeof service.$remove, 'function');
|
|
58
|
-
});
|
|
59
41
|
});
|
|
60
42
|
});
|
|
61
43
|
};
|
package/lib/basic.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basic.js","sourceRoot":"","sources":["../src/basic.ts"],"names":[],"mappings":";;;;;AAAA,oDAA2B;AAG3B,kBAAe,CAAC,IAAsB,EAAE,GAAQ,EAAE,OAAY,EAAE,WAAmB,EAAE,MAAc,EAAE,EAAE;IACrG,QAAQ,CAAC,qBAAqB,EAAE,GAAG,EAAE;QACnC,IAAI,OAAY,CAAA;QAEhB,UAAU,CAAC,GAAG,EAAE;YACd,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,WAAW,CAAC,CAAA;QACpC,CAAC,CAAC,CAAA;QAEF,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE;YACb,gBAAM,CAAC,WAAW,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,qCAAqC,CAAC,CAAA;QAC/E,CAAC,CAAC,CAAA;QAEF,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;YACpB,gBAAM,CAAC,EAAE,CAAC,OAAO,CAAC,OAAO,EAAE,0CAA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AEF,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;gBACpB,gBAAM,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;YACxD,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,SAAS,EAAE,GAAG,EAAE;gBACnB,gBAAM,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAA;YACvD,CAAC,CAAC,CAAA;YAEF,IAAI,CAAC,UAAU,EAAE,GAAG,EAAE;gBACpB,gBAAM,CAAC,WAAW,CAAC,OAAO,OAAO,CAAC,OAAO,EAAE,UAAU,CAAC,CAAA;YACxD,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AACJ,CAAC,CAAA"}
|
package/lib/declarations.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
8
|
-
export
|
|
1
|
+
export type AdapterTest = (name: AdapterTestName, runner: any) => void;
|
|
2
|
+
export type AdapterBasicTest = (name: AdapterBasicTestName, runner: any) => void;
|
|
3
|
+
export type AdapterMethodsTest = (name: AdapterMethodsTestName, runner: any) => void;
|
|
4
|
+
export type AdapterSyntaxTest = (name: AdapterSyntaxTestName, runner: any) => void;
|
|
5
|
+
export type AdapterTestName = AdapterBasicTestName | AdapterMethodsTestName | AdapterSyntaxTestName;
|
|
6
|
+
export type AdapterBasicTestName = '.id' | '.options' | '.events' | '._get' | '._find' | '._create' | '._update' | '._patch' | '._remove' | '.$get' | '.$find' | '.$create' | '.$update' | '.$patch' | '.$remove';
|
|
7
|
+
export type AdapterMethodsTestName = '.get' | '.get + $select' | '.get + id + query' | '.get + NotFound' | '.get + id + query id' | '.find' | '.remove' | '.remove + $select' | '.remove + id + query' | '.remove + multi' | '.remove + multi no pagination' | '.remove + id + query id' | '.update' | '.update + $select' | '.update + id + query' | '.update + NotFound' | '.update + query + NotFound' | '.update + id + query id' | '.patch' | '.patch + $select' | '.patch + id + query' | '.patch multiple' | '.patch multiple no pagination' | '.patch multi query same' | '.patch multi query changed' | '.patch + NotFound' | '.patch + query + NotFound' | '.patch + id + query id' | '.create' | '.create + $select' | '.create multi' | 'internal .find' | 'internal .get' | 'internal .create' | 'internal .update' | 'internal .patch' | 'internal .remove';
|
|
8
|
+
export type AdapterSyntaxTestName = '.find + equal' | '.find + equal multiple' | '.find + $sort' | '.find + $sort + string' | '.find + $limit' | '.find + $limit 0' | '.find + $skip' | '.find + $select' | '.find + $or' | '.find + $in' | '.find + $nin' | '.find + $lt' | '.find + $lte' | '.find + $gt' | '.find + $gte' | '.find + $ne' | '.find + $gt + $lt + $sort' | '.find + $or nested + $sort' | 'params.adapter + paginate' | 'params.adapter + multi' | '.find + paginate' | '.find + paginate + query' | '.find + paginate + $limit + $skip' | '.find + paginate + $limit 0' | '.find + paginate + params';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/adapter-tests",
|
|
3
|
-
"version": "5.0.0-pre.
|
|
3
|
+
"version": "5.0.0-pre.35",
|
|
4
4
|
"description": "Feathers shared database adapter test suite",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"keywords": [
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"types": "lib/",
|
|
33
33
|
"scripts": {
|
|
34
34
|
"prepublish": "npm run compile",
|
|
35
|
-
"pack": "npm pack --pack-destination ../
|
|
35
|
+
"pack": "npm pack --pack-destination ../generators/test/build",
|
|
36
36
|
"compile": "shx rm -rf lib/ && tsc && npm run pack",
|
|
37
37
|
"test": "mocha --config ../../.mocharc.json --recursive test/**.test.ts test/**/*.test.ts"
|
|
38
38
|
},
|
|
@@ -50,12 +50,12 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"devDependencies": {
|
|
53
|
-
"@types/mocha": "^10.0.
|
|
54
|
-
"@types/node": "^18.11.
|
|
55
|
-
"mocha": "^10.
|
|
53
|
+
"@types/mocha": "^10.0.1",
|
|
54
|
+
"@types/node": "^18.11.18",
|
|
55
|
+
"mocha": "^10.2.0",
|
|
56
56
|
"shx": "^0.3.4",
|
|
57
57
|
"ts-node": "^10.9.1",
|
|
58
|
-
"typescript": "^4.
|
|
58
|
+
"typescript": "^4.9.4"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "c641598d9a4de3ceda10f56cf2af288a4236b15e"
|
|
61
61
|
}
|
package/src/basic.ts
CHANGED
|
@@ -45,30 +45,6 @@ export default (test: AdapterBasicTest, app: any, _errors: any, serviceName: str
|
|
|
45
45
|
test('._remove', () => {
|
|
46
46
|
assert.strictEqual(typeof service._remove, 'function')
|
|
47
47
|
})
|
|
48
|
-
|
|
49
|
-
test('.$get', () => {
|
|
50
|
-
assert.strictEqual(typeof service.$get, 'function')
|
|
51
|
-
})
|
|
52
|
-
|
|
53
|
-
test('.$find', () => {
|
|
54
|
-
assert.strictEqual(typeof service.$find, 'function')
|
|
55
|
-
})
|
|
56
|
-
|
|
57
|
-
test('.$create', () => {
|
|
58
|
-
assert.strictEqual(typeof service.$create, 'function')
|
|
59
|
-
})
|
|
60
|
-
|
|
61
|
-
test('.$update', () => {
|
|
62
|
-
assert.strictEqual(typeof service.$update, 'function')
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
test('.$patch', () => {
|
|
66
|
-
assert.strictEqual(typeof service.$patch, 'function')
|
|
67
|
-
})
|
|
68
|
-
|
|
69
|
-
test('.$remove', () => {
|
|
70
|
-
assert.strictEqual(typeof service.$remove, 'function')
|
|
71
|
-
})
|
|
72
48
|
})
|
|
73
49
|
})
|
|
74
50
|
}
|