@feathersjs/memory 5.0.39 → 6.0.0-pre.0
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 +45 -0
- package/LICENSE +1 -2
- package/README.md +1 -1
- package/lib/index.d.ts +3 -2
- package/lib/index.js +14 -23
- package/lib/index.js.map +1 -1
- package/package.json +9 -9
- package/src/index.ts +4 -10
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,51 @@
|
|
|
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
|
+
# 6.0.0-pre.0 (2026-01-31)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- @feathersjs/memory update with query ([#3617](https://github.com/feathersjs/feathers/issues/3617)) ([4c6caa2](https://github.com/feathersjs/feathers/commit/4c6caa27e9af1312718d0c233a0c35f7739ac553))
|
|
11
|
+
- **adapter-commons:** Clarify adapter query filtering ([#2607](https://github.com/feathersjs/feathers/issues/2607)) ([2dac771](https://github.com/feathersjs/feathers/commit/2dac771b0a3298d6dd25994d05186701b0617718))
|
|
12
|
+
- **adapter-tests:** Add tests for pagination in multi updates ([#2472](https://github.com/feathersjs/feathers/issues/2472)) ([98a811a](https://github.com/feathersjs/feathers/commit/98a811ac605575ff812a08d0504729a5efe7a69c))
|
|
13
|
+
- allow \_patch to modify the entire base schema ([#3300](https://github.com/feathersjs/feathers/issues/3300)) ([0f41622](https://github.com/feathersjs/feathers/commit/0f41622307589b3a0b62ac411a73e6a601bda171))
|
|
14
|
+
- **cli:** Improve generated application and client ([#2701](https://github.com/feathersjs/feathers/issues/2701)) ([bd55ffb](https://github.com/feathersjs/feathers/commit/bd55ffb812e89bf215f4515e7f137656ea888c3f))
|
|
15
|
+
- **core:** Update to latest feathersjs/hooks ([#3434](https://github.com/feathersjs/feathers/issues/3434)) ([1499ccc](https://github.com/feathersjs/feathers/commit/1499ccc41fb3ebba97b2c84e0cb19bc48ad3c651))
|
|
16
|
+
- **dependencies:** Lock monorepo package version numbers ([#2623](https://github.com/feathersjs/feathers/issues/2623)) ([5640c10](https://github.com/feathersjs/feathers/commit/5640c1020cc139994e695d658c08bad3494db507))
|
|
17
|
+
- **dependencies:** Update all dependencies ([#3139](https://github.com/feathersjs/feathers/issues/3139)) ([f24276e](https://github.com/feathersjs/feathers/commit/f24276e9a909e2e58a0730c730258ce1f70f4028))
|
|
18
|
+
- **dependencies:** Update all dependencies ([#3545](https://github.com/feathersjs/feathers/issues/3545)) ([221b92b](https://github.com/feathersjs/feathers/commit/221b92bb0ee5d54fb1036742968797cb02e56da2))
|
|
19
|
+
- **dependencies:** Update all dependencies ([#3625](https://github.com/feathersjs/feathers/issues/3625)) ([2698e4e](https://github.com/feathersjs/feathers/commit/2698e4e2996fbf479d82435938d907bc3d5b583a))
|
|
20
|
+
- **dependencies:** Update dependencies ([#3571](https://github.com/feathersjs/feathers/issues/3571)) ([ad611cb](https://github.com/feathersjs/feathers/commit/ad611cb6ffb1dc31d603ba5817331318c5a23217))
|
|
21
|
+
- **knex:** Update all dependencies and Knex peer ([#3308](https://github.com/feathersjs/feathers/issues/3308)) ([d2f9860](https://github.com/feathersjs/feathers/commit/d2f986036c4741cce2339d8abbcc6b2eb037a12a))
|
|
22
|
+
- Make sure all Readme files are up to date ([#3154](https://github.com/feathersjs/feathers/issues/3154)) ([a5f0b38](https://github.com/feathersjs/feathers/commit/a5f0b38bbf2a11486415a39533bcc6c67fb51e3e))
|
|
23
|
+
- **memory/mongodb:** $select as only property & force 'id' in '$select' ([#3081](https://github.com/feathersjs/feathers/issues/3081)) ([fbe3cf5](https://github.com/feathersjs/feathers/commit/fbe3cf5199e102b5aeda2ae33828d5034df3d105))
|
|
24
|
+
- **memory:** Ensure correct pagination totals ([#3307](https://github.com/feathersjs/feathers/issues/3307)) ([c59e1b8](https://github.com/feathersjs/feathers/commit/c59e1b80cb43571077b035ab2bf0b44f9daa5ab8))
|
|
25
|
+
- **memory:** Fix memory adapter readme ([#3153](https://github.com/feathersjs/feathers/issues/3153)) ([a9d826a](https://github.com/feathersjs/feathers/commit/a9d826a7dbe7df4501fbf82a47d2c3a77ca9e0c0))
|
|
26
|
+
- **memory:** Use for loop in \_find() for better performance ([#2844](https://github.com/feathersjs/feathers/issues/2844)) ([d6ee5f1](https://github.com/feathersjs/feathers/commit/d6ee5f1c869f0c65cb470130f35956a52356e5c3))
|
|
27
|
+
- Update all dependencies ([#3613](https://github.com/feathersjs/feathers/issues/3613)) ([5136bbd](https://github.com/feathersjs/feathers/commit/5136bbd2e2eeb4e6579e07c9e914006629542363))
|
|
28
|
+
- Update database adapter common repository urls ([#2380](https://github.com/feathersjs/feathers/issues/2380)) ([3f4db68](https://github.com/feathersjs/feathers/commit/3f4db68d6700c7d9023ecd17d0d39893f75a19fd))
|
|
29
|
+
- Update dependencies ([#3584](https://github.com/feathersjs/feathers/issues/3584)) ([119fa4e](https://github.com/feathersjs/feathers/commit/119fa4e1ade8b0078aa235083d566e2538b3a084))
|
|
30
|
+
|
|
31
|
+
### Features
|
|
32
|
+
|
|
33
|
+
- **adapter-commons:** Add support for params.adapter option and move memory adapter to @feathersjs/memory ([#2367](https://github.com/feathersjs/feathers/issues/2367)) ([a43e7da](https://github.com/feathersjs/feathers/commit/a43e7da22b6b981a96d1321736ea9a0cb924fb4f))
|
|
34
|
+
- **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))
|
|
35
|
+
- **cli:** Generate full client test suite and improve typed client ([#2788](https://github.com/feathersjs/feathers/issues/2788)) ([57119b6](https://github.com/feathersjs/feathers/commit/57119b6bb2797f7297cf054268a248c093ecd538))
|
|
36
|
+
- **cli:** Initial Feathers v5 CLI and Pinion generator ([#2578](https://github.com/feathersjs/feathers/issues/2578)) ([7f59ae7](https://github.com/feathersjs/feathers/commit/7f59ae7f1471895ba8a82aa4702f1a23f71b7682))
|
|
37
|
+
- **core:** Allow to unregister services at runtime ([#2756](https://github.com/feathersjs/feathers/issues/2756)) ([d16601f](https://github.com/feathersjs/feathers/commit/d16601f2277dca5357866ffdefba2a611f6dc7fa))
|
|
38
|
+
- ES module v5 compatibility layer for v6 ([#3607](https://github.com/feathersjs/feathers/issues/3607)) ([1dfff88](https://github.com/feathersjs/feathers/commit/1dfff8832eedca895eeaafd7f3acf0f8a27be23c))
|
|
39
|
+
- **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))
|
|
40
|
+
- **mongodb:** Add feathers-mongodb adapter as @feathersjs/mongodb ([#2610](https://github.com/feathersjs/feathers/issues/2610)) ([6d43734](https://github.com/feathersjs/feathers/commit/6d43734a53db02c435cafc52a22dca414e5d0940))
|
|
41
|
+
- **schema:** Initial version of schema definitions and resolvers ([#2441](https://github.com/feathersjs/feathers/issues/2441)) ([c57a5cd](https://github.com/feathersjs/feathers/commit/c57a5cd56699a121647be4506d8f967e6d72ecae))
|
|
42
|
+
- **typescript:** Allow to pass generic service options to adapter services ([#2392](https://github.com/feathersjs/feathers/issues/2392)) ([f9431f2](https://github.com/feathersjs/feathers/commit/f9431f242354f804cafb835519f98dd405ac4f0b))
|
|
43
|
+
- **typescript:** Improve adapter typings ([#2605](https://github.com/feathersjs/feathers/issues/2605)) ([3b2ca0a](https://github.com/feathersjs/feathers/commit/3b2ca0a6a8e03e8390272c4d7e930b4bffdaacf5))
|
|
44
|
+
- **typescript:** Improve params and query typeability ([#2600](https://github.com/feathersjs/feathers/issues/2600)) ([df28b76](https://github.com/feathersjs/feathers/commit/df28b7619161f1df5e700326f52cca1a92dc5d28))
|
|
45
|
+
|
|
46
|
+
### BREAKING CHANGES
|
|
47
|
+
|
|
48
|
+
- All packages are now ES modules only
|
|
49
|
+
- **adapter-commons:** Changes the common adapter base class to use `sanitizeQuery` and `sanitizeData`
|
|
50
|
+
|
|
6
51
|
## [5.0.39](https://github.com/feathersjs/feathers/compare/v5.0.38...v5.0.39) (2026-01-31)
|
|
7
52
|
|
|
8
53
|
**Note:** Version bump only for package @feathersjs/memory
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 Feathers Contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
|
22
|
-
|
package/README.md
CHANGED
|
@@ -18,6 +18,6 @@ See [FeathersJS Memory Adapter API documentation](https://feathersjs.com/api/dat
|
|
|
18
18
|
|
|
19
19
|
## License
|
|
20
20
|
|
|
21
|
-
Copyright (c)
|
|
21
|
+
Copyright (c) 2025 [Feathers contributors](https://github.com/feathersjs/feathers/graphs/contributors)
|
|
22
22
|
|
|
23
23
|
Licensed under the [MIT license](LICENSE).
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import type { AdapterServiceOptions, PaginationOptions, AdapterParams } from '@feathersjs/adapter-commons';
|
|
2
|
+
import { AdapterBase } from '@feathersjs/adapter-commons';
|
|
3
|
+
import type { NullableId, Id, Params, Paginated } from '@feathersjs/feathers';
|
|
3
4
|
export interface MemoryServiceStore<T> {
|
|
4
5
|
[key: string]: T;
|
|
5
6
|
}
|
package/lib/index.js
CHANGED
|
@@ -1,23 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MemoryService = exports.MemoryAdapter = void 0;
|
|
7
|
-
exports.memory = memory;
|
|
8
|
-
const errors_1 = require("@feathersjs/errors");
|
|
9
|
-
const adapter_commons_1 = require("@feathersjs/adapter-commons");
|
|
10
|
-
const sift_1 = __importDefault(require("sift"));
|
|
1
|
+
import { BadRequest, MethodNotAllowed, NotFound } from '@feathersjs/errors';
|
|
2
|
+
import { sorter, select, AdapterBase } from '@feathersjs/adapter-commons';
|
|
3
|
+
import sift from 'sift';
|
|
11
4
|
const _select = (data, params, ...args) => {
|
|
12
|
-
const base =
|
|
5
|
+
const base = select(params, ...args);
|
|
13
6
|
return base(JSON.parse(JSON.stringify(data)));
|
|
14
7
|
};
|
|
15
|
-
class MemoryAdapter extends
|
|
8
|
+
export class MemoryAdapter extends AdapterBase {
|
|
16
9
|
constructor(options = {}) {
|
|
17
10
|
super({
|
|
18
11
|
id: 'id',
|
|
19
|
-
matcher:
|
|
20
|
-
sorter
|
|
12
|
+
matcher: sift,
|
|
13
|
+
sorter,
|
|
21
14
|
store: {},
|
|
22
15
|
startId: 0,
|
|
23
16
|
...options
|
|
@@ -103,7 +96,7 @@ class MemoryAdapter extends adapter_commons_1.AdapterBase {
|
|
|
103
96
|
return _select(value, params, this.id);
|
|
104
97
|
}
|
|
105
98
|
}
|
|
106
|
-
throw new
|
|
99
|
+
throw new NotFound(`No record found for id '${id}'`);
|
|
107
100
|
}
|
|
108
101
|
async _create(data, params = {}) {
|
|
109
102
|
if (Array.isArray(data)) {
|
|
@@ -116,7 +109,7 @@ class MemoryAdapter extends adapter_commons_1.AdapterBase {
|
|
|
116
109
|
}
|
|
117
110
|
async _update(id, data, params = {}) {
|
|
118
111
|
if (id === null || Array.isArray(data)) {
|
|
119
|
-
throw new
|
|
112
|
+
throw new BadRequest("You can not replace multiple instances. Did you mean 'patch'?");
|
|
120
113
|
}
|
|
121
114
|
const oldEntry = await this._get(id, params);
|
|
122
115
|
this.store[id] = { ...data, [this.id]: oldEntry[this.id] };
|
|
@@ -124,7 +117,7 @@ class MemoryAdapter extends adapter_commons_1.AdapterBase {
|
|
|
124
117
|
}
|
|
125
118
|
async _patch(id, data, params = {}) {
|
|
126
119
|
if (id === null && !this.allowsMulti('patch', params)) {
|
|
127
|
-
throw new
|
|
120
|
+
throw new MethodNotAllowed('Can not patch multiple entries');
|
|
128
121
|
}
|
|
129
122
|
const { query } = this.getQuery(params);
|
|
130
123
|
const patchEntry = (entry) => {
|
|
@@ -147,7 +140,7 @@ class MemoryAdapter extends adapter_commons_1.AdapterBase {
|
|
|
147
140
|
}
|
|
148
141
|
async _remove(id, params = {}) {
|
|
149
142
|
if (id === null && !this.allowsMulti('remove', params)) {
|
|
150
|
-
throw new
|
|
143
|
+
throw new MethodNotAllowed('Can not remove multiple entries');
|
|
151
144
|
}
|
|
152
145
|
const { query } = this.getQuery(params);
|
|
153
146
|
if (id === null) {
|
|
@@ -162,8 +155,7 @@ class MemoryAdapter extends adapter_commons_1.AdapterBase {
|
|
|
162
155
|
return entry;
|
|
163
156
|
}
|
|
164
157
|
}
|
|
165
|
-
|
|
166
|
-
class MemoryService extends MemoryAdapter {
|
|
158
|
+
export class MemoryService extends MemoryAdapter {
|
|
167
159
|
async find(params) {
|
|
168
160
|
return this._find({
|
|
169
161
|
...params,
|
|
@@ -178,7 +170,7 @@ class MemoryService extends MemoryAdapter {
|
|
|
178
170
|
}
|
|
179
171
|
async create(data, params) {
|
|
180
172
|
if (Array.isArray(data) && !this.allowsMulti('create', params)) {
|
|
181
|
-
throw new
|
|
173
|
+
throw new MethodNotAllowed('Can not create multiple entries');
|
|
182
174
|
}
|
|
183
175
|
return this._create(data, params);
|
|
184
176
|
}
|
|
@@ -203,8 +195,7 @@ class MemoryService extends MemoryAdapter {
|
|
|
203
195
|
});
|
|
204
196
|
}
|
|
205
197
|
}
|
|
206
|
-
|
|
207
|
-
function memory(options = {}) {
|
|
198
|
+
export function memory(options = {}) {
|
|
208
199
|
return new MemoryService(options);
|
|
209
200
|
}
|
|
210
201
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAA;AAG3E,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAA;AACzE,OAAO,IAAI,MAAM,MAAM,CAAA;AAavB,MAAM,OAAO,GAAG,CAAC,IAAS,EAAE,MAAW,EAAE,GAAG,IAAc,EAAE,EAAE;IAC5D,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,CAAC,CAAA;IAEpC,OAAO,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;AAC/C,CAAC,CAAA;AAED,MAAM,OAAO,aAKX,SAAQ,WAAiF;IAIzF,YAAY,UAAwC,EAAE;QACpD,KAAK,CAAC;YACJ,EAAE,EAAE,IAAI;YACR,OAAO,EAAE,IAAI;YACb,MAAM;YACN,KAAK,EAAE,EAAE;YACT,OAAO,EAAE,CAAC;YACV,GAAG,OAAO;SACX,CAAC,CAAA;QACF,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAA;QAChC,IAAI,CAAC,KAAK,GAAG,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,K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AI,gBAAgB,CAAC,iCAAiC,CAAC,CAAA;QAC/D,CAAC;QAED,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAA;IACnC,CAAC;IAED,KAAK,CAAC,MAAM,CAAC,EAAM,EAAE,IAAU,EAAE,MAAsB;QACrD,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,IAAI,EAAE;YAC5B,GAAG,MAAM;YACT,KAAK,EAAE,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC;SACxC,CAAC,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,KAAK,CAAC,EAAc,EAAE,IAAe,EAAE,MAAsB;QACjE,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;QAE7D,OAAO,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE;YAC3B,GAAG,MAAM;YACT,KAAK;SACN,CAAC,CAAA;IACJ,CAAC;IAID,KAAK,CAAC,MAAM,CAAC,EAAc,EAAE,MAAsB;QACjD,MAAM,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,GAAG,MAAM,IAAI,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;QAE7D,OAAO,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE;YACtB,GAAG,MAAM;YACT,KAAK;SACN,CAAC,CAAA;IACJ,CAAC;CACF;AAED,MAAM,UAAU,MAAM,CACpB,UAA4C,EAAE;IAE9C,OAAO,IAAI,aAAa,CAAU,OAAO,CAAC,CAAA;AAC5C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@feathersjs/memory",
|
|
3
3
|
"description": "An in memory service store",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "6.0.0-pre.0",
|
|
5
5
|
"homepage": "https://github.com/feathersjs/feathers",
|
|
6
|
-
"main": "lib/",
|
|
7
|
-
"
|
|
6
|
+
"main": "lib/index.js",
|
|
7
|
+
"type": "module",
|
|
8
8
|
"keywords": [
|
|
9
9
|
"feathers",
|
|
10
10
|
"feathers-plugin"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"url": "https://github.com/feathersjs/feathers/issues"
|
|
26
26
|
},
|
|
27
27
|
"engines": {
|
|
28
|
-
"node": ">=
|
|
28
|
+
"node": ">= 20"
|
|
29
29
|
},
|
|
30
30
|
"files": [
|
|
31
31
|
"CHANGELOG.md",
|
|
@@ -49,13 +49,13 @@
|
|
|
49
49
|
"lib": "lib"
|
|
50
50
|
},
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@feathersjs/adapter-commons": "^
|
|
53
|
-
"@feathersjs/errors": "^
|
|
52
|
+
"@feathersjs/adapter-commons": "^6.0.0-pre.0",
|
|
53
|
+
"@feathersjs/errors": "^6.0.0-pre.0",
|
|
54
54
|
"sift": "^17.1.3"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@feathersjs/adapter-tests": "^
|
|
58
|
-
"@feathersjs/feathers": "^
|
|
57
|
+
"@feathersjs/adapter-tests": "^6.0.0-pre.0",
|
|
58
|
+
"@feathersjs/feathers": "^6.0.0-pre.0",
|
|
59
59
|
"@types/mocha": "^10.0.10",
|
|
60
60
|
"@types/node": "^25.1.0",
|
|
61
61
|
"mocha": "^11.7.5",
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"ts-node": "^10.9.2",
|
|
64
64
|
"typescript": "^5.9.3"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "8fad4bb3d393794fb98fa5fe7cfc327661fedbd2"
|
|
67
67
|
}
|
package/src/index.ts
CHANGED
|
@@ -1,15 +1,9 @@
|
|
|
1
1
|
import { BadRequest, MethodNotAllowed, NotFound } from '@feathersjs/errors'
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
AdapterBase,
|
|
6
|
-
AdapterServiceOptions,
|
|
7
|
-
PaginationOptions,
|
|
8
|
-
AdapterParams
|
|
9
|
-
} from '@feathersjs/adapter-commons'
|
|
2
|
+
import { _ } from '@feathersjs/commons'
|
|
3
|
+
import type { AdapterServiceOptions, PaginationOptions, AdapterParams } from '@feathersjs/adapter-commons'
|
|
4
|
+
import { sorter, select, AdapterBase } from '@feathersjs/adapter-commons'
|
|
10
5
|
import sift from 'sift'
|
|
11
|
-
import { NullableId, Id, Params, Paginated } from '@feathersjs/feathers'
|
|
12
|
-
|
|
6
|
+
import type { NullableId, Id, Params, Paginated } from '@feathersjs/feathers'
|
|
13
7
|
export interface MemoryServiceStore<T> {
|
|
14
8
|
[key: string]: T
|
|
15
9
|
}
|