From cd92ae9056b6dbfd13b633a5ecf91f67ce96f88f Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 14:12:04 +0000 Subject: [PATCH 1/4] fix(deps): update dependency @netlify/serverless-functions-api to v1.18.1 (#497) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [@netlify/serverless-functions-api](https://togithub.com/netlify/serverless-functions-api) | [`1.18.0` -> `1.18.1`](https://renovatebot.com/diffs/npm/@netlify%2fserverless-functions-api/1.18.0/1.18.1) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@netlify%2fserverless-functions-api/1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@netlify%2fserverless-functions-api/1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@netlify%2fserverless-functions-api/1.18.0/1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@netlify%2fserverless-functions-api/1.18.0/1.18.1?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
netlify/serverless-functions-api (@​netlify/serverless-functions-api) ### [`v1.18.1`](https://togithub.com/netlify/serverless-functions-api/blob/HEAD/CHANGELOG.md#1181-2024-05-07) [Compare Source](https://togithub.com/netlify/serverless-functions-api/compare/v1.18.0...v1.18.1) ##### Bug Fixes - register fingerprint in global scope ([#​225](https://togithub.com/netlify/serverless-functions-api/issues/225)) ([bda1da9](https://togithub.com/netlify/serverless-functions-api/commit/bda1da98910d1f0a2c5b7b9e4b76f86a2b475a8b)) - replace mswjs with own fingerprint implementation ([#​228](https://togithub.com/netlify/serverless-functions-api/issues/228)) ([e1a2526](https://togithub.com/netlify/serverless-functions-api/commit/e1a252676d35a61c654439d3b23be8d0f3cd4c11))
--- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/netlify/functions). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 113 +++------------------------------------------- package.json | 2 +- 2 files changed, 8 insertions(+), 107 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6a4d988a..070e4d56 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.6.3", "license": "MIT", "dependencies": { - "@netlify/serverless-functions-api": "1.18.0" + "@netlify/serverless-functions-api": "1.18.1" }, "devDependencies": { "@arethetypeswrong/cli": "^0.15.0", @@ -1776,22 +1776,6 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, - "node_modules/@mswjs/interceptors": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.27.2.tgz", - "integrity": "sha512-mE6PhwcoW70EX8+h+Y/4dLfHk33GFt/y5PzDJz56ktMyaVGFXMJ5BYLbUjdmGEABfE0x5GgAGyKbrbkYww2s3A==", - "dependencies": { - "@open-draft/deferred-promise": "^2.2.0", - "@open-draft/logger": "^0.3.0", - "@open-draft/until": "^2.0.0", - "is-node-process": "^1.2.0", - "outvariant": "^1.2.1", - "strict-event-emitter": "^0.5.1" - }, - "engines": { - "node": ">=18" - } - }, "node_modules/@netlify/eslint-config-node": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-7.0.1.tgz", @@ -1973,11 +1957,10 @@ } }, "node_modules/@netlify/serverless-functions-api": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.18.0.tgz", - "integrity": "sha512-VCU5btoGZ8M6iI7HSwpfZXCpBLKWFmRtq5xYt0K7dY96BZWVBmaZY6Tn+w4L2DrGXwAsIeOFNp8CHjVXfuCAkg==", + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.18.1.tgz", + "integrity": "sha512-DrSvivchuwsuQW03zbVPT3nxCQa5tn7m4aoPOsQKibuJXIuSbfxzCBxPLz0+LchU5ds7YyOaCc9872Y32ngYzg==", "dependencies": { - "@mswjs/interceptors": "0.27.2", "@netlify/node-cookies": "^0.1.0", "@opentelemetry/core": "^1.23.0", "@opentelemetry/otlp-transformer": "^0.50.0", @@ -2025,25 +2008,6 @@ "node": ">= 8" } }, - "node_modules/@open-draft/deferred-promise": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@open-draft/deferred-promise/-/deferred-promise-2.2.0.tgz", - "integrity": "sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==" - }, - "node_modules/@open-draft/logger": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@open-draft/logger/-/logger-0.3.0.tgz", - "integrity": "sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==", - "dependencies": { - "is-node-process": "^1.2.0", - "outvariant": "^1.4.0" - } - }, - "node_modules/@open-draft/until": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@open-draft/until/-/until-2.1.0.tgz", - "integrity": "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==" - }, "node_modules/@opentelemetry/api": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.8.0.tgz", @@ -7440,11 +7404,6 @@ "url": "https://github.com/sponsors/ljharb" } }, - "node_modules/is-node-process": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-node-process/-/is-node-process-1.2.0.tgz", - "integrity": "sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==" - }, "node_modules/is-npm": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-3.0.0.tgz", @@ -9847,11 +9806,6 @@ "node": ">=0.10.0" } }, - "node_modules/outvariant": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.2.tgz", - "integrity": "sha512-Ou3dJ6bA/UJ5GVHxah4LnqDwZRwAmWxrG3wtrHrbGnP4RnLCtA64A4F+ae7Y8ww660JaddSoArUR5HjipWSHAQ==" - }, "node_modules/p-cancelable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", @@ -11371,11 +11325,6 @@ "node": ">= 0.8" } }, - "node_modules/strict-event-emitter": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz", - "integrity": "sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==" - }, "node_modules/string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", @@ -14382,19 +14331,6 @@ "@jridgewell/sourcemap-codec": "^1.4.10" } }, - "@mswjs/interceptors": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/@mswjs/interceptors/-/interceptors-0.27.2.tgz", - "integrity": "sha512-mE6PhwcoW70EX8+h+Y/4dLfHk33GFt/y5PzDJz56ktMyaVGFXMJ5BYLbUjdmGEABfE0x5GgAGyKbrbkYww2s3A==", - "requires": { - "@open-draft/deferred-promise": "^2.2.0", - "@open-draft/logger": "^0.3.0", - "@open-draft/until": "^2.0.0", - "is-node-process": "^1.2.0", - "outvariant": "^1.2.1", - "strict-event-emitter": "^0.5.1" - } - }, "@netlify/eslint-config-node": { "version": "7.0.1", "resolved": "https://registry.npmjs.org/@netlify/eslint-config-node/-/eslint-config-node-7.0.1.tgz", @@ -14515,11 +14451,10 @@ "integrity": "sha512-OAs1xG+FfLX0LoRASpqzVntVV/RpYkgpI0VrUnw2u0Q1qiZUzcPffxRK8HF3gc4GjuhG5ahOEMJ9bswBiZPq0g==" }, "@netlify/serverless-functions-api": { - "version": "1.18.0", - "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.18.0.tgz", - "integrity": "sha512-VCU5btoGZ8M6iI7HSwpfZXCpBLKWFmRtq5xYt0K7dY96BZWVBmaZY6Tn+w4L2DrGXwAsIeOFNp8CHjVXfuCAkg==", + "version": "1.18.1", + "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.18.1.tgz", + "integrity": "sha512-DrSvivchuwsuQW03zbVPT3nxCQa5tn7m4aoPOsQKibuJXIuSbfxzCBxPLz0+LchU5ds7YyOaCc9872Y32ngYzg==", "requires": { - "@mswjs/interceptors": "0.27.2", "@netlify/node-cookies": "^0.1.0", "@opentelemetry/core": "^1.23.0", "@opentelemetry/otlp-transformer": "^0.50.0", @@ -14555,25 +14490,6 @@ "fastq": "^1.6.0" } }, - "@open-draft/deferred-promise": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/@open-draft/deferred-promise/-/deferred-promise-2.2.0.tgz", - "integrity": "sha512-CecwLWx3rhxVQF6V4bAgPS5t+So2sTbPgAzafKkVizyi7tlwpcFpdFqq+wqF2OwNBmqFuu6tOyouTuxgpMfzmA==" - }, - "@open-draft/logger": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/@open-draft/logger/-/logger-0.3.0.tgz", - "integrity": "sha512-X2g45fzhxH238HKO4xbSr7+wBS8Fvw6ixhTDuvLd5mqh6bJJCFAPwU9mPDxbcrRtfxv4u5IHCEH77BmxvXmmxQ==", - "requires": { - "is-node-process": "^1.2.0", - "outvariant": "^1.4.0" - } - }, - "@open-draft/until": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@open-draft/until/-/until-2.1.0.tgz", - "integrity": "sha512-U69T3ItWHvLwGg5eJ0n3I62nWuE6ilHlmz7zM0npLBRvPRd7e6NYmg54vvRtP5mZG7kZqZCFVdsTWo7BPtBujg==" - }, "@opentelemetry/api": { "version": "1.8.0", "resolved": "https://registry.npmjs.org/@opentelemetry/api/-/api-1.8.0.tgz", @@ -18527,11 +18443,6 @@ "integrity": "sha512-dqJvarLawXsFbNDeJW7zAz8ItJ9cd28YufuuFzh0G8pNHjJMnY08Dv7sYX2uF5UpQOwieAeOExEYAWWfu7ZZUA==", "dev": true }, - "is-node-process": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/is-node-process/-/is-node-process-1.2.0.tgz", - "integrity": "sha512-Vg4o6/fqPxIjtxgUH5QLJhwZ7gW5diGCVlXpuUfELC62CuxM1iHcRe51f2W1FDy04Ai4KJkagKjx3XaqyfRKXw==" - }, "is-npm": { "version": "3.0.0", "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-3.0.0.tgz", @@ -20355,11 +20266,6 @@ "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true }, - "outvariant": { - "version": "1.4.2", - "resolved": "https://registry.npmjs.org/outvariant/-/outvariant-1.4.2.tgz", - "integrity": "sha512-Ou3dJ6bA/UJ5GVHxah4LnqDwZRwAmWxrG3wtrHrbGnP4RnLCtA64A4F+ae7Y8ww660JaddSoArUR5HjipWSHAQ==" - }, "p-cancelable": { "version": "1.1.0", "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", @@ -21472,11 +21378,6 @@ "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", "dev": true }, - "strict-event-emitter": { - "version": "0.5.1", - "resolved": "https://registry.npmjs.org/strict-event-emitter/-/strict-event-emitter-0.5.1.tgz", - "integrity": "sha512-vMgjE/GGEPEFnhFub6pa4FmJBRBVOLpIII2hvCZ8Kzb7K0hlHo7mQv6xYrBvCL2LtAIBwFUK8wvuJgTVSQ5MFQ==" - }, "string_decoder": { "version": "1.3.0", "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", diff --git a/package.json b/package.json index c362dcb4..707ba3f8 100644 --- a/package.json +++ b/package.json @@ -79,7 +79,7 @@ "test": "test" }, "dependencies": { - "@netlify/serverless-functions-api": "1.18.0" + "@netlify/serverless-functions-api": "1.18.1" }, "devDependencies": { "@arethetypeswrong/cli": "^0.15.0", From 3d2a6a6e904988c3345d9744e0ef908d45b8e493 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Mon, 13 May 2024 00:16:29 +0000 Subject: [PATCH 2/4] chore(deps): update dependency semver to v7.6.2 (#498) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [semver](https://togithub.com/npm/node-semver) | [`7.6.0` -> `7.6.2`](https://renovatebot.com/diffs/npm/semver/7.6.0/7.6.2) | [![age](https://developer.mend.io/api/mc/badges/age/npm/semver/7.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/semver/7.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/semver/7.6.0/7.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/semver/7.6.0/7.6.2?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
npm/node-semver (semver) ### [`v7.6.2`](https://togithub.com/npm/node-semver/blob/HEAD/CHANGELOG.md#762-2024-05-09) [Compare Source](https://togithub.com/npm/node-semver/compare/v7.6.1...v7.6.2) ##### Bug Fixes - [`6466ba9`](https://togithub.com/npm/node-semver/commit/6466ba9b540252db405fdd2a289dd4651495beea) [#​713](https://togithub.com/npm/node-semver/pull/713) lru: use map.delete() directly ([#​713](https://togithub.com/npm/node-semver/issues/713)) ([@​negezor](https://togithub.com/negezor), [@​lukekarrys](https://togithub.com/lukekarrys)) ### [`v7.6.1`](https://togithub.com/npm/node-semver/blob/HEAD/CHANGELOG.md#761-2024-05-04) [Compare Source](https://togithub.com/npm/node-semver/compare/v7.6.0...v7.6.1) ##### Bug Fixes - [`c570a34`](https://togithub.com/npm/node-semver/commit/c570a348ffc6612af07fe94fa46b9affa5e4eff0) [#​704](https://togithub.com/npm/node-semver/pull/704) linting: no-unused-vars ([@​wraithgar](https://togithub.com/wraithgar)) - [`ad8ff11`](https://togithub.com/npm/node-semver/commit/ad8ff11dd200dac3a05097d9a82d1977ccfa1535) [#​704](https://togithub.com/npm/node-semver/pull/704) use internal cache implementation ([@​mbtools](https://togithub.com/mbtools)) - [`ac9b357`](https://togithub.com/npm/node-semver/commit/ac9b35769ab0ddfefd5a3af4a3ecaf3da2012352) [#​682](https://togithub.com/npm/node-semver/pull/682) typo in compareBuild debug message ([#​682](https://togithub.com/npm/node-semver/issues/682)) ([@​mbtools](https://togithub.com/mbtools)) ##### Dependencies - [`988a8de`](https://togithub.com/npm/node-semver/commit/988a8deb3ea76b9a314a740e66b5fc2f726822f8) [#​709](https://togithub.com/npm/node-semver/pull/709) uninstall `lru-cache` ([#​709](https://togithub.com/npm/node-semver/issues/709)) - [`3fabe4d`](https://togithub.com/npm/node-semver/commit/3fabe4dbfbd199fdb589c076a7f30bc1f18c6614) [#​704](https://togithub.com/npm/node-semver/pull/704) remove lru-cache ##### Chores - [`dd09b60`](https://togithub.com/npm/node-semver/commit/dd09b60da1e618335d7c269426345b336fd5f63d) [#​705](https://togithub.com/npm/node-semver/pull/705) bump [@​npmcli/template-oss](https://togithub.com/npmcli/template-oss) to 4.22.0 ([@​lukekarrys](https://togithub.com/lukekarrys)) - [`ec49cdc`](https://togithub.com/npm/node-semver/commit/ec49cdcece9db0020d6829b246681ff65a393644) [#​701](https://togithub.com/npm/node-semver/pull/701) chore: chore: postinstall for dependabot template-oss PR ([@​lukekarrys](https://togithub.com/lukekarrys)) - [`b236c3d`](https://togithub.com/npm/node-semver/commit/b236c3d2f357a16a733c96ec2ca8c57848b70091) [#​696](https://togithub.com/npm/node-semver/pull/696) add benchmarks ([#​696](https://togithub.com/npm/node-semver/issues/696)) ([@​H4ad](https://togithub.com/H4ad)) - [`692451b`](https://togithub.com/npm/node-semver/commit/692451bd6f75b38a71a99f39da405c94a5954a22) [#​688](https://togithub.com/npm/node-semver/pull/688) various improvements to README ([#​688](https://togithub.com/npm/node-semver/issues/688)) ([@​mbtools](https://togithub.com/mbtools)) - [`5feeb7f`](https://togithub.com/npm/node-semver/commit/5feeb7f4f63061e19a29087115b50cb04135b63e) [#​705](https://togithub.com/npm/node-semver/pull/705) postinstall for dependabot template-oss PR ([@​lukekarrys](https://togithub.com/lukekarrys)) - [`074156f`](https://togithub.com/npm/node-semver/commit/074156f64fa91723fe1ae6af8cc497014b9b7aff) [#​701](https://togithub.com/npm/node-semver/pull/701) bump [@​npmcli/template-oss](https://togithub.com/npmcli/template-oss) from 4.21.3 to 4.21.4 ([@​dependabot](https://togithub.com/dependabot)\[bot])
--- ### Configuration 📅 **Schedule**: Branch creation - "before 4am on Monday" (UTC), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/netlify/functions). Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> --- package-lock.json | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/package-lock.json b/package-lock.json index 070e4d56..d1dace79 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11065,13 +11065,10 @@ } }, "node_modules/semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", "dev": true, - "dependencies": { - "lru-cache": "^6.0.0" - }, "bin": { "semver": "bin/semver.js" }, @@ -21166,13 +21163,10 @@ } }, "semver": { - "version": "7.6.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", - "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "version": "7.6.2", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.2.tgz", + "integrity": "sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w==", + "dev": true }, "semver-diff": { "version": "2.1.0", From 00e262a65de94ebc27282f196eee750ff96cb0de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Paulo=20Ara=C3=BAjo?= <4138302+paulo@users.noreply.github.com> Date: Thu, 16 May 2024 16:02:43 +0200 Subject: [PATCH 3/4] feat: add custom rate limit types (#500) Base types for custom rate limit config type inference (almost forgot). Basically a dried out version of https://github.com/netlify/zip-it-and-ship-it/blob/main/src/rate_limit.ts, but let me know if you think I should just use the original one instead. Related to ADN-294 Will do the same for edge-functions after this one gets through --- src/function/v2.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/function/v2.ts b/src/function/v2.ts index 5f4d8984..45ddc4c2 100644 --- a/src/function/v2.ts +++ b/src/function/v2.ts @@ -3,6 +3,15 @@ export type { Context } from '@netlify/serverless-functions-api' type Path = `/${string}` type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' type CronSchedule = string +type RateLimitAggregator = 'domain' | 'ip' +type RateLimitAction = 'rate_limit' | 'rewrite' + +interface RateLimitConfig { + action?: RateLimitAction + aggregateBy?: RateLimitAggregator | RateLimitAggregator[] + to?: string + windowSize: number +} interface BaseConfig { /** @@ -16,6 +25,8 @@ interface BaseConfig { * function will run for all supported methods. */ method?: HTTPMethod | HTTPMethod[] + + rateLimit?: RateLimitConfig } interface ConfigWithPath extends BaseConfig { From 9c0efdf692d4cec0f64ae38c77d65551ba33dea1 Mon Sep 17 00:00:00 2001 From: "token-generator-app[bot]" <82042599+token-generator-app[bot]@users.noreply.github.com> Date: Thu, 16 May 2024 16:04:59 +0200 Subject: [PATCH 4/4] chore(main): release 2.7.0 (#499) :robot: I have created a release *beep* *boop* --- ## [2.7.0](https://github.com/netlify/functions/compare/v2.6.3...v2.7.0) (2024-05-16) ### Features * add custom rate limit types ([#500](https://github.com/netlify/functions/issues/500)) ([00e262a](https://github.com/netlify/functions/commit/00e262a65de94ebc27282f196eee750ff96cb0de)) ### Bug Fixes * **deps:** update dependency @netlify/serverless-functions-api to v1.18.1 ([#497](https://github.com/netlify/functions/issues/497)) ([cd92ae9](https://github.com/netlify/functions/commit/cd92ae9056b6dbfd13b633a5ecf91f67ce96f88f)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: token-generator-app[bot] <82042599+token-generator-app[bot]@users.noreply.github.com> --- CHANGELOG.md | 12 ++++++++++++ package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5c7ca9f5..1648f875 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [2.7.0](https://github.com/netlify/functions/compare/v2.6.3...v2.7.0) (2024-05-16) + + +### Features + +* add custom rate limit types ([#500](https://github.com/netlify/functions/issues/500)) ([00e262a](https://github.com/netlify/functions/commit/00e262a65de94ebc27282f196eee750ff96cb0de)) + + +### Bug Fixes + +* **deps:** update dependency @netlify/serverless-functions-api to v1.18.1 ([#497](https://github.com/netlify/functions/issues/497)) ([cd92ae9](https://github.com/netlify/functions/commit/cd92ae9056b6dbfd13b633a5ecf91f67ce96f88f)) + ## [2.6.3](https://github.com/netlify/functions/compare/v2.6.2...v2.6.3) (2024-05-03) diff --git a/package-lock.json b/package-lock.json index d1dace79..b202a7bd 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@netlify/functions", - "version": "2.6.3", + "version": "2.7.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@netlify/functions", - "version": "2.6.3", + "version": "2.7.0", "license": "MIT", "dependencies": { "@netlify/serverless-functions-api": "1.18.1" diff --git a/package.json b/package.json index 707ba3f8..81134749 100644 --- a/package.json +++ b/package.json @@ -25,7 +25,7 @@ } } }, - "version": "2.6.3", + "version": "2.7.0", "description": "JavaScript utilities for Netlify Functions", "files": [ "dist/**/*.js",