From 5b59b97a76e9191e67f3c3ce885358f47df8a4e1 Mon Sep 17 00:00:00 2001 From: Cozy Bot Date: Fri, 20 Dec 2024 17:16:35 +0000 Subject: [PATCH] chore: Publish [skip ci] --- CHANGELOG.md | 49 +++++++++++++++++++++++++ lerna.json | 2 +- packages/cozy-client/CHANGELOG.md | 49 +++++++++++++++++++++++++ packages/cozy-client/package.json | 4 +- packages/cozy-pouch-link/CHANGELOG.md | 49 +++++++++++++++++++++++++ packages/cozy-pouch-link/package.json | 4 +- packages/cozy-stack-client/CHANGELOG.md | 8 ++++ packages/cozy-stack-client/package.json | 2 +- 8 files changed, 161 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 58d098e2c..cb9ee6d48 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/lerna.json b/lerna.json index 702972a49..d3b4a8ea8 100644 --- a/lerna.json +++ b/lerna.json @@ -2,7 +2,7 @@ "packages": [ "packages/*" ], - "version": "51.7.0", + "version": "52.0.0", "npmClient": "yarn", "command": { "version": { diff --git a/packages/cozy-client/CHANGELOG.md b/packages/cozy-client/CHANGELOG.md index 2d649adc9..7cab26dc6 100644 --- a/packages/cozy-client/CHANGELOG.md +++ b/packages/cozy-client/CHANGELOG.md @@ -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) diff --git a/packages/cozy-client/package.json b/packages/cozy-client/package.json index f0a7b2ba4..af863d755 100644 --- a/packages/cozy-client/package.json +++ b/packages/cozy-client/package.json @@ -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", @@ -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", diff --git a/packages/cozy-pouch-link/CHANGELOG.md b/packages/cozy-pouch-link/CHANGELOG.md index 80848e60c..02bc10a32 100644 --- a/packages/cozy-pouch-link/CHANGELOG.md +++ b/packages/cozy-pouch-link/CHANGELOG.md @@ -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) diff --git a/packages/cozy-pouch-link/package.json b/packages/cozy-pouch-link/package.json index b2eb3c85b..5114b3d37 100644 --- a/packages/cozy-pouch-link/package.json +++ b/packages/cozy-pouch-link/package.json @@ -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", @@ -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" }, diff --git a/packages/cozy-stack-client/CHANGELOG.md b/packages/cozy-stack-client/CHANGELOG.md index 04a21c044..84f402ebd 100644 --- a/packages/cozy-stack-client/CHANGELOG.md +++ b/packages/cozy-stack-client/CHANGELOG.md @@ -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) diff --git a/packages/cozy-stack-client/package.json b/packages/cozy-stack-client/package.json index dfb4961c0..d421e3292 100644 --- a/packages/cozy-stack-client/package.json +++ b/packages/cozy-stack-client/package.json @@ -1,6 +1,6 @@ { "name": "cozy-stack-client", - "version": "51.6.0", + "version": "52.0.0", "license": "MIT", "main": "dist/index.js", "files": [