Skip to content

Commit 32f2700

Browse files
CopilotTechQuery
andauthored
[refactor] add Progressive HEAD simulation & Stream utility functions (#19)
Co-authored-by: TechQuery <shiy2008@gmail.com>
1 parent dd0c3c8 commit 32f2700

11 files changed

Lines changed: 2102 additions & 1890 deletions

File tree

.github/pr-badge.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# install https://pullrequestbadge.com/ first
2+
13
- icon: visualstudio
24
label: 'GitHub.dev'
35
message: 'PR-$prNumber'

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
contents: write
1111
id-token: write
1212
steps:
13-
- uses: actions/checkout@v4
13+
- uses: actions/checkout@v6
1414

1515
- uses: pnpm/action-setup@v4
1616
with:
17-
version: 9
18-
- uses: actions/setup-node@v4
17+
version: 10
18+
- uses: actions/setup-node@v6
1919
with:
20-
node-version: 22
20+
node-version: 24
2121
registry-url: https://registry.npmjs.org
2222
cache: pnpm
2323
- name: Install Dependencies

ReadMe.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,6 @@ document.querySelector('input[type="file"]').onchange = async ({
260260
[2]: https://libraries.io/npm/koajax
261261
[3]: https://github.com/EasyWebApp/KoAJAX/actions/workflows/main.yml
262262
[4]: https://www.jsdelivr.com/package/npm/koajax
263-
[5]: https://nodei.co/npm/koajax/
263+
[5]: https://npm.im/koajax/
264264
[6]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for-await...of#Iterating_over_async_generators
265265
[7]: https://developer.chrome.com/docs/capabilities/web-apis/fetch-streaming-requests#restrictions

package.json

Lines changed: 29 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "koajax",
3-
"version": "3.1.2",
3+
"version": "3.2.0",
44
"license": "LGPL-3.0",
55
"author": "shiy2008@gmail.com",
66
"description": "HTTP Client based on Koa-like middlewares",
@@ -25,37 +25,46 @@
2525
"main": "dist/index.js",
2626
"module": "dist/index.esm.js",
2727
"dependencies": {
28-
"@swc/helpers": "^0.5.15",
28+
"@swc/helpers": "^0.5.19",
2929
"regenerator-runtime": "^0.14.1",
30-
"web-streams-polyfill": "^4.1.0",
31-
"web-utility": "^4.4.3"
30+
"web-streams-polyfill": "^4.2.0",
31+
"web-utility": "^4.6.4"
3232
},
3333
"peerDependencies": {
3434
"core-js": ">=3",
3535
"jsdom": ">=21"
3636
},
3737
"devDependencies": {
38-
"@parcel/packager-ts": "~2.14.1",
39-
"@parcel/transformer-typescript-types": "~2.14.1",
38+
"@parcel/packager-ts": "~2.16.4",
39+
"@parcel/transformer-typescript-types": "~2.16.4",
4040
"@types/jest": "^29.5.14",
41-
"@types/jsdom": "^21.1.7",
42-
"@types/node": "^22.13.11",
41+
"@types/jsdom": "^28.0.1",
42+
"@types/node": "^24.12.0",
4343
"abortcontroller-polyfill": "^1.7.8",
44-
"core-js": "^3.41.0",
45-
"cross-env": "^7.0.3",
44+
"core-js": "^3.49.0",
45+
"cross-env": "^10.1.0",
4646
"husky": "^9.1.7",
4747
"jest": "^29.7.0",
4848
"jest-environment-jsdom": "^29.7.0",
49-
"jsdom": "^26.0.0",
50-
"lint-staged": "^15.5.0",
49+
"jsdom": "^29.0.1",
50+
"lint-staged": "^16.4.0",
5151
"open-cli": "^8.0.0",
52-
"parcel": "~2.14.1",
53-
"prettier": "^3.5.3",
54-
"ts-jest": "^29.2.6",
52+
"parcel": "~2.16.4",
53+
"prettier": "^3.8.1",
54+
"ts-jest": "^29.4.6",
5555
"ts-node": "^10.9.2",
56-
"typedoc": "^0.28.1",
57-
"typedoc-plugin-mdn-links": "^5.0.1",
58-
"typescript": "~5.8.2"
56+
"typedoc": "^0.28.18",
57+
"typedoc-plugin-mdn-links": "^5.1.1",
58+
"typescript": "~5.9.3"
59+
},
60+
"pnpm": {
61+
"onlyBuiltDependencies": [
62+
"@parcel/watcher",
63+
"@swc/core",
64+
"core-js",
65+
"lmdb",
66+
"msgpackr-extract"
67+
]
5968
},
6069
"prettier": {
6170
"singleQuote": true,
@@ -68,7 +77,8 @@
6877
},
6978
"jest": {
7079
"preset": "ts-jest",
71-
"testEnvironment": "./test/custom-JSDOM.ts"
80+
"testEnvironment": "./test/custom-JSDOM.ts",
81+
"testTimeout": 10000
7282
},
7383
"browserslist": "> 0.5%, last 2 versions, not dead, IE 11",
7484
"targets": {

0 commit comments

Comments
 (0)