Commit Graph

252 Commits

Author SHA1 Message Date
DIYgod 7b1238f968
test: filter-engine 2024-02-26 19:46:59 +08:00
DIYgod fb06204c83
test: template 2024-02-26 19:44:22 +08:00
DIYgod 74fcb45ece
test: parameter 2024-02-26 19:35:42 +08:00
DIYgod b58b6e60cf
test: errors 2024-02-26 18:36:34 +08:00
DIYgod 0b5b83c88d
test: middleware header 2024-02-26 18:01:04 +08:00
DIYgod 5ede07bc1c
test: middleware debug 2024-02-26 17:51:47 +08:00
DIYgod 719af9073c
test: middleware cache 2024-02-26 17:32:06 +08:00
DIYgod 42a1c171a0
test: anti-hotlink 2024-02-25 21:47:18 +08:00
DIYgod 91a8439599
test: access-control 2024-02-25 21:27:39 +08:00
DIYgod b8a2301590
test: pac-proxy and unify-proxy 2024-02-25 17:16:10 +08:00
DIYgod a153d4cbcc
test: valid-host 2024-02-25 02:10:10 +08:00
DIYgod 01e142ccaf
test: wechat-mp 2024-02-25 02:08:35 +08:00
DIYgod d022fabda6
test: puppeteer-utils 2024-02-25 01:42:39 +08:00
DIYgod 1a8160a224
test: common-config 2024-02-25 00:55:51 +08:00
DIYgod 31140d0b59
test: wait 2024-02-25 00:34:52 +08:00
DIYgod 33861197f0
test: rss-parser 2024-02-25 00:33:10 +08:00
DIYgod 031af3f755
test: request-wrapper 2024-02-25 00:24:49 +08:00
DIYgod db59d44617
test: rand-user-agent 2024-02-24 23:45:45 +08:00
DIYgod cf09a77e25
test: parse-date 2024-02-24 23:40:23 +08:00
DIYgod cd0043b774
test: md5 2024-02-24 23:14:55 +08:00
DIYgod a2686197eb
test: got 2024-02-24 23:12:37 +08:00
DIYgod cb17e72f31
test: common-utils 2024-02-24 22:30:29 +08:00
DIYgod a6888c4653
feat: pkg 2024-02-24 22:23:14 +08:00
DIYgod 0d606a06c2
test: move test files to lib 2024-02-21 19:46:18 +08:00
DIYgod f289568899
test: router 2024-02-01 01:43:53 +08:00
DIYgod 04647e122b
test: config 2024-02-01 01:09:09 +08:00
DIYgod 97607f5079
test: puppeteer 2024-01-31 02:37:50 +08:00
DIYgod 40de7c111a
test: puppeteer 2024-01-31 02:27:41 +08:00
DIYgod 2e7bd66940
test: puppeteer 2024-01-31 02:14:48 +08:00
DIYgod 493cdc19ba
chore: recover format 2024-01-29 23:28:03 +08:00
DIYgod 6333562fe5
test: init jest test 2024-01-29 22:41:04 +08:00
Tony d1b3e161dc
fix: use sanitize-html (#14312)
* fix: use sanitize-html

* test: add brief test
2024-01-24 02:40:11 +08:00
Tony 6d901cb7dc
style(eslint): add eslint-unicorn (#14257)
* style: add eslint-unicorn

* style: fix unicorn/no-useless-spread

* style: fix unicorn/no-useless-promise-resolve-reject

* style: fix unicorn/no-for-loop

* fix: codeql bad HTML filtering regexp

* fix: codeql incomplete replace

* fix: unicorn/no-abusive-eslint-disable

* style: fix unicorn/no-new-array

* style: fix unicorn/no-typeof-undefined

* style: fix unicorn/no-zero-fractions

* style: fix unicorn/no-empty-file

* style: fix unicorn/prefer-date-now

* revert: auto fix unicorn/prefer-switch on lib/v2/kuaidi100/utils.js

* style: fix unicorn/prefer-array-find

* style: fix unicorn/prefer-array-flat

* style: fix unicorn/prefer-array-flat-map

* style: fix unicorn/prefer-at

* style: fix unicorn/prefer-string-starts-ends-with

* style: fix unicorn/prefer-includes

* fix: codeql URL substring sanitization

* style: fix unicorn/prefer-optional-catch-binding

* style: fix unicorn/catch-error-name

* style: fix unicorn/escape-case

* style: fix unicorn/prefer-native-coercion-functions

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/require-array-join-separator

* style: fix unicorn/prefer-math-trunc

* style: fix unicorn/prefer-negative-index

* style: fix unicorn/prefer-dom-node-dataset

* style: fix unicorn/prefer-dom-node-text-content

* style: fix unicorn/prefer-query-selector

* style: fix unicorn/no-array-for-each

* style: fix unicorn/no-negated-condition

* style: fix unicorn/prefer-add-event-listener

* style: fix unicorn/import-style

* style: fix prefer-regex-literals

* style: disable unicorn/no-useless-switch-case

* style: disable unicorn/text-encoding-identifier-case

* style: fix unicorn/prefer-set-has

* style: fix unicorn/prefer-spread

* revert: auto fix on lib/routes/universities/ynnu/edu/base64.js

* style: fix unicorn/no-useless-undefined

* style: fix unicorn/no-array-push-push

* style: fix unicorn/no-useless-undefined again

* style: fix unicorn/no-lonely-if

* style: fix unicorn/prefer-reflect-apply

* style: fix unicorn/switch-case-braces

* style: fix unicorn/prefer-switch

* style: fix unicorn/prefer-array-some

* fix: deepscan UNUSED_VAR_ASSIGN

* style: fix unicorn/prefer-ternary

* fix: follow-up of unicorn/prefer-ternary

* revert: auto fix of unicorn/prefer-string-slice for substring()

* style: disable unicorn/prefer-string-slice

fix: auto fix slice over deprecated substr

* style: fix unicorn/throw-new-error

* style: fix unicorn/filename-case

* test: fix dateParser renaming

* style: fix unicorn/better-regex

* style: fix unicorn/prefer-string-replace-all

* fix(deps): add sanitize-html

* style: fix no-prototype-builtins

* style: fix unicorn/consistent-destructuring

* style: fix unicorn/consistent-function-scoping

* style: fix unicorn/prefer-regexp-test

* style: fix unicorn/prefer-logical-operator-over-ternary

* style: fix unicorn/no-array-callback-reference

* style: add prefer-object-has-own

* style: warn unicorn/no-empty-file

* style: fix unicorn/prefer-number-properties

* style: fix no-useless-undefined again

* style: fix unicorn/numeric-separators-style

* style: disable unicorn/no-array-callback-reference

false postive with cheerio
2024-01-18 20:43:40 +08:00
Joshua Peek ed8e195ba6
feat: support CIDR IP ranges in allowlist (#14243) 2024-01-15 12:35:34 +08:00
JimenezLi 0e70524248
feat(proxy): add PAC script support (#14218)
* feat(proxy): add PAC script support

* fix pnpm fail

* fix coverage

* fix coverage final

* update docs
2024-01-13 02:35:56 +00:00
Tony a1644ac4ca
feat: title case following The Chicago Manual of Style (#14048) 2023-12-15 22:37:12 +08:00
Tony 3c8ccd948e
perf(core): replace md5 cache key with xxhash64 (#13974)
* perf(core): replace md5 cache key with xxhash64

* test: add test case for cache TTL key
2023-12-07 00:58:39 +08:00
Tony 7da162041f
fix(core): duplicated path if the error is thrown from parameter (#13967)
* fix(core): double namespace if the error is thrown from parameter

* test: fix test case
2023-12-06 08:00:00 +08:00
Tony 88241f5cd1
test: bump router test time range
fix https://github.com/DIYgod/RSSHub/actions/runs/7104681085/job/19340228876
2023-12-06 05:56:24 +08:00
Tony 7dee6a82d4
fix(core): v2 route path should keep mounted in stats if error throws (#13965) 2023-12-06 02:11:36 +08:00
DIYgod e30c50694c
feat: support remote config 2023-12-01 11:19:00 +08:00
DIYgod 673a2259ce
feat: remove outdated test case 2023-11-29 21:57:13 +08:00
zzturn e594309e7e
feat(parameter): Add summary by ChatGPT (#13611)
* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* feat: 添加使用 ChatGPT 进行总结的功能

* style: camelCase

---------
2023-11-06 22:36:24 +08:00
Henry Wang d6056e2dbc
feat!: allowlist & denylist (#13681)
* feat!: allowlist & denylist

* Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md

* Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md

* Update website/i18n/zh/docusaurus-plugin-content-docs/current/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* Update website/docs/install/README.md

* chore: revert

---------
2023-11-03 21:21:17 +08:00
Summer⛱ 90026020a8
fix(parameter): adjust to filter before limit. (#13682)
* fix(parameter): adjust to filter before limit.

* fix(parameter): add test.

* fix
2023-11-03 13:46:04 +08:00
JimenezLi 2c8f463630
fix(core): string-type categories only (#13590) 2023-10-24 21:35:42 +08:00
Tony eb1a40aa88
chore: fix random ua generation (#13356) 2023-09-22 03:32:48 +08:00
Tony 58a052ea4c
test: double httperror timeout 2023-09-07 18:47:51 +00:00
Tony 8806b7a1b9
test: extend timeout for /test/httperror 2023-09-06 11:43:20 +00:00
Andvari 657c67ec37
feat(route): Start on support for generic discourse forums. (#13063)
* Start on support for generic discourse forums.

* Add doc.

* Update doc.

* Add exception.

* Update doc.

* Update bbs.md

* test: add discourse config

* docs: fix typo

* fix: guard condition

---------
2023-08-23 21:19:45 +08:00