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
Tony
cfcdc34e1f
refactor: replace playwright with patchright ( #21976 )
...
* refactor: use patchwright
* refactor: migrate setRequestInterception and waitUntil
* fix: overwrite ua
* refactor: drop puppeteer cookie/requestfinished shims
Migrate page.cookies/setCookie and browser.cookies/setCookie call sites to the native context APIs (page.context().cookies/addCookies), rewrite requestfinished handlers to await request.response() instead of consuming the synchronous puppeteer-shaped payload, and remove the now-redundant browser.close context-cleanup wrapper. Playwright already handles all of these natively; the shims existed only for the puppeteer -> playwright migration.
* refactor: remove page.authenticate, page.setUserAgent, browser.newPage(), browser.userAgent() shims
update cookie utility tests
* refactor: replace browser instance with context in Playwright usage across multiple routes
- Updated all instances of `browser` to `context` in Playwright-related functions for consistency and improved resource management.
- Ensured proper closure of context after operations to prevent memory leaks.
- Adjusted request interception methods to utilize the new context variable.
* fix: direct type import
* refactor: remove Puppeteer compatibility layers and unify page handling with Playwright
* fix: test case
* chore: bump patchright to v1.60.0
* chore: pin patchright to 1.59.1
nft can't resolve browser.json due to https://github.com/microsoft/playwright/pull/40093
* chore: pin to node 24.15 for playwright
browser install on node 24.16 stucks due to https://github.com/microsoft/playwright/issues/40724
* fix: update patchright and patchright-core to version 1.60.2 and adjust minify-docker.js for compatibility
* fix: import BrowserContext from patchright
2026-06-07 02:43:20 +08:00
Tony
7785a7bde4
style: update eslint rules ( #21207 )
...
* style: update eslint rules
* style: fix prefer-object-spread
* style: fix no-lonely-if
* fix: typescript-eslint/no-unnecessary-template-expression
* fix: sort import
* style: apply file filtering to config presets
* revert: changes on pkg
* style: revert
* style: use defineConfig
* style: reorder js plugin in eslint config
* chore: remove obsolete override
* style: fix CodeQL initialization to ensure language matrix is used
2026-02-23 08:17:37 +08:00
dependabot[bot]
6899aca3d4
chore(deps-dev): bump tsdown from 0.15.12 to 0.16.0 ( #20431 )
...
* chore(deps-dev): bump tsdown from 0.15.12 to 0.16.0
Bumps [tsdown](https://github.com/rolldown/tsdown ) from 0.15.12 to 0.16.0.
- [Release notes](https://github.com/rolldown/tsdown/releases )
- [Commits](https://github.com/rolldown/tsdown/compare/v0.15.12...v0.16.0 )
---
updated-dependencies:
- dependency-name: tsdown
dependency-version: 0.16.0
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* fix: update file extension from .js to .mjs
* fix: update start script to use .mjs file extension
---------
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-11-06 01:30:32 +08:00
Tony
b1c74bd3e3
chore: add back minify docker again ( #20304 )
...
* Revert "chore: minify docker (#18914 )"
This reverts commit e9013a2313 .
* Reapply "chore: minify docker (#18914 )"
This reverts commit b16a021f0c4a854e96004520c868c414ec654c8d.
* fix(minify-docker): correct path to cross-env binary
* feat(minify-docker): use import.meta.dirname
* chore(deps): remove deprecated @types/imapflow dependency
2025-10-18 01:48:38 +08:00
Tony
dd96d12ebb
revert: "chore: minify docker ( #18914 )" ( #18931 )
...
This reverts commit e9013a2313 .
2025-04-24 02:18:02 +08:00
Tony
e9013a2313
chore: minify docker ( #18914 )
...
* chore: minify docker
* chore: bring back minify script
2025-04-23 02:42:25 +08:00
DIYgod
8536931e9d
chore: fix npm start
2024-02-26 00:52:44 +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
dependabot[bot]
ff57adb089
chore(deps-dev): bump @vercel/nft from 0.21.0 to 0.22.1 ( #10675 )
...
* chore(deps-dev): bump @vercel/nft from 0.21.0 to 0.22.1
Bumps [@vercel/nft](https://github.com/vercel/nft ) from 0.21.0 to 0.22.1.
- [Release notes](https://github.com/vercel/nft/releases )
- [Commits](https://github.com/vercel/nft/compare/0.21.0...0.22.1 )
---
updated-dependencies:
- dependency-name: "@vercel/nft"
dependency-type: direct:development
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
* Revert "docs: vercel workaround (#10665 )"
This reverts commit f57e6230ac .
* fix: scrape settings
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-03 01:54:37 +08:00
dependabot[bot]
a768e4690f
chore(deps): bump puppeteer from 16.2.0 to 17.0.0 ( #10651 )
...
* chore(deps): bump puppeteer from 16.2.0 to 17.0.0
Bumps [puppeteer](https://github.com/puppeteer/puppeteer ) from 16.2.0 to 17.0.0.
- [Release notes](https://github.com/puppeteer/puppeteer/releases )
- [Changelog](https://github.com/puppeteer/puppeteer/blob/main/CHANGELOG.md )
- [Commits](https://github.com/puppeteer/puppeteer/compare/v16.2.0...v17.0.0 )
---
updated-dependencies:
- dependency-name: puppeteer
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com>
* chore: misc fix
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-01 02:24:18 +08:00
Tony
11ef5c4dba
chore: rename `now` to `vercel` ( #9791 )
2022-05-20 19:27:08 +08:00
Rongrong
d8c00ec238
build(docker): optimize; add Chromium bundled ver ( #9626 )
...
* build(docker): optimize; add Chromium bundled ver
Signed-off-by: Rongrong <i@rong.moe>
* build(Dockerfile): fix redundant command and label
Signed-off-by: Rongrong <i@rong.moe>
* build(docker): only install prod deps to speed up
Signed-off-by: Rongrong <i@rong.moe>
* docs(install): minor fixes
Signed-off-by: Rongrong <i@rong.moe>
* build(Dockerfile): bump to `node:16-bullseye-slim`
Signed-off-by: Rongrong <i@rong.moe>
* build(Dockerfile): fix yarn registry mirror
Signed-off-by: Rongrong <i@rong.moe>
* build(Dockerfile): minimize dependencies
for Chromium-bundled version
Signed-off-by: Rongrong <i@rong.moe>
2022-04-28 20:40:21 +08:00
Chih-Hsuan Yen
1e8797008c
fix: update minify-docker.js for newer @vercel/nft ( #8628 )
...
In commit ad1a09597f , @vercel/nft is
updated to 0.17.0, and in this version fileList from nft is a set
instead of an array [1].
[1] https://github.com/vercel/nft/pull/240
2021-12-01 10:29:03 +08:00
GitHub Action
9968dbfc96
style: auto format
2021-08-13 10:46:31 +00:00
NeverBehave
c0b638c860
fix(dockerfile): copy necessary file when building ( #8008 )
...
* fix(dockerfile): copy necessary file when building
*when even bother deleting file...
* no console
2021-08-13 03:44:39 -07:00