@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 +40 -51
- package/dist/index.cjs +4 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -2
- package/dist/index.mjs.map +1 -1
- package/dist/transform.d.ts.map +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,70 +1,59 @@
|
|
|
1
|
-
I'll gather
|
|
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
|
-
|
|
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
|
-
|
|
5
|
+
Now I have all the information needed. Here's what I found:
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
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
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
-
|
|
33
|
-
|
|
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
|
-
|
|
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
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
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
|
-
|
|
45
|
+
Breaking Changes
|
|
48
46
|
|
|
49
|
-
|
|
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
|
-
|
|
61
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
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
|
}
|