Merge pull request #198754 from drupol/hedgedoc/bump-to-1.9.5

authored by Sandro and committed by GitHub f2846c75 ce794c0e

+28 -23
+3 -3
pkgs/servers/web-apps/hedgedoc/default.nix
··· 12 12 13 13 mkYarnPackage rec { 14 14 pname = "hedgedoc"; 15 - version = "1.9.4"; 15 + version = "1.9.5"; 16 16 17 17 # we use the upstream compiled js files because yarn2nix cannot handle different versions of dependencies 18 18 # in development and production and the web assets muts be compiled with js-yaml 3 while development 19 19 # uses js-yaml 4 which breaks the text editor 20 20 src = fetchzip { 21 21 url = "https://github.com/hedgedoc/hedgedoc/releases/download/${version}/hedgedoc-${version}.tar.gz"; 22 - hash = "sha256-YBPxL1/2bj+8cemSBZSNqSlD/DYJRxSG5UuyUipf3R8="; 22 + hash = "sha256-dcqCc4UUI1knRlDfQlXq3cpTRTh+kbgFynbypDzw9y8="; 23 23 }; 24 24 25 25 nativeBuildInputs = [ which makeWrapper ]; ··· 30 30 31 31 offlineCache = fetchYarnDeps { 32 32 yarnLock = src + "/yarn.lock"; 33 - sha256 = "sha256-tnxubtu2lv5DKYY4rwQzNwvsFu3pD3NF4VUN/xieqpc="; 33 + sha256 = "18k2q2llngdk0gsyjrwpirhvwmkwgzhx8nw1rx7g7v2nfzyz189b"; 34 34 }; 35 35 36 36 configurePhase = ''
+16 -16
pkgs/servers/web-apps/hedgedoc/package.json
··· 1 1 { 2 2 "name": "HedgeDoc", 3 - "version": "1.9.4", 3 + "version": "1.9.5", 4 4 "description": "The best platform to write and share markdown.", 5 5 "main": "app.js", 6 6 "license": "AGPL-3.0", ··· 21 21 "Idle.Js": "git+https://github.com/shawnmclean/Idle.js", 22 22 "archiver": "^5.0.2", 23 23 "async": "^3.0.0", 24 - "aws-sdk": "^2.987.0", 24 + "aws-sdk": "^2.1243.0", 25 25 "azure-storage": "^2.7.0", 26 26 "base64url": "^3.0.0", 27 27 "body-parser": "^1.15.2", ··· 37 37 "ejs": "^3.0.0", 38 38 "express": ">=4.14", 39 39 "express-session": "^1.14.2", 40 - "file-type": "^17.0.0", 40 + "file-type": "^18.0.0", 41 41 "formidable": "^2.0.0", 42 42 "graceful-fs": "^4.1.11", 43 43 "helmet": "^4.5.0", ··· 47 47 "lodash": "^4.17.20", 48 48 "lutim": "^1.0.2", 49 49 "lz-string": "git+https://github.com/hackmdio/lz-string.git", 50 - "mariadb": "^3.0.0", 50 + "mariadb": "^3.0.2", 51 51 "markdown-it": "^13.0.0", 52 52 "markdown-it-abbr": "^1.0.4", 53 53 "markdown-it-container": "^3.0.0", ··· 65 65 "meta-marked": "git+https://github.com/hedgedoc/meta-marked", 66 66 "method-override": "^3.0.0", 67 67 "minimist": "^1.2.0", 68 - "minio": "7.0.29", 68 + "minio": "7.0.32", 69 69 "moment": "^2.17.1", 70 70 "morgan": "^1.7.0", 71 71 "mysql2": "^2.0.0", ··· 99 99 "string": "^3.3.3", 100 100 "toobusy-js": "^0.5.1", 101 101 "umzug": "^2.3.0", 102 - "uuid": "^8.0.0", 102 + "uuid": "^9.0.0", 103 103 "validator": "^13.0.0", 104 104 "winston": "^3.1.0", 105 105 "xss": "^1.0.3" ··· 134 134 "url": "https://github.com/hedgedoc/hedgedoc.git" 135 135 }, 136 136 "devDependencies": { 137 - "abcjs": "6.0.3", 137 + "abcjs": "6.1.6", 138 138 "babel-cli": "6.26.0", 139 139 "babel-core": "6.26.3", 140 140 "babel-loader": "7.1.5", ··· 148 148 "copy-webpack-plugin": "6.4.1", 149 149 "css-loader": "5.2.7", 150 150 "emojify.js": "1.1.0", 151 - "esbuild-loader": "2.19.0", 151 + "esbuild-loader": "2.20.0", 152 152 "escape-html": "1.0.3", 153 - "eslint": "8.19.0", 153 + "eslint": "8.26.0", 154 154 "eslint-config-standard": "17.0.0", 155 155 "eslint-plugin-import": "2.26.0", 156 - "eslint-plugin-n": "15.2.4", 156 + "eslint-plugin-n": "15.3.0", 157 157 "eslint-plugin-node": "11.1.0", 158 - "eslint-plugin-promise": "6.0.0", 158 + "eslint-plugin-promise": "6.1.1", 159 159 "eslint-plugin-standard": "4.1.0", 160 160 "exports-loader": "1.1.1", 161 161 "expose-loader": "1.0.3", ··· 168 168 "html-webpack-plugin": "4.5.2", 169 169 "imports-loader": "1.2.0", 170 170 "ionicons": "2.0.1", 171 - "jquery": "3.6.0", 171 + "jquery": "3.6.1", 172 172 "jquery-mousewheel": "3.1.13", 173 - "jquery-ui": "1.13.1", 173 + "jquery-ui": "1.13.2", 174 174 "js-cookie": "3.0.1", 175 175 "js-sequence-diagrams": "git+https://github.com/hedgedoc/js-sequence-diagrams.git", 176 176 "js-yaml": "3.14.1", ··· 180 180 "less-loader": "7.3.0", 181 181 "list.js": "2.3.1", 182 182 "mathjax": "2.7.9", 183 - "mermaid": "9.1.3", 183 + "mermaid": "9.1.7", 184 184 "mini-css-extract-plugin": "1.6.2", 185 - "mocha": "10.0.0", 185 + "mocha": "10.1.0", 186 186 "mock-require": "3.0.3", 187 187 "optimize-css-assets-webpack-plugin": "6.0.1", 188 - "prismjs": "1.28.0", 188 + "prismjs": "1.29.0", 189 189 "raphael": "2.3.0", 190 190 "remark-cli": "11.0.0", 191 191 "remark-preset-lint-markdown-style-guide": "5.1.2",
+9 -4
pkgs/servers/web-apps/hedgedoc/update.sh
··· 16 16 fi 17 17 18 18 src="https://raw.githubusercontent.com/hedgedoc/hedgedoc/$version" 19 + 19 20 wget "$src/package.json" -O package.json 21 + wget "$src/yarn.lock" -O yarn.lock 20 22 21 - src_hash=$(nix-prefetch-github hedgedoc hedgedoc --rev "${version}" | jq -r .sha256) 23 + src_old_hash=$(nix-prefetch-url --unpack "https://github.com/hedgedoc/hedgedoc/releases/download/$version/hedgedoc-$version.tar.gz") 24 + src_hash=$(nix hash to-sri --type sha256 $src_old_hash) 22 25 yarn_hash=$(prefetch-yarn-deps yarn.lock) 23 26 24 - sed -i "s/version = \".*\"/version = \"$version\"/" default.nix 25 - sed -i "s/hash = \".*\"/hash = \"$src_hash\"/" default.nix 26 - sed -i "s/sha256 = \".*\"/sha256 = \"$yarn_hash\"/" default.nix 27 + sed -i "s|version = \".*\"|version = \"$version\"|" default.nix 28 + sed -i "s|hash = \".*\"|hash = \"$src_hash\"|" default.nix 29 + sed -i "s|sha256 = \".*\"|sha256 = \"$yarn_hash\"|" default.nix 30 + 31 + rm yarn.lock