@feathersjs/adapter-commons 5.0.0 → 5.0.1
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 +7 -0
- package/lib/declarations.d.ts +2 -6
- package/lib/service.js +1 -1
- package/lib/service.js.map +1 -1
- package/package.json +6 -6
- package/src/declarations.ts +3 -7
- package/src/service.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,13 @@
|
|
|
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.1](https://github.com/feathersjs/feathers/compare/v5.0.0...v5.0.1) (2023-03-15)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **core:** Add PaginationParams to general find method ([#3095](https://github.com/feathersjs/feathers/issues/3095)) ([8ebdcf5](https://github.com/feathersjs/feathers/commit/8ebdcf5107fae5fa23920390052b871033de3a0a))
|
|
11
|
+
- **core:** Use Symbol.for to instantiate shared symbols ([#3087](https://github.com/feathersjs/feathers/issues/3087)) ([7f3fc21](https://github.com/feathersjs/feathers/commit/7f3fc2167576f228f8183568eb52b077160e8d65))
|
|
12
|
+
|
|
6
13
|
# [5.0.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.38...v5.0.0) (2023-02-24)
|
|
7
14
|
|
|
8
15
|
**Note:** Version bump only for package @feathersjs/adapter-commons
|
package/lib/declarations.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Query, Params, Paginated, Id } from '@feathersjs/feathers';
|
|
1
|
+
import { Query, Params, Paginated, Id, PaginationParams, PaginationOptions } from '@feathersjs/feathers';
|
|
2
2
|
export type FilterQueryOptions = {
|
|
3
3
|
filters?: FilterSettings;
|
|
4
4
|
operators?: string[];
|
|
@@ -8,11 +8,7 @@ export type QueryFilter = (value: any, options: FilterQueryOptions) => any;
|
|
|
8
8
|
export type FilterSettings = {
|
|
9
9
|
[key: string]: QueryFilter | true;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
12
|
-
default?: number;
|
|
13
|
-
max?: number;
|
|
14
|
-
}
|
|
15
|
-
export type PaginationParams = false | PaginationOptions;
|
|
11
|
+
export { PaginationOptions, PaginationParams };
|
|
16
12
|
export interface AdapterServiceOptions {
|
|
17
13
|
/**
|
|
18
14
|
* Whether to allow multiple updates for everything (`true`) or specific methods (e.g. `['create', 'remove']`)
|
package/lib/service.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.AdapterBase = exports.VALIDATED = void 0;
|
|
4
4
|
const query_1 = require("./query");
|
|
5
|
-
exports.VALIDATED = Symbol('@feathersjs/adapter/sanitized');
|
|
5
|
+
exports.VALIDATED = Symbol.for('@feathersjs/adapter/sanitized');
|
|
6
6
|
const alwaysMulti = {
|
|
7
7
|
find: true,
|
|
8
8
|
get: false,
|
package/lib/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":";;;AAOA,mCAAqC;AAExB,QAAA,SAAS,GAAG,MAAM,CAAC,+BAA+B,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../src/service.ts"],"names":[],"mappings":";;;AAOA,mCAAqC;AAExB,QAAA,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,+BAA+B,CAAC,CAAA;AAEpE,MAAM,WAAW,GAA+B;IAC9C,IAAI,EAAE,IAAI;IACV,GAAG,EAAE,KAAK;IACV,MAAM,EAAE,KAAK;CACd,CAAA;AAED;;;GAGG;AACH,MAAsB,WAAW;IAW/B,YAAY,OAAgB;QAC1B,IAAI,CAAC,OAAO,GAAG;YACb,EAAE,EAAE,IAAI;YACR,MAAM,EAAE,EAAE;YACV,QAAQ,EAA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AU,CAAC,MAAM,CAAC,CAAA;QACvC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG,IAAA,mBAAW,EAAC,MAAM,CAAC,KAAK,EAAE,OAAO,CAAC,CAAA;QAE7D,OAAO;YACL,GAAG,OAAO;YACV,GAAG,KAAK;SACT,CAAA;IACH,CAAC;CA0EF;AAtKD,kCAsKC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/adapter-commons",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "Shared database adapter utility functions",
|
|
5
5
|
"homepage": "https://feathersjs.com",
|
|
6
6
|
"keywords": [
|
|
@@ -50,19 +50,19 @@
|
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
|
-
"@feathersjs/commons": "^5.0.
|
|
54
|
-
"@feathersjs/errors": "^5.0.
|
|
55
|
-
"@feathersjs/feathers": "^5.0.
|
|
53
|
+
"@feathersjs/commons": "^5.0.1",
|
|
54
|
+
"@feathersjs/errors": "^5.0.1",
|
|
55
|
+
"@feathersjs/feathers": "^5.0.1"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@types/mocha": "^10.0.1",
|
|
59
59
|
"@types/mongodb": "^4.0.6",
|
|
60
|
-
"@types/node": "^18.14.
|
|
60
|
+
"@types/node": "^18.14.6",
|
|
61
61
|
"mocha": "^10.2.0",
|
|
62
62
|
"mongodb": "^5.1.0",
|
|
63
63
|
"shx": "^0.3.4",
|
|
64
64
|
"ts-node": "^10.9.1",
|
|
65
65
|
"typescript": "^4.9.5"
|
|
66
66
|
},
|
|
67
|
-
"gitHead": "
|
|
67
|
+
"gitHead": "18b7f4ab0a8075572a81d78956ba1205a9795c91"
|
|
68
68
|
}
|
package/src/declarations.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Query, Params, Paginated, Id } from '@feathersjs/feathers'
|
|
1
|
+
import { Query, Params, Paginated, Id, PaginationParams, PaginationOptions } from '@feathersjs/feathers'
|
|
2
2
|
|
|
3
3
|
export type FilterQueryOptions = {
|
|
4
4
|
filters?: FilterSettings
|
|
@@ -12,12 +12,8 @@ export type FilterSettings = {
|
|
|
12
12
|
[key: string]: QueryFilter | true
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
max?: number
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
export type PaginationParams = false | PaginationOptions
|
|
15
|
+
// re-export from @feathersjs/feathers to prevent breaking changes
|
|
16
|
+
export { PaginationOptions, PaginationParams }
|
|
21
17
|
|
|
22
18
|
export interface AdapterServiceOptions {
|
|
23
19
|
/**
|
package/src/service.ts
CHANGED
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from './declarations'
|
|
8
8
|
import { filterQuery } from './query'
|
|
9
9
|
|
|
10
|
-
export const VALIDATED = Symbol('@feathersjs/adapter/sanitized')
|
|
10
|
+
export const VALIDATED = Symbol.for('@feathersjs/adapter/sanitized')
|
|
11
11
|
|
|
12
12
|
const alwaysMulti: { [key: string]: boolean } = {
|
|
13
13
|
find: true,
|