From 08ad8ca8b81866bad7944701ae0b95fc0f66914e Mon Sep 17 00:00:00 2001 From: zyc9012 Date: Thu, 24 Jul 2025 09:48:41 +0800 Subject: [PATCH 1/4] Bump 2.2.0 --- .github/workflows/release.yml | 2 ++ version.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e97caa4..c03d63e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -10,6 +10,8 @@ on: jobs: release: runs-on: ubuntu-latest + permissions: + contents: write steps: - name: Checkout repo uses: actions/checkout@v4 diff --git a/version.ts b/version.ts index c640f4c..cf2f82f 100644 --- a/version.ts +++ b/version.ts @@ -4,4 +4,4 @@ * * Changing this value creates a new release. */ -export const version = "2.1.0"; +export const version = "2.2.0"; From c6297026629aefa2ea2c57decd6f5d55ecbd1836 Mon Sep 17 00:00:00 2001 From: zyc9012 Date: Sat, 26 Jul 2025 07:25:35 +0800 Subject: [PATCH 2/4] Fix wrong .npmignore file --- scripts/build_npm.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/scripts/build_npm.ts b/scripts/build_npm.ts index a88a0de..8e817cd 100644 --- a/scripts/build_npm.ts +++ b/scripts/build_npm.ts @@ -75,3 +75,13 @@ await build({ Deno.copyFileSync("LICENSE", "npm/LICENSE"); Deno.copyFileSync("README.md", "npm/README.md"); + +// Fix wrong .npmignore file +Deno.writeFileSync( + "npm/.npmignore", + new TextEncoder().encode( + new TextDecoder() + .decode(Deno.readFileSync("npm/.npmignore")) + .replace("src/", "/src/"), + ), +); From 80b51f99c028a34badd5169c6b02ec686544201a Mon Sep 17 00:00:00 2001 From: zyc9012 Date: Sat, 26 Jul 2025 07:28:34 +0800 Subject: [PATCH 3/4] Bump 2.2.1 --- version.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version.ts b/version.ts index cf2f82f..508b8ad 100644 --- a/version.ts +++ b/version.ts @@ -4,4 +4,4 @@ * * Changing this value creates a new release. */ -export const version = "2.2.0"; +export const version = "2.2.1"; From 955c579658ebdf35eceabdf9e2e7e86bef42ca80 Mon Sep 17 00:00:00 2001 From: kenny Date: Sat, 28 Mar 2026 15:09:29 -0600 Subject: [PATCH 4/4] =?UTF-8?q?docs:=20clarify=20proxy=20section=20?= =?UTF-8?q?=E2=80=94=20SerpApi=20handles=20proxies=20by=20default?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add a note explaining that SerpApi handles proxies server-side and this config is only for routing through a corporate or network proxy. Fixes #32 --- README.md | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 0cb56f2..a7ffff0 100644 --- a/README.md +++ b/README.md @@ -118,9 +118,13 @@ await getJson({ engine: "google", api_key: API_KEY_2, q: "coffee" }); // API_KEY ### Using a Proxy -You can use a proxy by passing `requestOptions` with an `HttpsProxyAgent` -instance. This can be done either globally through the config object or -per-request in the parameters. +> **Note:** SerpApi handles proxies on its end — you do **not** need to supply +> your own proxy to avoid blocks or CAPTCHAs. This option is only for users who +> need to route all outbound requests through a corporate or network proxy. + +You can route requests through your own proxy by passing `requestOptions` with +an `HttpsProxyAgent` instance. This can be done either globally through the +config object or per-request in the parameters. First, install the required package: