From 35204416bfcc5dc85ce65b988135ef68ab149cf1 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Thu, 13 Feb 2020 17:39:34 +0000 Subject: [PATCH 01/11] Upgrade JS SDK to 5.0.0-rc.1 and React SDK to 2.1.0-rc.2 --- package.json | 8 +++++--- yarn.lock | 17 ++++++++++------- 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/package.json b/package.json index 62b7121ea0..4ac7bbd856 100644 --- a/package.json +++ b/package.json @@ -66,8 +66,8 @@ "gemini-scrollbar": "github:matrix-org/gemini-scrollbar#91e1e566", "gfm.css": "^1.1.2", "highlight.js": "^9.13.1", - "matrix-js-sdk": "github:matrix-org/matrix-js-sdk#develop", - "matrix-react-sdk": "github:matrix-org/matrix-react-sdk#develop", + "matrix-js-sdk": "5.0.0-rc.1", + "matrix-react-sdk": "2.1.0-rc.2", "olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz", "postcss-easings": "^2.0.0", "prop-types": "^15.7.2", @@ -191,7 +191,9 @@ "afterSign": "scripts/electron_afterSign.js" }, "jest": { - "modulePathIgnorePatterns": ["/electron_app"], + "modulePathIgnorePatterns": [ + "/electron_app" + ], "testEnvironment": "jest-environment-jsdom-fourteen", "testMatch": [ "/test/**/*-test.js" diff --git a/yarn.lock b/yarn.lock index 9b7b59dfbf..f2586c5bb4 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7595,9 +7595,10 @@ mathml-tag-names@^2.1.1: resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.1.tgz#6dff66c99d55ecf739ca53c492e626f1d12a33cc" integrity sha512-pWB896KPGSGkp1XtyzRBftpTzwSOL0Gfk0wLvxt4f2mgzjY19o0LxJ3U25vNWTzsh7da+KTbuXQoQ3lOJZ8WHw== -"matrix-js-sdk@github:matrix-org/matrix-js-sdk#develop": - version "4.0.0" - resolved "https://codeload.github.com/matrix-org/matrix-js-sdk/tar.gz/21e4c597d9633aef606871cf9ffffaf039142be3" +matrix-js-sdk@5.0.0-rc.1: + version "5.0.0-rc.1" + resolved "https://registry.yarnpkg.com/matrix-js-sdk/-/matrix-js-sdk-5.0.0-rc.1.tgz#75a48d999b2eecdbfcc000e05123a00ae80039a7" + integrity sha512-g4b7Zf2Ws+yUnRCetpMqCSpesnRu0I+wAvFUYdoKhEGzSihEs6qADvV880Twcun1YFxYBjdB9I7ZfzCkGsi4Lw== dependencies: "@babel/runtime" "^7.8.3" another-json "^0.2.0" @@ -7617,9 +7618,10 @@ matrix-mock-request@^1.2.3: bluebird "^3.5.0" expect "^1.20.2" -"matrix-react-sdk@github:matrix-org/matrix-react-sdk#develop": - version "2.0.0" - resolved "https://codeload.github.com/matrix-org/matrix-react-sdk/tar.gz/805e9abb3981584cd941e59c5c10edc3595c38b9" +matrix-react-sdk@2.1.0-rc.2: + version "2.1.0-rc.2" + resolved "https://registry.yarnpkg.com/matrix-react-sdk/-/matrix-react-sdk-2.1.0-rc.2.tgz#3cf74ca9af7e99931668002c78bc31b59717d61c" + integrity sha512-5pc8CgmkUZC95Y2eyVBexcy+Avu/qRtTk9nM7SBhHCV9lXpXjDnSSIxfgI9cYavNbJhV63bBFEUjAWd0SMZzGQ== dependencies: "@babel/runtime" "^7.8.3" blueimp-canvas-to-blob "^3.5.0" @@ -7647,7 +7649,8 @@ matrix-mock-request@^1.2.3: is-ip "^2.0.0" linkifyjs "^2.1.6" lodash "^4.17.14" - matrix-js-sdk "github:matrix-org/matrix-js-sdk#develop" + matrix-js-sdk "5.0.0-rc.1" + minimist "^1.2.0" pako "^1.0.5" png-chunks-extract "^1.0.0" prop-types "^15.5.8" From 49ece1cbf9763b275a1023d630efd256f6f9bea6 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Thu, 13 Feb 2020 17:53:36 +0000 Subject: [PATCH 02/11] v1.5.9-rc.1 --- electron_app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron_app/package.json b/electron_app/package.json index 4af708ae33..317fcd264c 100644 --- a/electron_app/package.json +++ b/electron_app/package.json @@ -2,7 +2,7 @@ "name": "riot-web", "productName": "Riot", "main": "src/electron-main.js", - "version": "1.5.8", + "version": "1.5.9-rc.1", "description": "A feature-rich client for Matrix.org", "author": "New Vector Ltd.", "dependencies": { From 9dd89dff6a7f7ab412c368ea69e2b31cb825f637 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Thu, 13 Feb 2020 17:56:14 +0000 Subject: [PATCH 03/11] Prepare changelog for v1.5.9-rc.1 --- CHANGELOG.md | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec6d178454..0459f52353 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,63 @@ +Changes in [1.5.9-rc.1](https://github.com/vector-im/riot-web/releases/tag/v1.5.9-rc.1) (2020-02-13) +==================================================================================================== +[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.5.8...v1.5.9-rc.1) + + * Upgrade JS SDK to 5.0.0-rc.1 and React SDK 2.1.0-rc.2 + * Update from Weblate + [\#12354](https://github.com/vector-im/riot-web/pull/12354) + * Add top left menu shortcut + [\#12310](https://github.com/vector-im/riot-web/pull/12310) + * Remove modernizr rules for features on which we only soft depend + [\#12272](https://github.com/vector-im/riot-web/pull/12272) + * Embed CSP meta tag and stop using script-src unsafe-inline + [\#12258](https://github.com/vector-im/riot-web/pull/12258) + * Add contribute.json + [\#12251](https://github.com/vector-im/riot-web/pull/12251) + * Improve Browser checks + [\#12232](https://github.com/vector-im/riot-web/pull/12232) + * Document padlock flag + [\#12173](https://github.com/vector-im/riot-web/pull/12173) + * Enable cross-signing on /develop + [\#12126](https://github.com/vector-im/riot-web/pull/12126) + * Switch back to legacy decorators + [\#12110](https://github.com/vector-im/riot-web/pull/12110) + * Update babel targets + [\#12102](https://github.com/vector-im/riot-web/pull/12102) + * Install deps for linting + [\#12076](https://github.com/vector-im/riot-web/pull/12076) + * Update from Weblate + [\#12062](https://github.com/vector-im/riot-web/pull/12062) + * Change to minimal Webpack output + [\#12049](https://github.com/vector-im/riot-web/pull/12049) + * Remove docs for new invite dialog labs feature + [\#12015](https://github.com/vector-im/riot-web/pull/12015) + * ElectronPlatform: Add the indexSize method. + [\#11529](https://github.com/vector-im/riot-web/pull/11529) + * ElectronPlatform: Add the ability to load file events from the event index + [\#11907](https://github.com/vector-im/riot-web/pull/11907) + * Fix the remainder of the cookie links + [\#12008](https://github.com/vector-im/riot-web/pull/12008) + * Use bash in Docker scripts + [\#12001](https://github.com/vector-im/riot-web/pull/12001) + * Use debian to build the Docker image + [\#11999](https://github.com/vector-im/riot-web/pull/11999) + * Update cookie policy urls on /app and /develop config.json + [\#11998](https://github.com/vector-im/riot-web/pull/11998) + * BuildKite: Only deploy to /develop if everything else passed + [\#11996](https://github.com/vector-im/riot-web/pull/11996) + * Add docs for admin report content message + [\#11995](https://github.com/vector-im/riot-web/pull/11995) + * Load as little as possible in index.js for the skinner + [\#11959](https://github.com/vector-im/riot-web/pull/11959) + * Fix webpack config (by stealing Dave's config) + [\#11956](https://github.com/vector-im/riot-web/pull/11956) + * Force Jest to resolve the js-sdk and react-sdk to src directories + [\#11954](https://github.com/vector-im/riot-web/pull/11954) + * Fix build to not babel modules inside js/react sdk + [\#11949](https://github.com/vector-im/riot-web/pull/11949) + * Fix webpack to babel js-sdk & react-sdk but no other deps + [\#11944](https://github.com/vector-im/riot-web/pull/11944) + Changes in [1.5.8](https://github.com/vector-im/riot-web/releases/tag/v1.5.8) (2020-01-27) ========================================================================================== [Full Changelog](https://github.com/vector-im/riot-web/compare/v1.5.8-rc.2...v1.5.8) From 08c149ed66ed26bd52a537f772864aa56c2f6741 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Thu, 13 Feb 2020 17:56:15 +0000 Subject: [PATCH 04/11] v1.5.9-rc.1 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 4ac7bbd856..b49c5c94a3 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "riot-web", "productName": "Riot", "main": "electron_app/src/electron-main.js", - "version": "1.5.8", + "version": "1.5.9-rc.1", "description": "A feature-rich client for Matrix.org", "author": "New Vector Ltd.", "repository": { From aa95dcc0cb90855dd6d82efb73975fae0d95c2dc Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 14 Feb 2020 11:04:39 +0000 Subject: [PATCH 05/11] Check the `next` tag when looking for the latest version --- release.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/release.sh b/release.sh index 33b3676f1b..d53ea5e8fc 100755 --- a/release.sh +++ b/release.sh @@ -21,7 +21,7 @@ cd `dirname $0` for i in matrix-js-sdk matrix-react-sdk do depver=`cat package.json | jq -r .dependencies[\"$i\"]` - latestver=`yarn info -s $i version` + latestver=`yarn info -s $i dist-tags.next` if [ "$depver" != "$latestver" ] then echo "The latest version of $i is $latestver but package.json depends on $depver" From a26bd6ef94d28fbc6bc240272d216258abbd3a60 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 14 Feb 2020 11:43:08 +0000 Subject: [PATCH 06/11] Add auto-upgrade support for SDK deps This automates the SDK upgrade step of the release process. --- release.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/release.sh b/release.sh index d53ea5e8fc..44a58d443d 100755 --- a/release.sh +++ b/release.sh @@ -24,14 +24,23 @@ do latestver=`yarn info -s $i dist-tags.next` if [ "$depver" != "$latestver" ] then - echo "The latest version of $i is $latestver but package.json depends on $depver" - echo -n "Type 'Yes' to continue anyway: " + echo "The latest version of $i is $latestver but package.json depends on $depver." + echo -n "Type 'u' to auto-upgrade, 'c' to continue anyway, or 'a' to abort:" read resp - if [ "$resp" != "Yes" ] + if [ "$resp" != "u" ] && [ "$resp" != "c" ] then - echo "OK, never mind." + echo "Aborting." exit 1 fi + if [ "$resp" == "u" ] + then + echo "Upgrading $i to $latestver..." + yarn add -E $i@$latestver + git add -u + # The `-e` flag opens the editor and gives you a chance to check + # the upgrade for correctness. + git commit -m "Upgrade $i to $latestver" -e + fi fi done From 585d40f4c18d99255275b67a39b053f92e8655e3 Mon Sep 17 00:00:00 2001 From: "J. Ryan Stinnett" Date: Fri, 14 Feb 2020 12:21:54 +0000 Subject: [PATCH 07/11] Reset SDK deps back to develop after a release This automates the (frequently forgotten) step of resetting SDK deps back to the develop branch after merging the release to develop. --- release.sh | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index 44a58d443d..753e182069 100755 --- a/release.sh +++ b/release.sh @@ -44,11 +44,17 @@ do fi done -# bump Electron's package.json first release="${1#v}" tag="v${release}" -echo "electron yarn version" +prerelease=0 +# We check if this build is a prerelease by looking to +# see if the version has a hyphen in it. Crude, +# but semver doesn't support postreleases so anything +# with a hyphen is a prerelease. +echo $release | grep -q '-' && prerelease=1 +# bump Electron's package.json first +echo "electron yarn version" cd electron_app yarn version --no-git-tag-version --new-version "$release" git commit package.json -m "$tag" @@ -56,3 +62,16 @@ git commit package.json -m "$tag" cd .. exec ./node_modules/matrix-js-sdk/release.sh -u vector-im -z "$orig_args" + +if [ $prerelease -eq 0 ] +then + # For a release, reset SDK deps back to the `develop` branch. + for i in matrix-js-sdk matrix-react-sdk + do + echo "Resetting $i to develop branch..." + yarn add github:matrix-org/$i#develop + git add -u + git commit -m "Reset $i back to develop branch" + done + git push origin develop +fi From 9b5655c1fa7fa3d7f43288306d6d26a55c6895e2 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Mon, 17 Feb 2020 13:39:24 +0000 Subject: [PATCH 08/11] Released js-sdk & react-sdk --- package.json | 4 ++-- yarn.lock | 18 +++++++++--------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index b49c5c94a3..5e23442062 100644 --- a/package.json +++ b/package.json @@ -66,8 +66,8 @@ "gemini-scrollbar": "github:matrix-org/gemini-scrollbar#91e1e566", "gfm.css": "^1.1.2", "highlight.js": "^9.13.1", - "matrix-js-sdk": "5.0.0-rc.1", - "matrix-react-sdk": "2.1.0-rc.2", + "matrix-js-sdk": "5.0.0", + "matrix-react-sdk": "2.1.0", "olm": "https://packages.matrix.org/npm/olm/olm-3.1.4.tgz", "postcss-easings": "^2.0.0", "prop-types": "^15.7.2", diff --git a/yarn.lock b/yarn.lock index f2586c5bb4..56da094581 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7595,10 +7595,10 @@ mathml-tag-names@^2.1.1: resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.1.tgz#6dff66c99d55ecf739ca53c492e626f1d12a33cc" integrity sha512-pWB896KPGSGkp1XtyzRBftpTzwSOL0Gfk0wLvxt4f2mgzjY19o0LxJ3U25vNWTzsh7da+KTbuXQoQ3lOJZ8WHw== -matrix-js-sdk@5.0.0-rc.1: - version "5.0.0-rc.1" - resolved "https://registry.yarnpkg.com/matrix-js-sdk/-/matrix-js-sdk-5.0.0-rc.1.tgz#75a48d999b2eecdbfcc000e05123a00ae80039a7" - integrity sha512-g4b7Zf2Ws+yUnRCetpMqCSpesnRu0I+wAvFUYdoKhEGzSihEs6qADvV880Twcun1YFxYBjdB9I7ZfzCkGsi4Lw== +matrix-js-sdk@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/matrix-js-sdk/-/matrix-js-sdk-5.0.0.tgz#dcbab35f1afdb35ef0364eb232e78e0fb7dc2a5b" + integrity sha512-A/aeE2Zn2OHq1n/9wIHCszrQZ7oXfThUHWi5Kz7illVCPUJ3JrZ31XVvx02k6vBasDcUtjAfZblHdTVN62cWLw== dependencies: "@babel/runtime" "^7.8.3" another-json "^0.2.0" @@ -7618,10 +7618,10 @@ matrix-mock-request@^1.2.3: bluebird "^3.5.0" expect "^1.20.2" -matrix-react-sdk@2.1.0-rc.2: - version "2.1.0-rc.2" - resolved "https://registry.yarnpkg.com/matrix-react-sdk/-/matrix-react-sdk-2.1.0-rc.2.tgz#3cf74ca9af7e99931668002c78bc31b59717d61c" - integrity sha512-5pc8CgmkUZC95Y2eyVBexcy+Avu/qRtTk9nM7SBhHCV9lXpXjDnSSIxfgI9cYavNbJhV63bBFEUjAWd0SMZzGQ== +matrix-react-sdk@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/matrix-react-sdk/-/matrix-react-sdk-2.1.0.tgz#60c79b98acfcf5e18534d0fc3ff52ebacb045cfd" + integrity sha512-KloXDVtZ1Hy0H1+zVFoZ9+BQlUTYCBVNlxzz2ZQ6T6rZpYOGu7XTLV/i6vaKRvFh+OqVtnF7RS3Z3j0OUqjmzQ== dependencies: "@babel/runtime" "^7.8.3" blueimp-canvas-to-blob "^3.5.0" @@ -7649,7 +7649,7 @@ matrix-react-sdk@2.1.0-rc.2: is-ip "^2.0.0" linkifyjs "^2.1.6" lodash "^4.17.14" - matrix-js-sdk "5.0.0-rc.1" + matrix-js-sdk "5.0.0" minimist "^1.2.0" pako "^1.0.5" png-chunks-extract "^1.0.0" From 38cd6a0d0c392cdf3ed5969858a9c73cda56c65c Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Mon, 17 Feb 2020 13:40:07 +0000 Subject: [PATCH 09/11] v1.5.9 --- electron_app/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/electron_app/package.json b/electron_app/package.json index 317fcd264c..11e2cf5c7e 100644 --- a/electron_app/package.json +++ b/electron_app/package.json @@ -2,7 +2,7 @@ "name": "riot-web", "productName": "Riot", "main": "src/electron-main.js", - "version": "1.5.9-rc.1", + "version": "1.5.9", "description": "A feature-rich client for Matrix.org", "author": "New Vector Ltd.", "dependencies": { From b225367e0d9f4a1890a20342b93848f8de945d08 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Mon, 17 Feb 2020 13:42:36 +0000 Subject: [PATCH 10/11] Prepare changelog for v1.5.9 --- CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0459f52353..11cc3c89a6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +Changes in [1.5.9](https://github.com/vector-im/riot-web/releases/tag/v1.5.9) (2020-02-17) +========================================================================================== +[Full Changelog](https://github.com/vector-im/riot-web/compare/v1.5.9-rc.1...v1.5.9) + + * Automate SDK dep upgrades for release + [\#12374](https://github.com/vector-im/riot-web/pull/12374) + Changes in [1.5.9-rc.1](https://github.com/vector-im/riot-web/releases/tag/v1.5.9-rc.1) (2020-02-13) ==================================================================================================== [Full Changelog](https://github.com/vector-im/riot-web/compare/v1.5.8...v1.5.9-rc.1) From a5d5e2800ced56c8a7b1c5f0765d87d25a4cc931 Mon Sep 17 00:00:00 2001 From: RiotRobot Date: Mon, 17 Feb 2020 13:42:37 +0000 Subject: [PATCH 11/11] v1.5.9 --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5e23442062..f9035d571f 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "riot-web", "productName": "Riot", "main": "electron_app/src/electron-main.js", - "version": "1.5.9-rc.1", + "version": "1.5.9", "description": "A feature-rich client for Matrix.org", "author": "New Vector Ltd.", "repository": {