Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: cozy/cozy-libs
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: cozy-flags@2.10.2
Choose a base ref
...
head repository: cozy/cozy-libs
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: cozy-flags@2.11.0
Choose a head ref
Loading
Showing 324 changed files with 13,127 additions and 4,016 deletions.
24 changes: 11 additions & 13 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -8,18 +8,6 @@ cache:
before_install:
- curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version 1.16.0
- export PATH="$HOME/.yarn/bin:$HOME/.config/yarn/global/node_modules/.bin:$PATH"
script:
- ./scripts/travis.sh
before_deploy:
- git config --global user.email "npm@cozycloud.cc"
- git config --global user.name "Cozy Bot"
deploy:
- provider: script
skip-cleanup: true
script: 'git checkout master && git remote set-url origin https://cozy-bot:$GITHUB_TOKEN@github.com/cozy/cozy-libs.git && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc && yarn lerna publish --yes -m "[skip ci] Publish"'
on:
branch: master
repo: cozy/cozy-libs

jobs:
include:
@@ -28,13 +16,23 @@ jobs:
- name: 'Build'
script:
- ./scripts/travis.sh
before_deploy:
- git config --global user.email "npm@cozycloud.cc"
- git config --global user.name "Cozy Bot"
deploy:
- provider: script
skip-cleanup: true
script: 'git checkout master && git remote set-url origin https://cozy-bot:$GITHUB_TOKEN@github.com/cozy/cozy-libs.git && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc && yarn lerna publish --yes -m "[skip ci] Publish"'
on:
branch: master
repo: cozy/cozy-libs

env:
global:
- NODE_OPTIONS="--max-old-space-size=8192"
# GITHUB_TOKEN
# To generate a new key: travis encrypt GITHUB_TOKEN=<token> -r cozy/cozy-libs
- sec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ypFAo7jLE/fmvU5VyCYPS/YgOuqgOaEicdNEY0SQkI+DLYianFDchBpSZVwigmLfB5207+WmQgPuadnEhy3gvEW3NWFi1QOJw6duU1Cw6TOK8AeFki2hN2Fm/sesJoI7nseW0+NsHlOiJFhHoDEjhUdUhZijHv3JM1hqzrbGYF+yacXTIN1teKeeF0SG3nRA9kM1NYljpoqcx85dYq7gLGPv+78Mes+Um4yLj4Tz2XCCgIGAuwvTTO51nZPW7GUEDIb/xVGQ5U4iNjGCkcTszQy2htX+YTKrhBtR05XlFeNvazZwk="
# NPM_TOKEN
- secure: "VtQfFYCDSd46bmXea3FrjSSalHr635wT95X9q+SGVz0mMKUgfJjW4ZOLb8D6pFOBE0gGt7+USxHROL3GJiH1YFCrwd1jBgvQ4V4a1dAiSfhT1x7ghztan6WwlH2Uigpm/rvbDt9IjPbVyn5TaI7meCO6P8zJLS+Grcosz/b7THdSweT9gUnBPSui+9Nai8JtS5bSMMs6DVleNs9yxvZqioPzSo/gVWVLP6aOm8oUbV3/Sqi1vzAd3HiZCqe9WVSti3xd2WVk87QtHdKpCb3ZFWT0WlGUuBxrcrbtSQpnYoCFOG3QVFCxErxO0sMtzB+LzE9lyffwREQiPTQI3HBssS80rGU/0cmixJgWOXKQseNLDd/raOELsZXFQenGZZbzVwOnAoj7TvtU3/ZKpuxV0APt1YOhtHrDBuSDUUx8ecwc3XvFBOgH9bSzMEXdtSWp9FKGBXY5LuDRudzgha1wcMo8UJuJqJki8cGEjXLi7bLfpgu7zm/6w9841kMwwWOe2zN/yYXLYp8mtBRo6AUh2aA6uaV6P3P/y/m7POZelnWEiXtLIVGhYwWKthNA79WTXZmFiWV3kyREZ3Zca5TQkQ9xXKWMpLYgweIxWQNuyt6QJAqPDPlzO+nedTA/9bp8oy3sUrKBsqruwyHgrYeM+st7YWieNV315bMf6vcPaqo="
# TX_PASSWD
11 changes: 11 additions & 0 deletions packages/babel-preset-cozy-app/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

# 2.1.0 (2023-01-31)


### Features

* Update cozy-client and cozy-ui ([6ae3b04](https://github.com/cozy/cozy-libs/commit/6ae3b04925ae64fa30f3ec8b6e716453d0a630fe))





## 2.0.4 (2022-10-03)

**Note:** Version bump only for package babel-preset-cozy-app
4 changes: 2 additions & 2 deletions packages/babel-preset-cozy-app/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "babel-preset-cozy-app",
"version": "2.0.4",
"version": "2.1.0",
"description": "Babel preset for Cozy Application (Cozy Cloud)",
"author": "CPatchane <code@patchane.com>",
"repository": {
@@ -27,7 +27,7 @@
"@babel/preset-react": "^7.16.0",
"@babel/preset-typescript": "^7.16.0",
"@babel/runtime": "^7.16.3",
"browserslist-config-cozy": "^0.4.1",
"browserslist-config-cozy": "^0.5.0",
"lodash": "^4.17.21",
"typescript": "^4.5.2"
}
11 changes: 11 additions & 0 deletions packages/browserslist-config-cozy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

# 0.5.0 (2023-01-31)


### Features

* Update cozy-client and cozy-ui ([6ae3b04](https://github.com/cozy/cozy-libs/commit/6ae3b04925ae64fa30f3ec8b6e716453d0a630fe))





## 0.4.1 (2022-10-03)

**Note:** Version bump only for package browserslist-config-cozy
2 changes: 1 addition & 1 deletion packages/browserslist-config-cozy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "browserslist-config-cozy",
"version": "0.4.1",
"version": "0.5.0",
"description": "Shareable browserslist config enforcing the Cozy official supported browsers list",
"main": "index.js",
"author": "Cozy",
11 changes: 11 additions & 0 deletions packages/cli-tree/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

# 0.7.0 (2023-01-31)


### Features

* Update cozy-client and cozy-ui ([6ae3b04](https://github.com/cozy/cozy-libs/commit/6ae3b04925ae64fa30f3ec8b6e716453d0a630fe))





# 0.6.0 (2022-05-25)


2 changes: 1 addition & 1 deletion packages/cli-tree/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@cozy/cli-tree",
"version": "0.6.0",
"version": "0.7.0",
"main": "src/index.js",
"license": "MIT",
"dependencies": {
11 changes: 11 additions & 0 deletions packages/commitlint-config-cozy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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.

# 0.8.0 (2023-01-31)


### Features

* Update cozy-client and cozy-ui ([6ae3b04](https://github.com/cozy/cozy-libs/commit/6ae3b04925ae64fa30f3ec8b6e716453d0a630fe))





## 0.7.9 (2022-10-03)

**Note:** Version bump only for package commitlint-config-cozy
4 changes: 2 additions & 2 deletions packages/commitlint-config-cozy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "commitlint-config-cozy",
"version": "0.7.9",
"version": "0.8.0",
"description": "Shareable commitlint config enforcing the cozy commit convention",
"main": "index.js",
"author": "Cozy",
@@ -20,7 +20,7 @@
"@babel/core": "7.16.12",
"@commitlint/lint": "16.2.4",
"babel-jest": "26.6.3",
"babel-preset-cozy-app": "^2.0.4",
"babel-preset-cozy-app": "^2.1.0",
"jest": "26.6.3"
},
"dependencies": {
30 changes: 30 additions & 0 deletions packages/cozy-app-publish/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,36 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 0.33.0 (2023-01-31)


### Features

* Update cozy-client and cozy-ui ([6ae3b04](https://github.com/cozy/cozy-libs/commit/6ae3b04925ae64fa30f3ec8b6e716453d0a630fe))





## [0.32.1](https://github.com/cozy/cozy-libs/compare/cozy-app-publish@0.32.0...cozy-app-publish@0.32.1) (2022-10-27)

**Note:** Version bump only for package cozy-app-publish





# 0.32.0 (2022-10-04)


### Features

* Prohibits putting only spaces in a document name ([5568408](https://github.com/cozy/cozy-libs/commit/55684088da1f6c086596e156825a5999c60421db))





# 0.31.0 (2022-07-05)


52 changes: 47 additions & 5 deletions packages/cozy-app-publish/README.md
Original file line number Diff line number Diff line change
@@ -42,6 +42,11 @@ yarn cozy-app-publish \
--build-commit $BUILD_COMMIT
```

Published version is inferred from the tag set on current commit or the version defined in the manifest `version` property:

- If the current commit has no tag associated, then this is a dev version in the form `<manifest_version>-dev.<commit_sha><date>`
- If the current commit has a beta tag `x.y.z-beta.n` or a stable tag `x.y.z`, then this is a beta or stable version and the tag value is used as the version

### Manual usage (not recommended)

First of all, don't forget to build the application:
@@ -60,6 +65,43 @@ yarn cozy-app-publish \
--manual-version 1.0.2-dev.042cef26d9d33ea604fe4364eaab569980b500c9
```

#### Publishing a beta version

Beta versions are only available through beta channel of the registry and are not automatically deployable on production instances. However a beta tester can
force deployment of beta versions of a given (installed) app from Cozy store. Ask your Cozy representative to explain you how to do this.

Let's say you plan to publish version `1.0.2` of your application and want to test it before publishing it to stable. Then you will publish a `1.0.2-beta.1` version,
test it, publish other beta versions if some adjustement are needed and when you're satisfied with the version you will publish a stable version.

To publish a beta version:

- Have the target stable version as the `version` in your manifest file (eg `1.0.2` in our example). The manifest file always reference stable version.
- Publish with `cozy-app-publish` using the beta version like `1.0.2-beta.1`

```
yarn cozy-app-publish \
--token $REGISTRY_TOKEN \
--build-url https://github.com/cozy/cozy-collect/archive/042cef26d9d33ea604fe4364eaab569980b500c9.tar.gz \
--manual-version 1.0.2-beta.1
```

#### Publishing a stable version

Instances auto-update app versions as soon as they are published as stable. Publishing a new stable version will make it available immediately to all instances
(existing and new ones) unless permission changes requiring user's validation.

To publish a stable version, simply use a version in the form `x.y.z` and it will be considered as stable.

Because manifest's `version` doesn't need to be changed between beta and stable, you don't need to rebuild the application and can publish the exact same app package
you built for beta publication

```
yarn cozy-app-publish \
--token $REGISTRY_TOKEN \
--build-url https://github.com/cozy/cozy-collect/archive/042cef26d9d33ea604fe4364eaab569980b500c9.tar.gz \
--manual-version 1.0.2
```

### Options

#### `--token <editor-token>` (required)
@@ -193,11 +235,11 @@ To print more logs when using tool (useful for debug).

#### Release workflow

- A new branch is created from the current state of `master`. Let's say we want to deploy version `1.0.0` of the app.
- Since we created a new branch, we have to bump the version of `master`, so we have to create a PR to bump to `1.1.0` everywhere is necessary
- The only type of commits allowed on this release branch are bug fixes.
- A new release branch is created from the current state of `master`. Let's say we want to deploy version `1.0.0` of the app, we will create `release/1.0.0`.
- Since we created a new branch, we have to bump the version of `master`, so we have to create a PR to bump to `1.1.0` everywhere it is necessary. This depends on the app, but most of the time it requires to change the `package.json` and `manifest.webapp` versions.
- The only type of commits allowed on this release branch are bug fixes, that should be made on the release branch.
- To release a stable or beta version, generally we use directly github and the release creation interface. In this interface, don't forget to fill in the changelog and to check "prelease" for a beta version. The title of the release must be the released version (ex.: `1.40.0-beta.1`)
- Every time one or more bugs are fixed and the version is considered for release, the latest commit is tagged with a prerelease version number, eg. `1.0.0-beta.1`, `1.0.0-beta.2`, etc…
- Every time bugs are fixed and the version is considered for release, the latest commit is tagged with a prerelease version number, eg. `1.0.0-beta.1`, `1.0.0-beta.2`, etc…
- Each of these prereleases is automatically uploaded on downcloud and deployed on instances that are on the `beta` channel.
- Once the branch is deemed ready for release, the last commit is tagged with the final version — `1.0.0` in our example. It is then, again, uploaded on downcloud, published on the registry and deployed on specific instances as needed.
- The release branch is merged back into `master` so that all the bugfixes aren't lost.
@@ -221,7 +263,7 @@ If you need to quickly fix a bug in production, then you have to:
- Publish
- Merge it on master

Exemple: You have to hot fix Drive. The current `stable` version of Drive is : 1.45.0. Master is on 1.47.0.
Example: You have to hot fix Drive. The current `stable` version of Drive is : 1.45.0. Master is on 1.47.0.

- Then you need to fetch release/1.45.0
- Create a branch from this release: git checkout -b release/1.45.1
2 changes: 1 addition & 1 deletion packages/cozy-app-publish/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cozy-app-publish",
"version": "0.31.0",
"version": "0.33.0",
"main": "src/index.js",
"author": "Cozy",
"license": "MIT",
73 changes: 73 additions & 0 deletions packages/cozy-authentication/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,79 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

# 2.13.0 (2023-01-31)


### Features

* Update cozy-client and cozy-ui ([6ae3b04](https://github.com/cozy/cozy-libs/commit/6ae3b04925ae64fa30f3ec8b6e716453d0a630fe))





## [2.12.1](https://github.com/cozy/cozy-libs/compare/cozy-authentication@2.12.0...cozy-authentication@2.12.1) (2023-01-06)


### Bug Fixes

* **authentication:** Pass the `history` object back to `onAuthenticated` ([4b4d066](https://github.com/cozy/cozy-libs/commit/4b4d0667afbec6328588db301a5150ab03596fff))





# [2.12.0](https://github.com/cozy/cozy-libs/compare/cozy-authentication@2.11.0...cozy-authentication@2.12.0) (2022-12-23)


### Features

* **authentication:** Add an alternate implementation for `MobileRouter` ([07436c0](https://github.com/cozy/cozy-libs/commit/07436c045a49c8cbb484fd0126be8596a838f986))
* **authentication:** Add react-router-dom 6.4.1 as a dependency ([491f723](https://github.com/cozy/cozy-libs/commit/491f72375c7e6793a7360cbd3bc9f5b6421777e0))





# 2.11.0 (2022-12-20)


### Features

* Add `illustrationSize` prop to paperConfiguration ([d0b8524](https://github.com/cozy/cozy-libs/commit/d0b852479ff95100a6c1c0b7d3f6271e8859cc40))
* Remove pk_campaign query string in links ([86cac7e](https://github.com/cozy/cozy-libs/commit/86cac7e6c76e036b459b48e3aabe0ecd5f8d1e8e))





## 2.10.11 (2022-11-14)

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





## [2.10.10](https://github.com/cozy/cozy-libs/compare/cozy-authentication@2.10.9...cozy-authentication@2.10.10) (2022-10-11)


### Bug Fixes

* This.input is not defined ([1ba6a4d](https://github.com/cozy/cozy-libs/commit/1ba6a4d97d898e0f43f7ca9bd53aba6aff1405af))





## [2.10.9](https://github.com/cozy/cozy-libs/compare/cozy-authentication@2.10.8...cozy-authentication@2.10.9) (2022-10-03)

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





## 2.10.8 (2022-10-03)

**Note:** Version bump only for package cozy-authentication
Loading