@trackunit/migrations 0.2.39-alpha-a3b7922eaab.0 → 0.2.39

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
@@ -1,3 +1,7 @@
1
+ ## 0.2.39 (2026-08-07)
2
+
3
+ This was a version bump only for migrations to align it with other projects, there were no code changes.
4
+
1
5
  ## 0.2.38 (2026-08-06)
2
6
 
3
7
  This was a version bump only for migrations to align it with other projects, there were no code changes.
package/README.md CHANGED
@@ -69,6 +69,10 @@ flowchart LR
69
69
  rccMig --> pending
70
70
  ```
71
71
 
72
+ ## Writing classname-aware migrations
73
+
74
+ If a migration needs to detect or rewrite Tailwind/classname strings in source files (e.g. renaming or removing a utility class), don't reimplement detection logic — import `@trackunit/css-classname-utils` (`libs/css/classname-utils`) directly. It has no `eslint`/`@typescript-eslint/utils` runtime dependency, so it's safe to use outside an ESLint rule context, and it's already the basis for the equivalent ESLint rules in `plugin-trackunit`. See the ["Shared classname utilities" section](../../docs/tech/TAILWIND-ARCHITECTURE.md#shared-classname-utilities) of the Tailwind architecture doc for what it exposes, notably `replaceClassToken()` for word-boundary-safe token replace/remove.
75
+
72
76
  ## Usage
73
77
 
74
78
  ### Step 1: Discover and collect migrations
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/migrations",
3
- "version": "0.2.39-alpha-a3b7922eaab.0",
3
+ "version": "0.2.39",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {