@pawover/kit 1.1.0-alpha.1 → 1.2.0-alpha.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.en.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <p><a href="README.md">简体中文</a> | <b>English</b></p>
5
5
 
6
6
  [![npm version](https://img.shields.io/npm/v/@pawover/kit.svg)](https://www.npmjs.com/package/@pawover/kit)
7
- [![Node version](https://img.shields.io/badge/node-%3E%3D22.20.0-brightgreen.svg)](https://nodejs.org)
7
+ [![Node version](https://img.shields.io/badge/node-%3E%3D24.21.0-brightgreen.svg)](https://nodejs.org)
8
8
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
9
9
  [![Docs](https://img.shields.io/badge/docs-pawover--kit--docs-3B82F6.svg)](https://pawover.github.io/pawover-kit/)
10
10
  </div>
@@ -87,7 +87,7 @@ id.parse("abc"); // "abc"
87
87
 
88
88
  ## Requirements
89
89
 
90
- - Node.js >= 22.20.0
90
+ - Node.js >= 24.21.0
91
91
  - pnpm >= 11
92
92
 
93
93
  ## Development
package/README.md CHANGED
@@ -4,7 +4,7 @@
4
4
  <p><b>简体中文</b> | <a href="README.en.md">English</a></p>
5
5
 
6
6
  [![npm version](https://img.shields.io/npm/v/@pawover/kit.svg)](https://www.npmjs.com/package/@pawover/kit)
7
- [![Node version](https://img.shields.io/badge/node-%3E%3D22.20.0-brightgreen.svg)](https://nodejs.org)
7
+ [![Node version](https://img.shields.io/badge/node-%3E%3D24.21.0-brightgreen.svg)](https://nodejs.org)
8
8
  [![License](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
9
9
  [![Docs](https://img.shields.io/badge/docs-pawover--kit--docs-3B82F6.svg)](https://pawover.github.io/pawover-kit/)
10
10
  </div>
@@ -87,7 +87,7 @@ id.parse("abc"); // "abc"
87
87
 
88
88
  ## 环境要求
89
89
 
90
- - Node.js >= 22.20.0
90
+ - Node.js >= 24.21.0
91
91
  - pnpm >= 11
92
92
 
93
93
  ## 开发
@@ -0,0 +1 @@
1
+ export * from "@pawover/kit-types/global";
@@ -0,0 +1 @@
1
+ export * from "@pawover/kit-types/react/global";
package/package.json CHANGED
@@ -6,7 +6,7 @@
6
6
  "url": "https://github.com/pawover"
7
7
  },
8
8
  "description": "一个基于 TypeScript 的开发工具包",
9
- "version": "1.1.0-alpha.1",
9
+ "version": "1.2.0-alpha.2",
10
10
  "type": "module",
11
11
  "engines": {
12
12
  "node": ">=24.21.0"
@@ -145,6 +145,12 @@
145
145
  "default": "./entry/types-react.cjs"
146
146
  }
147
147
  },
148
+ "./types/global": {
149
+ "types": "./entry/types-global.d.ts"
150
+ },
151
+ "./types/react/global": {
152
+ "types": "./entry/types-react-global.d.ts"
153
+ },
148
154
  "./eslint-rules": {
149
155
  "import": {
150
156
  "types": "./entry/eslint-rules.d.ts",
@@ -162,10 +168,10 @@
162
168
  },
163
169
  "dependencies": {
164
170
  "@pawover/kit-eslint-rules": "0.1.0-alpha.1",
165
- "@pawover/kit-hooks": "0.0.9-alpha.0",
166
- "@pawover/kit-utils": "1.0.1-alpha.0",
171
+ "@pawover/kit-hooks": "0.0.9-alpha.1",
172
+ "@pawover/kit-types": "0.1.0-alpha.0",
167
173
  "@pawover/kit-zod": "0.0.4",
168
- "@pawover/kit-types": "0.0.4"
174
+ "@pawover/kit-utils": "1.0.1-alpha.1"
169
175
  },
170
176
  "devDependencies": {
171
177
  "@arethetypeswrong/cli": "^0.18.5",
@@ -242,7 +248,8 @@
242
248
  "test:integration": "vitest run test/integration",
243
249
  "test:types": "tsc -p test/tsconfig.json --noEmit",
244
250
  "test:smoke": "node test/scripts/smoke.ts",
245
- "test:ci": "pnpm test:types && pnpm test && pnpm build && pnpm test:smoke && pnpm check:pack",
251
+ "test:global-types": "node test/scripts/globalTypes.ts",
252
+ "test:ci": "pnpm test:types && pnpm check:types:packages && pnpm test && pnpm build && pnpm test:smoke && pnpm test:global-types && pnpm check:pack",
246
253
  "postbuild": "node scripts/syncEntry.ts",
247
254
  "build": "turbo build",
248
255
  "build:analyze": "cross-env VISUALIZER=1 turbo build",
@@ -262,7 +269,8 @@
262
269
  "docs:preview": "vitepress preview site",
263
270
  "docs:gen": "node scripts/generateDocs.ts",
264
271
  "check": "pnpm check:types & pnpm check:eslint & pnpm check:format",
265
- "check:types": "tsc --noEmit",
272
+ "check:types": "tsc --noEmit && node scripts/checkPackageTypes.ts",
273
+ "check:types:packages": "node scripts/checkPackageTypes.ts",
266
274
  "check:eslint": "eslint --fix \"**/*.{js,cjs,mjs,ts,cts,mts,jsx,tsx,vue}\" --cache-location=.cache/eslint.cache.json --cache",
267
275
  "check:format": "prettier --write \"**/*.{html,json,jsonc}\" --cache-location=.cache/prettier.cache.json --cache",
268
276
  "check:pack": "cross-env HUSKY=0 node scripts/checkPack.ts",