pseudoyu
a7faf80497
fix(radar): use the route path when a target is a function
...
Since the namespace prefix was added in #14800 , function targets were
stringified into the rules built from the route modules (build:routes
and the dev API), e.g. /81params=>{...}. Production loads routes from
JSON, where functions are already dropped and the route path is used,
so do the same in both producers.
2026-10-14 09:30:14 +08:00
Tony
3bc1cc248d
chore: bump to msw v3 ( #23463 )
...
* chore: bump to msw v3
* refactor: anti-slop
* test: use vi.stubEnv for REDIS_URL in redis error test
* refactor: move remote debugging registration into a conditional block
* chore: add code coverage upload for github
2026-10-03 06:36:19 +08:00
Tony
0a3a66a1cb
fix(radar): link radar rules to the route namespace page
...
close #17785
2026-09-25 03:13:19 +08:00
dependabot[bot]
a84b41faa3
chore(deps-dev): bump eslint-plugin-unicorn from 74.0.0 to 75.0.0 ( #23338 )
...
* chore(deps-dev): bump eslint-plugin-unicorn from 74.0.0 to 75.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn ) from 74.0.0 to 75.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases )
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v74.0.0...v75.0.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
dependency-version: 75.0.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* style: fix unicorn-js/prefer-combined-guards
* style: fix prefer-smaller-scope
* style: fix prefer-continue
* style: fix prefer-early-return
* style: fix prefer-iterator-helpers
* style: add v75 recommended preset
---------
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-22 07:08:43 +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
dependabot[bot]
6bce9493b5
chore(deps-dev): bump eslint-plugin-unicorn from 71.1.0 to 72.0.0 ( #22723 )
...
* chore(deps-dev): bump eslint-plugin-unicorn from 71.1.0 to 72.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn ) from 71.1.0 to 72.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases )
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v71.1.0...v72.0.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
dependency-version: 72.0.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* style: fix prefer-dom-node-html-methods
* style: fix prefer-split-limit
* style: fix no-unnecessary-string-trim
* style: fix no-multiple-promise-resolver-calls
* style: add v72 preset
---------
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: TonyRL <TonyRL@users.noreply.github.com >
2026-07-15 23:11:15 +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
Tony
cb0791cb41
perf: dx ( #22478 )
...
* perf: use only one WASM alloc for xxhash
* perf(deps): lazy load mercury-parser and use googleapis/youtube instead of heavy googleapis
* perf(dx): lazy load dev registry
speed up npm dev script
* perf: close playwright browser on destroy
* fix: show exception msg in prod
* revert: "perf: use only one WASM alloc for xxhash"
This reverts commit 01ecdd48d0 .
* perf: use only one WASM alloc for xxhash
* test: add claim for worker
* fix: missing piece from 8dd9c9a
* feat: add namespace to the chunkfilename
* fix: keep var naming
2026-07-09 02:37:41 +08:00
dependabot[bot]
417ab04f06
chore(deps-dev): bump eslint-plugin-unicorn from 66.0.0 to 68.0.0 ( #22310 )
...
* chore(deps-dev): bump eslint-plugin-unicorn from 66.0.0 to 68.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn ) from 66.0.0 to 68.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases )
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v66.0.0...v68.0.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
dependency-version: 68.0.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* style: fix no-useless-coercion
* style: fix prefer-boolean-return
* style: fix no-useless-logical-operand
* style: fix prefer-single-replace
* style: fix consistent-conditional-object-spread
* style: fix no-useless-else
* style: fix prefer-unicode-code-point-escapes
* style: fix operator-assignment
* style: fix prefer-continue
* style: fix prefer-math-constants
* style: fix prefer-hoisting-branch-code
* style: fix prefer-array-slice
* style: fix consistent-class-member-order
* style: fix no-return-array-push
* style: fix prefer-promise-with-resolvers
* style: fix no-array-concat-in-loop
* style: fix no-loop-iterable-mutation
* style: fix no-invalid-argument-count
* style: fix no-duplicate-if-branches
* style: fix prefer-else-if
* style: fix no-unreadable-for-of-expression
* style: fix logical-assignment-operators
* style: fix default-export-style
* style: revert false positve in prefer-type-literal-last in #22274
* style: fix arrow-body-style
* style: add v68 recommended preset
* style: refactor GraphQL queries to use template literals for better readability
---------
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-20 23:11:27 +08:00
dependabot[bot]
873618e99d
chore(deps-dev): bump eslint-plugin-unicorn from 65.0.1 to 66.0.0 ( #22274 )
...
* chore(deps-dev): bump eslint-plugin-unicorn from 65.0.1 to 66.0.0
Bumps [eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn ) from 65.0.1 to 66.0.0.
- [Release notes](https://github.com/sindresorhus/eslint-plugin-unicorn/releases )
- [Commits](https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v65.0.1...v66.0.0 )
---
updated-dependencies:
- dependency-name: eslint-plugin-unicorn
dependency-version: 66.0.0
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
* style: fix unicorn-js/prefer-url-href
* style: oxlint disable
* style: fix unicorn-js/no-useless-else
* style: no-unsafe-string-replacement
* style: fix no-duplicate-loops
* style: fix prefer-number-is-safe-integer
* style: fix prefer-single-array-predicate
* style: fix no-object-methods-with-collections
* style: fix no-useless-boolean-cast
* style: fix no-useless-template-literals
* style: fix no-negated-array-predicate
* style: fix prefer-direct-iteration
* style: fix consistent-optional-chaining
* style: fix prefer-simple-sort-comparator
* style: fix prefer-global-number-constants
* style: fix prefer-type-literal-last
* style: fix require-array-sort-compare.
* style: fix prefer-early-return
* style: fix prefer-short-arrow-method
* style: fix prefer-array-from-map
* style: fix prefer-scoped-selector
* style: fix no-global-object-property-assignment
* style: fix no-unnecessary-global-this
* style: fix no-unreadable-object-destructuring
* style: fix no-invalid-argument-count
* style: fix prefer-smaller-scope
* style: fix prefer-iterator-to-array.
* style: fix prefer-object-iterable-methods
* style: fix typo
* style: fix max-nested-calls
* style: fix no-incorrect-template-string-interpolation
* style: fix no-break-in-nested-loop
* style: fix prefer-await
* style: fix no-computed-property-existence-check
* style: fix prefer-number-coercion
* style: fix no-empty-file
* style: update eslint unicorn v66 recommended preset
* style: add unicorn/prefer-spread to oxlint-disable comments
* style: fix no-array-reduce
* style: delete github/no-then as it's covered by unicorn/prefer-await
---------
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-16 14:43:42 +08:00
github-actions[bot]
77e742edd4
style: auto format
2026-06-11 06:48:23 +00:00
Tony
3a56432e3f
feat: allow nested namespace ( #22243 )
2026-06-11 14:47:00 +08:00
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
https://github.com/scalar/scalar/commit/81dddd3571d964f17820f503b48707db365d9cb3
---------
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