emily-css 1.2.5 → 1.2.7

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/CHANGELOG.md CHANGED
@@ -4,6 +4,22 @@ All notable changes to `emily-css` are documented here.
4
4
 
5
5
  ---
6
6
 
7
+ ## v1.2.7 — May 2026
8
+
9
+ **Fix migration scanner filtering so Vue dynamic class placeholders such as [rootClass] are not reported as unsupported arbitrary value utilities.**
10
+
11
+ ### Fixed
12
+ - fix: ignore dynamic class placeholders in migration scan
13
+
14
+ ---
15
+ ## v1.2.6 — May 2026
16
+
17
+ **Fix migration scanner false positives by ignoring prose tokens, JS property access, and dynamic placeholders while keeping valid utility classes and arbitrary value support.**
18
+
19
+ ### Fixed
20
+ - fix: tighten migration class filtering
21
+
22
+ ---
7
23
  ## v1.2.5 — May 2026
8
24
 
9
25
  **Node 18+ Compatibility and Docs/CLI Alignment**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emily-css",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "A config-driven utility CSS framework. Define your brand once, generate the CSS.",
5
5
  "main": "src/index.js",
6
6
  "bin": {
package/src/migrate.js CHANGED
@@ -574,6 +574,13 @@ function isLikelyUtilityClass(className) {
574
574
  if (/[;()={},`]/.test(className)) return false;
575
575
  if (!/[a-zA-Z]/.test(className)) return false;
576
576
  if (!/^[a-zA-Z0-9:#_./\-[\]]+$/.test(className)) return false;
577
+
578
+ /*
579
+ * Ignore obvious prose / JS expressions
580
+ */
581
+ if (/[.]+$/.test(className)) return false;
582
+ if (/^\[[^\]:]+\]$/.test(className)) return false;
583
+ if (/^[a-zA-Z]+\.[a-zA-Z0-9_$]+$/.test(className)) return false;
577
584
  if (/^[a-z]+$/.test(className) && !SINGLE_WORD_UTILITY_ALLOWLIST.has(className)) return false;
578
585
  if (!hasUtilityLikeSyntax(className) && !SINGLE_WORD_UTILITY_ALLOWLIST.has(className)) return false;
579
586
 
@@ -883,4 +890,4 @@ module.exports = {
883
890
  migrateClasses,
884
891
  loadManifest,
885
892
  generateMigrationReport,
886
- };
893
+ };