Socket
Socket
Sign inDemoInstall

@feathersjs/adapter-tests

Package Overview
Dependencies
Maintainers
4
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@feathersjs/adapter-tests - npm Package Compare versions

Comparing version 5.0.0-pre.4 to 5.0.0-pre.5

40

CHANGELOG.md

@@ -6,4 +6,20 @@ # Change Log

# [5.0.0-pre.4](https://github.com/feathersjs/databases/compare/v5.0.0-pre.3...v5.0.0-pre.4) (2021-05-13)
# [5.0.0-pre.5](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.4...v5.0.0-pre.5) (2021-06-23)
### Bug Fixes
* Update database adapter common repository urls ([#2380](https://github.com/feathersjs/feathers/issues/2380)) ([3f4db68](https://github.com/feathersjs/feathers/commit/3f4db68d6700c7d9023ecd17d0d39893f75a19fd))
### Features
* **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))
# [5.0.0-pre.4](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.3...v5.0.0-pre.4) (2021-05-13)
**Note:** Version bump only for package @feathersjs/adapter-tests

@@ -15,3 +31,3 @@

# [5.0.0-pre.3](https://github.com/feathersjs/databases/compare/v5.0.0-pre.2...v5.0.0-pre.3) (2021-04-21)
# [5.0.0-pre.3](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.2...v5.0.0-pre.3) (2021-04-21)

@@ -21,3 +37,3 @@

* **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/databases/issues/2310)) ([f33be73](https://github.com/feathersjs/databases/commit/f33be73fc46a533efb15df9aab0658e3240d3897))
* **typescript:** Improve TypeScript backwards compatibility ([#2310](https://github.com/feathersjs/feathers/issues/2310)) ([f33be73](https://github.com/feathersjs/feathers/commit/f33be73fc46a533efb15df9aab0658e3240d3897))

@@ -28,3 +44,3 @@

# [5.0.0-pre.2](https://github.com/feathersjs/databases/compare/v5.0.0-beta.1...v5.0.0-pre.2) (2021-04-06)
# [5.0.0-pre.2](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.1...v5.0.0-pre.2) (2021-04-06)

@@ -37,3 +53,3 @@ **Note:** Version bump only for package @feathersjs/adapter-tests

# [5.0.0-beta.1](https://github.com/feathersjs/databases/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)
# [5.0.0-beta.1](https://github.com/feathersjs/feathers/compare/v5.0.0-beta.0...v5.0.0-beta.1) (2021-04-03)

@@ -43,3 +59,3 @@

* **adapter-tests:** Add test that verified paginated total ([#2273](https://github.com/feathersjs/databases/issues/2273)) ([879bd6b](https://github.com/feathersjs/databases/commit/879bd6b24f42e04eeeeba110ddddda3e1e1dea34))
* **adapter-tests:** Add test that verified paginated total ([#2273](https://github.com/feathersjs/feathers/issues/2273)) ([879bd6b](https://github.com/feathersjs/feathers/commit/879bd6b24f42e04eeeeba110ddddda3e1e1dea34))

@@ -50,3 +66,3 @@

# [5.0.0-beta.0](https://github.com/feathersjs/databases/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)
# [5.0.0-beta.0](https://github.com/feathersjs/feathers/compare/v5.0.0-pre.1...v5.0.0-beta.0) (2021-03-28)

@@ -56,3 +72,3 @@

* **core:** Remove Uberproto ([#2178](https://github.com/feathersjs/databases/issues/2178)) ([ddf8821](https://github.com/feathersjs/databases/commit/ddf8821f53317e6a378657f7d66acb03a037ee47))
* **core:** Remove Uberproto ([#2178](https://github.com/feathersjs/feathers/issues/2178)) ([ddf8821](https://github.com/feathersjs/feathers/commit/ddf8821f53317e6a378657f7d66acb03a037ee47))

@@ -69,3 +85,3 @@

# [5.0.0-pre.1](https://github.com/feathersjs/databases/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)
# [5.0.0-pre.1](https://github.com/feathersjs/feathers/compare/v4.5.11...v5.0.0-pre.1) (2020-12-17)

@@ -75,3 +91,3 @@

* **memory:** Move feathers-memory into @feathersjs/adapter-memory ([#2153](https://github.com/feathersjs/databases/issues/2153)) ([dd61fe3](https://github.com/feathersjs/databases/commit/dd61fe371fb0502f78b8ccbe1f45a030e31ecff6))
* **memory:** Move feathers-memory into @feathersjs/memory ([#2153](https://github.com/feathersjs/feathers/issues/2153)) ([dd61fe3](https://github.com/feathersjs/feathers/commit/dd61fe371fb0502f78b8ccbe1f45a030e31ecff6))

@@ -82,3 +98,3 @@

## [4.5.11](https://github.com/feathersjs/databases/compare/v4.5.10...v4.5.11) (2020-12-05)
## [4.5.11](https://github.com/feathersjs/feathers/compare/v4.5.10...v4.5.11) (2020-12-05)

@@ -91,3 +107,3 @@ **Note:** Version bump only for package @feathersjs/adapter-tests

## [4.5.4](https://github.com/feathersjs/databases/compare/@feathersjs/adapter-tests@4.5.3...@feathersjs/adapter-tests@4.5.4) (2020-09-27)
## [4.5.4](https://github.com/feathersjs/feathers/compare/v4.5.3...v4.5.4) (2020-09-27)

@@ -94,0 +110,0 @@ **Note:** Version bump only for package @feathersjs/adapter-tests

@@ -249,2 +249,37 @@ "use strict";

}));
describe('params.adapter', () => {
test('params.adapter + paginate', () => __awaiter(void 0, void 0, void 0, function* () {
const page = yield service.find({
adapter: {
paginate: { default: 3 }
}
});
assert_1.default.strictEqual(page.limit, 3);
assert_1.default.strictEqual(page.skip, 0);
}));
test('params.adapter + multi', () => __awaiter(void 0, void 0, void 0, function* () {
const items = [
{
name: 'Garald',
age: 200
},
{
name: 'Harald',
age: 24
}
];
const multiParams = {
adapter: {
multi: ['create']
}
};
const users = yield service.create(items, multiParams);
assert_1.default.strictEqual(users.length, 2);
yield service.remove(users[0][idProp]);
yield service.remove(users[1][idProp]);
yield assert_1.default.rejects(() => service.patch(null, { age: 2 }, multiParams), {
message: 'Can not patch multiple entries'
});
}));
});
describe('paginate', function () {

@@ -251,0 +286,0 @@ beforeEach(() => {

{
"name": "@feathersjs/adapter-tests",
"version": "5.0.0-pre.4",
"version": "5.0.0-pre.5",
"description": "Feathers shared database adapter test suite",

@@ -16,3 +16,3 @@ "homepage": "https://feathersjs.com",

"type": "git",
"url": "git://github.com/feathersjs/databases.git"
"url": "git://github.com/feathersjs/feathers.git"
},

@@ -26,3 +26,3 @@ "author": {

"bugs": {
"url": "https://github.com/feathersjs/databases/issues"
"url": "https://github.com/feathersjs/feathers/issues"
},

@@ -53,9 +53,9 @@ "engines": {

"devDependencies": {
"@types/node": "^15.0.3",
"@types/node": "^15.12.1",
"mocha": "^8.4.0",
"shx": "^0.3.3",
"ts-node": "^9.1.1",
"typescript": "^4.2.4"
"ts-node": "^10.0.0",
"typescript": "^4.3.2"
},
"gitHead": "d2f1d200b6d9a790a03dc3e6e345f4e0ab726720"
"gitHead": "738f84f91fb72d5e10a0bf57b58db75b0b03d3ff"
}

@@ -279,2 +279,42 @@ import assert from 'assert';

describe('params.adapter', () => {
test('params.adapter + paginate', async () => {
const page = await service.find({
adapter: {
paginate: { default: 3 }
}
});
assert.strictEqual(page.limit, 3);
assert.strictEqual(page.skip, 0);
});
test('params.adapter + multi', async () => {
const items = [
{
name: 'Garald',
age: 200
},
{
name: 'Harald',
age: 24
}
];
const multiParams = {
adapter: {
multi: ['create']
}
};
const users = await service.create(items, multiParams);
assert.strictEqual(users.length, 2);
await service.remove(users[0][idProp]);
await service.remove(users[1][idProp]);
await assert.rejects(() => service.patch(null, { age: 2 }, multiParams), {
message: 'Can not patch multiple entries'
});
});
});
describe('paginate', function () {

@@ -281,0 +321,0 @@ beforeEach(() => {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc