dependabot[bot]
3cafae5f54
chore(deps): bump @sentry/node from 10.75.1 to 11.0.0 ( #23428 )
...
* chore(deps): bump @sentry/node from 10.75.1 to 11.0.0
Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript ) from 10.75.1 to 11.0.0.
- [Release notes](https://github.com/getsentry/sentry-javascript/releases )
- [Changelog](https://github.com/getsentry/sentry-javascript/blob/develop/CHANGELOG.md )
- [Commits](https://github.com/getsentry/sentry-javascript/compare/10.75.1...11.0.0 )
---
updated-dependencies:
- dependency-name: "@sentry/node"
dependency-version: 11.0.0
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix: replace `skipOpenTelemetrySetup` with `enableOpenTelemetrySetup`
refs: https://github.com/getsentry/sentry-javascript/blob/develop/MIGRATION.md#choosing-an-opentelemetry-setup
---------
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-09-29 21:59:31 +08:00
Tony
08a38f0a5e
refactor: typing house-keeping ( #23074 )
...
* refactor: typing house-keeping
* fix: fix parse date not accepting strict mode
* refactor: use npm package
* fix: address review
2026-08-22 23:58:30 +08:00
Tony
bb12119123
refactor: enforce typecheck ( #22917 )
...
* feat(types): add upvotes, downvotes, and comments to DataItem
* refactor: fix TS2339
* refactor: fix TS2322
* refactor: fix TS2322
* refactor: fix TS2345
* refactor: fix TS2339
* refactor: fix TS2322
* refactor: fix TS2345
* refactor: fix TS2531/2532/18048/18047
* refactor: fix TS18046/TS2571
* refactor: fix TS2538
* refactor: fix TS2554/2769/2558
* refactor: fix TS2362/2363
* refactor: fix TS2353/TS2561
* refactor: fix TS2741/2739/2740
* refactor: fix TS2304 TS2307 TS2305 TS2614 TS2552 TS2551
* refactor: fix TS2352
* refactor: fix TS2604 TS17001
* refactor: fix TS2367 TS2366
* refactor: fix TS2493
* refactor: fix TS2454
* refactor: fix TS2790
* refactor: fix TS2488
* refactor: fix TS2677
* refactor: fix TS18048/18049/2532
* refactor: fix TS2322
* refactor: fix TS2344
* refactor: fix TS2339
* refactor: fix TS2339
* refactor: fix TS2365
* refactor: fix TS1117
* refactor: fix TS2561
* refactor: fix TS2555
* refactor: fix TS2503
* refactor: fix TS2339
mobile api no longer work
* fix: clean slop
* fix: use Context instead of any
* fix: fix more typing after merge
* fix: add void return for ctx.redirect in handler
* chore: add type check to lint and husky
* fix: remove ts ignore
* chore: add oxlint rule
* fix: suppress build artifact
* fix: update getArticles to use cache
* fix: codeql
* fix(route/typeless): use async gunzip
* fix: address review
* fix: address review
* fix: double quotes escape
2026-08-04 09:00:41 +08:00
Tony
0ab18ff80e
test: refactor tests ( #22677 )
...
* test: refactor tests
* test: run *.worker.ts unit tests inside workerd
2026-07-10 23:26:43 +08:00
dependabot[bot]
07834413f5
chore(deps-dev): bump eslint-plugin-unicorn from 64.0.0 to 65.0.0 ( #22219 )
...
* chore(deps-dev): bump eslint-plugin-unicorn from 64.0.0 to 65.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn ) from 64.0.0 to 65.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases )
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v64.0.0...v65.0.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
dependency-version: 65.0.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* fix: no-array-from-fill
* fix: unicorn-js/no-duplicate-set-values
* fix: no-this-outside-of-class
* fix: no-unnecessary-nested-ternary
* fix: prefer-array-last-methods
* fix: prefer-queue-microtask
* fix: prefer-split-limit
* fix: no-array-from-fill
* fix: no-unused-array-method-return
* fix: prefer-single-call
* fix: prefer-includes-over-repeated-comparisons
* fix: consistent-compound-words
* fix: prefer-includes-over-repeated-comparisons
* chore: add eslint-plugin-unicorn v65 recommended preset
* fix: correct duration parsing logic in parseDuration function
* fix: update oxlint-disable
---------
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-06-09 00:08:15 +08:00
Tony
1410f03e6d
test: remove text "Not Found" from httperror
...
undici (v8.0.2) in node 26.0 enables http2 by default which has empty statusText
refs: https://github.com/nodejs/undici/blob/584e6aec01a922f6e9ba259ee7c153475cb87a44/lib/dispatcher/client-h2.js#L945
2026-05-06 03:12:57 +08:00
github-actions[bot]
ebfe021b50
style: auto format
2026-04-14 15:15:05 +00:00
dependabot[bot]
df6b73d866
chore(deps-dev): bump msw from 2.4.3 to 2.12.14 ( #21483 )
...
* chore(deps-dev): bump msw from 2.4.3 to 2.12.14
Bumps [msw](https://github.com/mswjs/msw ) from 2.4.3 to 2.12.14.
- [Release notes](https://github.com/mswjs/msw/releases )
- [Changelog](https://github.com/mswjs/msw/blob/main/CHANGELOG.md )
- [Commits](https://github.com/mswjs/msw/compare/v2.4.3...v2.12.14 )
---
updated-dependencies:
- dependency-name: msw
dependency-version: 2.12.14
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
* chore: remove supertest
MSW's setupServer() works by patching Node's http module (via @mswjs/interceptors) to intercept outgoing requests. supertest's requests to http://127.0.0.1:1200 go through the same patched http module which causes server bad request
* chore(patch): add patch for @mswjs/interceptors@0.41 .3
* fix(server): update server listen options to bypass unhandled requests
* chore: update patch for @mswjs/interceptors
---------
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-03-25 02:31:42 +08:00
github-actions[bot]
a28890a135
style: auto format
2025-11-27 02:55:46 +00:00
DIYgod
532619a8c2
fix(tests): update expected values and increase timeout for Puppeteer tests
...
- Adjusted expected values in error handling tests to reflect updated application behavior.
- Increased timeout for Puppeteer tests from 20 seconds to 45 seconds to accommodate longer loading times.
2025-08-22 17:45:39 +08:00
DIYgod
f51da43fb7
feat(errors): add CaptchaError handling and related tests
...
- Introduced a new CaptchaError class to handle captcha-related errors.
- Updated the dynamic route to throw CaptchaError when encountering specific error codes.
- Added tests for CaptchaError to ensure proper error handling in the API.
2025-08-22 15:17:16 +08:00
Tony
9d7e1943f0
test: fix tests ( #16697 )
...
* test: fix tests
* revert "fix: fill image from itunes_item_image (#16694 )"
This reverts commit 879772a97f .
* fix: fill image from jsonfeed template
* chore: bump msw to 2.4.3
2024-09-11 01:05:37 +08:00
DIYgod
d1dd8a53ca
feat: retry requesting control ( #15717 )
...
* feat: retry requesting control
* test: fix error handling test
2024-05-26 21:48:29 +08:00
Rongrong
a99b35f257
feat(core/utils/wechat-mp): major rewrite ( #15276 )
...
* feat(core/utils/wechat-mp): major rewrite
* Support more `item_show_type`: `APP_MSG_PAGE`, `VIDEO_SHARE_PAGE`,
`AUDIO_SHARE_PAGE`, and `IMG_SHARE_PAGE`. Previously only the first one
could be parsed properly. There are still some other known types waiting
for live examples for further adaptation. If this is the case, a
fallback method will try to generate entries using mostly OpenGraph
metadata. Meanwhile, the administrator of self-hosted instances will see
warnings in the log, asking them to report the URL as a new live
example. Still, `VIDEO_SHARE_PAGE` explicitly uses the fallback method
without any warning, as there is no possible approach to generate a
video/iframe URL from page metadata.
* Show audio and videos in `APP_MSG_PAGE`. However, not all videos
can be shown due to the same reason as `VIDEO_SHARE_PAGE`.
* Show the location where the article is sent.
* Some bugs, mostly due to outdated cheerio selector, are fixed.
* Add a new sub-route `wechat-mp` to `/test` to make things easier.
* All changes are well-tested.
Signed-off-by: Rongrong <i@rong.moe >
* style(core/utils/wechat-mp): fix ESLint & CodeQL errors
Signed-off-by: Rongrong <i@rong.moe >
* style(core/utils/wechat-mp): fix a DeepScan issue
Signed-off-by: Rongrong <i@rong.moe >
* style(core/utils/wechat-mp): fix ESLint error
Another try w/ pre-commit hook disabled.
Signed-off-by: Rongrong <i@rong.moe >
---------
Signed-off-by: Rongrong <i@rong.moe >
2024-04-18 22:05:32 +08:00
DIYgod
c145a72590
test: add invalid-parameter-error and config-not-found-error
2024-04-07 17:46:46 +08:00
DIYgod
2a6d5ac9f9
feat: better error message
2024-04-07 13:07:09 +08:00
DIYgod
f5ced001eb
test: errors
2024-03-31 03:17:53 +08:00
DIYgod
94cf0742af
feat: new error page
2024-03-06 02:33:28 +08:00
Tony
4c4d68e32b
test(error/index): revert accidental changes from #14664
2024-03-05 15:19:43 +08:00
Tony
d17ebe81d0
feat(index): add back hot stats ( #14664 )
2024-03-05 13:55:39 +08:00
DIYgod
38e42156a0
feat: replace jest with vitest
2024-03-03 18:57:07 +08:00
DIYgod
398be0f592
feat: rename routes dir - 1/2
2024-03-01 01:21:28 +08:00
DIYgod
b58b6e60cf
test: errors
2024-02-26 18:36:34 +08:00