Skip to content

Commit

Permalink
feat: Upgrade cozy-client and cozy-pouch-link
Browse files Browse the repository at this point in the history
`cozy-pouch-link` has been upgraded to `50.3.1` in order to retrieve
`startReplicationWithDebounce()` method implementation

`cozy-client` has been upgraded to `50.3.1` in order to retrieve some
typing fixes

Related PR: cozy/cozy-client#1553
Related PR: cozy/cozy-client#1556
  • Loading branch information
Ldoppea committed Dec 20, 2024
1 parent 2488fff commit ab61511
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 18 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@
"@sentry/integrations": "7.114.0",
"@sentry/react-native": "5.33.1",
"base-64": "^1.0.0",
"cozy-client": "^49.0.0",
"cozy-client": "^50.3.1",
"cozy-clisk": "^0.38.1",
"cozy-device-helper": "^2.7.0",
"cozy-flags": "^3.2.0",
"cozy-intent": "^2.23.0",
"cozy-logger": "^1.10.0",
"cozy-minilog": "3.3.1",
"cozy-pouch-link": "^49.1.0",
"cozy-pouch-link": "^50.3.1",
"date-fns": "2.29.3",
"events": "^3.3.0",
"html-entities": "^2.3.3",
Expand Down
11 changes: 9 additions & 2 deletions src/pouchdb/getLinks.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
import RNRestart from 'react-native-restart'

import {
PouchLinkPerformanceApi,
StackLinkPerformanceApi
} from '/app/domain/performances/measure'
import { platformReactNative } from '/pouchdb/platformReactNative'

import CozyClient, { CozyLink, StackLink } from 'cozy-client'
Expand Down Expand Up @@ -34,6 +38,7 @@ export const getLinks = (): CozyLink[] => {
const pouchLinkOptions = {
doctypes: offlineDoctypes,
initialSync: true,
periodicSync: true,
platform: platformReactNative,
ignoreWarmup: true,
doctypesReplicationOptions: Object.fromEntries(
Expand All @@ -45,11 +50,13 @@ export const getLinks = (): CozyLink[] => {
}
]
})
)
),
performanceApi: PouchLinkPerformanceApi

Check failure on line 54 in src/pouchdb/getLinks.ts

View workflow job for this annotation

GitHub Actions / Quality Checks

Unsafe assignment of an `any` value
}

const stackLink = new StackLink({
platform: platformReactNative
platform: platformReactNative,
performanceApi: StackLinkPerformanceApi

Check failure on line 59 in src/pouchdb/getLinks.ts

View workflow job for this annotation

GitHub Actions / Quality Checks

Unsafe assignment of an `any` value
})

const pouchLink = new PouchLink({
Expand Down
28 changes: 14 additions & 14 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -8675,16 +8675,16 @@ cosmiconfig@^8.1.3:
parse-json "^5.2.0"
path-type "^4.0.0"

cozy-client@^49.0.0:
version "49.0.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-49.0.0.tgz#c38f3bdefd58cbf827a368fe126cc9e27deb996d"
integrity sha512-AY22bxwQV+46+4rSVc+zYci8pPHspolBJ1IcqvxJ+DknZrehJ5AKJ55F9DzN3aPXVNCQzmw+wpNFgVP4gShFAw==
cozy-client@^50.3.1, cozy-client@^50.4.0:
version "50.4.0"
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-50.4.0.tgz#dc341e71b2acee90342cf86e17392e890e7e7093"
integrity sha512-DINi/YwDrzBkXzcm63hFj8Y09yzzLaRWhJqyCu1JT6bdIpV2jc9lJMJe1pcud8xfg29OzSQ5/8gDf5MaQLkzsQ==
dependencies:
"@cozy/minilog" "1.0.0"
"@types/jest" "^26.0.20"
"@types/lodash" "^4.14.170"
btoa "^1.2.1"
cozy-stack-client "^49.0.0"
cozy-stack-client "^50.4.0"
date-fns "2.29.3"
json-stable-stringify "^1.0.1"
lodash "^4.17.13"
Expand Down Expand Up @@ -8751,19 +8751,19 @@ cozy-minilog@3.3.1, cozy-minilog@^3.3.1:
dependencies:
microee "0.0.6"

cozy-pouch-link@^49.1.0:
version "49.1.0"
resolved "https://registry.yarnpkg.com/cozy-pouch-link/-/cozy-pouch-link-49.1.0.tgz#bed56dd195e778d010abb6d0bf9cd9463562a2fa"
integrity sha512-d0Pro98BRcIZ0SAlS1XW0W5TGn9Y1JtqcogEfhfg+c+RQNrC+VM5mUbdSxi3lBilx1fS5wVHyoageidennNF+A==
cozy-pouch-link@^50.3.1:
version "50.4.0"
resolved "https://registry.yarnpkg.com/cozy-pouch-link/-/cozy-pouch-link-50.4.0.tgz#6cd18521a8652502783d35ec6735de40af47ce62"
integrity sha512-7CkyEpsjjxE/24oMsxOcrQT+FWi7LPK0kYKx/KoiD7VX1QxHcZSubjnPjREJJkECs1JwIiAH5z/h99qVO4hArQ==
dependencies:
cozy-client "^49.0.0"
cozy-client "^50.4.0"
pouchdb-browser "^7.2.2"
pouchdb-find "^7.2.2"

cozy-stack-client@^49.0.0:
version "49.0.0"
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-49.0.0.tgz#1bda328d0d62b00bb8895be5b991d59ad6b41cfc"
integrity sha512-mlh/hR9KsIve+et17P6WXlO33FjXftzXK8ovWAKr8zk+5FcD/wy/yxV/9Mr3Q+SSabdUbFbBIqu8kZncafUzdg==
cozy-stack-client@^50.4.0:
version "50.4.0"
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-50.4.0.tgz#3326a1299cacb06b95a484dc656cc301ce811ade"
integrity sha512-u8NXO6uUrcT0SggtOePpOXftGdwe1zCiOHQIzvUAeuZIt4mVruF1zYXaPz90/zI4pHzr8mHH2h6KXHgH1McjWA==
dependencies:
detect-node "^2.0.4"
mime "^2.4.0"
Expand Down

0 comments on commit ab61511

Please sign in to comment.