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 Dec 20, 2024
1 parent 9e0c657 commit 5b59b97
Show file tree
Hide file tree
Showing 8 changed files with 161 additions and 6 deletions.
49 changes: 49 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,55 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [52.0.0](https://github.com/cozy/cozy-client/compare/v51.7.0...v52.0.0) (2024-12-20)


### Features

* Allow to enforce Stack link on request chain ([6aac845](https://github.com/cozy/cozy-client/commit/6aac845136e6b80b304292fd68657417d32e05ca))


### BREAKING CHANGES

* CozyLink's request methods now takes an additional
`options` argument that can be used to enforce usage of Stack link.
Although `.request()` is meant to be an internal API, if your code
calls it, you'll want to introduce a new argument for `options`. This
is also the case if you instanciate a new CozyLink with a handler
argument for `request`

Before:
```
// Initialization
new CozyLink((operation, result = '', forward) => {
return forward(operation, result + 'foo')
})
// Call
link.request(operation)
// Call with result and forward
link.request(operation, null, () => { /* do stuff */ })
```

After:
```
// Initialization
new CozyLink((operation, options, result = '', forward) => {
return forward(operation, options, result + 'foo')
})
// Call
link.request(operation, options)
// Call with result and forward
link.request(operation, options, null, () => { /* do stuff */ })
```





# [51.7.0](https://github.com/cozy/cozy-client/compare/v51.6.1...v51.7.0) (2024-12-20)


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": "51.7.0",
"version": "52.0.0",
"npmClient": "yarn",
"command": {
"version": {
Expand Down
49 changes: 49 additions & 0 deletions packages/cozy-client/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,55 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [52.0.0](https://github.com/cozy/cozy-client/compare/v51.7.0...v52.0.0) (2024-12-20)


### Features

* Allow to enforce Stack link on request chain ([6aac845](https://github.com/cozy/cozy-client/commit/6aac845136e6b80b304292fd68657417d32e05ca))


### BREAKING CHANGES

* CozyLink's request methods now takes an additional
`options` argument that can be used to enforce usage of Stack link.
Although `.request()` is meant to be an internal API, if your code
calls it, you'll want to introduce a new argument for `options`. This
is also the case if you instanciate a new CozyLink with a handler
argument for `request`

Before:
```
// Initialization
new CozyLink((operation, result = '', forward) => {
return forward(operation, result + 'foo')
})

// Call
link.request(operation)

// Call with result and forward
link.request(operation, null, () => { /* do stuff */ })
```

After:
```
// Initialization
new CozyLink((operation, options, result = '', forward) => {
return forward(operation, options, result + 'foo')
})

// Call
link.request(operation, options)

// Call with result and forward
link.request(operation, options, null, () => { /* do stuff */ })
```





# [51.7.0](https://github.com/cozy/cozy-client/compare/v51.6.1...v51.7.0) (2024-12-20)


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": "51.7.0",
"version": "52.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": "^51.6.0",
"cozy-stack-client": "^52.0.0",
"date-fns": "2.29.3",
"json-stable-stringify": "^1.0.1",
"lodash": "^4.17.13",
Expand Down
49 changes: 49 additions & 0 deletions packages/cozy-pouch-link/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,55 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# [52.0.0](https://github.com/cozy/cozy-client/compare/v51.7.0...v52.0.0) (2024-12-20)


### Features

* Allow to enforce Stack link on request chain ([6aac845](https://github.com/cozy/cozy-client/commit/6aac845136e6b80b304292fd68657417d32e05ca))


### BREAKING CHANGES

* CozyLink's request methods now takes an additional
`options` argument that can be used to enforce usage of Stack link.
Although `.request()` is meant to be an internal API, if your code
calls it, you'll want to introduce a new argument for `options`. This
is also the case if you instanciate a new CozyLink with a handler
argument for `request`

Before:
```
// Initialization
new CozyLink((operation, result = '', forward) => {
return forward(operation, result + 'foo')
})

// Call
link.request(operation)

// Call with result and forward
link.request(operation, null, () => { /* do stuff */ })
```

After:
```
// Initialization
new CozyLink((operation, options, result = '', forward) => {
return forward(operation, options, result + 'foo')
})

// Call
link.request(operation, options)

// Call with result and forward
link.request(operation, options, null, () => { /* do stuff */ })
```





# [51.7.0](https://github.com/cozy/cozy-client/compare/v51.6.1...v51.7.0) (2024-12-20)


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": "51.7.0",
"version": "52.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": "^51.7.0",
"cozy-client": "^52.0.0",
"pouchdb-browser": "^7.2.2",
"pouchdb-find": "^7.2.2"
},
Expand Down
8 changes: 8 additions & 0 deletions packages/cozy-stack-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.

# [52.0.0](https://github.com/cozy/cozy-client/compare/v51.7.0...v52.0.0) (2024-12-20)

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





# [51.6.0](https://github.com/cozy/cozy-client/compare/v51.5.0...v51.6.0) (2024-12-10)


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": "51.6.0",
"version": "52.0.0",
"license": "MIT",
"main": "dist/index.js",
"files": [
Expand Down

0 comments on commit 5b59b97

Please sign in to comment.