diff --git a/package.json b/package.json index 60337f7ed..316d315ed 100644 --- a/package.json +++ b/package.json @@ -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.0.0", + "cozy-pouch-link": "^50.3.1", "date-fns": "2.29.3", "events": "^3.3.0", "html-entities": "^2.3.3", diff --git a/src/pouchdb/getLinks.ts b/src/pouchdb/getLinks.ts index bb0b436fb..83582320a 100644 --- a/src/pouchdb/getLinks.ts +++ b/src/pouchdb/getLinks.ts @@ -34,6 +34,7 @@ export const getLinks = (): CozyLink[] => { const pouchLinkOptions = { doctypes: offlineDoctypes, initialSync: true, + periodicSync: true, platform: platformReactNative, ignoreWarmup: true, doctypesReplicationOptions: Object.fromEntries( diff --git a/yarn.lock b/yarn.lock index 43d0e2c92..0efb681f0 100644 --- a/yarn.lock +++ b/yarn.lock @@ -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" @@ -8751,19 +8751,19 @@ cozy-minilog@3.3.1, cozy-minilog@^3.3.1: dependencies: microee "0.0.6" -cozy-pouch-link@^49.0.0: - version "49.0.0" - resolved "https://registry.yarnpkg.com/cozy-pouch-link/-/cozy-pouch-link-49.0.0.tgz#05644fbf7bbb7bf1af0869bca2b959e0ef2bd284" - integrity sha512-objXCSNvyGGNhzqb4PXwKNSqv54+E6p1eNhkEBlzrO6miXAeIYX5T0db3OQUuhiQdB69aYiExAVj5sCfUst3kw== +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"