Commit Graph
15118 Commits
Author SHA1 Message Date
Ethan Shen 1eb53df2da fix(docs): remove extra newline in filters table for jbma.net (#20113) 2025-09-22 00:51:02 +08:00
Tsuyumi25 79c0b68005 feat(route): add CrushNinja (#20109)
* feat(route): add CrushNinja

* fix: use description as title in item data

* fix: rename crushninja namespace to crush
2025-09-21 23:42:03 +08:00
Tony 8622f69958 chore(eslint): ensure proper error handling 2025-09-21 23:18:48 +08:00
Tsuyumi25 69079fcfb2 fix(skeb): resolve Redis cache async issue and refactor request flow (#20111)
- Fix Redis cache async handling by adding await to cache.get() calls
- Refactor request_key management into separate ensureRequestKey function
- Simplify main data fetching flow by removing complex retry logic
- Add proper error type guards and logging for better debugging
- Improve code readability and maintainability

Fixes issue where Skeb works route failed with Redis cache due to
cache.get() returning Promise object instead of string value, causing
invalid request_key in API calls.
2025-09-21 22:53:48 +08:00
AlexandClaude 2ca1b3afa5 feat(route): add Wikipedia current events (#20100)
* feat(route): add Wikipedia current events

Add RSS feed for Wikipedia Portal:Current events providing the past 7 days of current events. Parses MediaWiki templates and converts wiki markup to HTML.

- Hierarchical bullet point structures with nested <ul>/<li> tags
- Proper paragraph breaks between sections
- Correct nesting depth for multi-level lists
- Clean separation of content sections

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

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

* refactor(route/wikipedia): break down complex wikiToHtml function

- Split 123-line wikiToHtml function into 6 smaller, focused methods
- Each function now has a single responsibility (links, formatting, lists, etc.)
- Improved code readability and maintainability
- End-to-end tested: route produces identical RSS output with proper HTML formatting

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

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

* fix(route/wikipedia): use config.trueUA instead of hardcoded User-Agent

Replace hardcoded User-Agent string with config.trueUA to follow
project conventions for HTTP requests.

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

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

* fix(route/wikipedia): use config.cache.contentExpire for cache duration

Replace hardcoded 6-hour cache duration with configurable contentExpire
setting to follow project caching conventions.

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

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

* feat(route/wikipedia): implement efficient current events RSS with single API request

- Switch from web scraping to MediaWiki API for better reliability
- Implement single batch API request with continuation support for multiple pages
- Add current-day inclusion parameter with time-based logic (auto/always/never/hour)
- Add proper error handling and ESLint compliance

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

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

* refactor(route/wikipedia): consolidate list processing and add API documentation

- Move wrapListItems and processNestedLists calls inside (renamed) processListsAndLines to eliminate non-obvious coupling
- Remove newlines from processNestedLists output for more compact HTML
- Add documentation about Wikipedia API endpoints and query options

---------

Co-authored-by: Claude <noreply@anthropic.com>
2025-09-21 22:12:30 +08:00
Ethan Shen eedb725e46 fix(route): 中国投资者网 (#20106) 2025-09-20 08:46:13 +08:00
gz4zzxc 380874aca8 feat(route): add gdufs/xwxy News Center feed with categories and Radar (#20092)
* fix: improve date parsing error handling in gdufs xwxy-news route

- Add null check before calling parseDate to prevent errors when dateText is empty
- Return undefined instead of calling toUTCString() on potentially invalid date

* feat(gdufs/xwxy): add News Center feed with categories and Radar

- Add route /gdufs/xwxy/:category? (news|notices|announcements|media)

- Parse lists with fallbacks; absolute URLs for img/a; extract content across multiple templates; derive authors from meta; recover pubDate from meta if missing

- Respect ?limit (default 10) before detail fetch; use cache.tryGet for item pages

- Relax link filtering to include internal assets and resolved relative URLs; handle external links without fetching

- Normalize route url to xwxy.gdufs.edu.cn; simplify Radar sources

* fix: add data: and vbscript: protocol checks for security

* refactor(gdufs/xwxy): simplify selector logic using precise li[id^='line_u14_'] a

- Replace complex multi-level fallback selector logic (13 lines) with single precise selector
- Remove unnecessary filtering logic for href validation and domain checking
- Improve performance by eliminating multiple DOM queries
- Maintain same functionality while reducing code from 35 lines to 1 line
- Verified working on all category pages: news, notices, media focus

* fix: use h5 instead of p for title extraction

* refactor: remove excessive try-catch wrapper

* fix: remove descriptive text for external links

* refactor: simplify content selector to use .v_news_content only

* fix: use comma separator for multiple authors

* refactor(gdufs/xwxy): dedupe date regex into handler-scope constant; remove unnecessary escape
2025-09-19 23:31:00 +08:00
Blank0120 bc3c354285 refactor(route/bbc): using Chinese Title in Learning English route (#20101) 2025-09-19 20:53:46 +08:00
dependabot[bot] b8de891fc0 chore(deps-dev): bump eslint-plugin-n from 17.23.0 to 17.23.1 (#20105)
Bumps [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n) from 17.23.0 to 17.23.1.
- [Release notes](https://github.com/eslint-community/eslint-plugin-n/releases)
- [Changelog](https://github.com/eslint-community/eslint-plugin-n/blob/master/CHANGELOG.md)
- [Commits](https://github.com/eslint-community/eslint-plugin-n/compare/v17.23.0...v17.23.1)

---
updated-dependencies:
- dependency-name: eslint-plugin-n
  dependency-version: 17.23.1
  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>
2025-09-19 08:14:12 +00:00
dependabot[bot] 101cb596ee chore(deps): bump hono from 4.9.7 to 4.9.8 (#20104)
Bumps [hono](https://github.com/honojs/hono) from 4.9.7 to 4.9.8.
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](https://github.com/honojs/hono/compare/v4.9.7...v4.9.8)

---
updated-dependencies:
- dependency-name: hono
  dependency-version: 4.9.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>
2025-09-19 08:13:07 +00:00
dependabot[bot] 288bb6211d chore(deps-dev): bump discord-api-types from 0.38.25 to 0.38.26 (#20103)
Bumps [discord-api-types](https://github.com/discordjs/discord-api-types) from 0.38.25 to 0.38.26.
- [Release notes](https://github.com/discordjs/discord-api-types/releases)
- [Changelog](https://github.com/discordjs/discord-api-types/blob/main/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord-api-types/compare/0.38.25...0.38.26)

---
updated-dependencies:
- dependency-name: discord-api-types
  dependency-version: 0.38.26
  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>
2025-09-19 08:10:51 +00:00
dependabot[bot] 2220eb3276 chore(deps): bump query-string from 9.3.0 to 9.3.1 (#20102)
Bumps [query-string](https://github.com/sindresorhus/query-string) from 9.3.0 to 9.3.1.
- [Release notes](https://github.com/sindresorhus/query-string/releases)
- [Commits](https://github.com/sindresorhus/query-string/compare/v9.3.0...v9.3.1)

---
updated-dependencies:
- dependency-name: query-string
  dependency-version: 9.3.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>
2025-09-19 08:07:05 +00:00
Stephen Zhou 84a2d7a60a fix(route/hupu): parse time 2025-09-19 10:16:50 +08:00
la3rence b640f5893c feat(route): add huijin news (中央汇金) (#20093)
* feat(route): add huijin news

* feat(route): rename to huijin-inv
2025-09-19 09:59:13 +08:00
Tony 7738a78b97 fix(route/podcast): add fallback channel data (#20099) 2025-09-19 05:15:04 +08:00
github-actions[bot] fd4d1c4030 style: auto format 2025-09-18 16:16:42 +00:00
Tsung-Han Yu 6eb366e5e8 feat(route): add 科技大觀園 scitechvista route (#20089)
* feat: add scitechvista route

* fix: lint errors

* fix: remove referrerpolicy since middleware adds it

* Update lib/routes/scitechvista/index.ts

---------
2025-09-19 00:14:52 +08:00
dependabot[bot] 9e5bffbe76 chore(deps-dev): bump got from 14.4.8 to 14.4.9 (#20097)
Bumps [got](https://github.com/sindresorhus/got) from 14.4.8 to 14.4.9.
- [Release notes](https://github.com/sindresorhus/got/releases)
- [Commits](https://github.com/sindresorhus/got/compare/v14.4.8...v14.4.9)

---
updated-dependencies:
- dependency-name: got
  dependency-version: 14.4.9
  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>
2025-09-18 08:10:17 +00:00
dependabot[bot] 14f3669cc5 chore(deps-dev): bump @types/node from 24.5.1 to 24.5.2 (#20096)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.5.1 to 24.5.2.
- [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: 24.5.2
  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>
2025-09-18 08:07:23 +00:00
Ethan Shen f9c381ae61 fix(route): Surfshark Blog (#20087)
* fix(route): Surfshark Blog

* fix typo
2025-09-18 08:57:25 +08:00
Tony 32d229ed0e fix(route/producthunt): fix events list (#20088) 2025-09-18 05:33:06 +08:00
Tony 2566b86617 fix(route/telegram): fix channel media path overlap (#20085) 2025-09-17 21:23:48 +08:00
Kjasn 9f8e967c8a feat(route): add qwen blog (#20064)
* feat(route): add qwen blog

* handle date and remove redundant category
2025-09-17 18:37:28 +08:00
dependabot[bot] 1559d9a688 chore(deps-dev): bump tsdown from 0.15.1 to 0.15.2 (#20082)
Bumps [tsdown](https://github.com/rolldown/tsdown) from 0.15.1 to 0.15.2.
- [Release notes](https://github.com/rolldown/tsdown/releases)
- [Commits](https://github.com/rolldown/tsdown/compare/v0.15.1...v0.15.2)

---
updated-dependencies:
- dependency-name: tsdown
  dependency-version: 0.15.2
  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>
2025-09-17 18:36:56 +08:00
dependabot[bot] 8f5b8bd20b chore(deps): bump googleapis from 159.0.0 to 160.0.0 (#20079)
Bumps [googleapis](https://github.com/googleapis/google-api-nodejs-client) from 159.0.0 to 160.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-manifest.json)
- [Commits](https://github.com/googleapis/google-api-nodejs-client/compare/googleapis-v159.0.0...googleapis-v160.0.0)

---
updated-dependencies:
- dependency-name: googleapis
  dependency-version: 160.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>
2025-09-17 18:31:15 +08:00
dependabot[bot] 13d3a313ae chore(deps): bump @sentry/node from 10.11.0 to 10.12.0 (#20080) 2025-09-17 18:03:59 +08:00
dependabot[bot] 6b73b179ef chore(deps-dev): bump @types/uuid from 10.0.0 to 11.0.0 (#20081) 2025-09-17 18:03:27 +08:00
dependabot[bot] c0df623b31 chore(deps): bump @hono/node-server from 1.19.2 to 1.19.3 (#20084)
Bumps [@hono/node-server](https://github.com/honojs/node-server) from 1.19.2 to 1.19.3.
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](https://github.com/honojs/node-server/compare/v1.19.2...v1.19.3)

---
updated-dependencies:
- dependency-name: "@hono/node-server"
  dependency-version: 1.19.3
  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>
2025-09-17 08:20:18 +00:00
dependabot[bot] ae78ddb397 chore(deps-dev): bump @types/node from 24.5.0 to 24.5.1 (#20083)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.5.0 to 24.5.1.
- [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: 24.5.1
  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>
2025-09-17 08:17:30 +00:00
Tsung-Han Yu 41f611de8e feat(route): add google jules (#20074) 2025-09-17 10:06:13 +08:00
Tsung-Han Yu f0c3a2d452 fix(route/natgeo): filter out irrelevant items (#20076) 2025-09-17 05:20:05 +08:00
Keo ae1f40e0ac fix(itch): incorrect devlog authors (#20073)
* fix(itch): devlog authors

* selector
2025-09-16 23:40:02 +08:00
Stephen Zhou 2f92886dae feat(route/hupu): video content support 2025-09-16 23:23:58 +08:00
Stephen Zhou 47da5b3c35 fix(route/hupu): get gif image first 2025-09-16 22:58:47 +08:00
Stephen Zhou 06534ca29e fix(route/hupu): invalid image url 2025-09-16 22:44:05 +08:00
github-actions[bot] 42e2f5cb68 style: auto format 2025-09-16 14:08:32 +00:00
Tsung-Han YuandTony 9dab61134c feat(route): letterboxd watchlist (#20046)
* feat: add letterboxd watchlist

* feat: add caching

* fix: remove redundant async

* fix: allows empty

* Update index.ts

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

* fix: use cleaner selector and avoid double slashes in URL

* fix: poster api url
2025-09-16 14:06:49 +00:00
github-actions[bot] 4e6aa429a5 style: auto format 2025-09-16 13:42:50 +00:00
Aleksandr BogdanovandTony 9d2fc7a676 feat(route/telegram): Fix tglib (#18268)
* refactor telegram/tglib for Hono

* linter fix

* add CSP for channel media

* don't cut feed item title prematurely

* implement shared Geo position attachment

* don't start TG client unless routes are requested

* resolve typescript; fix private chats and groups; fix stickers and no-thumbnail document attachments; fix media-by-link attachments

* fix empty text and message grouping; add GeoLive media type; add Poll/Quiz media type

* add script-src none to CSP

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

* add unwrap media for stories support

* fix fwdFrom access

* remove unnecessary core patches, add media route docs

* remove tglib fallback, as it's already preferred if configured

* implement stories endpoint

* improve text representation of channel content

* serve channel media under /channel/entityName/msgId

* improve stories endpoint

* restore original post links to avoid feed duplicates on upgrade

* appease eslint

* fix lint

* improve stories config route definition

* fix poll handling

* lint fix

* format poll results nicely

* fix node compat

* remove duplicate ignore

---------
2025-09-16 21:41:05 +08:00
dependabot[bot] bd63108c12 chore(deps-dev): bump eslint-plugin-n from 17.22.0 to 17.23.0 (#20070) 2025-09-16 19:04:34 +08:00
dependabot[bot] 606c556ab0 chore(deps-dev): bump the typescript-eslint group with 2 updates (#20068)
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.43.0 to 8.44.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.44.0/packages/eslint-plugin)

Updates `@typescript-eslint/parser` from 8.43.0 to 8.44.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.44.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-version: 8.44.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
  dependency-group: typescript-eslint
- dependency-name: "@typescript-eslint/parser"
  dependency-version: 8.44.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>
2025-09-16 18:37:45 +08:00
dependabot[bot] a0ae1d8654 chore(deps-dev): bump @types/node from 24.4.0 to 24.5.0 (#20072)
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 24.4.0 to 24.5.0.
- [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: 24.5.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>
2025-09-16 18:36:57 +08:00
dependabot[bot] 20d111ce8e chore(deps-dev): bump fs-extra from 11.3.1 to 11.3.2 (#20071)
Bumps [fs-extra](https://github.com/jprichardson/node-fs-extra) from 11.3.1 to 11.3.2.
- [Changelog](https://github.com/jprichardson/node-fs-extra/blob/master/CHANGELOG.md)
- [Commits](https://github.com/jprichardson/node-fs-extra/compare/11.3.1...11.3.2)

---
updated-dependencies:
- dependency-name: fs-extra
  dependency-version: 11.3.2
  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>
2025-09-16 08:15:58 +00:00
dependabot[bot] dbb37c91ba chore(deps-dev): bump discord-api-types from 0.38.24 to 0.38.25 (#20069)
Bumps [discord-api-types](https://github.com/discordjs/discord-api-types) from 0.38.24 to 0.38.25.
- [Release notes](https://github.com/discordjs/discord-api-types/releases)
- [Changelog](https://github.com/discordjs/discord-api-types/blob/main/CHANGELOG.md)
- [Commits](https://github.com/discordjs/discord-api-types/compare/0.38.24...0.38.25)

---
updated-dependencies:
- dependency-name: discord-api-types
  dependency-version: 0.38.25
  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>
2025-09-16 08:14:37 +00:00
Stephen Zhou 2c93053fa0 fix(route/hupu): parse date from content 2025-09-16 15:30:55 +08:00
Tony 0669d68a55 chore(github): update bug report templates
close #18834
2025-09-16 01:52:58 +08:00
LMarkand爱特未来来了 36ffd9cc1d feat(route): 新增南开大学研究生院路由 (#20017)
* fix nikkei/news

* fix import

* 新增南开大学人工智能学院官通知路由

* 删除pnpm-lock.yaml

* 恢复

* 恢复旧的yaml

* 修改selector

* 修复名称错误

* 新增了南开大学研究生院通知

* fix some

---------

Co-authored-by: 爱特未来来了 <t202410423994673@eduxiji.net>
2025-09-16 01:42:40 +08:00
Stephen Zhou a8d381a75b docs: fix example link 2025-09-15 23:01:02 +08:00
Stephen Zhou 72ffffeea8 docs: fix container 2025-09-15 22:52:08 +08:00
Stephen Zhou 0e9ef88ba8 feat(route/hupu)!: index support (#20062)
* feat(route/hupu)!: index support

* add type

* Apply suggestions from code review

---------
2025-09-15 22:40:24 +08:00