Commit Graph

21 Commits

Author SHA1 Message Date
Tony
c09dacac5b feat(api): add cache probing (#21300)
* feat(api): add cache probing

* fix(tests): correct query parameter from 'path' to 'requestPath' in status tests

* feat(cache): add has to workers kv
2026-03-05 02:36:53 +08:00
DIYgod
81ff849337 feat(tests): add comprehensive unit tests for various utility functions and views (#20779)
* feat(tests): add comprehensive unit tests for various utility functions and views

- Implement tests for cache utility to ensure proper behavior with no cache and TTL keys.
- Add tests for common utilities including string manipulation and path handling.
- Introduce tests for directory import functionality to validate file imports and pattern matching.
- Create tests for git hash retrieval to handle fallback scenarios.
- Develop tests for deprecated got utility to verify response handling and retry logic.
- Enhance got utility tests to include request hooks and search parameter handling.
- Mock header generator tests to validate user agent handling.
- Expand helpers tests to cover current path retrieval and duration parsing.
- Implement tests for ofetch utility to ensure proper proxy handling and logging.
- Add OpenTelemetry metric tests to validate metric serialization.
- Create proxy tests to verify multi-proxy selection and failure handling.
- Introduce request rewriter tests to validate fetch and get wrapper functionality.
- Add timezone utility tests to handle various input types.
- Implement view tests for Atom and RSS rendering to ensure correct output.
- Create index view tests to validate debug information display based on configuration.

* refactor: remove deprecated got implementation and associated tests

* test: expand coverage for api, middleware, and utils
2025-12-29 17:34:48 +08:00
Stephen Zhou
d5e4fba8b2 style: format 2025-11-27 11:04:48 +08:00
github-actions[bot]
a28890a135 style: auto format 2025-11-27 02:55:46 +00:00
dependabot[bot]
5de09288d9 chore(deps): bump @scalar/hono-api-reference from 0.7.5 to 0.8.0 (#18790)
* chore(deps): bump @scalar/hono-api-reference from 0.7.5 to 0.8.0

Bumps [@scalar/hono-api-reference](https://github.com/scalar/scalar/tree/HEAD/integrations/hono) from 0.7.5 to 0.8.0.
- [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.8.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

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

* fix: update export name

81dddd3571

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-04-07 22:28:50 +08:00
dependabot[bot]
54ed4e1905 chore(deps): bump @scalar/hono-api-reference from 0.5.184 to 0.6.0 (#18589)
* chore(deps): bump @scalar/hono-api-reference from 0.5.184 to 0.6.0

Bumps [@scalar/hono-api-reference](https://github.com/scalar/scalar/tree/HEAD/integrations/hono) from 0.5.184 to 0.6.0.
- [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-type: direct:production
  update-type: version-update:semver-minor
...

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

* fix: remove spec prefix

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-03-14 01:46:31 +08:00
DIYgod
4fb6d09512 feat: update follow api 2025-01-09 21:08:55 +08:00
DIYgod
131bc33637 feat: update follow config 2024-12-24 16:56:52 +08:00
DIYgod
dd08502955 feat: add follow limit config 2024-12-20 22:50:49 +08:00
DIYgod
2aab5047b7 feat: follow config 2024-12-18 23:16:28 +08:00
pseudoyu
6348c1ccec fix(api/category): category api return data 2024-11-02 00:24:55 +07:00
pseudoyu
afcea8f4ee fix(api/category): codecov issues 2024-11-01 23:56:51 +07:00
pseudoyu
aad254be0f feat(api/category): add categories and lang query params to filter 2024-11-01 23:41:04 +07:00
chesha1
a3a2fe8d3a chore: fix warning about potential push on string (#16511) 2024-08-22 21:07:46 +08:00
DIYgod
0ba17e15bd feat: category one api 2024-06-20 17:42:05 +08:00
DIYgod
cd1989c023 feat: replace swagger-ui with scalar 2024-06-20 17:41:41 +08:00
Tony
d585a87daf fix: allow multiple radar rules per route (#14800)
* fix: allow multiple radar rules per route

* fix: github folder

* feat: add namespace to radar target

* docs: fix types url
2024-03-16 03:28:44 +08:00
DIYgod
aad06528db feat: radar rules one api 2024-03-16 01:36:09 +08:00
DIYgod
93cf319581 feat: use OpenAPI 2024-03-15 23:51:08 +08:00
DIYgod
63639a44d1 feat: routes api 2024-03-14 20:08:57 +08:00
DIYgod
901075eda9 feat: radar rules api 2024-03-14 20:06:15 +08:00