Skip to content

Commit e449adc

Browse files
committed
feat: Upgrade cozy-client to 33.0.0
`cozy-client` as been upgraded to to `33.0.0` to retrieve improved useCapabilities from cozy/cozy-client#1227 BREAKING CHANGE: You need to update `cozy-client` to `>33.0.0`.
1 parent 8d309ca commit e449adc

File tree

3 files changed

+21
-28
lines changed

3 files changed

+21
-28
lines changed

package.json

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,15 @@
7171
"@babel/helper-define-map": "7.16.7",
7272
"@babel/helper-regex": "7.10.5",
7373
"@cozy/codemods": "^1.9.0",
74+
"@cozy/minilog": "^1.0.0",
7475
"@semantic-release/changelog": "5.0.1",
7576
"@semantic-release/git": "7.0.18",
7677
"@semantic-release/npm": "9.0.1",
7778
"@svgr/cli": "^5.4.0",
7879
"@testing-library/jest-dom": "^5.14.1",
79-
"@testing-library/user-event": "^14.4.2",
8080
"@testing-library/react": "11.2.7",
8181
"@testing-library/react-hooks": "^3.2.1",
82+
"@testing-library/user-event": "^14.4.2",
8283
"argos-cli": "^0.3.3",
8384
"autoprefixer-stylus": "1.0.0",
8485
"babel-loader": "8.2.4",
@@ -87,13 +88,15 @@
8788
"babel-preset-cozy-app": "2.0.2",
8889
"browserslist-config-cozy": "0.4.0",
8990
"copyfiles": "2.4.1",
90-
"cozy-client": "28.2.0",
91+
"cozy-client": "^33.0.0",
9192
"cozy-device-helper": "2.0.0",
9293
"cozy-doctypes": "^1.69.0",
94+
"cozy-flags": "^2.10.1",
9395
"cozy-harvest-lib": "^6.7.3",
9496
"cozy-intent": "1.16.1",
97+
"cozy-logger": "^1.9.0",
9598
"cozy-sharing": "^3.10.0",
96-
"cozy-stack-client": "27.19.1",
99+
"cozy-stack-client": "^33.0.0",
97100
"css-loader": "0.28.11",
98101
"cssnano": "4.1.11",
99102
"cssnano-preset-advanced": "4.0.8",
@@ -175,7 +178,7 @@
175178
"rooks": "^5.11.2"
176179
},
177180
"peerDependencies": {
178-
"cozy-client": ">=28.1.0",
181+
"cozy-client": ">=33.0.0",
179182
"cozy-device-helper": "^2.0.0",
180183
"cozy-doctypes": "^1.69.0",
181184
"cozy-harvest-lib": "^6.7.3",

react/Viewer/Footer/ForwardButton.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ const ForwardButton = ({ file }) => {
3333
}
3434
} else {
3535
try {
36-
const isFlatDomain = capabilities?.data?.attributes?.flat_subdomains
36+
const isFlatDomain = capabilities?.flat_subdomains
3737
const url = await getSharingLink(client, [file.id], isFlatDomain)
3838
const shareData = {
3939
title: t('Viewer.share.title', { name: file.name }),

yarn.lock

Lines changed: 13 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -5841,16 +5841,16 @@ cozy-bi-auth@0.0.23:
58415841
lodash "^4.17.20"
58425842
node-jose "^1.1.4"
58435843

5844-
cozy-client@28.2.0:
5845-
version "28.2.0"
5846-
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-28.2.0.tgz#1693c0b6d38d2306a4947add8d16da9bd9bfe3dd"
5847-
integrity sha512-cWwvBMQBrWqm3diOQXrcnQDZci9vVFmjzQDi2k6MowKI2L47+QcnhAs+49/5HN62gU1I62t1So0q1QyV0GRIpg==
5844+
cozy-client@^33.0.0:
5845+
version "33.0.0"
5846+
resolved "https://registry.yarnpkg.com/cozy-client/-/cozy-client-33.0.0.tgz#0711096ce281c9ebfe017a95475ceacf7879dd2e"
5847+
integrity sha512-RXzjoii+3/ri99EJTJF+ogEvYKW7qQ2VPcmMS5q1UCBOqziXGnDxND/DbHPX6wZaOynSBfJ/iyBIqhlmEi469w==
58485848
dependencies:
58495849
"@cozy/minilog" "1.0.0"
58505850
"@types/jest" "^26.0.20"
58515851
"@types/lodash" "^4.14.170"
58525852
btoa "^1.2.1"
5853-
cozy-stack-client "^28.2.0"
5853+
cozy-stack-client "^33.0.0"
58545854
json-stable-stringify "^1.0.1"
58555855
lodash "^4.17.13"
58565856
microee "^0.0.6"
@@ -5901,10 +5901,10 @@ cozy-doctypes@^1.82.3:
59015901
lodash "^4.17.19"
59025902
prop-types "^15.7.2"
59035903

5904-
cozy-flags@2.7.1:
5905-
version "2.7.1"
5906-
resolved "https://registry.yarnpkg.com/cozy-flags/-/cozy-flags-2.7.1.tgz#f37251fee248ef9bef079a22bc52954f1a892dfc"
5907-
integrity sha512-TtVhuyMSRADRr4q5LSaRjq6u03S5m1zkZRc8n3q8bfad86FizqGC02m3e/Zh4kWTwnsO0pVW+mzeVSsBqDVT/g==
5904+
cozy-flags@^2.10.1:
5905+
version "2.10.1"
5906+
resolved "https://registry.yarnpkg.com/cozy-flags/-/cozy-flags-2.10.1.tgz#aee640dc21d75b067ea1cd020e3e4e5c24922b18"
5907+
integrity sha512-5fxZWhDyL3BCs0pJoiRtoyUQTNqvrhqrFn743XmB2ltVk7Qf/ajvtixHQo6UmzOIUZ6W7n9JXIm40ruu8169tg==
59085908
dependencies:
59095909
microee "^0.0.6"
59105910

@@ -5970,20 +5970,10 @@ cozy-sharing@^3.10.0:
59705970
react-tooltip "^3.11.1"
59715971
snarkdown "^2.0.0"
59725972

5973-
cozy-stack-client@27.19.1:
5974-
version "27.19.1"
5975-
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-27.19.1.tgz#679253c6e028273b480b350583627389d98c6a69"
5976-
integrity sha512-DdJCi0lHofWsnT4ZvX02uaELsvgNquuPFPaXulo8gw1x/mVoHsPn+Lpt9xCw35CvhJm3ajJQ709f7JT4lPbCSQ==
5977-
dependencies:
5978-
cozy-flags "2.7.1"
5979-
detect-node "^2.0.4"
5980-
mime "^2.4.0"
5981-
qs "^6.7.0"
5982-
5983-
cozy-stack-client@^28.2.0:
5984-
version "28.2.0"
5985-
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-28.2.0.tgz#a0f212068ee3ffcfc6081f9117578ba5bc8ddd50"
5986-
integrity sha512-GaYzF4dHW0MC5SA9mh2T1Yc6qmrurqpdcLMip5gvY4S/xdfaOzUUw7bIZtyW/5dH5NppDRB3qQTINW96lVDmiA==
5973+
cozy-stack-client@^33.0.0:
5974+
version "33.0.0"
5975+
resolved "https://registry.yarnpkg.com/cozy-stack-client/-/cozy-stack-client-33.0.0.tgz#cd65a0aa82e773653b6e03392508f30792fea2b2"
5976+
integrity sha512-SqEhtJXuSDsCeC2goHibozX3c2HzoV/vfnp2J10XORMFcvzfx7pfYuwH5XQrRMtAzhERqqn7UNPjPzb/Yo6ljw==
59875977
dependencies:
59885978
detect-node "^2.0.4"
59895979
mime "^2.4.0"

0 commit comments

Comments
 (0)