Skip to content

Commit

Permalink
chore: Publish [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
Cozy Bot committed Feb 11, 2025
1 parent 00742fb commit 31f3124
Show file tree
Hide file tree
Showing 8 changed files with 92 additions and 6 deletions.
34 changes: 34 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,40 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [54.0.0](https://github.com/cozy/cozy-client/compare/v53.2.1...v54.0.0) (2025-02-11)


### Bug Fixes

* Correctly handle replication refreshToken ([38ef6aa](https://github.com/cozy/cozy-client/commit/38ef6aa1035e7f2da0fb46492e5037f90d75cc53))
* Make refreshToken work in worker and node env ([e392131](https://github.com/cozy/cozy-client/commit/e392131fe84f5c866317e2ad240ac30196755405)), closes [/github.com/cozy/cozy-drive/blob/master/src/targets/browser/index.ejs#L37](https://github.com//github.com/cozy/cozy-drive/blob/master/src/targets/browser/index.ejs/issues/L37)


### BREAKING CHANGES

* The `data-cozy-token` injection is no longer supported
for refreshToken.

We used to rely on DOMParser to extract the new token during a
refreshToken procedure. However, DOMParser is a web API, which is not
available in web workers, nor in node env. Therefore, we implement our
own HTML parsing, relying on the `data-cozy` attribute in HTML. We tried
using external libraries such as JSDom, fauxdom or linkedom, but got
build issues with all those libs. It was somehow manageable, but
required some additional config in consuming apps. As the HTML parsing
is quite basic, we decided that it is not worth the effort, and we now
do the parsing ourselves, making it available in web, workers, and node
envs.

As a consequence, we do not support the `data-cozy-token` existence
anymore, as it would require extra work and is seen as deprecated for
several years now. If your app still somehow require it, you need to
migrate the app template to rely on `data-cozy` like this:





## [53.2.1](https://github.com/cozy/cozy-client/compare/v53.2.0...v53.2.1) (2025-02-05)


Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"packages": [
"packages/*"
],
"version": "53.2.1",
"version": "54.0.0",
"npmClient": "yarn",
"command": {
"version": {
Expand Down
8 changes: 8 additions & 0 deletions packages/cozy-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [54.0.0](https://github.com/cozy/cozy-client/compare/v53.2.1...v54.0.0) (2025-02-11)

**Note:** Version bump only for package cozy-client





# [53.2.0](https://github.com/cozy/cozy-client/compare/v53.1.1...v53.2.0) (2025-02-03)

**Note:** Version bump only for package cozy-client
Expand Down
4 changes: 2 additions & 2 deletions packages/cozy-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-client",
"version": "53.2.0",
"version": "54.0.0",
"license": "MIT",
"main": "dist/index.node.js",
"browser": "dist/index.js",
Expand All @@ -18,7 +18,7 @@
"@types/jest": "^26.0.20",
"@types/lodash": "^4.14.170",
"btoa": "^1.2.1",
"cozy-stack-client": "^53.2.0",
"cozy-stack-client": "^54.0.0",
"date-fns": "2.29.3",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.17.13",
Expand Down
11 changes: 11 additions & 0 deletions packages/cozy-pouch-link/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,17 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [54.0.0](https://github.com/cozy/cozy-client/compare/v53.2.1...v54.0.0) (2025-02-11)


### Bug Fixes

* Correctly handle replication refreshToken ([38ef6aa](https://github.com/cozy/cozy-client/commit/38ef6aa1035e7f2da0fb46492e5037f90d75cc53))





## [53.2.1](https://github.com/cozy/cozy-client/compare/v53.2.0...v53.2.1) (2025-02-05)


Expand Down
4 changes: 2 additions & 2 deletions packages/cozy-pouch-link/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-pouch-link",
"version": "53.2.1",
"version": "54.0.0",
"license": "MIT",
"main": "dist/index.js",
"types": "types/index.d.ts",
Expand All @@ -13,7 +13,7 @@
"url": "git+https://github.com/cozy/cozy-client.git"
},
"dependencies": {
"cozy-client": "^53.2.0",
"cozy-client": "^54.0.0",
"pouchdb-browser": "^7.2.2",
"pouchdb-find": "^7.2.2"
},
Expand Down
33 changes: 33 additions & 0 deletions packages/cozy-stack-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,39 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [54.0.0](https://github.com/cozy/cozy-client/compare/v53.2.1...v54.0.0) (2025-02-11)


### Bug Fixes

* Make refreshToken work in worker and node env ([e392131](https://github.com/cozy/cozy-client/commit/e392131fe84f5c866317e2ad240ac30196755405)), closes [/github.com/cozy/cozy-drive/blob/master/src/targets/browser/index.ejs#L37](https://github.com//github.com/cozy/cozy-drive/blob/master/src/targets/browser/index.ejs/issues/L37)


### BREAKING CHANGES

* The `data-cozy-token` injection is no longer supported
for refreshToken.

We used to rely on DOMParser to extract the new token during a
refreshToken procedure. However, DOMParser is a web API, which is not
available in web workers, nor in node env. Therefore, we implement our
own HTML parsing, relying on the `data-cozy` attribute in HTML. We tried
using external libraries such as JSDom, fauxdom or linkedom, but got
build issues with all those libs. It was somehow manageable, but
required some additional config in consuming apps. As the HTML parsing
is quite basic, we decided that it is not worth the effort, and we now
do the parsing ourselves, making it available in web, workers, and node
envs.

As a consequence, we do not support the `data-cozy-token` existence
anymore, as it would require extra work and is seen as deprecated for
several years now. If your app still somehow require it, you need to
migrate the app template to rely on `data-cozy` like this:





# [53.2.0](https://github.com/cozy/cozy-client/compare/v53.1.1...v53.2.0) (2025-02-03)


Expand Down
2 changes: 1 addition & 1 deletion packages/cozy-stack-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-stack-client",
"version": "53.2.0",
"version": "54.0.0",
"license": "MIT",
"main": "dist/index.js",
"files": [
Expand Down

0 comments on commit 31f3124

Please sign in to comment.