renovate 40.55.1 → 40.56.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -32,6 +32,7 @@
32
32
  "aspnet extensions": "https://github.com/aspnet/Extensions",
33
33
  "aspnet-api-versioning": "https://github.com/Microsoft/aspnet-api-versioning",
34
34
  "aspnet-health-checks": "https://github.com/xabaril/AspNetCore.Diagnostics.HealthChecks",
35
+ "aspnet-security-oauth-providers": "https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers",
35
36
  "astro": "https://github.com/withastro/astro",
36
37
  "auto": "https://github.com/intuit/auto",
37
38
  "autofixture": "https://github.com/AutoFixture/AutoFixture",
@@ -453,6 +454,7 @@
453
454
  "https://github.com/nuxt/nuxt"
454
455
  ],
455
456
  "okhttp": "https://github.com/square/okhttp",
457
+ "openapi-dotnet": "https://github.com/microsoft/OpenAPI.NET",
456
458
  "opencost": [
457
459
  "https://github.com/opencost/opencost",
458
460
  "https://github.com/opencost/opencost-ui"
@@ -487,6 +489,7 @@
487
489
  "playwright-dotnet": "https://github.com/microsoft/playwright-dotnet",
488
490
  "pnpcore": "https://github.com/pnp/pnpcore",
489
491
  "pnpjs": "https://github.com/pnp/pnpjs",
492
+ "polly": "https://github.com/App-vNext/Polly",
490
493
  "pollyjs": "https://github.com/Netflix/pollyjs",
491
494
  "pothos": "https://github.com/hayes/pothos",
492
495
  "pouchdb": "https://github.com/pouchdb/pouchdb",
@@ -1,8 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.massageMarkdownLinks = massageMarkdownLinks;
4
- const tslib_1 = require("tslib");
5
- const remark_1 = tslib_1.__importDefault(require("remark"));
4
+ const remark_1 = require("remark");
6
5
  const logger_1 = require("../../../logger");
7
6
  const number_1 = require("../../../util/number");
8
7
  const regex_1 = require("../../../util/regex");
@@ -50,7 +49,7 @@ function massageMarkdownLinks(content) {
50
49
  try {
51
50
  const rightSpaces = content.replace(content.trimEnd(), '');
52
51
  const matches = [];
53
- (0, remark_1.default)().use(collectLinkPosition(content, matches)).processSync(content);
52
+ (0, remark_1.remark)().use(collectLinkPosition(content, matches)).processSync(content);
54
53
  const result = matches.reduceRight((acc, { start, end, replaceTo }) => {
55
54
  const leftPart = acc.slice(0, start);
56
55
  const rightPart = acc.slice(end);
@@ -1 +1 @@
1
- {"version":3,"file":"massage-markdown-links.js","sourceRoot":"","sources":["../../../../lib/modules/platform/github/massage-markdown-links.ts"],"names":[],"mappings":";;AA4DA,oDAeC;;AA1ED,4DAA4B;AAE5B,4CAAyC;AACzC,iDAAoD;AACpD,+CAA4C;AAQ5C,4DAA4D;AAC5D,MAAM,QAAQ,GACZ,8IAA8I,CAAC,CAAC,8CAA8C;AAEhM,SAAS,WAAW,CAAC,KAAa;IAChC,OAAO,KAAK,CAAC,OAAO,CAClB,IAAA,aAAK,EAAC,sCAAsC,CAAC,EAC7C,qBAAqB,CACtB,CAAC;AACJ,CAAC;AAED,SAAS,mBAAmB,CAAC,KAAa,EAAE,OAAmB;IAC7D,MAAM,WAAW,GAAG,CAAC,IAAa,EAAQ,EAAE;QAC1C,MAAM,WAAW,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAC9D,MAAM,SAAS,GAAG,IAAA,qBAAY,EAAC,IAAI,CAAC,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;QAE1D,IAAI,IAAI,CAAC,IAAI,KAAK,MAAM,EAAE,CAAC;YACzB,MAAM,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;YACnD,MAAM,GAAG,GAAW,IAAI,CAAC,GAAG,CAAC;YAC7B,MAAM,MAAM,GAAW,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;YAC7D,IAAI,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CA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OAAO,EAAE,EAAE,EAAE,CAAC,CAAC;QAC3D,MAAM,OAAO,GAAe,EAAE,CAAC;QAC/B,IAAA,gBAAM,GAAE,CAAC,GAAG,CAAC,mBAAmB,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACzE,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,EAAE,EAAE;YACpE,MAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,CAAC;YACrC,MAAM,SAAS,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACjC,OAAO,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;QAC1C,CAAC,EAAE,OAAO,CAAC,CAAC;QACZ,OAAO,MAAM,CAAC,OAAO,EAAE,GAAG,WAAW,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,qBAAqB,CAAC,CAAC;QACnC,eAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,iCAAiC,CAAC,CAAC;QACxD,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC,oBAAoB;AACxB,CAAC","sourcesContent":["import type { Content } from 'mdast';\nimport remark from 'remark';\nimport type { Plugin, Transformer } from 'unified';\nimport { logger } from '../../../logger';\nimport { coerceNumber } from '../../../util/number';\nimport { regEx } from '../../../util/regex';\n\ninterface UrlMatch {\n start: number;\n end: number;\n replaceTo: string;\n}\n\n//according to https://github.com/dead-claudia/github-limits\nconst urlRegex =\n /(?:https?:)?(?:\\/\\/)?(?:www\\.)?(?<!api\\.)(?:to)?github\\.com\\/[-a-z0-9]+\\/[-_a-z0-9.]+\\/(?:discussions|issues|pull)\\/[0-9]+(?:#[-_a-z0-9]+)?/i; // TODO #12872 (?<!re) after text not matching\n\nfunction massageLink(input: string): string {\n return input.replace(\n regEx(/(?:to|redirect\\.|www\\.)?github\\.com/i),\n 'redirect.github.com',\n );\n}\n\nfunction collectLinkPosition(input: string, matches: UrlMatch[]): Plugin {\n const transformer = (tree: Content): void => {\n const startOffset = coerceNumber(tree.position?.start.offset);\n const endOffset = coerceNumber(tree.position?.end.offset);\n\n if (tree.type === 'link') {\n const substr = input.slice(startOffset, endOffset);\n const url: string = tree.url;\n const offset: number = startOffset + substr.lastIndexOf(url);\n if (urlRegex.test(url)) {\n matches.push({\n start: offset,\n end: offset + url.length,\n replaceTo: massageLink(url),\n });\n }\n } else if (tree.type === 'text') {\n const globalUrlReg = new RegExp(urlRegex, 'gi');\n const urlMatches = [...tree.value.matchAll(globalUrlReg)];\n for (const match of urlMatches) {\n const [url] = match;\n const start = startOffset + coerceNumber(match.index);\n const end = start + url.length;\n const newUrl = massageLink(url);\n matches.push({ start, end, replaceTo: `[${url}](${newUrl})` });\n }\n } else if ('children' in tree) {\n tree.children.forEach((child: Content) => {\n transformer(child);\n });\n }\n };\n\n return () => transformer as Transformer;\n}\n\nexport function massageMarkdownLinks(content: string): string {\n try {\n const rightSpaces = content.replace(content.trimEnd(), '');\n const matches: UrlMatch[] = [];\n remark().use(collectLinkPosition(content, matches)).processSync(content);\n const result = matches.reduceRight((acc, { start, end, replaceTo }) => {\n const leftPart = acc.slice(0, start);\n const rightPart = acc.slice(end);\n return leftPart + replaceTo + rightPart;\n }, content);\n return result.trimEnd() + rightSpaces;\n } catch (err) /* v8 ignore start */ {\n logger.warn({ err }, `Unable to massage markdown text`);\n return content;\n } /* v8 ignore stop */\n}\n"]}
1
+ {"version":3,"file":"massage-markdown-links.js","sourceRoot":"","sources":["../../../../lib/modules/platform/github/massage-markdown-links.ts"],"names":[],"mappings":";;AA4DA,oDAeC;AA1ED,mCAAgC;AAEhC,4CAAyC;AACzC,iDAAoD;AACpD,+CAA4C;AAQ5C,4DAA4D;AAC5D,MAAM,QAAQ,GACZ,8IAA8I,CAAC,CAAC,8CAA8C;AAEhM,SAA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AG,SAAS,GAAG,SAAS,CAAC;QAC1C,CAAC,EAAE,OAAO,CAAC,CAAC;QACZ,OAAO,MAAM,CAAC,OAAO,EAAE,GAAG,WAAW,CAAC;IACxC,CAAC;IAAC,OAAO,GAAG,EAAE,qBAAqB,CAAC,CAAC;QACnC,eAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,EAAE,iCAAiC,CAAC,CAAC;QACxD,OAAO,OAAO,CAAC;IACjB,CAAC,CAAC,oBAAoB;AACxB,CAAC","sourcesContent":["import type { RootContent } from 'mdast';\nimport { remark } from 'remark';\nimport type { Plugin, Transformer } from 'unified';\nimport { logger } from '../../../logger';\nimport { coerceNumber } from '../../../util/number';\nimport { regEx } from '../../../util/regex';\n\ninterface UrlMatch {\n start: number;\n end: number;\n replaceTo: string;\n}\n\n//according to https://github.com/dead-claudia/github-limits\nconst urlRegex =\n /(?:https?:)?(?:\\/\\/)?(?:www\\.)?(?<!api\\.)(?:to)?github\\.com\\/[-a-z0-9]+\\/[-_a-z0-9.]+\\/(?:discussions|issues|pull)\\/[0-9]+(?:#[-_a-z0-9]+)?/i; // TODO #12872 (?<!re) after text not matching\n\nfunction massageLink(input: string): string {\n return input.replace(\n regEx(/(?:to|redirect\\.|www\\.)?github\\.com/i),\n 'redirect.github.com',\n );\n}\n\nfunction collectLinkPosition(input: string, matches: UrlMatch[]): Plugin {\n const transformer = (tree: RootContent): void => {\n const startOffset = coerceNumber(tree.position?.start.offset);\n const endOffset = coerceNumber(tree.position?.end.offset);\n\n if (tree.type === 'link') {\n const substr = input.slice(startOffset, endOffset);\n const url: string = tree.url;\n const offset: number = startOffset + substr.lastIndexOf(url);\n if (urlRegex.test(url)) {\n matches.push({\n start: offset,\n end: offset + url.length,\n replaceTo: massageLink(url),\n });\n }\n } else if (tree.type === 'text') {\n const globalUrlReg = new RegExp(urlRegex, 'gi');\n const urlMatches = [...tree.value.matchAll(globalUrlReg)];\n for (const match of urlMatches) {\n const [url] = match;\n const start = startOffset + coerceNumber(match.index);\n const end = start + url.length;\n const newUrl = massageLink(url);\n matches.push({ start, end, replaceTo: `[${url}](${newUrl})` });\n }\n } else if ('children' in tree) {\n tree.children.forEach((child: RootContent) => {\n transformer(child);\n });\n }\n };\n\n return () => transformer as Transformer;\n}\n\nexport function massageMarkdownLinks(content: string): string {\n try {\n const rightSpaces = content.replace(content.trimEnd(), '');\n const matches: UrlMatch[] = [];\n remark().use(collectLinkPosition(content, matches)).processSync(content);\n const result = matches.reduceRight((acc, { start, end, replaceTo }) => {\n const leftPart = acc.slice(0, start);\n const rightPart = acc.slice(end);\n return leftPart + replaceTo + rightPart;\n }, content);\n return result.trimEnd() + rightSpaces;\n } catch (err) /* v8 ignore start */ {\n logger.warn({ err }, `Unable to massage markdown text`);\n return content;\n } /* v8 ignore stop */\n}\n"]}
@@ -1,4 +1,4 @@
1
- import github from 'remark-github';
1
+ import type { Options as RemarkGithubOptions } from 'remark-github';
2
2
  export declare function sanitizeMarkdown(markdown: string): string;
3
3
  /**
4
4
  *
@@ -6,4 +6,4 @@ export declare function sanitizeMarkdown(markdown: string): string;
6
6
  * @param options github options
7
7
  * @returns linkified content
8
8
  */
9
- export declare function linkify(content: string, options: github.RemarkGithubOptions): Promise<string>;
9
+ export declare function linkify(content: string, options: RemarkGithubOptions): Promise<string>;
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.sanitizeMarkdown = sanitizeMarkdown;
4
4
  exports.linkify = linkify;
5
5
  const tslib_1 = require("tslib");
6
- const remark_1 = tslib_1.__importDefault(require("remark"));
6
+ const remark_1 = require("remark");
7
7
  const remark_github_1 = tslib_1.__importDefault(require("remark-github"));
8
8
  const regex_1 = require("./regex");
9
9
  // Generic replacements/link-breakers
@@ -33,7 +33,7 @@ function sanitizeMarkdown(markdown) {
33
33
  */
34
34
  async function linkify(content, options) {
35
35
  // https://github.com/syntax-tree/mdast-util-to-markdown#optionsbullet
36
- const output = await (0, remark_1.default)()
36
+ const output = await (0, remark_1.remark)()
37
37
  .use({ settings: { bullet: '-' } })
38
38
  .use(remark_github_1.default, { mentionStrong: false, ...options })
39
39
  .process(content);
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../lib/util/markdown.ts"],"names":[],"mappings":";;AAKA,4CAoBC;AAQD,0BAUC;;AA3CD,4DAA4B;AAC5B,0EAAmC;AACnC,mCAAgC;AAEhC,qCAAqC;AACrC,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,IAAI,GAAG,GAAG,QAAQ,CAAC;IACnB,2DAA2D;IAC3D,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,aAAa,CAAC,EAAE,cAAc,CAAC,CAAC;IACxD,iFAAiF;IACjF,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;IAC3C,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,mBAAmB,CAAC,EAAE,IAAI,CAAC,CAAC;IACpD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,sBAAsB,CAAC,EAAE,YAAY,CAAC,CAAC;IAC/D,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,qCAAqC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC1E,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,wBAAwB,CAAC,EAAE,gBAAgB,CAAC,CAAC;IACrE,sCAAsC;IACtC,MAAM,UAAU,GAAG,IAAA,aAAK,EAAC,uBAAuB,CAAC,CAAC;IAClD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACtC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,CAAC;IACtD,GAAG,GAAG,GAAG,CAAC,OAAO,CACf,IAAA,aAAK,EAAC,kCAAkC,CAAC,EACzC,qBAAqB,CACtB,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,OAAO,CAC3B,OAAe,EACf,OAAmC;IAEnC,sEAAsE;IACtE,MAAM,MAAM,GAAG,MAAM,IAAA,gBAAM,GAAE;SAC1B,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;SAClC,GAAG,CAAC,uBAAM,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC;SACjD,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["import remark from 'remark';\nimport github from 'remark-github';\nimport { regEx } from './regex';\n\n// Generic replacements/link-breakers\nexport function sanitizeMarkdown(markdown: string): string {\n let res = markdown;\n // Put a zero width space after every # followed by a digit\n res = res.replace(regEx(/(\\W)#(\\d)/gi), '$1#&#8203;$2');\n // Put a zero width space after every @ symbol to prevent unintended hyperlinking\n res = res.replace(regEx(/@/g), '@&#8203;');\n res = res.replace(regEx(/(`\\[?@)&#8203;/g), '$1');\n res = res.replace(regEx(/([a-z]@)&#8203;/gi), '$1');\n res = res.replace(regEx(/\\/compare\\/@&#8203;/g), '/compare/@');\n res = res.replace(regEx(/(\\(https:\\/\\/[^)]*?)\\.\\.\\.@&#8203;/g), '$1...@');\n res = res.replace(regEx(/([\\s(])#(\\d+)([)\\s]?)/g), '$1#&#8203;$2$3');\n // convert escaped backticks back to `\n const backTickRe = regEx(/&#x60;([^/]*?)&#x60;/g);\n res = res.replace(backTickRe, '`$1`');\n res = res.replace(regEx(/`#&#8203;(\\d+)`/g), '`#$1`');\n res = res.replace(\n regEx(/(?<before>[^\\n]\\n)(?<title>#.*)/g),\n '$<before>\\n$<title>',\n );\n return res;\n}\n\n/**\n *\n * @param content content to process\n * @param options github options\n * @returns linkified content\n */\nexport async function linkify(\n content: string,\n options: github.RemarkGithubOptions,\n): Promise<string> {\n // https://github.com/syntax-tree/mdast-util-to-markdown#optionsbullet\n const output = await remark()\n .use({ settings: { bullet: '-' } })\n .use(github, { mentionStrong: false, ...options })\n .process(content);\n return output.toString();\n}\n"]}
1
+ {"version":3,"file":"markdown.js","sourceRoot":"","sources":["../../lib/util/markdown.ts"],"names":[],"mappings":";;AAMA,4CAoBC;AAQD,0BAUC;;AA5CD,mCAAgC;AAEhC,0EAAmC;AACnC,mCAAgC;AAEhC,qCAAqC;AACrC,SAAgB,gBAAgB,CAAC,QAAgB;IAC/C,IAAI,GAAG,GAAG,QAAQ,CAAC;IACnB,2DAA2D;IAC3D,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,aAAa,CAAC,EAAE,cAAc,CAAC,CAAC;IACxD,iFAAiF;IACjF,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,IAAI,CAAC,EAAE,UAAU,CAAC,CAAC;IAC3C,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,iBAAiB,CAAC,EAAE,IAAI,CAAC,CAAC;IAClD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,mBAAmB,CAAC,EAAE,IAAI,CAAC,CAAC;IACpD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,sBAAsB,CAAC,EAAE,YAAY,CAAC,CAAC;IAC/D,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,qCAAqC,CAAC,EAAE,QAAQ,CAAC,CAAC;IAC1E,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,wBAAwB,CAAC,EAAE,gBAAgB,CAAC,CAAC;IACrE,sCAAsC;IACtC,MAAM,UAAU,GAAG,IAAA,aAAK,EAAC,uBAAuB,CAAC,CAAC;IAClD,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,CAAC;IACtC,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,IAAA,aAAK,EAAC,kBAAkB,CAAC,EAAE,OAAO,CAAC,CAAC;IACtD,GAAG,GAAG,GAAG,CAAC,OAAO,CACf,IAAA,aAAK,EAAC,kCAAkC,CAAC,EACzC,qBAAqB,CACtB,CAAC;IACF,OAAO,GAAG,CAAC;AACb,CAAC;AAED;;;;;GAKG;AACI,KAAK,UAAU,OAAO,CAC3B,OAAe,EACf,OAA4B;IAE5B,sEAAsE;IACtE,MAAM,MAAM,GAAG,MAAM,IAAA,eAAM,GAAE;SAC1B,GAAG,CAAC,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC;SAClC,GAAG,CAAC,uBAAM,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC;SACjD,OAAO,CAAC,OAAO,CAAC,CAAC;IACpB,OAAO,MAAM,CAAC,QAAQ,EAAE,CAAC;AAC3B,CAAC","sourcesContent":["import { remark } from 'remark';\nimport type { Options as RemarkGithubOptions } from 'remark-github';\nimport github from 'remark-github';\nimport { regEx } from './regex';\n\n// Generic replacements/link-breakers\nexport function sanitizeMarkdown(markdown: string): string {\n let res = markdown;\n // Put a zero width space after every # followed by a digit\n res = res.replace(regEx(/(\\W)#(\\d)/gi), '$1#&#8203;$2');\n // Put a zero width space after every @ symbol to prevent unintended hyperlinking\n res = res.replace(regEx(/@/g), '@&#8203;');\n res = res.replace(regEx(/(`\\[?@)&#8203;/g), '$1');\n res = res.replace(regEx(/([a-z]@)&#8203;/gi), '$1');\n res = res.replace(regEx(/\\/compare\\/@&#8203;/g), '/compare/@');\n res = res.replace(regEx(/(\\(https:\\/\\/[^)]*?)\\.\\.\\.@&#8203;/g), '$1...@');\n res = res.replace(regEx(/([\\s(])#(\\d+)([)\\s]?)/g), '$1#&#8203;$2$3');\n // convert escaped backticks back to `\n const backTickRe = regEx(/&#x60;([^/]*?)&#x60;/g);\n res = res.replace(backTickRe, '`$1`');\n res = res.replace(regEx(/`#&#8203;(\\d+)`/g), '`#$1`');\n res = res.replace(\n regEx(/(?<before>[^\\n]\\n)(?<title>#.*)/g),\n '$<before>\\n$<title>',\n );\n return res;\n}\n\n/**\n *\n * @param content content to process\n * @param options github options\n * @returns linkified content\n */\nexport async function linkify(\n content: string,\n options: RemarkGithubOptions,\n): Promise<string> {\n // https://github.com/syntax-tree/mdast-util-to-markdown#optionsbullet\n const output = await remark()\n .use({ settings: { bullet: '-' } })\n .use(github, { mentionStrong: false, ...options })\n .process(content);\n return output.toString();\n}\n"]}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "renovate",
3
3
  "description": "Automated dependency updates. Flexible so you don't need to be.",
4
- "version": "40.55.1",
4
+ "version": "40.56.0",
5
5
  "type": "commonjs",
6
6
  "bin": {
7
7
  "renovate": "dist/renovate.js",
@@ -242,8 +242,8 @@
242
242
  "protobufjs": "7.5.3",
243
243
  "punycode": "2.3.1",
244
244
  "redis": "4.7.1",
245
- "remark": "13.0.0",
246
- "remark-github": "10.1.0",
245
+ "remark": "15.0.1",
246
+ "remark-github": "12.0.0",
247
247
  "safe-stable-stringify": "2.5.0",
248
248
  "sax": "1.4.1",
249
249
  "semver": "7.7.2",
@@ -299,7 +299,7 @@
299
299
  "@types/luxon": "3.6.2",
300
300
  "@types/markdown-it": "14.1.2",
301
301
  "@types/marshal": "0.5.3",
302
- "@types/mdast": "3.0.15",
302
+ "@types/mdast": "4.0.4",
303
303
  "@types/moo": "0.5.10",
304
304
  "@types/ms": "2.1.0",
305
305
  "@types/node": "22.15.30",
@@ -346,7 +346,7 @@
346
346
  "type-fest": "4.41.0",
347
347
  "typescript": "5.8.3",
348
348
  "typescript-eslint": "8.33.1",
349
- "unified": "9.2.2",
349
+ "unified": "11.0.5",
350
350
  "vite": "6.3.5",
351
351
  "vite-tsconfig-paths": "5.1.4",
352
352
  "vitest": "3.2.2",