Bot releases are visible (Hide)
https://github.com/fratzinger/feathers-utils/compare/v5.2.0...v6.0.0
https://github.com/fratzinger/feathers-utils/compare/v5.1.0...v5.2.0
https://github.com/fratzinger/feathers-utils/compare/v5.0.2...v5.1.0
https://github.com/fratzinger/feathers-utils/compare/v5.0.1...v5.0.2
https://github.com/fratzinger/feathers-utils/compare/v5.0.0...v5.0.1
https://github.com/fratzinger/feathers-utils/compare/v4.2.0...v5.0.0
it("optimizeBatchPatch", () => {
const items = new Map<Id, Record<string, unknown>>([
["1", { name: "John" }],
["2", { name: "Jane" }],
["3", { name: "John" }],
["4", { name: "Jane" }],
[5, { name: "Jack" }],
]);
expect(optimizeBatchPatch(items)).toEqual([
[null, { name: "John" }, { query: { id: { $in: ["1", "3"] } } }],
[null, { name: "Jane" }, { query: { id: { $in: ["2", "4"] } } }],
[5, { name: "Jack" }, undefined],
]);
});
https://github.com/fratzinger/feathers-utils/compare/v4.1.0...v4.2.0
https://github.com/fratzinger/feathers-utils/compare/v4.0.0...v4.1.0
The signature & behavior of filterQuery changed. New implementation looks like this:
export function filterQuery<Q extends Query>(
providedQuery?: Q,
): FilterQueryResult<Q> {
providedQuery ??= {} as Q;
const { $select, $limit, $skip, $sort, ...query } = providedQuery;
const result: FilterQueryResult<Q> = { query } as any;
if ("$select" in providedQuery) {
result.$select = $select;
}
if ("$limit" in providedQuery) {
result.$limit = $limit;
}
if ("$skip" in providedQuery) {
result.$skip = $skip;
}
if ("$sort" in providedQuery) {
result.$sort = $sort;
}
return result;
}
https://github.com/fratzinger/feathers-utils/compare/v3.1.3...v4.0.0
https://github.com/fratzinger/feathers-utils/compare/v3.1.2...v3.1.3
https://github.com/fratzinger/feathers-utils/compare/v3.1.1...v3.1.2
https://github.com/fratzinger/feathers-utils/compare/v3.1.0...v3.1.1
https://github.com/fratzinger/feathers-utils/compare/v3.0.3...v3.1.0
https://github.com/fratzinger/feathers-utils/compare/v3.0.2...v3.0.3
https://github.com/fratzinger/feathers-utils/compare/v3.0.1...v3.0.2
https://github.com/fratzinger/feathers-utils/compare/v3.0.0...v3.0.1
https://github.com/fratzinger/feathers-utils/compare/v2.1.3...v3.0.0
https://github.com/fratzinger/feathers-utils/compare/v2.1.2...v2.1.3
https://github.com/fratzinger/feathers-utils/compare/v2.1.1...v2.1.2
https://github.com/fratzinger/feathers-utils/compare/v2.1.0...v2.1.1