From d558f3684cab4b7a2fcb84ab08bd93a4b1e91404 Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 3 Nov 2023 08:10:05 +0000 Subject: [PATCH] fix(deps): update dependency @netlify/serverless-functions-api to v1.11.0 (#442) 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.10.1` -> `1.11.0`](https://renovatebot.com/diffs/npm/@netlify%2fserverless-functions-api/1.10.1/1.11.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/@netlify%2fserverless-functions-api/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/@netlify%2fserverless-functions-api/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/@netlify%2fserverless-functions-api/1.10.1/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/@netlify%2fserverless-functions-api/1.10.1/1.11.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
netlify/serverless-functions-api (@​netlify/serverless-functions-api) ### [`v1.11.0`](https://togithub.com/netlify/serverless-functions-api/compare/88771e309ef70169e82736471ad091b0c705e2b2...2cb546e7efc8fde5edf32add76b98ace326bcb0c) [Compare Source](https://togithub.com/netlify/serverless-functions-api/compare/88771e309ef70169e82736471ad091b0c705e2b2...2cb546e7efc8fde5edf32add76b98ace326bcb0c)
--- ### 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> Co-authored-by: Simon Knott --- package-lock.json | 14 +++++++------- package.json | 2 +- src/main.ts | 7 ------- test/types/Netlify_Global.test-d.ts | 6 ++++++ 4 files changed, 14 insertions(+), 15 deletions(-) create mode 100644 test/types/Netlify_Global.test-d.ts diff --git a/package-lock.json b/package-lock.json index 4a15c25d..44623cd3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "2.3.0", "license": "MIT", "dependencies": { - "@netlify/serverless-functions-api": "1.10.1", + "@netlify/serverless-functions-api": "1.11.0", "is-promise": "^4.0.0" }, "devDependencies": { @@ -1377,9 +1377,9 @@ } }, "node_modules/@netlify/serverless-functions-api": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.10.1.tgz", - "integrity": "sha512-KtaC+Z77HUxXEOPhmq4W773CTr0e1zIhXWZRONrfM1AkdphK5c5G+dItj+BQe6LorNSWNNVihBDA5h7WIF2nDQ==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.11.0.tgz", + "integrity": "sha512-3splAsr2CekL7VTwgo6yTvzD2+f269/s+TJafYazonqMNNo31yzvFxD5HpLtni4DNE1ppymVKZ4X/rLN3yl0vQ==", "dependencies": { "@netlify/node-cookies": "^0.1.0", "urlpattern-polyfill": "8.0.2" @@ -12240,9 +12240,9 @@ "integrity": "sha512-OAs1xG+FfLX0LoRASpqzVntVV/RpYkgpI0VrUnw2u0Q1qiZUzcPffxRK8HF3gc4GjuhG5ahOEMJ9bswBiZPq0g==" }, "@netlify/serverless-functions-api": { - "version": "1.10.1", - "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.10.1.tgz", - "integrity": "sha512-KtaC+Z77HUxXEOPhmq4W773CTr0e1zIhXWZRONrfM1AkdphK5c5G+dItj+BQe6LorNSWNNVihBDA5h7WIF2nDQ==", + "version": "1.11.0", + "resolved": "https://registry.npmjs.org/@netlify/serverless-functions-api/-/serverless-functions-api-1.11.0.tgz", + "integrity": "sha512-3splAsr2CekL7VTwgo6yTvzD2+f269/s+TJafYazonqMNNo31yzvFxD5HpLtni4DNE1ppymVKZ4X/rLN3yl0vQ==", "requires": { "@netlify/node-cookies": "^0.1.0", "urlpattern-polyfill": "8.0.2" diff --git a/package.json b/package.json index a66381e3..bce7532a 100644 --- a/package.json +++ b/package.json @@ -53,7 +53,7 @@ "test": "test" }, "dependencies": { - "@netlify/serverless-functions-api": "1.10.1", + "@netlify/serverless-functions-api": "1.11.0", "is-promise": "^4.0.0" }, "devDependencies": { diff --git a/src/main.ts b/src/main.ts index b28ed7b2..a3154338 100644 --- a/src/main.ts +++ b/src/main.ts @@ -1,12 +1,5 @@ -import type { getNetlifyGlobal } from '@netlify/serverless-functions-api' - export { builder } from './lib/builder.js' export { purgeCache } from './lib/purge_cache.js' export { schedule } from './lib/schedule.js' export { stream } from './lib/stream.js' export * from './function/index.js' - -// Ambient type declarations -declare global { - const Netlify: ReturnType -} diff --git a/test/types/Netlify_Global.test-d.ts b/test/types/Netlify_Global.test-d.ts new file mode 100644 index 00000000..db07ee42 --- /dev/null +++ b/test/types/Netlify_Global.test-d.ts @@ -0,0 +1,6 @@ +import { expectAssignable } from 'tsd' + +// eslint-disable-next-line import/no-unassigned-import +import '../../src/main.js' + +expectAssignable<{ env: unknown }>(Netlify)