@immense/vue-pom-generator 1.0.88 → 1.0.89

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,59 +1,61 @@
1
- I'll gather the actual commit and PR data for this release to generate accurate notes.
1
+ I'll verify the actual state of the repository to generate accurate release notes.
2
2
 
3
- Let me examine the actual changes to write accurate release notes.
3
+ Let me check the commit details and find any associated PR.
4
4
 
5
- Now I have all the information needed. Here's what I found:
5
+ Let me check the tag dates to understand the release boundaries.
6
6
 
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
7
+ Based on my verification of the repository state, I have what I need. Key findings:
8
+
9
+ - v1.0.88..HEAD contains exactly one commit (aa94a4a), a direct commit to main (no associated PR —
10
+ confirmed via gh search).
11
+ - The diffstat (7 files, 7 insertions, 213 deletions) matches that single commit exactly.
12
+ - All 50+ PRs in the provided list were merged on/before 2026-08-10, while this release window is
13
+ 2026-08-12 (10:19–12:21 UTC). None fall in the window — they shipped in v1.0.88 or earlier.
14
+
15
+ So v1.0.89 is a small cleanup release containing one direct refactor commit and no merged PRs. Here
16
+ are the release notes:
17
+
18
+ -----------------------------------------------------------------------------------------------
19
+
20
+ v1.0.89
14
21
 
15
22
  Highlights
16
23
 
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.
24
+ - Removed dead standalone-wrapper suppression logic that fired on 0 of 628 components when
25
+ instrumented against the full consumer build.
26
+ - Net −213 lines of dead code and synthetic tests across utils.ts, manifest-generator.ts, and
27
+ class-generation/index.ts.
28
+ - Byte-neutral for the known consumer: 632 generated .g.ts files unchanged before and after; build
29
+ and typecheck green.
25
30
 
26
31
  Changes
27
32
 
28
- POM generation — native roles
33
+ Dead-code removal
29
34
 
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.
35
+ - Deleted shouldSuppressStandaloneWrapperFallbackSurface and its helpers
36
+ (STANDALONE_WRAPPER_FALLBACK_ROLES, stripTrailingAsciiDigits,
37
+ matchesStandaloneWrapperFallbackMethodName) from utils.ts.
38
+ - Dropped the two emit-time suppression filters in manifest-generator.ts and
39
+ class-generation/index.ts.
37
40
 
38
41
  Tests
39
42
 
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).
44
-
45
- Breaking Changes
46
-
47
- None. The change is purely additive.
43
+ - Deleted the synthetic tests/generated-tsc.test.ts and the standalone-wrapper suppression cases in
44
+ tests/broad/manifest-generator-ts.test.ts.
45
+ - Flipped two class-generation-coverage assertions from "WrapperButton is suppressed" to
46
+ "WrapperButton is emitted," and completed the Baz fixture's
47
+ generatedActionName/generatedPropertyName fields in tests/virtual-testids.test.ts.
48
48
 
49
49
  Pull Requests Included
50
50
 
51
- No pull requests were merged in this release window. The sole change was committed directly
52
- (253b6a0).
51
+ - None. This release contains a single direct commit to main (aa94a4a); no pull requests were
52
+ merged in the release window.
53
53
 
54
54
  Testing
55
55
 
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.
56
+ - Instrumented the suppression predicate with env-gated trace logging
57
+ (VUE_POM_POM_TRACE_SUPPRESSION=1) and ran the full consumer build — suppression fired on 0/628
58
+ components.
59
+ - Verified byte-neutrality (632 .g.ts files identical before/after); build and typecheck green.
60
+ Existing tests updated; no new suite added.
59
61
 
@@ -54,7 +54,6 @@ import {
54
54
  PomExtraClickMethodSpec,
55
55
  PomPrimarySpec,
56
56
  PomSelectorSpec,
57
- shouldSuppressStandaloneWrapperFallbackSurface,
58
57
  toPascalCase,
59
58
  upperFirst,
60
59
  } from "../utils";
@@ -872,11 +871,7 @@ export async function generateFiles(
872
871
  layoutDirs,
873
872
  })
874
873
  : undefined);
875
- const emittableComponentHierarchyMap = new Map(
876
- Array.from(componentHierarchyMap.entries()).filter(([componentName, dependencies]) => {
877
- return !shouldSuppressStandaloneWrapperFallbackSurface(componentName, dependencies);
878
- }),
879
- );
874
+ const emittableComponentHierarchyMap = componentHierarchyMap;
880
875
  const generatedFilePaths: string[] = [];
881
876
  const writeGeneratedFile = (file: GeneratedFileOutput) => {
882
877
  const resolvedFilePath = path.resolve(file.filePath);
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../class-generation/index.ts"],"names":[],"mappings":"AAUA,OAAO,EAAkC,oCAAoC,EAAE,MAAM,sBAAsB,CAAC;AAwC5G,OAAO,EACL,sBAAsB,EAQvB,MAAM,UAAU,CAAC;AAQlB,OAAO,EAAE,oCAAoC,EAAE,CAAC;AA2ChD,UAAU,cAAc;IACtB,IAA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A6B;IAC7B,MAAM,CAAC,EAAE;QACP,SAAS,CAAC,EAAE,MAAM,CAAC;KACpB,CAAC;IAEF,6EAA6E;IAC7E,uBAAuB,CAAC,EAAE,OAAO,CAAC;IAElC,2FAA2F;IAC3F,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB,mDAAmD;IACnD,UAAU,CAAC,EAAE,YAAY,GAAG,MAAM,CAAC;IAEnC,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IAEtB,oBAAoB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;CAClD;AAsCD,wBAAsB,aAAa,CACjC,qBAAqB,EAAE,GAAG,CAAC,MAAM,EAAE,sBAAsB,CAAC,EAC1D,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,EACpC,iBAAiB,EAAE,MAAM,EACzB,OAAO,GAAE,oBAAyB,iBAqGnC"}
package/dist/index.cjs CHANGED
@@ -3644,54 +3644,6 @@ function buildPomGeneratedPropertyName(pom) {
3644
3644
  function buildPomGeneratedActionName(pom) {
3645
3645
  return requireStructuredPomName(pom.generatedActionName, "generatedActionName", pom);
3646
3646
  }
3647
- const STANDALONE_WRAPPER_FALLBACK_ROLES = /* @__PURE__ */ new Set([
3648
- "button",
3649
- "input",
3650
- "select",
3651
- "vselect",
3652
- "checkbox",
3653
- "toggle",
3654
- "radio",
3655
- "link",
3656
- "tab"
3657
- ]);
3658
- function stripTrailingAsciiDigits(value) {
3659
- let end = value.length;
3660
- while (end > 0 && isAsciiDigitCode(value.charCodeAt(end - 1))) {
3661
- end -= 1;
3662
- }
3663
- return value.slice(0, end);
3664
- }
3665
- function matchesStandaloneWrapperFallbackMethodName(methodName, componentClassName) {
3666
- let normalizedMethodName = methodName;
3667
- if (normalizedMethodName.endsWith("ByKey")) {
3668
- normalizedMethodName = normalizedMethodName.slice(0, -"ByKey".length);
3669
- }
3670
- normalizedMethodName = stripTrailingAsciiDigits(normalizedMethodName);
3671
- return normalizedMethodName === componentClassName;
3672
- }
3673
- function shouldSuppressStandaloneWrapperFallbackSurface(componentName, dependencies) {
3674
- if (dependencies.isView || (dependencies.pomExtraMethods?.length ?? 0) > 0) {
3675
- return false;
3676
- }
3677
- const entries = Array.from(dependencies.dataTestIdSet ?? []);
3678
- if (!entries.length) {
3679
- return false;
3680
- }
3681
- const primaryEntries = entries.filter((entry) => {
3682
- return !!entry.pom && entry.pom.emitPrimary !== false;
3683
- });
3684
- if (!primaryEntries.length || primaryEntries.length !== entries.length) {
3685
- return false;
3686
- }
3687
- const componentClassName = toPascalCase(componentName.endsWith(".vue") ? componentName.slice(0, -4) : componentName);
3688
- if (!componentClassName) {
3689
- return false;
3690
- }
3691
- return primaryEntries.every(({ pom }) => {
3692
- return STANDALONE_WRAPPER_FALLBACK_ROLES.has(pom.nativeRole) && matchesStandaloneWrapperFallbackMethodName(pom.methodName, componentClassName);
3693
- });
3694
- }
3695
3647
  function safeRealpath(value) {
3696
3648
  try {
3697
3649
  if (fs.existsSync(value)) {
@@ -5155,11 +5107,7 @@ async function generateFiles(componentHierarchyMap, vueFilesPathMap, basePageCla
5155
5107
  componentDirs,
5156
5108
  layoutDirs
5157
5109
  }) : void 0);
5158
- const emittableComponentHierarchyMap = new Map(
5159
- Array.from(componentHierarchyMap.entries()).filter(([componentName, dependencies]) => {
5160
- return !shouldSuppressStandaloneWrapperFallbackSurface(componentName, dependencies);
5161
- })
5162
- );
5110
+ const emittableComponentHierarchyMap = componentHierarchyMap;
5163
5111
  const generatedFilePaths = [];
5164
5112
  const writeGeneratedFile = (file) => {
5165
5113
  const resolvedFilePath = path.resolve(file.filePath);
@@ -8929,7 +8877,7 @@ function getManifestEntry(componentName, entry, componentMetadata, extraMethods)
8929
8877
  };
8930
8878
  }
8931
8879
  function buildPomManifest(componentHierarchyMap, elementMetadata) {
8932
- const manifestEntries = Array.from(componentHierarchyMap.entries()).filter(([componentName, dependencies]) => !shouldSuppressStandaloneWrapperFallbackSurface(componentName, dependencies)).sort((a, b) => a[0].localeCompare(b[0])).map(([componentName, dependencies]) => {
8880
+ const manifestEntries = Array.from(componentHierarchyMap.entries()).sort((a, b) => a[0].localeCompare(b[0])).map(([componentName, dependencies]) => {
8933
8881
  const entries = Array.from(dependencies.dataTestIdSet).sort((a, b) => a.selectorValue.formatted.localeCompare(b.selectorValue.formatted)).map((entry) => getManifestEntry(componentName, entry, elementMetadata.get(componentName), dependencies.pomExtraMethods ?? []));
8934
8882
  if (!entries.length) {
8935
8883
  return null;