ivue 1.5.8 → 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/lib/kernel.ts ADDED
@@ -0,0 +1,18 @@
1
+ export class Kernel {
2
+ #map = new Map<string, any>();
3
+
4
+ set<T>(key: string, value: T) {
5
+ this.#map.set(key, value);
6
+ }
7
+
8
+ get<T = any>(key: string, fallback: T): T {
9
+ const value = this.#map.get(key) as T | undefined;
10
+ return value ?? fallback;
11
+ }
12
+
13
+ clear() {
14
+ this.#map.clear();
15
+ }
16
+ }
17
+
18
+ export const kernel = new Kernel();
package/package.json CHANGED
@@ -1,29 +1,52 @@
1
1
  {
2
2
  "name": "ivue",
3
- "version": "1.5.8",
3
+ "version": "2.0.0",
4
4
  "description": "Infinite Vue – Class Based Architecture for Vue 3",
5
5
  "type": "module",
6
6
  "exports": {
7
7
  ".": {
8
- "require": "./dist/index.umd.js",
8
+ "types": "./dist/index.d.ts",
9
9
  "import": "./dist/index.es.js",
10
- "types": "./dist/index.d.ts"
11
- }
10
+ "require": "./dist/index.umd.js"
11
+ },
12
+ "./package.json": "./package.json"
12
13
  },
13
14
  "main": "./dist/index.umd.js",
14
15
  "module": "./dist/index.es.js",
15
16
  "types": "./dist/index.d.ts",
16
17
  "scripts": {
17
- "dev": "vite dev --host",
18
+ "dev": "vite demo --host",
19
+ "dev:demo": "vite demo --host",
20
+ "dev:flyweight": "vite examples/playground --port 5181 --host",
21
+ "build:flyweight": "vite build examples/playground",
22
+ "preview:flyweight": "vite preview examples/playground --port 5181 --host",
23
+ "measure:flyweight": "node examples/playground/src/examples/flyweight-grid/measure.mjs",
24
+ "measure:formula": "node demo/formula/measure.mjs",
25
+ "measure:grid": "node demo/grid/measure.mjs",
26
+ "dev:docs": "npm --prefix docs_v2 run dev -- --port 5174",
18
27
  "test": "vitest --coverage.enabled=true --reporter=verbose --ui",
19
28
  "coverage": "vitest run --coverage",
29
+ "bench": "vitest bench --run",
30
+ "bench:node-namespace": "vite-node experiments/node-namespace/benchmark.ts",
20
31
  "cypress": "cypress run --component",
21
32
  "cypress:headed": "cypress run --component --browser chrome --headed --no-exit",
22
- "build": "tsc --p ./tsconfig.json && vite build",
23
- "release": "yarn build && yarn publish"
33
+ "build": "tsc --version;tsc --p ./tsconfig.json && vite build",
34
+ "build:demo": "tsc --p ./tsconfig.json && vite build demo",
35
+ "build:docs": "npm run sync:examples && npm --prefix docs_v2 run build",
36
+ "render:og": "node docs_v2/scripts/brand-image-generator.mjs og",
37
+ "render:form-header": "node docs_v2/scripts/brand-image-generator.mjs form-header",
38
+ "preview:demo": "npm run build:demo && vite preview demo --host",
39
+ "preview:docs": "npm --prefix docs_v2 run preview",
40
+ "release": "npm run build && npm publish",
41
+ "sync:skill": "node -e \"const fs=require('fs');fs.mkdirSync('skills/ivue',{recursive:true});fs.copyFileSync('.claude/skills/ivue/SKILL.md','skills/ivue/SKILL.md')\"",
42
+ "prepack": "npm run sync:skill",
43
+ "sync:examples": "node -e \"require('fs').copyFileSync('lib/Reactive.ts','examples/playground/src/ivue.ts')\"",
44
+ "dev:playground": "vite examples/playground --host",
45
+ "build:playground": "vite build examples/playground",
46
+ "preview:playground": "vite preview examples/playground --host"
24
47
  },
25
48
  "peerDependencies": {
26
- "vue": "^3.0.0",
49
+ "vue": "^3.2.0",
27
50
  "vue-demi": "*"
28
51
  },
29
52
  "peerDependenciesMeta": {
@@ -34,6 +57,8 @@
34
57
  "devDependencies": {
35
58
  "@cypress/vite-dev-server": "^5.0.2",
36
59
  "@cypress/vue": "^5.0.3",
60
+ "@quasar/extras": "^2.0.2",
61
+ "@types/lodash": "^4.17.20",
37
62
  "@typescript-eslint/eslint-plugin": "^5.10.0",
38
63
  "@typescript-eslint/parser": "^5.10.0",
39
64
  "@vitejs/plugin-vue": "^4.0.0",
@@ -41,6 +66,8 @@
41
66
  "@vitest/coverage-v8": "^2.0.5",
42
67
  "@vitest/ui": "^2.0.5",
43
68
  "@vue/test-utils": "^2.2.7",
69
+ "@vueuse/core": "^14.0.0",
70
+ "bind-decorator": "^1.0.11",
44
71
  "cpy-cli": "^4.2.0",
45
72
  "cypress": "^12.3.0",
46
73
  "eslint": "^8.10.0",
@@ -49,19 +76,26 @@
49
76
  "eslint-plugin-import": "^2.29.1",
50
77
  "eslint-plugin-storybook": "^0.6.12",
51
78
  "eslint-plugin-vue": "^9.14.1",
79
+ "fast-formula-parser": "^1.0.19",
80
+ "i": "^0.3.7",
52
81
  "jsdom": "^21.0.0",
82
+ "npm": "^11.6.2",
83
+ "playwright": "^1.61.1",
84
+ "quasar": "^2.21.3",
53
85
  "rollup-plugin-terser": "^7.0.2",
54
- "typescript": "^4.5.4",
86
+ "typescript": "^5.9.3",
55
87
  "vite": "^4.0.4",
56
88
  "vite-plugin-dts": "^1.7.1",
57
89
  "vite-plugin-dynamic-import": "^1.5.0",
58
- "vite-plugin-libcss": "^1.0.5",
59
90
  "vite-tsconfig-paths": "^4.3.2",
60
91
  "vitest": "^2.0.5",
61
- "vue": "^3.2.45",
92
+ "vue": "^3.5.22",
62
93
  "vue-demi": "^0.14.10",
63
94
  "vue-router": "^4.1.6"
64
95
  },
96
+ "resolutions": {
97
+ "vue": "^3.3.6"
98
+ },
65
99
  "repository": {
66
100
  "type": "git",
67
101
  "url": "https://github.com/infinite-system/ivue"
@@ -87,8 +121,12 @@
87
121
  },
88
122
  "files": [
89
123
  "lib",
90
- "dist"
124
+ "dist",
125
+ "bin",
126
+ "skills"
91
127
  ],
92
128
  "license": "MIT",
93
- "dependencies": {}
129
+ "bin": {
130
+ "ivue": "bin/ivue.mjs"
131
+ }
94
132
  }