diff --git a/packages/datadog-instrumentations/src/helpers/matrices.json b/packages/datadog-instrumentations/src/helpers/matrices.json index 1eb87fbfb3d..098f36e2bc5 100644 --- a/packages/datadog-instrumentations/src/helpers/matrices.json +++ b/packages/datadog-instrumentations/src/helpers/matrices.json @@ -6,6 +6,7 @@ ], "range": [ "2.4.2 - 2.6.12", + "3.0.0 - 3.0.5", "3.0.7 - 3.2.7", "4.0.0 - 4.4.2" ], @@ -29,7 +30,7 @@ }, "amqplib": { "range": [ - "0.5.0 - 0.10.4" + "0.5.3 - 0.10.4" ] }, "@apollo/gateway": { @@ -344,7 +345,7 @@ "4.6.4 - 4.13.21", "5.0.0 - 5.13.22", "6.0.0 - 6.13.3", - "7.0.0 - 7.8.1", + "7.0.0 - 7.8.2", "8.0.0 - 8.6.3" ] }, @@ -383,7 +384,7 @@ "openai": { "range": [ "3.0.0 - 3.3.0", - "4.0.0 - 4.63.0" + "4.0.0 - 4.64.0" ] }, "@opensearch-project/opensearch": { diff --git a/packages/datadog-instrumentations/src/helpers/versions.json b/packages/datadog-instrumentations/src/helpers/versions.json index 552e4814db7..d310e7d38d5 100644 --- a/packages/datadog-instrumentations/src/helpers/versions.json +++ b/packages/datadog-instrumentations/src/helpers/versions.json @@ -6,6 +6,7 @@ "node-versions": { "16": [ "2.4.2 - 2.6.12", + "3.0.0 - 3.2.7", "3.0.7 - 3.2.7", "4.0.0 - 4.4.2" ], @@ -29,7 +30,7 @@ "amqplib": { "min-version": "0.5.0", "range": [ - "0.5.0 - 0.10.4" + "0.5.3 - 0.10.4" ] }, "@apollo/gateway": { @@ -386,7 +387,7 @@ "4.6.4 - 4.13.21", "5.0.0 - 5.13.22", "6.0.0 - 6.13.3", - "7.0.0 - 7.8.1", + "7.0.0 - 7.8.2", "8.0.0 - 8.6.3" ] }, @@ -430,7 +431,7 @@ "min-version": "3.0.0", "range": [ "3.0.0 - 3.3.0", - "4.0.0 - 4.63.0" + "4.0.0 - 4.64.0" ] }, "@opensearch-project/opensearch": { diff --git a/scripts/outdated.js b/scripts/outdated.js index a23610023e2..9ce64f9761c 100644 --- a/scripts/outdated.js +++ b/scripts/outdated.js @@ -55,10 +55,6 @@ function makeAPR (branchName) { execSync(`gh pr create --title ${title} --body ${body} --base master --head ${branchName} `) } -function splitting (element) { - return +element.split('.')[0] -} - function maxVersion (range) { if (typeof range === 'string') { return range @@ -77,7 +73,7 @@ async function updateRange (name, major) { async function loopRange (name, range) { for (let ele = 0; ele < range.length; ele++) { const latest = range[ele].split(' - ') - const major = splitting(latest[0]) + const major = +latest[0].split('.')[0] latest[1] = await updateRange(name, major) range[ele] = `${latest[0]} - ${latest[1]}` @@ -173,5 +169,9 @@ async function ranges (name, minimum) { return ranges } +function splitting (element) { + return +element.split('.')[0] +} + if (process.argv.includes('fix')) fix() else check()