Commit Graph
15750 Commits
Author SHA1 Message Date
Tony b22fdd8c91 fix(route): remove rejectUnauthorized option (#20864)
ofetch and undici simply ignore it
2026-01-13 10:35:10 +08:00
Tony af2592b10a style: fix no-useless-concat 2026-01-13 03:53:08 +08:00
Tony 6dba3aa744 style: fix eslint issues (#20862)
* style: fix n/no-deprecated-api

* style: fix no-useless-escape

* style: fix default-case

* style: fix unicorn/prefer-string-slice

* feat!: remove informedainews

the site is gone
2026-01-13 03:25:37 +08:00
Tony 242bba6713 fix(route/javbus): remove avgle api usage (#20861) 2026-01-13 00:38:10 +08:00
Stephen Zhou f733a033a4 chore: migrate to oxfmt (#20735)
* chore: migrate to oxfmt

* update

* chore: update

* chore: update

* chore: update
2026-01-13 00:06:06 +08:00
Tony b55a0c0b67 chore: increase build assets timeout to 10 minutes 2026-01-13 00:05:29 +08:00
dependabot[bot]andTony 12eece429c chore(deps): bump otplib from 12.0.1 to 13.0.2 (#20855)
* chore(deps): bump otplib from 12.0.1 to 13.0.2

Bumps [otplib](https://github.com/yeojz/otplib/tree/HEAD/packages/otplib) from 12.0.1 to 13.0.2.
- [Release notes](https://github.com/yeojz/otplib/releases)
- [Commits](https://github.com/yeojz/otplib/commits/v13.0.2/packages/otplib)

---
updated-dependencies:
- dependency-name: otplib
  dependency-version: 13.0.2
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>

* fix: migrate to otplib v13

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Tony <TonyRL@users.noreply.github.com>
2026-01-12 23:49:56 +08:00
dependabot[bot] f0ef4af7d3 chore(deps-dev): bump tsdown from 0.18.4 to 0.19.0 (#20854)
Bumps [tsdown](https://github.com/rolldown/tsdown) from 0.18.4 to 0.19.0.
- [Release notes](https://github.com/rolldown/tsdown/releases)
- [Commits](https://github.com/rolldown/tsdown/compare/v0.18.4...v0.19.0)

---
updated-dependencies:
- dependency-name: tsdown
  dependency-version: 0.19.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 22:41:52 +08:00
dependabot[bot] 6e6e30b324 chore(deps-dev): bump @cloudflare/workers-types (#20853)
Bumps [@cloudflare/workers-types](https://github.com/cloudflare/workerd) from 4.20260109.0 to 4.20260111.0.
- [Release notes](https://github.com/cloudflare/workerd/releases)
- [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md)
- [Commits](https://github.com/cloudflare/workerd/commits)

---
updated-dependencies:
- dependency-name: "@cloudflare/workers-types"
  dependency-version: 4.20260111.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 20:51:42 +08:00
dependabot[bot] 3f20888fe7 chore(deps-dev): bump vite-tsconfig-paths from 6.0.3 to 6.0.4 (#20858)
Bumps [vite-tsconfig-paths](https://github.com/aleclarson/vite-tsconfig-paths) from 6.0.3 to 6.0.4.
- [Release notes](https://github.com/aleclarson/vite-tsconfig-paths/releases)
- [Commits](https://github.com/aleclarson/vite-tsconfig-paths/compare/v6.0.3...v6.0.4)

---
updated-dependencies:
- dependency-name: vite-tsconfig-paths
  dependency-version: 6.0.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 09:27:29 +00:00
dependabot[bot] 319ec3e621 chore(deps): bump @hono/node-server from 1.19.7 to 1.19.8 (#20859)
Bumps [@hono/node-server](https://github.com/honojs/node-server) from 1.19.7 to 1.19.8.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.7...v1.19.8)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 1.19.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 09:14:16 +00:00
dependabot[bot] f36d5540f6 chore(deps-dev): bump @types/node from 25.0.3 to 25.0.6 (#20857)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 25.0.3 to 25.0.6.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 25.0.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 09:09:48 +00:00
dependabot[bot] 4b6a4b1920 chore(deps): bump imapflow from 1.2.4 to 1.2.5 (#20856)
Bumps [imapflow](https://github.com/postalsys/imapflow) from 1.2.4 to 1.2.5.
- [Release notes](https://github.com/postalsys/imapflow/releases)
- [Changelog](https://github.com/postalsys/imapflow/blob/master/CHANGELOG.md)
- [Commits](https://github.com/postalsys/imapflow/compare/v1.2.4...v1.2.5)

---
updated-dependencies:
- dependency-name: imapflow
  dependency-version: 1.2.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 09:09:32 +00:00
dependabot[bot] ff178d7203 chore(deps): bump narou from 2.0.0 to 2.0.1 (#20852)
Bumps [narou](https://github.com/deflis/node-narou) from 2.0.0 to 2.0.1.
- [Release notes](https://github.com/deflis/node-narou/releases)
- [Commits](https://github.com/deflis/node-narou/compare/v2.0.0...v2.0.1)

---
updated-dependencies:
- dependency-name: narou
  dependency-version: 2.0.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-12 08:56:06 +00:00
TimoYoung 1851236be6 fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints (#20843)
* fix(route/huxiu): adapt to Nuxt 3 data structure and update API endpoints

- fix article parsing by adding suppmort for Nuxt 3 __NUXT_DATA__ format
- Update channel, club and tag's API endpoints and channel route
- Remove deprecated brief-column route

* set antiCrawler tag, disable bt support tag

* fix(route/huxiu): handle request failures gracefully in fetchItem; add maintainer info

* refactor(route/huxiu): remove unused fetchBriefColumnData and update club example

* refactor(route/huxiu): reduce function complexity in util.ts

- Extract buildCategories() for category array construction
- Extract resolveItemIdentifiers() for guid/link resolution
- Extract extractCounts() for upvotes/downvotes/comments extraction
- Extract extractAuthor() for author field extraction
- Extract extractImageSrc() for image URL extraction
- Extract mapItem() to simplify processItems() map callback
- Simplify fetchItem() by using direct object return
- Simplify processItems() control flow with boolean variables

These changes reduce cyclomatic complexity reported by CodeFactor
for functions at lines 164-218 and 440-490.
2026-01-11 00:39:52 +08:00
dependabot[bot] 3d1167dbe5 chore(deps-dev): bump @vercel/nft from 1.1.1 to 1.2.0 (#20833)
Bumps [@vercel/nft](https://github.com/vercel/nft) from 1.1.1 to 1.2.0.
- [Release notes](https://github.com/vercel/nft/releases)
- [Commits](https://github.com/vercel/nft/compare/1.1.1...1.2.0)

---
updated-dependencies:
- dependency-name: "@vercel/nft"
  dependency-version: 1.2.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-10 00:54:17 +08:00
dependabot[bot] 8cec7a7de0 chore(deps-dev): bump supertest from 7.1.4 to 7.2.2 (#20826)
Bumps [supertest](https://github.com/ladjs/supertest) from 7.1.4 to 7.2.2.
- [Release notes](https://github.com/ladjs/supertest/releases)
- [Commits](https://github.com/ladjs/supertest/compare/v7.1.4...v7.2.2)

---
updated-dependencies:
- dependency-name: supertest
  dependency-version: 7.2.2
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 23:45:29 +08:00
dependabot[bot] 82343e774c chore(deps): bump undici from 7.16.0 to 7.18.2 (#20825)
Bumps [undici](https://github.com/nodejs/undici) from 7.16.0 to 7.18.2.
- [Release notes](https://github.com/nodejs/undici/releases)
- [Commits](https://github.com/nodejs/undici/compare/v7.16.0...v7.18.2)

---
updated-dependencies:
- dependency-name: undici
  dependency-version: 7.18.2
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 23:43:34 +08:00
dependabot[bot] c340b414ae chore(deps): bump the opentelemetry group with 5 updates (#20838)
Bumps the opentelemetry group with 5 updates:

| Package | From | To |
| --- | --- | --- |
| [@opentelemetry/exporter-prometheus](https://github.com/open-telemetry/opentelemetry-js) | `0.208.0` | `0.209.0` |
| [@opentelemetry/exporter-trace-otlp-http](https://github.com/open-telemetry/opentelemetry-js) | `0.208.0` | `0.209.0` |
| [@opentelemetry/resources](https://github.com/open-telemetry/opentelemetry-js) | `2.2.0` | `2.3.0` |
| [@opentelemetry/sdk-metrics](https://github.com/open-telemetry/opentelemetry-js) | `2.2.0` | `2.3.0` |
| [@opentelemetry/sdk-trace-base](https://github.com/open-telemetry/opentelemetry-js) | `2.2.0` | `2.3.0` |


Updates `@opentelemetry/exporter-prometheus` from 0.208.0 to 0.209.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.208.0...experimental/v0.209.0)

Updates `@opentelemetry/exporter-trace-otlp-http` from 0.208.0 to 0.209.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/experimental/v0.208.0...experimental/v0.209.0)

Updates `@opentelemetry/resources` from 2.2.0 to 2.3.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/v2.2.0...v2.3.0)

Updates `@opentelemetry/sdk-metrics` from 2.2.0 to 2.3.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/v2.2.0...v2.3.0)

Updates `@opentelemetry/sdk-trace-base` from 2.2.0 to 2.3.0
- [Release notes](https://github.com/open-telemetry/opentelemetry-js/releases)
- [Changelog](https://github.com/open-telemetry/opentelemetry-js/blob/main/CHANGELOG.md)
- [Commits](https://github.com/open-telemetry/opentelemetry-js/compare/v2.2.0...v2.3.0)

---
updated-dependencies:
- dependency-name: "@opentelemetry/exporter-prometheus"
  dependency-version: 0.209.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/exporter-trace-otlp-http"
  dependency-version: 0.209.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/resources"
  dependency-version: 2.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/sdk-metrics"
  dependency-version: 2.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
- dependency-name: "@opentelemetry/sdk-trace-base"
  dependency-version: 2.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
  dependency-group: opentelemetry
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 23:24:59 +08:00
Tony 2079d36765 test: double worker test timeout 2026-01-09 23:12:27 +08:00
dependabot[bot] 6969ea493a chore(deps): bump ioredis from 5.9.0 to 5.9.1 (#20841)
Bumps [ioredis](https://github.com/luin/ioredis) from 5.9.0 to 5.9.1.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/redis/ioredis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/luin/ioredis/compare/v5.9.0...v5.9.1)

---
updated-dependencies:
- dependency-name: ioredis
  dependency-version: 5.9.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 21:59:57 +08:00
dependabot[bot] c2c7a16587 chore(deps-dev): bump @cloudflare/workers-types (#20840)
Bumps [@cloudflare/workers-types](https://github.com/cloudflare/workerd) from 4.20260108.0 to 4.20260109.0.
- [Release notes](https://github.com/cloudflare/workerd/releases)
- [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md)
- [Commits](https://github.com/cloudflare/workerd/commits)

---
updated-dependencies:
- dependency-name: "@cloudflare/workers-types"
  dependency-version: 4.20260109.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 21:31:32 +08:00
dependabot[bot] f8966e24c6 chore(deps): bump iconv-lite from 0.7.1 to 0.7.2 (#20842)
Bumps [iconv-lite](https://github.com/pillarjs/iconv-lite) from 0.7.1 to 0.7.2.
- [Release notes](https://github.com/pillarjs/iconv-lite/releases)
- [Changelog](https://github.com/pillarjs/iconv-lite/blob/master/Changelog.md)
- [Commits](https://github.com/pillarjs/iconv-lite/compare/v0.7.1...v0.7.2)

---
updated-dependencies:
- dependency-name: iconv-lite
  dependency-version: 0.7.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 21:30:52 +08:00
dependabot[bot] 86fe5aafc9 chore(deps-dev): bump @stylistic/eslint-plugin from 5.6.1 to 5.7.0 (#20839)
Bumps [@stylistic/eslint-plugin](https://github.com/eslint-stylistic/eslint-stylistic/tree/HEAD/packages/eslint-plugin) from 5.6.1 to 5.7.0.
- [Release notes](https://github.com/eslint-stylistic/eslint-stylistic/releases)
- [Changelog](https://github.com/eslint-stylistic/eslint-stylistic/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint-stylistic/eslint-stylistic/commits/v5.7.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@stylistic/eslint-plugin"
  dependency-version: 5.7.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-09 21:27:51 +08:00
King-of-Infinite-Space 18c78d538b fix(route/douban): support new status card format (#20827) 2026-01-09 06:48:17 +08:00
Tony 69d022c89f fix(route/18comic): update apiDomain (#20835)
* fix(route/18comic): update apiDomain

* docs: add back maintainer information from #8588

* Update utils.ts
2026-01-09 06:35:29 +08:00
dependabot[bot] 5f1f90901e chore(deps): bump ufo from 1.6.1 to 1.6.2 (#20824)
Bumps [ufo](https://github.com/unjs/ufo) from 1.6.1 to 1.6.2.
- [Release notes](https://github.com/unjs/ufo/releases)
- [Changelog](https://github.com/unjs/ufo/blob/main/CHANGELOG.md)
- [Commits](https://github.com/unjs/ufo/compare/v1.6.1...v1.6.2)

---
updated-dependencies:
- dependency-name: ufo
  dependency-version: 1.6.2
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-08 23:49:44 +08:00
dependabot[bot] 802442f8af chore(deps-dev): bump wrangler from 4.54.0 to 4.57.0 (#20832)
Bumps [wrangler](https://github.com/cloudflare/workers-sdk/tree/HEAD/packages/wrangler) from 4.54.0 to 4.57.0.
- [Release notes](https://github.com/cloudflare/workers-sdk/releases)
- [Commits](https://github.com/cloudflare/workers-sdk/commits/wrangler@4.57.0/packages/wrangler)

---
updated-dependencies:
- dependency-name: wrangler
  dependency-version: 4.57.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-08 22:40:55 +08:00
dependabot[bot] 94dcdb52f3 chore(deps): bump googleapis from 169.0.0 to 170.0.0 (#20829)
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 169.0.0 to 170.0.0.
- [Release notes](https://github.com/googleapis/google-api-nodejs-client/releases)
- [Changelog](https://github.com/googleapis/google-api-nodejs-client/blob/main/release-please-config.json)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v169.0.0...googleapis-v170.0.0)

---
updated-dependencies:
- dependency-name: googleapis
  dependency-version: 170.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-08 21:13:19 +08:00
dependabot[bot] f2039d453f chore(deps-dev): bump @cloudflare/workers-types (#20830)
Bumps [@cloudflare/workers-types](https://github.com/cloudflare/workerd) from 4.20260103.0 to 4.20260108.0.
- [Release notes](https://github.com/cloudflare/workerd/releases)
- [Changelog](https://github.com/cloudflare/workerd/blob/main/RELEASE.md)
- [Commits](https://github.com/cloudflare/workerd/commits)

---
updated-dependencies:
- dependency-name: "@cloudflare/workers-types"
  dependency-version: 4.20260108.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-08 21:12:17 +08:00
dependabot[bot] 351f039b01 chore(deps): bump @scalar/hono-api-reference from 0.9.30 to 0.9.32 (#20831)
Bumps [@scalar/hono-api-reference](https://github.com/scalar/scalar/tree/HEAD/integrations/hono) from 0.9.30 to 0.9.32.
- [Release notes](https://github.com/scalar/scalar/releases)
- [Changelog](https://github.com/scalar/scalar/blob/main/integrations/hono/CHANGELOG.md)
- [Commits](https://github.com/scalar/scalar/commits/HEAD/integrations/hono)

---
updated-dependencies:
- dependency-name: "@scalar/hono-api-reference"
  dependency-version: 0.9.32
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-08 21:11:44 +08:00
chris zheng 3f7f5848ba feat: add route for maven central (#20820)
* feat: add route for maven central

* fix: change sort api to Array#toSorted

* Update lib/routes/maven/central.ts

* fix: update url for maven namespace

* fix: use category to tag items

- remove custom query param
- add categories for route

* fix: ensure pubDate contained in data item

* fix: extract date regex into a constant for better readability

---------
2026-01-08 01:13:27 +08:00
dependabot[bot] b043018a4b chore(deps): bump ioredis from 5.8.2 to 5.9.0 (#20818)
Bumps [ioredis](https://github.com/luin/ioredis) from 5.8.2 to 5.9.0.
- [Release notes](https://github.com/luin/ioredis/releases)
- [Changelog](https://github.com/redis/ioredis/blob/main/CHANGELOG.md)
- [Commits](https://github.com/luin/ioredis/compare/v5.8.2...v5.9.0)

---
updated-dependencies:
- dependency-name: ioredis
  dependency-version: 5.9.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-07 12:55:57 +08:00
Tony fb1154235e chore(deps): bump pnpm to v10.27.0 2026-01-07 12:52:21 +08:00
H. KamranandTony 7ec4876202 feat(route): add NYC Mayor's Office news (#20811)
* feat(route): add NYC Mayor's Office news

* feat(route/nyc): add types and categories to path

* feat(route/nyc): use `en-us` language

* feat(route/nyc): use parameter object

* feat(route/nyc): add article image

* feat(route/nyc): update radar rules

* fix(route/nyc): update extension assignment, add base URL prefix

* feat(route/nyc): update feed link with types and categories

* Add category

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Remove extension to prevent redirect

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* Update namespace name

Co-authored-by: Tony <TonyRL@users.noreply.github.com>

* fix(route/nyc): remove duplicate `categories` key

* feat(route/nyc): use common title-case function

---------
2026-01-07 12:09:37 +08:00
sddikyandCopilot b173c13614 fix(route/50forum): 匹配变更后的文章列表网址和样式 (#20815)
* 修复中国经济50人论坛专家文章(/50forum),匹配变更后的文章列表网址和样式。

* Update lib/routes/50forum/zhuanjia.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* Update lib/routes/50forum/zhuanjia.ts

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-01-07 11:45:19 +08:00
dependabot[bot] 1967380be9 chore(deps-dev): bump the typescript-eslint group with 2 updates (#20816)
Bumps the typescript-eslint group with 2 updates: [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) and [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser).


Updates `@typescript-eslint/eslint-plugin` from 8.51.0 to 8.52.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.52.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.51.0 to 8.52.0
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.52.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.52.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: typescript-eslint
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.52.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: typescript-eslint
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-07 03:45:18 +08:00
dependabot[bot] 5e0d9e2a05 chore(deps): bump narou from 1.2.0 to 2.0.0 (#20812)
Bumps [narou](https://github.com/deflis/node-narou) from 1.2.0 to 2.0.0.
- [Release notes](https://github.com/deflis/node-narou/releases)
- [Commits](https://github.com/deflis/node-narou/compare/v1.2.0...v2.0.0)

---
updated-dependencies:
- dependency-name: narou
  dependency-version: 2.0.0
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-06 00:12:08 +08:00
dependabot[bot] 3cb8e02411 chore(deps): bump zod from 4.3.4 to 4.3.5 (#20813)
Bumps [zod](https://github.com/colinhacks/zod) from 4.3.4 to 4.3.5.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.3.4...v4.3.5)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.3.5
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-01-05 23:49:55 +08:00
Shine d6a665b772 fix: Update Shopify App search description selector (#20814) 2026-01-05 23:26:24 +08:00
DIYgodandClaude Haiku 4.5 ffb226c32c fix: increase worker integration test timeout to 60s (#20810)
The first two integration tests were timing out in CI environments because the Worker initialization takes longer than 30 seconds. This change increases the timeout from 30 seconds to 60 seconds for these tests.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-04 18:00:09 +08:00
DIYgodandClaude Haiku 4.5 d40f812563 refactor: deploy all routes to Cloudflare Workers (#20809)
- Remove Worker-specific route filtering (worker_namespaces) to include all 1537 namespaces in Worker builds
- Remove popularity analytics logic (foloAnalysisTop100) as Worker can now handle all routes
- Update node:child_process alias in tsdown config to use dedicated shim file
- Inline child_process shim in node-module.ts to avoid import cycles
- Fix tough-cookie import in telecompaper route (use named import CookieJar)
- Remove ESModule rules from wrangler.toml (not needed)

This enables full RSSHub functionality on Cloudflare Workers with no memory/size limitations.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-04 17:33:55 +08:00
DIYgod 273ca12bc7 fix: update build command in wrangler.toml for worker build process 2026-01-04 14:13:03 +08:00
DIYgodandClaude Haiku 4.5 eaf1159521 fix: fix worker-build missing route generation (#20808)
Add build:routes:worker script that generates routes-worker.js with
WORKER_BUILD=true before running tsdown for worker builds. Also add
alias for routes.json to resolve static module resolution.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-04 13:50:16 +08:00
DIYgodandClaude Opus 4.5 e27f501643 refactor: generate JSON data for namespace-centric docs (#20807)
- Update build-docs.ts to output routes.json and categories.json
- Modify workflow to copy JSON files to rsshub-docs/src/public

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-04 11:50:51 +08:00
DIYgodandClaude Haiku 4.5 7b96e82f1c feat(worker): implement KV-based caching for Cloudflare Workers (#20806)
- Add Cloudflare Workers KV cache implementation with TTL support
- Create xxhash-wasm shim using Web Crypto API to replace incompatible WebAssembly
- Unify cache middleware to use single cache.ts via tsdown-worker.config.ts alias
- Update dependencies: wrangler, @cloudflare/puppeteer, @cloudflare/workers-types
- Configure automatic KV namespace provisioning without manual ID configuration

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-04 11:29:33 +08:00
DIYgodandClaude Opus 4.5 1131350b5f feat: deploy RSSHub to Cloudflare Workers (#20804)
* feat: deploy RSSHub to Cloudflare Workers

- Create Worker entry point (lib/worker.ts) with polyfills
- Implement Worker-specific app configuration (lib/app.worker.tsx)
- Add automatic .worker.ts resolution plugin for cleaner config
- Simplify build configuration with only 3 essential shims
- Enable static asset serving via Cloudflare Static Assets feature
- Support dynamic route loading with proper module aliasing

🤖 Generated with Claude Code

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>

* feat(worker): add puppeteer and request-rewriter support

- Add @cloudflare/puppeteer for Browser Rendering API support
- Create puppeteer.worker.ts with Cloudflare Browser binding
- Add request-rewriter Worker version with static browser headers
- Add vm module shim to node-module.ts for JSDOM compatibility
- Configure __dirname/__filename in tsdown for CommonJS compat
- Update wrangler.toml with BROWSER binding configuration
- Dynamically extract namespaces from foloAnalysisTop100 for routes

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(cache): restore synchronous initialization for tests

The async initialization caused cache tests to fail because the cache
module wasn't ready when tests ran. Restored synchronous imports while
keeping Worker-specific no-op behavior.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(worker): add automated Worker integration tests

- Add miniflare for Worker environment simulation
- Create lib/worker.worker.test.ts with integration tests
- Test basic routes (/test/1, /, unknown routes)
- Test RSS feed routes (hackernews, v2ex)
- Test error handling for puppeteer routes without BROWSER binding
- Add worker-test npm script

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* refactor(worker): use test routes for Worker integration tests

- Replace third-party routes (hackernews, v2ex, weibo) with /test/* routes
- Remove miniflare dependency (wrangler includes it internally)
- Simplify test setup using wrangler's unstable_dev API

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(test): make header-generator test less flaky

The header-generator library may return different platform values due to
internal randomness. Update test to check for valid format instead of
exact value.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>

* fix(test): exclude worker tests from vitest coverage run

Worker tests require the dist-worker bundle to be built first,
which is not part of the regular CI test workflow. These tests
should be run separately using 'pnpm worker-test'.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* test(worker): add automated Worker integration tests

- Add worker-build step to CI workflow before running tests
- Revert exclusion of worker tests from vitest coverage run
- Worker tests now run as part of the regular test suite

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(worker): fix routes.js alias path in worker build config

Change alias key from absolute path to relative import path to match
how it's imported in lib/registry.ts. This fixes the worker build
failing with "Could not resolve '../assets/build/routes.js'" error.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* ci: trigger CI re-run

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(ci): build worker routes before worker-build

The worker build requires routes-worker.js which is generated by
running build:routes with WORKER_BUILD=true. This was missing in CI,
causing the worker build to fail with "Could not resolve routes.js".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

* fix(test): increase timeout for Worker integration tests

Worker tests need more time in CI environments. Increase individual
test timeouts from default 10s to 30s for each test case.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

---------

Co-authored-by: Claude Haiku 4.5 <noreply@anthropic.com>
2026-01-04 09:22:05 +08:00
moss-xxh 472082e3b1 feat(route): add Always Control news route (#20522)
* fix(route/alwayscontrol): correct import order to pass ESLint check

- Move cheerio import to first line (external dependencies first)
- Add blank line after external imports
- Keep type imports before other internal imports
- Maintain alphabetical order for @/ imports

This fixes the ESLint import/order error that was blocking PR #20522

* feat(route/alwayscontrol): add namespace file

Add required namespace.ts file for alwayscontrol route as requested by reviewer.
2026-01-04 09:21:38 +08:00
Sven 49679f657c feat(route/anthropic): add frontier red team (#20800)
* add red.anthropic.com

* Do not repeat namespace name in route name
2026-01-03 22:14:53 +08:00
Tony 9aa55f54af fix(route/patreon): use Patreon API (#20803)
* fix(route/patreon): support creator under /cw/

* fix(route/patreon): improve regex

* fix(route/patreon): streamline creator data extraction from Patreon API
2026-01-03 09:22:32 +08:00