renovate 44.189.0 → 44.190.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.
@@ -154,7 +154,7 @@ var node_js_schedule_default = {
154
154
  v27: {
155
155
  "alpha": "2026-10-28",
156
156
  "start": "2027-04-22",
157
- "maintenance": "2027-10-20",
157
+ "lts": "2027-10-20",
158
158
  "end": "2030-04-30",
159
159
  "codename": ""
160
160
  }
@@ -30,8 +30,7 @@ function isStable(version) {
30
30
  if (!api$1.isStable(version)) return false;
31
31
  const schedule = findScheduleForVersion(version);
32
32
  if (!schedule) return false;
33
- let ltsStart = schedule.lts;
34
- if (schedule.alpha) ltsStart = schedule.maintenance;
33
+ const ltsStart = schedule.lts;
35
34
  if (!ltsStart) return false;
36
35
  return DateTime.local() > DateTime.fromISO(ltsStart);
37
36
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["npm"],"sources":["../../../../lib/modules/versioning/node/index.ts"],"sourcesContent":["import { DateTime } from 'luxon';\nimport { valid } from 'semver';\nimport npm, { isVersion } from '../npm/index.ts';\nimport type { NewValueConfig, VersioningApi } from '../types.ts';\nimport { findScheduleForCodename, findScheduleForVersion } from './schedule.ts';\n\nexport const id = 'node';\nexport const displayName = 'Node.js';\nexport const urls = [];\nexport const supportsRanges = false;\n\nfunction normalizeValue(value: string): string {\n const schedule = findScheduleForCodename(value);\n if (schedule) {\n const major = schedule.version.replace('v', '');\n return `^${major}`;\n }\n return value;\n}\n\nfunction getNewValue({\n currentValue,\n rangeStrategy,\n currentVersion,\n newVersion,\n}: NewValueConfig): string | null {\n // Try to use codename if the current value is a codename\n if (rangeStrategy !== 'pin' && findScheduleForCodename(currentValue)) {\n const newSchedule = findScheduleForVersion(newVersion);\n if (newSchedule?.codename) {\n return newSchedule.codename.toLowerCase();\n }\n }\n const res = npm.getNewValue({\n currentValue: normalizeValue(currentValue),\n rangeStrategy,\n currentVersion,\n newVersion,\n });\n if (res && isVersion(res)) {\n // normalize out any 'v' prefix\n return valid(res);\n }\n return res;\n}\n\nexport function isValid(version: string): boolean {\n return npm.isValid(normalizeValue(version));\n}\n\nexport function isStable(version: string): boolean {\n if (!npm.isStable(version)) {\n return false;\n }\n\n const schedule = findScheduleForVersion(version);\n if (!schedule) {\n return false;\n }\n\n // Node 27+ reworked the release schedule: the dedicated LTS date was dropped\n // (every line now eventually becomes LTS), so the LTS-promotion point is read\n // from a different milestone for those newer entries.\n let ltsStart = schedule.lts;\n if (schedule.alpha) {\n ltsStart = schedule.maintenance;\n }\n if (!ltsStart) {\n return false;\n }\n\n // We only track when a major line as a whole reached LTS, not which specific\n // release started it — so every release of that major counts as stable once\n // that date passes, even an early one like 18.0.0 that shipped before Node\n // 18's first LTS release (18.12.0). This coarse granularity is intentional.\n return DateTime.local() > DateTime.fromISO(ltsStart);\n}\n\nexport function matches(version: string, range: string): boolean {\n return npm.matches(version, normalizeValue(range));\n}\n\nexport function getSatisfyingVersion(\n versions: string[],\n range: string,\n): string | null {\n return npm.getSatisfyingVersion(versions, normalizeValue(range));\n}\n\nexport function minSatisfyingVersion(\n versions: string[],\n range: string,\n): string | null {\n return npm.minSatisfyingVersion(versions, normalizeValue(range));\n}\n\nexport const api: VersioningApi = {\n ...npm,\n isStable,\n getNewValue,\n isValid,\n matches,\n getSatisfyingVersion,\n minSatisfyingVersion,\n allowUnstableMajorUpgrades: true,\n};\n\nexport default api;\n"],"mappings":";;;;;AAMA,MAAa,KAAK;AAKlB,SAAS,eAAe,OAAuB;CAC7C,MAAM,WAAW,wBAAwB,KAAK;CAC9C,IAAI,UAEF,OAAO,IADO,SAAS,QAAQ,QAAQ,KAAK,EAC7B;CAEjB,OAAO;AACT;AAEA,SAAS,YAAY,EACnB,cACA,eACA,gBACA,cACgC;CAEhC,IAAI,kBAAkB,SAAS,wBAAwB,YAAY,GAAG;EACpE,MAAM,cAAc,uBAAuB,UAAU;EACrD,IAAI,aAAa,UACf,OAAO,YAAY,SAAS,YAAY;CAE5C;CACA,MAAM,MAAMA,MAAI,YAAY;EAC1B,cAAc,eAAe,YAAY;EACzC;EACA;EACA;CACF,CAAC;CACD,IAAI,OAAO,UAAU,GAAG,GAEtB,OAAO,MAAM,GAAG;CAElB,OAAO;AACT;AAEA,SAAgB,QAAQ,SAA0B;CAChD,OAAOA,MAAI,QAAQ,eAAe,OAAO,CAAC;AAC5C;AAEA,SAAgB,SAAS,SAA0B;CACjD,IAAI,CAACA,MAAI,SAAS,OAAO,GACvB,OAAO;CAGT,MAAM,WAAW,uBAAuB,OAAO;CAC/C,IAAI,CAAC,UACH,OAAO;CAMT,IAAI,WAAW,SAAS;CACxB,IAAI,SAAS,OACX,WAAW,SAAS;CAEtB,IAAI,CAAC,UACH,OAAO;CAOT,OAAO,SAAS,MAAM,IAAI,SAAS,QAAQ,QAAQ;AACrD;AAEA,SAAgB,QAAQ,SAAiB,OAAwB;CAC/D,OAAOA,MAAI,QAAQ,SAAS,eAAe,KAAK,CAAC;AACnD;AAEA,SAAgB,qBACd,UACA,OACe;CACf,OAAOA,MAAI,qBAAqB,UAAU,eAAe,KAAK,CAAC;AACjE;AAEA,SAAgB,qBACd,UACA,OACe;CACf,OAAOA,MAAI,qBAAqB,UAAU,eAAe,KAAK,CAAC;AACjE;AAEA,MAAa,MAAqB;CAChC,GAAGA;CACH;CACA;CACA;CACA;CACA;CACA;CACA,4BAA4B;AAC9B"}
1
+ {"version":3,"file":"index.js","names":["npm"],"sources":["../../../../lib/modules/versioning/node/index.ts"],"sourcesContent":["import { DateTime } from 'luxon';\nimport { valid } from 'semver';\nimport npm, { isVersion } from '../npm/index.ts';\nimport type { NewValueConfig, VersioningApi } from '../types.ts';\nimport { findScheduleForCodename, findScheduleForVersion } from './schedule.ts';\n\nexport const id = 'node';\nexport const displayName = 'Node.js';\nexport const urls = [];\nexport const supportsRanges = false;\n\nfunction normalizeValue(value: string): string {\n const schedule = findScheduleForCodename(value);\n if (schedule) {\n const major = schedule.version.replace('v', '');\n return `^${major}`;\n }\n return value;\n}\n\nfunction getNewValue({\n currentValue,\n rangeStrategy,\n currentVersion,\n newVersion,\n}: NewValueConfig): string | null {\n // Try to use codename if the current value is a codename\n if (rangeStrategy !== 'pin' && findScheduleForCodename(currentValue)) {\n const newSchedule = findScheduleForVersion(newVersion);\n if (newSchedule?.codename) {\n return newSchedule.codename.toLowerCase();\n }\n }\n const res = npm.getNewValue({\n currentValue: normalizeValue(currentValue),\n rangeStrategy,\n currentVersion,\n newVersion,\n });\n if (res && isVersion(res)) {\n // normalize out any 'v' prefix\n return valid(res);\n }\n return res;\n}\n\nexport function isValid(version: string): boolean {\n return npm.isValid(normalizeValue(version));\n}\n\nexport function isStable(version: string): boolean {\n if (!npm.isStable(version)) {\n return false;\n }\n\n const schedule = findScheduleForVersion(version);\n if (!schedule) {\n return false;\n }\n\n const ltsStart = schedule.lts;\n if (!ltsStart) {\n return false;\n }\n\n // We only track when a major line as a whole reached LTS, not which specific\n // release started it — so every release of that major counts as stable once\n // that date passes, even an early one like 18.0.0 that shipped before Node\n // 18's first LTS release (18.12.0). This coarse granularity is intentional.\n return DateTime.local() > DateTime.fromISO(ltsStart);\n}\n\nexport function matches(version: string, range: string): boolean {\n return npm.matches(version, normalizeValue(range));\n}\n\nexport function getSatisfyingVersion(\n versions: string[],\n range: string,\n): string | null {\n return npm.getSatisfyingVersion(versions, normalizeValue(range));\n}\n\nexport function minSatisfyingVersion(\n versions: string[],\n range: string,\n): string | null {\n return npm.minSatisfyingVersion(versions, normalizeValue(range));\n}\n\nexport const api: VersioningApi = {\n ...npm,\n isStable,\n getNewValue,\n isValid,\n matches,\n getSatisfyingVersion,\n minSatisfyingVersion,\n allowUnstableMajorUpgrades: true,\n};\n\nexport default api;\n"],"mappings":";;;;;AAMA,MAAa,KAAK;AAKlB,SAAS,eAAe,OAAuB;CAC7C,MAAM,WAAW,wBAAwB,KAAK;CAC9C,IAAI,UAEF,OAAO,IADO,SAAS,QAAQ,QAAQ,KAAK,EAC7B;CAEjB,OAAO;AACT;AAEA,SAAS,YAAY,EACnB,cACA,eACA,gBACA,cACgC;CAEhC,IAAI,kBAAkB,SAAS,wBAAwB,YAAY,GAAG;EACpE,MAAM,cAAc,uBAAuB,UAAU;EACrD,IAAI,aAAa,UACf,OAAO,YAAY,SAAS,YAAY;CAE5C;CACA,MAAM,MAAMA,MAAI,YAAY;EAC1B,cAAc,eAAe,YAAY;EACzC;EACA;EACA;CACF,CAAC;CACD,IAAI,OAAO,UAAU,GAAG,GAEtB,OAAO,MAAM,GAAG;CAElB,OAAO;AACT;AAEA,SAAgB,QAAQ,SAA0B;CAChD,OAAOA,MAAI,QAAQ,eAAe,OAAO,CAAC;AAC5C;AAEA,SAAgB,SAAS,SAA0B;CACjD,IAAI,CAACA,MAAI,SAAS,OAAO,GACvB,OAAO;CAGT,MAAM,WAAW,uBAAuB,OAAO;CAC/C,IAAI,CAAC,UACH,OAAO;CAGT,MAAM,WAAW,SAAS;CAC1B,IAAI,CAAC,UACH,OAAO;CAOT,OAAO,SAAS,MAAM,IAAI,SAAS,QAAQ,QAAQ;AACrD;AAEA,SAAgB,QAAQ,SAAiB,OAAwB;CAC/D,OAAOA,MAAI,QAAQ,SAAS,eAAe,KAAK,CAAC;AACnD;AAEA,SAAgB,qBACd,UACA,OACe;CACf,OAAOA,MAAI,qBAAqB,UAAU,eAAe,KAAK,CAAC;AACjE;AAEA,SAAgB,qBACd,UACA,OACe;CACf,OAAOA,MAAI,qBAAqB,UAAU,eAAe,KAAK,CAAC;AACjE;AAEA,MAAa,MAAqB;CAChC,GAAGA;CACH;CACA;CACA;CACA;CACA;CACA;CACA,4BAA4B;AAC9B"}
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": "44.189.0",
4
+ "version": "44.190.0",
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 44.189.0 config files (https://renovatebot.com/)",
3
+ "title": "JSON schema for Renovate 44.190.0 config files (https://renovatebot.com/)",
4
4
  "$schema": "http://json-schema.org/draft-07/schema#",
5
- "x-renovate-version": "44.189.0",
5
+ "x-renovate-version": "44.190.0",
6
6
  "allowComments": true,
7
7
  "type": "object",
8
8
  "definitions": {