@chocozhang/three-model-render 1.0.4 → 1.0.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chocozhang/three-model-render",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "description": "Professional Three.js model visualization and interaction toolkit with 14 high-performance utilities",
6
6
  "main": "./dist/index.js",
@@ -8,52 +8,57 @@
8
8
  "types": "./dist/index.d.ts",
9
9
  "exports": {
10
10
  ".": {
11
+ "types": "./dist/index.d.ts",
11
12
  "import": "./dist/index.mjs",
12
- "require": "./dist/index.js",
13
- "types": "./dist/index.d.ts"
13
+ "require": "./dist/index.js"
14
14
  },
15
15
  "./core": {
16
+ "types": "./dist/core/index.d.ts",
16
17
  "import": "./dist/core/index.mjs",
17
- "require": "./dist/core/index.js",
18
- "types": "./dist/core/index.d.ts"
18
+ "require": "./dist/core/index.js"
19
19
  },
20
20
  "./interaction": {
21
+ "types": "./dist/interaction/index.d.ts",
21
22
  "import": "./dist/interaction/index.mjs",
22
- "require": "./dist/interaction/index.js",
23
- "types": "./dist/interaction/index.d.ts"
23
+ "require": "./dist/interaction/index.js"
24
24
  },
25
25
  "./camera": {
26
+ "types": "./dist/camera/index.d.ts",
26
27
  "import": "./dist/camera/index.mjs",
27
- "require": "./dist/camera/index.js",
28
- "types": "./dist/camera/index.d.ts"
28
+ "require": "./dist/camera/index.js"
29
29
  },
30
30
  "./loader": {
31
+ "types": "./dist/loader/index.d.ts",
31
32
  "import": "./dist/loader/index.mjs",
32
- "require": "./dist/loader/index.js",
33
- "types": "./dist/loader/index.d.ts"
33
+ "require": "./dist/loader/index.js"
34
34
  },
35
35
  "./ui": {
36
+ "types": "./dist/ui/index.d.ts",
36
37
  "import": "./dist/ui/index.mjs",
37
- "require": "./dist/ui/index.js",
38
- "types": "./dist/ui/index.d.ts"
38
+ "require": "./dist/ui/index.js"
39
39
  },
40
40
  "./effect": {
41
+ "types": "./dist/effect/index.d.ts",
41
42
  "import": "./dist/effect/index.mjs",
42
- "require": "./dist/effect/index.js",
43
- "types": "./dist/effect/index.d.ts"
43
+ "require": "./dist/effect/index.js"
44
44
  },
45
45
  "./setup": {
46
+ "types": "./dist/setup/index.d.ts",
46
47
  "import": "./dist/setup/index.mjs",
47
- "require": "./dist/setup/index.js",
48
- "types": "./dist/setup/index.d.ts"
48
+ "require": "./dist/setup/index.js"
49
49
  }
50
50
  },
51
51
  "sideEffects": false,
52
52
  "files": [
53
53
  "dist",
54
54
  "README.md",
55
- "LICENSE"
55
+ "LICENSE",
56
+ "CHANGELOG.md"
56
57
  ],
58
+ "engines": {
59
+ "node": ">=24.3.0"
60
+ },
61
+ "packageManager": "pnpm@10.26.1",
57
62
  "keywords": [
58
63
  "three",
59
64
  "threejs",
@@ -66,7 +71,14 @@
66
71
  "camera",
67
72
  "loader",
68
73
  "typescript",
69
- "performance"
74
+ "performance",
75
+ "gltf",
76
+ "glb",
77
+ "fbx",
78
+ "obj",
79
+ "model-viewer",
80
+ "3d-viewer",
81
+ "tree-shaking"
70
82
  ],
71
83
  "author": "Danny Zhang <happyelement.danny@gmail.com>",
72
84
  "license": "MIT",
@@ -74,6 +86,10 @@
74
86
  "type": "git",
75
87
  "url": "https://github.com/HappyColour/three-model-render.git"
76
88
  },
89
+ "bugs": {
90
+ "url": "https://github.com/HappyColour/three-model-render/issues"
91
+ },
92
+ "homepage": "https://happycolour.github.io/",
77
93
  "publishConfig": {
78
94
  "access": "public"
79
95
  },
@@ -83,16 +99,28 @@
83
99
  "devDependencies": {
84
100
  "@rollup/plugin-node-resolve": "^15.2.3",
85
101
  "@rollup/plugin-typescript": "^11.1.5",
102
+ "@types/node": "^25.0.3",
86
103
  "@types/three": "^0.160.0",
104
+ "@vitest/coverage-v8": "^4.0.16",
105
+ "@vitest/ui": "^4.0.16",
106
+ "jsdom": "^27.3.0",
87
107
  "rollup": "^4.9.0",
88
108
  "rollup-plugin-dts": "^6.1.0",
89
109
  "tslib": "^2.6.2",
90
- "typescript": "^5.3.3"
110
+ "typedoc": "^0.28.15",
111
+ "typedoc-plugin-markdown": "^4.9.0",
112
+ "typescript": "^5.3.3",
113
+ "vitest": "^4.0.16"
91
114
  },
92
115
  "scripts": {
93
116
  "build": "rollup -c",
94
117
  "dev": "rollup -c -w",
95
118
  "prepublishOnly": "npm run build",
96
- "type-check": "tsc --noEmit"
119
+ "type-check": "tsc --noEmit",
120
+ "test": "vitest run",
121
+ "test:watch": "vitest",
122
+ "test:ui": "vitest --ui",
123
+ "test:coverage": "vitest run --coverage",
124
+ "docs": "typedoc"
97
125
  }
98
126
  }