renovate 43.242.1 → 43.242.2

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.
@@ -3,7 +3,7 @@ import { DartVersionDatasource } from "../../datasource/dart-version/index.js";
3
3
  import { FlutterVersionDatasource } from "../../datasource/flutter-version/index.js";
4
4
  import { GitRefsDatasource } from "../../datasource/git-refs/index.js";
5
5
  import { parsePubspec } from "./utils.js";
6
- import { isEmptyObject, isObject, isString } from "@sindresorhus/is";
6
+ import { isObject, isString } from "@sindresorhus/is";
7
7
  //#region lib/modules/manager/pub/extract.ts
8
8
  function extractFromSection(pubspec, sectionKey) {
9
9
  const sectionContent = pubspec[sectionKey];
@@ -84,7 +84,6 @@ function extractConstraints(pubspec) {
84
84
  function extractPackageFile(content, packageFile) {
85
85
  const pubspec = parsePubspec(packageFile, content);
86
86
  if (!pubspec) return null;
87
- const extractedConstraints = extractConstraints(pubspec);
88
87
  return {
89
88
  deps: [
90
89
  ...extractFromSection(pubspec, "dependencies"),
@@ -92,7 +91,7 @@ function extractPackageFile(content, packageFile) {
92
91
  ...extractDart(pubspec),
93
92
  ...extractFlutter(pubspec)
94
93
  ],
95
- ...!isEmptyObject(extractedConstraints) && { extractedConstraints }
94
+ extractedConstraints: extractConstraints(pubspec)
96
95
  };
97
96
  }
98
97
  //#endregion
@@ -1 +1 @@
1
- {"version":3,"file":"extract.js","names":[],"sources":["../../../../lib/modules/manager/pub/extract.ts"],"sourcesContent":["import { isEmptyObject, isObject, isString } from '@sindresorhus/is';\nimport type { SkipReason } from '../../../types/index.ts';\nimport type { ConstraintName } from '../../../util/exec/types.ts';\nimport { DartDatasource } from '../../datasource/dart/index.ts';\nimport { DartVersionDatasource } from '../../datasource/dart-version/index.ts';\nimport { FlutterVersionDatasource } from '../../datasource/flutter-version/index.ts';\nimport { GitRefsDatasource } from '../../datasource/git-refs/index.ts';\nimport type { PackageDependency, PackageFileContent } from '../types.ts';\nimport type { Pubspec } from './schema.ts';\nimport { parsePubspec } from './utils.ts';\n\nfunction extractFromSection(\n pubspec: Pubspec,\n sectionKey: keyof Pick<Pubspec, 'dependencies' | 'dev_dependencies'>,\n): PackageDependency[] {\n const sectionContent = pubspec[sectionKey];\n if (!sectionContent) {\n return [];\n }\n\n const skippedPackages = [\n 'flutter_driver',\n 'flutter_localizations',\n 'flutter_test',\n 'flutter_web_plugins',\n 'meta',\n ];\n const deps: PackageDependency[] = [];\n for (const depName of Object.keys(sectionContent)) {\n if (skippedPackages.includes(depName)) {\n continue;\n }\n\n let currentValue = sectionContent[depName];\n let skipReason: SkipReason | undefined;\n let registryUrls: string[] | undefined;\n let gitUrl: string | undefined;\n\n if (!isString(currentValue)) {\n const version = currentValue.version;\n const path = currentValue.path;\n const hosted = currentValue.hosted;\n const git = currentValue.git;\n\n if (isString(hosted)) {\n registryUrls = [hosted];\n } else if (isString(hosted?.url)) {\n registryUrls = [hosted.url];\n }\n\n if (isObject(git)) {\n gitUrl = git?.url;\n } else if (isString(git)) {\n gitUrl = git;\n }\n\n if (version) {\n currentValue = version;\n } else if (path) {\n currentValue = '';\n skipReason = 'path-dependency';\n } else if (isObject(git) && isString(git?.ref)) {\n currentValue = git.ref;\n } else if (isObject(git) && !isString(git?.ref) && !isString(version)) {\n currentValue = '';\n skipReason = 'unspecified-version';\n } else {\n currentValue = '';\n }\n }\n\n if (gitUrl === undefined) {\n deps.push({\n depName,\n depType: sectionKey,\n currentValue,\n datasource: DartDatasource.id,\n ...(registryUrls && { registryUrls }),\n skipReason,\n });\n } else {\n deps.push({\n depName,\n depType: sectionKey,\n packageName: gitUrl,\n datasource: GitRefsDatasource.id,\n currentValue,\n skipReason,\n });\n }\n }\n\n return deps;\n}\n\nfunction extractDart(pubspec: Pubspec): PackageDependency[] {\n return [\n {\n depName: 'dart',\n currentValue: pubspec.environment.sdk,\n datasource: DartVersionDatasource.id,\n },\n ];\n}\n\nfunction extractFlutter(pubspec: Pubspec): PackageDependency[] {\n const currentValue = pubspec.environment.flutter;\n if (!currentValue) {\n return [];\n }\n\n return [\n {\n depName: 'flutter',\n currentValue,\n datasource: FlutterVersionDatasource.id,\n },\n ];\n}\n\nfunction extractConstraints(\n pubspec: Pubspec,\n): Partial<Record<ConstraintName, string>> {\n const extractedConstraints: Partial<Record<ConstraintName, string>> = {\n // environment.sdk is a required field in a pubspec\n dart: pubspec.environment.sdk,\n };\n\n if (pubspec.environment.flutter) {\n extractedConstraints.flutter = pubspec.environment.flutter;\n }\n\n return extractedConstraints;\n}\n\nexport function extractPackageFile(\n content: string,\n packageFile: string,\n): PackageFileContent | null {\n const pubspec = parsePubspec(packageFile, content);\n if (!pubspec) {\n return null;\n }\n\n const extractedConstraints = extractConstraints(pubspec);\n\n return {\n deps: [\n ...extractFromSection(pubspec, 'dependencies'),\n ...extractFromSection(pubspec, 'dev_dependencies'),\n ...extractDart(pubspec),\n ...extractFlutter(pubspec),\n ],\n ...(!isEmptyObject(extractedConstraints) && { extractedConstraints }),\n };\n}\n"],"mappings":";;;;;;;AAWA,SAAS,mBACP,SACA,YACqB;CACrB,MAAM,iBAAiB,QAAQ;CAC/B,IAAI,CAAC,gBACH,OAAO,CAAC;CAGV,MAAM,kBAAkB;EACtB;EACA;EACA;EACA;EACA;CACF;CACA,MAAM,OAA4B,CAAC;CACnC,KAAK,MAAM,WAAW,OAAO,KAAK,cAAc,GAAG;EACjD,IAAI,gBAAgB,SAAS,OAAO,GAClC;EAGF,IAAI,eAAe,eAAe;EAClC,IAAI;EACJ,IAAI;EACJ,IAAI;EAEJ,IAAI,CAAC,SAAS,YAAY,GAAG;GAC3B,MAAM,UAAU,aAAa;GAC7B,MAAM,OAAO,aAAa;GAC1B,MAAM,SAAS,aAAa;GAC5B,MAAM,MAAM,aAAa;GAEzB,IAAI,SAAS,MAAM,GACjB,eAAe,CAAC,MAAM;QACjB,IAAI,SAAS,QAAQ,GAAG,GAC7B,eAAe,CAAC,OAAO,GAAG;GAG5B,IAAI,SAAS,GAAG,GACd,SAAS,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AAe,OAAO;EAC3B;EACA,GAAI,CAAC,cAAc,oBAAoB,KAAK,EAAE,qBAAqB;CACrE;AACF"}
1
+ {"version":3,"file":"extract.js","names":[],"sources":["../../../../lib/modules/manager/pub/extract.ts"],"sourcesContent":["import { isObject, isString } from '@sindresorhus/is';\nimport type { SkipReason } from '../../../types/index.ts';\nimport type { ConstraintName } from '../../../util/exec/types.ts';\nimport { DartDatasource } from '../../datasource/dart/index.ts';\nimport { DartVersionDatasource } from '../../datasource/dart-version/index.ts';\nimport { FlutterVersionDatasource } from '../../datasource/flutter-version/index.ts';\nimport { GitRefsDatasource } from '../../datasource/git-refs/index.ts';\nimport type { PackageDependency, PackageFileContent } from '../types.ts';\nimport type { Pubspec } from './schema.ts';\nimport { parsePubspec } from './utils.ts';\n\nfunction extractFromSection(\n pubspec: Pubspec,\n sectionKey: keyof Pick<Pubspec, 'dependencies' | 'dev_dependencies'>,\n): PackageDependency[] {\n const sectionContent = pubspec[sectionKey];\n if (!sectionContent) {\n return [];\n }\n\n const skippedPackages = [\n 'flutter_driver',\n 'flutter_localizations',\n 'flutter_test',\n 'flutter_web_plugins',\n 'meta',\n ];\n const deps: PackageDependency[] = [];\n for (const depName of Object.keys(sectionContent)) {\n if (skippedPackages.includes(depName)) {\n continue;\n }\n\n let currentValue = sectionContent[depName];\n let skipReason: SkipReason | undefined;\n let registryUrls: string[] | undefined;\n let gitUrl: string | undefined;\n\n if (!isString(currentValue)) {\n const version = currentValue.version;\n const path = currentValue.path;\n const hosted = currentValue.hosted;\n const git = currentValue.git;\n\n if (isString(hosted)) {\n registryUrls = [hosted];\n } else if (isString(hosted?.url)) {\n registryUrls = [hosted.url];\n }\n\n if (isObject(git)) {\n gitUrl = git?.url;\n } else if (isString(git)) {\n gitUrl = git;\n }\n\n if (version) {\n currentValue = version;\n } else if (path) {\n currentValue = '';\n skipReason = 'path-dependency';\n } else if (isObject(git) && isString(git?.ref)) {\n currentValue = git.ref;\n } else if (isObject(git) && !isString(git?.ref) && !isString(version)) {\n currentValue = '';\n skipReason = 'unspecified-version';\n } else {\n currentValue = '';\n }\n }\n\n if (gitUrl === undefined) {\n deps.push({\n depName,\n depType: sectionKey,\n currentValue,\n datasource: DartDatasource.id,\n ...(registryUrls && { registryUrls }),\n skipReason,\n });\n } else {\n deps.push({\n depName,\n depType: sectionKey,\n packageName: gitUrl,\n datasource: GitRefsDatasource.id,\n currentValue,\n skipReason,\n });\n }\n }\n\n return deps;\n}\n\nfunction extractDart(pubspec: Pubspec): PackageDependency[] {\n return [\n {\n depName: 'dart',\n currentValue: pubspec.environment.sdk,\n datasource: DartVersionDatasource.id,\n },\n ];\n}\n\nfunction extractFlutter(pubspec: Pubspec): PackageDependency[] {\n const currentValue = pubspec.environment.flutter;\n if (!currentValue) {\n return [];\n }\n\n return [\n {\n depName: 'flutter',\n currentValue,\n datasource: FlutterVersionDatasource.id,\n },\n ];\n}\n\nfunction extractConstraints(\n pubspec: Pubspec,\n): Partial<Record<ConstraintName, string>> {\n const extractedConstraints: Partial<Record<ConstraintName, string>> = {\n // environment.sdk is a required field in a pubspec\n dart: pubspec.environment.sdk,\n };\n\n if (pubspec.environment.flutter) {\n extractedConstraints.flutter = pubspec.environment.flutter;\n }\n\n return extractedConstraints;\n}\n\nexport function extractPackageFile(\n content: string,\n packageFile: string,\n): PackageFileContent | null {\n const pubspec = parsePubspec(packageFile, content);\n if (!pubspec) {\n return null;\n }\n\n return {\n deps: [\n ...extractFromSection(pubspec, 'dependencies'),\n ...extractFromSection(pubspec, 'dev_dependencies'),\n ...extractDart(pubspec),\n ...extractFlutter(pubspec),\n ],\n extractedConstraints: extractConstraints(pubspec),\n };\n}\n"],"mappings":";;;;;;;AAWA,SAAS,mBACP,SACA,YACqB;CACrB,MAAM,iBAAiB,QAAQ;CAC/B,IAAI,CAAC,gBACH,OAAO,CAAC;CAGV,MAAM,kBAAkB;EACtB;EACA;EACA;EACA;EACA;CACF;CACA,MAAM,OAA4B,CAAC;CACnC,KAAK,MAAM,W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A,SAAS,mBACP,SACyC;CACzC,MAAM,uBAAgE,EAEpE,MAAM,QAAQ,YAAY,IAC5B;CAEA,IAAI,QAAQ,YAAY,SACtB,qBAAqB,UAAU,QAAQ,YAAY;CAGrD,OAAO;AACT;AAEA,SAAgB,mBACd,SACA,aAC2B;CAC3B,MAAM,UAAU,aAAa,aAAa,OAAO;CACjD,IAAI,CAAC,SACH,OAAO;CAGT,OAAO;EACL,MAAM;GACJ,GAAG,mBAAmB,SAAS,cAAc;GAC7C,GAAG,mBAAmB,SAAS,kBAAkB;GACjD,GAAG,YAAY,OAAO;GACtB,GAAG,eAAe,OAAO;EAC3B;EACA,sBAAsB,mBAAmB,OAAO;CAClD;AACF"}
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": "43.242.1",
4
+ "version": "43.242.2",
5
5
  "type": "module",
6
6
  "bin": {
7
7
  "renovate": "dist/renovate.js",
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "$id": "https://docs.renovatebot.com/renovate-schema.json",
3
- "title": "JSON schema for Renovate 43.242.1 config files (https://renovatebot.com/)",
3
+ "title": "JSON schema for Renovate 43.242.2 config files (https://renovatebot.com/)",
4
4
  "$schema": "http://json-schema.org/draft-07/schema#",
5
- "x-renovate-version": "43.242.1",
5
+ "x-renovate-version": "43.242.2",
6
6
  "allowComments": true,
7
7
  "type": "object",
8
8
  "definitions": {