@immense/vue-pom-generator 1.0.87 → 1.0.88

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/RELEASE_NOTES.md CHANGED
@@ -1,70 +1,59 @@
1
- I'll gather accurate data about the release window using the gh CLI to determine which PRs were
2
- actually merged in the specified time range.
1
+ I'll gather the actual commit and PR data for this release to generate accurate notes.
3
2
 
4
- The day-granularity search returned only #52. Let me query more broadly with precise timestamps to
5
- ensure I capture all PRs in the exact window.
3
+ Let me examine the actual changes to write accurate release notes.
6
4
 
7
- Let me examine the tags and commit relationships to understand what's actually in this release.
5
+ Now I have all the information needed. Here's what I found:
8
6
 
9
- The picture is now clear: v1.0.86 tag points to #52's commit, so #52 (and #51) belong to v1.0.86.
10
- The 3 commits in v1.0.86..HEAD have no PR numbers. Let me confirm the commit dates and verify no PRs
11
- were merged after #52 in the window.
12
-
13
- No PRs were merged after #52 in the window. v1.0.86 = #52's commit, so this release contains only
14
- the 3 direct-push commits. Let me examine the actual diffs to write accurate notes.
15
-
16
- Let me do a final verification that #52 is indeed the most recently merged PR (confirming no PRs for
17
- the 3 commits).
18
-
19
- Verified: #52 (merged 2026-08-10T16:33:03Z) is the most recent merged PR and is the v1.0.86 tag
20
- commit. The 3 commits in v1.0.86..HEAD have no PR numbers and no PRs were merged after #52 — they
21
- were pushed directly. The diffstat confirms the option-keying/selection-event scope. Here are the
22
- release notes:
7
+ - v1.0.87 (f7af29c) was tagged at 2026-08-12T04:26:35-05:00 — the start of the window
8
+ - HEAD (253b6a0) was committed at 2026-08-12T05:19:26-05:00 — the end of the window
9
+ - The range contains one commit (no PR number): feat: recognize 'tab' as a native wrapper role
10
+ - The most recent PR (#52) was merged 2026-08-07, well before the window — no PRs fall in this
11
+ release window
12
+ - The change adds 'tab' as a recognized NativeRole, enabling per-usage tab accessors with -tab
13
+ selector suffixes
23
14
 
24
15
  Highlights
25
16
 
26
- - Radio/checkbox and listbox-option POMs now recognize @change and @mousedown as action events (in
27
- addition to @click), so v-for option lists using idiomatic control events generate complete POMs
28
- instead of empty ones.
29
- - Radios/checkboxes using the standard :value + :checked + @change pattern (no v-model) now derive
30
- a role-based keyed accessor from the :value binding, rather than falling through to the handler-name
31
- path.
32
- - New per-component optionKeyAttribute option keys option accessors off a chosen binding (e.g.
33
- :value) instead of Vue's reconciliation :key.
34
- - Test suite extended with 164 new lines and four fixtures covering option-keying and
35
- selection-event scenarios.
17
+ - tab is now a first-class native wrapper role. Declaring role: "tab" on a wrapper component (with
18
+ a valueAttribute such as title) lets the generator derive per-usage data-testids from each tab's
19
+ literal prop value and emit distinct named click accessors (e.g. clickUsers, clickRoles).
20
+ - Consistent -tab selector suffix. Getter names now carry the Tab suffix (e.g. UsersTab, RolesTab)
21
+ matching the injected -tab test-id, instead of falling back to a Button suffix when tab was not a
22
+ recognized NativeRole.
23
+ - No breaking changes. The addition is purely additive — 'tab' is appended to the existing
24
+ NativeRole union and role-handling switch cases.
36
25
 
37
26
  Changes
38
27
 
39
- Option-selection events
28
+ POM generation — native roles
29
+
30
+ - Added 'tab' to the NativeRole type in utils.ts.
31
+ - Recognized tab in applyResolvedDataTestId so the role string is returned as-is for selector
32
+ suffixing.
33
+ - Added "tab" to the STANDALONE_WRAPPER_FALLBACK_ROLES set, allowing tab wrappers to be treated as
34
+ standalone interactive controls.
35
+ - Added inferredRole === "tab" to the interactive-role check in createTestIdTransform
36
+ (transform.ts), so tab wrappers are no longer rejected as unrecognized.
37
+
38
+ Tests
40
39
 
41
- - Expanded the recognized action-event set to click, change, and mousedown (ACTION_EVENTS);
42
- isClickDirective, tryGetClickDirective, and hasClickDirective now match all three.
43
- - Native-role identifier resolution falls back to the :value binding for radios/checkboxes via the
44
- new getBindingValueHint, emitting role-based keyed accessors for the component-library binding
45
- pattern (:value + :checked + @change).
40
+ - Added a test (tests/transform.test.ts) verifying that a role: "tab" wrapper with valueAttribute:
41
+ "title" produces per-usage test-ids (MyPage-Users-tab, MyPage-Roles-tab), distinct click accessors
42
+ (clickUsers, clickRoles), and correctly-suffixed getter names (UsersTab, RolesTab — not
43
+ UsersButton).
46
44
 
47
- Option-keying accessors
45
+ Breaking Changes
48
46
 
49
- - Added optionKeyAttribute plugin option (Record<string, string>) mapping an SFC component name to
50
- the binding its keyed accessor derives a key fragment from; threaded through
51
- VuePomGeneratorPluginOptions, resolved injection options, and the build/dev/vue plugins. Defaults to
52
- {} (existing :key-based behavior unchanged).
53
- - Added getBindingKeyInfo helper to read an arbitrary :bind directive (e.g. :value) and produce the
54
- existing ResolvedKeyInfo shape, reusing the parameterized keyed-accessor machinery.
55
- - Keyed-fragment resolution now consults optionKeyAttribute[componentName] before the default :key
56
- directive.
47
+ None. The change is purely additive.
57
48
 
58
49
  Pull Requests Included
59
50
 
60
- - None merged in this release window. The three changes were committed directly to main without an
61
- associated pull request (#52, the most recent merge, is included in v1.0.86).
51
+ No pull requests were merged in this release window. The sole change was committed directly
52
+ (253b6a0).
62
53
 
63
54
  Testing
64
55
 
65
- - New option-keying and selection-event scenarios added via TDD (red-then-green).
66
- - 164 lines added to tests/transform.test.ts with four new fixtures: MyList_OptionMousedown,
67
- MyRadioGroup_OptionChange, MyRadioGroup_OptionId, MyRadioGroup_OptionValue.
68
- - Build–serve parity, dev-plugin-options, resolved-injection-options, and vue-plugin-state suites
69
- updated for the new optionKeyAttribute option.
56
+ Added a new test case covering the tab native wrapper role — verifying per-usage data-testid
57
+ generation, click accessor naming, and getter suffix consistency. Existing tests are unaffected by
58
+ the additive type change.
70
59
 
package/dist/index.cjs CHANGED
@@ -3026,6 +3026,7 @@ Fix: either (1) include ${bestKeyPreservePlaceholder} in your :${attrLabel} temp
3026
3026
  case "radio":
3027
3027
  case "grid":
3028
3028
  case "link":
3029
+ case "tab":
3029
3030
  return role;
3030
3031
  default:
3031
3032
  return void 0;
@@ -3651,7 +3652,8 @@ const STANDALONE_WRAPPER_FALLBACK_ROLES = /* @__PURE__ */ new Set([
3651
3652
  "checkbox",
3652
3653
  "toggle",
3653
3654
  "radio",
3654
- "link"
3655
+ "link",
3656
+ "tab"
3655
3657
  ]);
3656
3658
  function stripTrailingAsciiDigits(value) {
3657
3659
  let end = value.length;
@@ -8047,7 +8049,7 @@ Fix: remove the explicit ${attrLabel}, or change existingIdBehavior to "overwrit
8047
8049
  }
8048
8050
  if (existingElementDataTestId) {
8049
8051
  const inferredRole = getNativeRoleFromTagSuffix().toLowerCase();
8050
- const isRecognizedInteractiveRole = inferredRole === "button" || inferredRole === "input" || inferredRole === "select" || inferredRole === "vselect" || inferredRole === "checkbox" || inferredRole === "toggle" || inferredRole === "radio" || inferredRole === "grid" || inferredRole === "link" || isComponentLikeTag(element.tag);
8052
+ const isRecognizedInteractiveRole = inferredRole === "button" || inferredRole === "input" || inferredRole === "select" || inferredRole === "vselect" || inferredRole === "checkbox" || inferredRole === "toggle" || inferredRole === "radio" || inferredRole === "grid" || inferredRole === "link" || inferredRole === "tab" || isComponentLikeTag(element.tag);
8051
8053
  if (!isRecognizedInteractiveRole) {
8052
8054
  return;
8053
8055
  }