Skip to content

Commit e901311

Browse files
authored
chore: oxfmt v0.20 (#627)
<!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Modernized package manifest to support both ESM and CJS consumers, added publish tag, license and author, and consolidated top‑level configuration. * Upgraded tooling dependency (oxfmt). * Moved and clarified lint-staged configuration. * **Style** * Fixed JSON/tsconfig formatting and adjusted module/compiler settings in fixture configs. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 9bd576e commit e901311

7 files changed

Lines changed: 119 additions & 109 deletions

File tree

package.json

Lines changed: 41 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,49 @@
11
{
22
"name": "urllib",
33
"version": "4.9.0",
4-
"publishConfig": {
5-
"tag": "latest"
6-
},
74
"description": "Help in opening URLs (mostly HTTP) in a complex world — basic and digest authentication, redirections, timeout and more. Base undici API.",
85
"keywords": [
9-
"urllib",
10-
"http",
11-
"urlopen",
126
"curl",
13-
"wget",
14-
"request",
7+
"fetch",
8+
"http",
159
"https",
10+
"request",
1611
"undici",
17-
"fetch"
12+
"urllib",
13+
"urlopen",
14+
"wget"
1815
],
19-
"author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)",
2016
"homepage": "https://github.com/node-modules/urllib",
17+
"license": "MIT",
18+
"author": "fengmk2 <fengmk2@gmail.com> (https://github.com/fengmk2)",
2119
"repository": {
2220
"type": "git",
2321
"url": "git://github.com/node-modules/urllib.git"
2422
},
23+
"files": [
24+
"dist",
25+
"src"
26+
],
27+
"type": "module",
28+
"main": "./dist/commonjs/index.js",
29+
"module": "./dist/esm/index.js",
30+
"types": "./dist/commonjs/index.d.ts",
31+
"exports": {
32+
".": {
33+
"import": {
34+
"types": "./dist/esm/index.d.ts",
35+
"default": "./dist/esm/index.js"
36+
},
37+
"require": {
38+
"types": "./dist/commonjs/index.d.ts",
39+
"default": "./dist/commonjs/index.js"
40+
}
41+
},
42+
"./package.json": "./package.json"
43+
},
44+
"publishConfig": {
45+
"tag": "latest"
46+
},
2547
"scripts": {
2648
"lint": "oxlint src test --type-aware --type-check",
2749
"fmt": "oxfmt",
@@ -64,8 +86,6 @@
6486
"@codspeed/vitest-plugin": "^5.0.1",
6587
"@eggjs/oxlint-config": "^1.0.0",
6688
"@eggjs/tsconfig": "^2.0.0",
67-
"@tsconfig/node18": "^18.2.6",
68-
"@tsconfig/strictest": "^2.0.8",
6989
"@types/busboy": "^1.5.4",
7090
"@types/mime-types": "^2.1.4",
7191
"@types/node": "^22.19.3",
@@ -81,7 +101,7 @@
81101
"husky": "^9.1.7",
82102
"iconv-lite": "^0.6.3",
83103
"lint-staged": "^16.2.7",
84-
"oxfmt": "^0.17.0",
104+
"oxfmt": "^0.20.0",
85105
"oxlint": "^1.35.0",
86106
"oxlint-tsgolint": "^0.10.0",
87107
"proxy": "^1.0.2",
@@ -93,42 +113,20 @@
93113
"typescript": "^5.9.3",
94114
"vitest": "^3.2.4"
95115
},
96-
"engines": {
97-
"node": ">= 18.19.0"
116+
"lint-staged": {
117+
"*": [
118+
"npm run lint -- --fix",
119+
"oxfmt"
120+
]
98121
},
99-
"license": "MIT",
100-
"type": "module",
101122
"tshy": {
102123
"exports": {
103124
".": "./src/index.ts",
104125
"./package.json": "./package.json"
105126
}
106127
},
107-
"exports": {
108-
".": {
109-
"import": {
110-
"types": "./dist/esm/index.d.ts",
111-
"default": "./dist/esm/index.js"
112-
},
113-
"require": {
114-
"types": "./dist/commonjs/index.d.ts",
115-
"default": "./dist/commonjs/index.js"
116-
}
117-
},
118-
"./package.json": "./package.json"
128+
"engines": {
129+
"node": ">= 18.19.0"
119130
},
120-
"files": [
121-
"dist",
122-
"src"
123-
],
124-
"types": "./dist/commonjs/index.d.ts",
125-
"main": "./dist/commonjs/index.js",
126-
"module": "./dist/esm/index.js",
127-
"packageManager": "pnpm@10.26.2",
128-
"lint-staged": {
129-
"*": [
130-
"npm run lint -- --fix",
131-
"oxfmt"
132-
]
133-
}
131+
"packageManager": "pnpm@10.26.2"
134132
}

0 commit comments

Comments
 (0)