@anzusystems/common-admin 1.47.0-beta.dev-1788935852 → 1.47.0-beta.dev-1784059879-fix1

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
@@ -3,28 +3,24 @@
3
3
  "packageManager": "yarn@4.18.0",
4
4
  "files": [
5
5
  "dist",
6
- "src/eslint/**"
6
+ "src/eslint"
7
7
  ],
8
- "module": "./dist/common-admin.js",
8
+ "module": "./dist/common-admin.es.js",
9
9
  "types": "./dist/common-admin.d.ts",
10
10
  "exports": {
11
11
  ".": {
12
12
  "import": "./dist/common-admin.js",
13
13
  "types": "./dist/common-admin.d.ts"
14
14
  },
15
- "./styles": {
16
- "types": "./dist/common-admin.css.d.ts",
17
- "default": "./dist/common-admin.css"
18
- },
15
+ "./styles": "./dist/common-admin.css",
19
16
  "./labs": {
20
17
  "import": "./dist/labs.js",
21
18
  "types": "./dist/labs.d.ts"
22
19
  },
23
20
  "./eslint": "./src/eslint/plugin.mjs",
24
- "./oxlint": "./src/eslint/oxlint.mjs",
25
21
  "./*": "./*"
26
22
  },
27
- "version": "1.47.0-beta.dev-1788935852",
23
+ "version": "1.47.0-beta.dev-1784059879-fix1",
28
24
  "license": "Apache-2.0",
29
25
  "repository": {
30
26
  "type": "git",
@@ -34,25 +30,25 @@
34
30
  "prepare": "node -e \"if (process.env.SKIP_PLAYWRIGHT_INSTALL !== 'true') { require('child_process').execSync('playwright install chromium --with-deps', { stdio: 'inherit' }) }\"",
35
31
  "docs:dev": "vitepress dev docs",
36
32
  "docs:build-only": "vitepress build docs",
37
- "docs:build": "run-s build docs:build-only",
33
+ "docs:build": "yarn build ; yarn docs:build-only",
38
34
  "docs:preview": "vitepress preview docs",
39
35
  "playground:dev": "vite",
40
36
  "playground:build": "vite build",
41
37
  "playground:build:nm": "vite build --minify false",
42
- "build": "vite build --config vite.config.lib.mts",
43
- "build:dev": "vite build --minify false --sourcemap true --config vite.config.lib.mts",
44
- "lib:build": "run-s --print-name lint:tsc build",
45
- "ci": "run-p --aggregate-output --continue-on-error --print-label --silent lint:tsc format:check lint:oxlint lint:eslint lint:stylelint",
38
+ "build": "vite build --config vite.config.lib.ts",
39
+ "build:dev": "vite build --minify false --sourcemap true --config vite.config.lib.ts",
40
+ "lib:build": "vite build --config vite.config.lib.ts",
41
+ "ci": "run-s --print-name lint:tsc lint:oxlint lint:eslint lint:stylelint",
46
42
  "lint": "[ \"$*\" = \"--fix\" ] && yarn lint:fix || yarn ci",
47
43
  "lint:fix": "run-s --print-name lint:tsc format lint:oxlint:fix lint:eslint:fix lint:stylelint:fix",
48
44
  "lint:tsc": "NODE_OPTIONS=--max-old-space-size=4096 vue-tsc --build",
49
45
  "lint:tsc:test": "NODE_OPTIONS=--max-old-space-size=4096 vue-tsc --build tsconfig.test.json",
50
- "lint:eslint": "eslint --cache",
51
- "lint:eslint:fix": "eslint --fix --cache",
46
+ "lint:eslint": "eslint",
47
+ "lint:eslint:fix": "eslint --fix",
52
48
  "lint:oxlint": "oxlint .",
53
49
  "lint:oxlint:fix": "oxlint . --fix",
54
- "lint:stylelint": "stylelint src/**/*.{scss,vue} --cache",
55
- "lint:stylelint:fix": "stylelint src/**/*.{scss,vue} --fix --cache",
50
+ "lint:stylelint": "stylelint src/**/*.{scss,vue}",
51
+ "lint:stylelint:fix": "stylelint src/**/*.{scss,vue} --fix",
56
52
  "format": "oxfmt src/",
57
53
  "format:check": "oxfmt src/ --check",
58
54
  "test": "vitest",
@@ -64,18 +60,19 @@
64
60
  "@intlify/unplugin-vue-i18n": "^11.2.5",
65
61
  "@kyvg/vue3-notification": "^3.4.2",
66
62
  "@mdi/font": "^7.4.47",
67
- "@microsoft/api-extractor": "^7.59.1",
63
+ "@microsoft/api-extractor": "^7.59.0",
68
64
  "@sentry/vue": "^10.73.0",
69
65
  "@shikijs/vitepress-twoslash": "^4.4.3",
66
+ "@stylistic/eslint-plugin": "^5.10.0",
70
67
  "@tsconfig/node22": "^22.0.6",
71
68
  "@types/node": "^24.13.3",
72
69
  "@types/rusha": "^0.8.3",
73
70
  "@types/sortablejs": "^1.15.9",
74
71
  "@types/webfontloader": "^1.6.38",
75
72
  "@vitejs/plugin-vue": "^6.0.8",
76
- "@vitest/browser": "^5.0.0",
77
- "@vitest/browser-playwright": "^5.0.0",
78
- "@vitest/ui": "^5.0.0",
73
+ "@vitest/browser": "^4.1.11",
74
+ "@vitest/browser-playwright": "^4.1.11",
75
+ "@vitest/ui": "^4.1.11",
79
76
  "@vue/compiler-dom": "3.5.42",
80
77
  "@vue/devtools-api": "^8.2.1",
81
78
  "@vue/eslint-config-typescript": "^14.9.0",
@@ -89,42 +86,41 @@
89
86
  "axios": "1.20.0",
90
87
  "cropperjs": "^1.6.3",
91
88
  "dayjs": "1.11.23",
92
- "eslint": "^10.10.0",
93
- "eslint-config-prettier": "^10.1.8",
94
- "eslint-plugin-oxlint": "1.82.0",
95
- "eslint-plugin-vue": "10.11.0",
89
+ "eslint": "^10.9.1",
90
+ "eslint-plugin-oxlint": "1.80.0",
91
+ "eslint-plugin-vue": "10.10.0",
96
92
  "eslint-plugin-vuetify": "^2.7.2",
97
93
  "npm-run-all2": "^9.0.3",
98
- "oxfmt": "^0.67.0",
99
- "oxlint": "1.82.0",
94
+ "oxfmt": "^0.65.0",
95
+ "oxlint": "1.80.0",
100
96
  "pinia": "4.0.3",
101
- "playwright": "^1.63.0",
102
- "postcss": "^8.5.28",
97
+ "playwright": "^1.62.1",
98
+ "postcss": "^8.5.26",
103
99
  "postcss-html": "^2.0.0",
104
- "postcss-prefix-selector": "^2.2.1",
100
+ "postcss-prefix-selector": "^2.2.0",
105
101
  "rusha": "^0.8.14",
106
- "sass": "1.104.0",
102
+ "sass": "1.103.1",
107
103
  "socket.io-client": "4.8.3",
108
104
  "sortablejs": "^1.15.7",
109
- "stylelint": "17.15.0",
105
+ "stylelint": "17.14.1",
110
106
  "stylelint-config-html": "^2.0.0",
111
107
  "stylelint-config-recommended": "^18.0.0",
112
108
  "stylelint-config-recommended-vue": "^2.0.0",
113
109
  "stylelint-config-standard-scss": "^17.0.0",
114
- "typescript": "~6.0.3",
110
+ "typescript": "5.9.3",
115
111
  "unplugin": "3.3.0",
116
- "unplugin-dts": "^1.1.0",
112
+ "unplugin-dts": "^1.0.3",
117
113
  "uuid": "^14.0.2",
118
- "vite": "8.2.2",
114
+ "vite": "7.3.6",
119
115
  "vite-plugin-vuetify": "^2.1.3",
120
116
  "vitepress": "1.6.4",
121
- "vitest": "^5.0.0",
117
+ "vitest": "^4.1.11",
122
118
  "vue": "3.5.42",
123
119
  "vue-eslint-parser": "^10.4.1",
124
120
  "vue-i18n": "11.4.10",
125
- "vue-router": "5.3.1",
121
+ "vue-router": "5.3.0",
126
122
  "vue-tsc": "3.3.11",
127
- "vuetify": "4.2.0",
123
+ "vuetify": "4.1.12",
128
124
  "webfontloader": "^1.6.28"
129
125
  },
130
126
  "peerDependencies": {
@@ -203,52 +203,41 @@ const anzuPlugin = {
203
203
  return rule.path
204
204
  })
205
205
 
206
- // Index rules by the module specifier they match, so one import is
207
- // resolved by a single Map lookup instead of scanning every rule.
208
- const rulesBySource = new Map()
209
- for (const rule of deprecationRules) {
210
- const matchPath = rule.path || rule.module
211
- if (!matchPath) continue
212
- const entry = { matchPath, imports: new Set(rule.imports) }
213
- const existing = rulesBySource.get(matchPath)
214
- if (existing) existing.push(entry)
215
- else rulesBySource.set(matchPath, [entry])
216
- }
217
-
218
- // Skipping depends only on the file name, so resolve it once per file
219
- // instead of once per import declaration.
220
- let fileSkipped = null
221
- const isFileSkipped = () => {
222
- if (fileSkipped !== null) return fileSkipped
223
- const normalizedFilename = context.filename.replace(/\\/g, '/')
224
- fileSkipped =
225
- skipFiles.some((skip) => normalizedFilename.endsWith(skip)) ||
226
- ruleFilePaths.some(
227
- (rulePath) =>
228
- normalizedFilename.endsWith(rulePath + '.ts') ||
229
- normalizedFilename.endsWith(rulePath + '.js') ||
230
- normalizedFilename.endsWith(rulePath + '.vue') ||
231
- normalizedFilename.endsWith(rulePath),
232
- )
233
- return fileSkipped
234
- }
235
-
236
206
  return {
237
207
  ImportDeclaration(node) {
208
+ const filename = context.filename
209
+ const normalizedFilename = filename.replace(/\\/g, '/')
210
+
211
+ // Check manual skip list
212
+ if (skipFiles.some((skip) => normalizedFilename.endsWith(skip))) return
213
+
214
+ // Auto-skip source files of path-based rules
215
+ if (
216
+ ruleFilePaths.some(
217
+ (rulePath) =>
218
+ normalizedFilename.endsWith(rulePath + '.ts') ||
219
+ normalizedFilename.endsWith(rulePath + '.js') ||
220
+ normalizedFilename.endsWith(rulePath + '.vue') ||
221
+ normalizedFilename.endsWith(rulePath),
222
+ )
223
+ )
224
+ return
225
+
238
226
  const source = node.source.value
239
227
  if (typeof source !== 'string') return
240
228
 
241
- const entries = rulesBySource.get(source)
242
- if (!entries) return
243
- if (isFileSkipped()) return
229
+ for (const rule of deprecationRules) {
230
+ const matchPath = rule.path || rule.module
231
+ if (!matchPath || source !== matchPath) continue
232
+
233
+ const deprecatedImports = node.specifiers
234
+ .filter((spec) => spec.type === 'ImportSpecifier')
235
+ .filter((spec) => rule.imports.includes(spec.imported.name))
244
236
 
245
- for (const { matchPath, imports } of entries) {
246
- for (const spec of node.specifiers) {
247
- if (spec.type !== 'ImportSpecifier') continue
248
- if (!imports.has(spec.imported.name)) continue
237
+ for (const importSpec of deprecatedImports) {
249
238
  context.report({
250
- node: spec,
251
- message: `'${spec.imported.name}' from '${matchPath}' is deprecated`,
239
+ node: importSpec,
240
+ message: `'${importSpec.imported.name}' from '${matchPath}' is deprecated`,
252
241
  })
253
242
  }
254
243
  }