{ "$schema": "https://docs.renovatebot.com/renovate-schema.json", "extends": [ "config:base" ], "major": { "stabilityDays": 80, }, "minor": { "stabilityDays": 40, }, "patch": { "stabilityDays": 20, }, "prConcurrentLimit": 5, "prHourlyLimit": 0, // It seems we need to delete the branches after merge or else it causes this problem: // https://github.com/renovatebot/renovate/discussions/21256#discussioncomment-5898418 "pruneBranchAfterAutomerge": true, "ignorePaths": [ "**/bower_components/**", "**/node_modules/**", "Assets/**", "packages/app-cli/tests/**", "packages/app-clipper/popup", "packages/app-mobile/android/app/build.gradle", "packages/plugins/**", "packages/react-native-vosk", ], "ignoreDeps": [ "@babel/core", "@codemirror/commands", "@codemirror/lang-cpp", "@codemirror/lang-html", "@codemirror/lang-java", "@codemirror/lang-javascript", "@codemirror/lang-markdown", "@codemirror/lang-php", "@codemirror/lang-rust", "@codemirror/language", "@codemirror/legacy-modes", "@codemirror/search", "@codemirror/state", "@codemirror/view", "@lezer/highlight", "@fortawesome/fontawesome-svg-core", "@fortawesome/free-solid-svg-icons", "@svgr/webpack", "actions/stale", "babel-eslint", "babel-loader", "babel-preset-react-app", "browserify", "codemirror", "cspell", "electron", "file-loader", "gradle", "html-webpack-plugin", "husky", "lerna", "metro-react-native-babel-preset", "mini-css-extract-plugin", "rollup-plugin-commonjs", "rollup-plugin-node-resolve", "rollup", "ruby", "stripe", "typedoc", "webpack-cli", "webpack", // pdfjs-dist requires the canvas package, which cannot be built in // Windows. // // An unhandled error occurred inside electron-rebuild node-gyp failed // to rebuild // 'D:\a\joplin\joplin\packages\pdf-viewer\node_modules\canvas'. // // https://github.com/mozilla/pdf.js/issues/15112 // // Maybe need to install Canvas separately and follow the instruction // here to setup the build properly on Windows: // https://github.com/Automattic/node-canvas#compiling "pdfjs-dist", // Too complex to upgrade past TinyMCE 5 // https://www.tiny.cloud/docs/tinymce/6/migration-from-5x/ "tinymce", // React Native stuff should be updated only when // upgrading React Native. "@babel/preset-env", "@babel/runtime", "@tsconfig/react-native", "@types/react-native", "androidx.appcompat:appcompat", "babel-plugin-module-resolver", "com.android.tools.build:gradle", "com.facebook.flipper:flipper-fresco-plugin", "com.facebook.flipper:flipper-network-plugin", "com.facebook.flipper:flipper", "com.google.code.gson:gson", "com.google.code.gson", "de.undercouch:gradle-download-task", "jsc-android", "org.robolectric:robolectric", "react-native", // Need special processing when upgrading "katex", "mermaid", // Cannot upgrade further due to ESM support "node-fetch", "execa", "open", // Don't think we can trust this lib because they don't release a // changelog and the latest version appears to have breaking changes // (v0.5.0). Doesn't seem serious unfortunately. // https://github.com/Leonidas-from-XIV/node-xml2js/issues/677 "xml2js", // Looks like upgrading AWS causes the mobile build to fail with the following error: // // error: Error: Unable to resolve module @aws-sdk/chunked-blob-reader from /Users/laurent/src/joplin/packages/lib/node_modules/@aws-sdk/hash-blob-browser/dist-cjs/index.js: @aws-sdk/chunked-blob-reader could not be found within the project or in these directories: // ../lib/node_modules // ../../node_modules // ../../../node_modules // /Users/laurent/src/joplin/packages/app-mobile/node_modules/@aws-sdk/chunked-blob-reader // 2 | Object.defineProperty(exports, "__esModule", { value: true }); // 3 | exports.blobHasher = void 0; // > 4 | const chunked_blob_reader_1 = require("@aws-sdk/chunked-blob-reader"); // | ^ // 5 | const blobHasher = async function blobHasher(hashCtor, blob) { // 6 | const hash = new hashCtor(); // 7 | await (0, chunked_blob_reader_1.blobReader)(blob, (chunk) => { // at ModuleResolver.resolveDependency (/Users/laurent/src/joplin/packages/app-mobile/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:178:15) // // Started failing with: // // "aws-sdk": "2.1340.0" // "@aws-sdk/client-s3": "3.296.0" // "@aws-sdk/s3-request-presigner": "3.296.0" "aws-sdk", "@aws-sdk/client-s3", "@aws-sdk/s3-request-presigner", ], "packageRules": [ { "matchUpdateTypes": ["patch"], "automerge": true, "labels": ["automerge"], }, { "matchUpdateTypes": ["major", "minor", "patch"], "automerge": true, "groupName": "buildTools", "labels": ["automerge"], "extends": ["schedule:monthly"], "matchPackagePatterns": [ // If the apps build and all tests pass, we can assume that Yarn // and TypeScript are safe to upgrade. They are frequently // updated so having them here reduces noise. "eslint", "eslint-*", "jest", "jest-*", "@typescript-eslint/*", "yarn", "typescript", "prettier", // If it builds, it should be safe to merge @types/* packages "@types/*", ], }, // { // "matchUpdateTypes": ["minor", "patch"], // "automerge": true, // "groupName": "aws", // "labels": ["automerge"], // "extends": ["schedule:monthly"], // "matchPackagePatterns": [ // // AWS packages are updated too frequently and we can assume minor // // updates are stable. // "@aws-sdk/*", // "aws-sdk", // ], // }, ] }