generic-ui-core 1.9.0 → 2.0.0

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,13 +1,20 @@
1
1
  {
2
2
  "name": "generic-ui-core",
3
- "version": "1.9.0",
4
- "main": "dist/main.js",
3
+ "version": "2.0.0",
4
+ "module": "dist/index.mjs",
5
5
  "types": "dist/index.d.ts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./dist/index.d.ts",
9
+ "import": "./dist/index.mjs",
10
+ "require": "./dist/main.js"
11
+ }
12
+ },
6
13
  "description": "A support library for generic UI components.",
7
14
  "license": "MIT",
8
15
  "private": false,
9
16
  "engines": {
10
- "node": ">=20.0.0 <25.0.0"
17
+ "node": ">=21.0.0 <25.0.0"
11
18
  },
12
19
  "author": "Claire Lin <lclaire@gmail.com>",
13
20
  "files": [
@@ -20,41 +27,35 @@
20
27
  "user interface"
21
28
  ],
22
29
  "scripts": {
23
- "types": "cp types/index.d.ts dist/",
24
- "production": "webpack --config webpack.config.js --mode production",
25
- "development": "webpack --config webpack.config.js --mode development",
26
- "build": "yarn production && yarn types",
27
- "test": "jest --verbose",
28
- "test:coverage": "jest --coverage"
30
+ "types": "node update.js",
31
+ "build": "vite build --sourcemap false && yarn types",
32
+ "build:dev": "vite build --sourcemap true && yarn types",
33
+ "dev": "vite",
34
+ "test": "vitest run",
35
+ "test:watch": "vitest",
36
+ "test:coverage": "vitest run --coverage"
29
37
  },
30
38
  "devDependencies": {
31
- "@babel/cli": "7.28.6",
32
- "@babel/core": "7.28.6",
33
- "@babel/eslint-parser": "7.28.6",
34
- "@babel/plugin-syntax-dynamic-import": "^7.8.3",
35
- "@babel/plugin-syntax-jsx": "^7.27.1",
36
- "@babel/plugin-transform-runtime": "^7.28.5",
37
- "@babel/preset-env": "7.28.6",
38
- "@eslint/eslintrc": "^3.3.1",
39
- "@eslint/js": "^9.31.0",
40
- "babel-loader": "10.0.0",
41
- "eslint": "^9.31.0",
39
+ "@eslint/eslintrc": "^3.3.3",
40
+ "@eslint/js": "^9.39.2",
41
+ "@vitest/coverage-v8": "^4.0.17",
42
+ "eslint": "^9.39.2",
42
43
  "eslint-config-airbnb-base": "^15.0.0",
43
- "eslint-config-prettier": "10.1.8",
44
+ "eslint-config-prettier": "^10.1.8",
44
45
  "eslint-plugin-import": "^2.32.0",
45
- "eslint-plugin-jest": "29.0.1",
46
46
  "eslint-plugin-jsx-a11y": "^6.10.2",
47
- "eslint-plugin-prettier": "^5.2.5",
47
+ "eslint-plugin-prettier": "^5.5.4",
48
48
  "eslint-plugin-react": "^7.4.0",
49
49
  "eslint-plugin-react-hooks": "5.2.0",
50
+ "eslint-plugin-vitest": "^0.5.4",
50
51
  "globals": "^16.0.0",
51
- "jest": "30.2.0",
52
- "jest-environment-jsdom": "30.2.0",
52
+ "happy-dom": "^20.1.0",
53
+ "jsdom": "^27.4.0",
53
54
  "prettier": "^3.5.3",
54
- "terser-webpack-plugin": "^5.3.14",
55
- "typescript": "^5.8.2",
56
- "webpack": "^5.98.0",
57
- "webpack-cli": "^6.0.1"
55
+ "terser": "^5.44.1",
56
+ "typescript": "^5.9.3",
57
+ "vite": "^7.3.1",
58
+ "vitest": "^4.0.17"
58
59
  },
59
60
  "dependencies": {
60
61
  "chem-units": "^1.5.0",