Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 21 additions & 40 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"eslint-plugin-react": "^7.37.5",
"eslint-plugin-testing-library": "^7.5.3",
"eslint-plugin-tsdoc": "^0.4.0",
"eslint-plugin-unicorn": "^59.0.1",
"eslint-plugin-unicorn": "^60.0.0",
"fast-glob": "^3.3.3",
"happy-dom": "18.0.1",
"husky": "9.1.7",
Expand Down
2 changes: 1 addition & 1 deletion packages/base/core/__tests__/Cursor.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ describe('Cursor', () => {
it('should return sorted items when sort option is provided', () => {
const cursor = collection.find({}, { sort: { id: -1 } })
const result = cursor.fetch()
const expected = [...items].reverse()
const expected = [...items].toReversed()
expect(result).toEqual(expected)
})

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function useCollectionMeasuredTimes(collectionName: string) {
return measuredTimes.items
.filter(q => q.collectionName === collectionName)
.sort((a, b) => a.measuredTime - b.measuredTime)
.reverse()
.toReversed()
.map(({ collectionName: _, time, ...item }) => ({
id: item.id,
time: new Date(time as number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function useCollectionMutations(collectionName: string) {
return mutations.items
.filter(q => q.collectionName === collectionName)
.sort((a, b) => a.time - b.time)
.reverse()
.toReversed()
.map(({ collectionName: _, time, ...item }) => ({
id: item.id,
time: new Date(time as number),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export default function useCollectionQueries(collectionName: string) {
return queries.items
.filter(q => q.collectionName === collectionName)
.sort((a, b) => a.time - b.time)
.reverse()
.toReversed()
.map(({ collectionName: _, lastTime, ...item }) => ({
id: item.id,
collectionName: item.collectionName,
Expand Down