Commit Graph

31 Commits

Author SHA1 Message Date
incubator4 be3ba61788
chore: otel fix and enhancement (#16754)
* feat(otel): use routePath insteadof path

* feat(otel): add otel bucket boundary env

* chore: move otel to debug block with alphabetical sort
2024-09-15 19:42:21 +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
Songkeys b0464552b4
fix: return json error message when ?format=json (#16315) 2024-07-31 19:14:20 +08:00
DIYgod fc32036d51
fix: error in errorHandler 2024-07-14 15:27:43 +08:00
Nya Candy 68c7430fbb
feat(core): opentelementry support (update of #14668) (#16087)
* chore: squash commit

* fix: tweak some mentioned issues

---------

Co-authored-by: incubator4 <aries0robin@gmail.com>
2024-07-05 19:22:33 +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
dependabot[bot] 39af963b3c
chore(deps): bump @sentry/node from 7.114.0 to 8.3.0 (#15675)
* chore(deps): bump @sentry/node from 7.114.0 to 8.3.0

Bumps [@sentry/node](https://github.com/getsentry/sentry-javascript) from 7.114.0 to 8.3.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/7.114.0...8.3.0)

---
updated-dependencies:
- dependency-name: "@sentry/node"
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

* chore: fix pnpm install

* fix: sentry import

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-05-24 13:29:49 +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 79fcce2729
feat: add ConfigNotFoundError and InvalidParameterError 2024-04-07 17:36:18 +08:00
DIYgod cef1ed1eb6
refactor: error types 2024-04-07 16:37:54 +08:00
DIYgod 2a6d5ac9f9
feat: better error message 2024-04-07 13:07:09 +08:00
github-actions[bot] ad93d75ce7 style: auto format 2024-04-04 12:30:18 +00: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
Yufan You c039164007
fix: route syntax for hono (#14638)
* fix: use :param{.+} instead of :param+ for hono

* fix: use two separate routes to simulate :param* in hono

It seems that hono does not support this route syntax. We can simulate
it via two separate routes.

See https://github.com/orgs/honojs/discussions/1536

* fix: use {} instead of () for regex in hono

* fix: revert changes to lib/router.js as it's still using koa router

* Revert "fix: use two separate routes to simulate :param* in hono"

This reverts commit b00a0a74a025939d0a59c3f8f7b3b7038c13f715.

* fix: use :param{.+}? to simulate :param*

* feat: add hint about trailing slash in error message
2024-03-05 21:02:41 +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 dee7da3105
feat: pure esm and typescript routes 2024-03-04 00:17:16 +08:00
DIYgod 38e42156a0
feat: replace jest with vitest 2024-03-03 18:57:07 +08:00
DIYgod 3bfdf9427c
feat: new home page 2024-03-03 17:36:08 +08:00
DIYgod ba1bdf9bdc
feat: use hono context json and text 2024-03-01 20:50:17 +08:00
DIYgod 398be0f592
feat: rename routes dir - 1/2 2024-03-01 01:21:28 +08:00
DIYgod 206782bb61
fix: not found error handler 2024-02-26 19:34:17 +08:00
DIYgod b58b6e60cf
test: errors 2024-02-26 18:36:34 +08:00
DIYgod fa7eddb50a
fix: add reject error 2024-02-25 21:20:57 +08:00
DIYgod 174752fef5
refactor: format 2024-01-29 23:28:17 +08:00
DIYgod 4591116733
fix: middleware errors 2024-01-21 18:35:11 +08:00
DIYgod e7e3f689bd
fix: error handler and debug info 2024-01-21 15:41:42 +08:00
DIYgod 847724cad1
feat: work with hono and typescript 2024-01-21 11:55:18 +08:00
NeverBehave 0792f7ba25
feat(core): first attempt to init script standard (#8224)
- lazy load
- rate limit per path
- init .debug.json support
- docs
- maintainer
- radar
2021-09-22 05:41:00 -07:00