@immense/vue-pom-generator 1.0.87 → 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,70 +1,61 @@
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 verify the actual state of the repository to generate accurate release 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 check the commit details and find any associated PR.
6
4
 
7
- Let me examine the tags and commit relationships to understand what's actually in this release.
5
+ Let me check the tag dates to understand the release boundaries.
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.
7
+ Based on my verification of the repository state, I have what I need. Key findings:
12
8
 
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.
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.
15
14
 
16
- Let me do a final verification that #52 is indeed the most recently merged PR (confirming no PRs for
17
- the 3 commits).
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:
18
17
 
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:
18
+ -----------------------------------------------------------------------------------------------
19
+
20
+ v1.0.89
23
21
 
24
22
  Highlights
25
23
 
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.
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.
36
30
 
37
31
  Changes
38
32
 
39
- Option-selection events
33
+ Dead-code removal
40
34
 
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).
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.
46
40
 
47
- Option-keying accessors
41
+ Tests
48
42
 
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.
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.
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
+ - None. This release contains a single direct commit to main (aa94a4a); no pull requests were
52
+ merged in the release window.
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
+ - 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.
70
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,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,UAAU;IAClB,+FAA+F;IAC/F,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,cAAc,EAAE,CAAC;CAC1B;AAED,UAAU,SAAS;IACjB,sEAAsE;IACtE,QAAQ,EAAE,MAAM,CAAC;IACjB,mFAAmF;IACnF,MAAM,EAAE,UAAU,EAAE,CAAC;CACtB;AAID,UAAU,mBAAmB;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,wBAAwB,EAAE,MAAM,EAAE,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,GAAG,YAAY,GAAG,MAAM,GAAG,oBAAoB,CAAC;IAClE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AASD,MAAM,MAAM,yBAAyB,GAAG,YAAY,GAAG,OAAO,CAAC;AAsiB/D,MAAM,WAAW,oBAAoB;IACnC;;;;OAIG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;;;;;;;;;;;;;OAeG;IACH,gBAAgB,CAAC,EAAE,OAAO,GAAG,MAAM,GA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AChF,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAE9B;;;;;;;OAOG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAEhD;;;;;OAKG;IACH,oCAAoC,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAEzD;;;;OAIG;IACH,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAE7C,yEAAyE;IACzE,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB,uDAAuD;IACvD,aAAa,CAAC,EAAE,KAAK,CAAC,IAAI,GAAG,QAAQ,CAAC,CAAC;IAEvC;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,yBAAyB,CAAC;IAEtD,6BAA6B;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
@@ -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;
@@ -3643,53 +3644,6 @@ function buildPomGeneratedPropertyName(pom) {
3643
3644
  function buildPomGeneratedActionName(pom) {
3644
3645
  return requireStructuredPomName(pom.generatedActionName, "generatedActionName", pom);
3645
3646
  }
3646
- const STANDALONE_WRAPPER_FALLBACK_ROLES = /* @__PURE__ */ new Set([
3647
- "button",
3648
- "input",
3649
- "select",
3650
- "vselect",
3651
- "checkbox",
3652
- "toggle",
3653
- "radio",
3654
- "link"
3655
- ]);
3656
- function stripTrailingAsciiDigits(value) {
3657
- let end = value.length;
3658
- while (end > 0 && isAsciiDigitCode(value.charCodeAt(end - 1))) {
3659
- end -= 1;
3660
- }
3661
- return value.slice(0, end);
3662
- }
3663
- function matchesStandaloneWrapperFallbackMethodName(methodName, componentClassName) {
3664
- let normalizedMethodName = methodName;
3665
- if (normalizedMethodName.endsWith("ByKey")) {
3666
- normalizedMethodName = normalizedMethodName.slice(0, -"ByKey".length);
3667
- }
3668
- normalizedMethodName = stripTrailingAsciiDigits(normalizedMethodName);
3669
- return normalizedMethodName === componentClassName;
3670
- }
3671
- function shouldSuppressStandaloneWrapperFallbackSurface(componentName, dependencies) {
3672
- if (dependencies.isView || (dependencies.pomExtraMethods?.length ?? 0) > 0) {
3673
- return false;
3674
- }
3675
- const entries = Array.from(dependencies.dataTestIdSet ?? []);
3676
- if (!entries.length) {
3677
- return false;
3678
- }
3679
- const primaryEntries = entries.filter((entry) => {
3680
- return !!entry.pom && entry.pom.emitPrimary !== false;
3681
- });
3682
- if (!primaryEntries.length || primaryEntries.length !== entries.length) {
3683
- return false;
3684
- }
3685
- const componentClassName = toPascalCase(componentName.endsWith(".vue") ? componentName.slice(0, -4) : componentName);
3686
- if (!componentClassName) {
3687
- return false;
3688
- }
3689
- return primaryEntries.every(({ pom }) => {
3690
- return STANDALONE_WRAPPER_FALLBACK_ROLES.has(pom.nativeRole) && matchesStandaloneWrapperFallbackMethodName(pom.methodName, componentClassName);
3691
- });
3692
- }
3693
3647
  function safeRealpath(value) {
3694
3648
  try {
3695
3649
  if (fs.existsSync(value)) {
@@ -5153,11 +5107,7 @@ async function generateFiles(componentHierarchyMap, vueFilesPathMap, basePageCla
5153
5107
  componentDirs,
5154
5108
  layoutDirs
5155
5109
  }) : void 0);
5156
- const emittableComponentHierarchyMap = new Map(
5157
- Array.from(componentHierarchyMap.entries()).filter(([componentName, dependencies]) => {
5158
- return !shouldSuppressStandaloneWrapperFallbackSurface(componentName, dependencies);
5159
- })
5160
- );
5110
+ const emittableComponentHierarchyMap = componentHierarchyMap;
5161
5111
  const generatedFilePaths = [];
5162
5112
  const writeGeneratedFile = (file) => {
5163
5113
  const resolvedFilePath = path.resolve(file.filePath);
@@ -8047,7 +7997,7 @@ Fix: remove the explicit ${attrLabel}, or change existingIdBehavior to "overwrit
8047
7997
  }
8048
7998
  if (existingElementDataTestId) {
8049
7999
  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);
8000
+ 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
8001
  if (!isRecognizedInteractiveRole) {
8052
8002
  return;
8053
8003
  }
@@ -8927,7 +8877,7 @@ function getManifestEntry(componentName, entry, componentMetadata, extraMethods)
8927
8877
  };
8928
8878
  }
8929
8879
  function buildPomManifest(componentHierarchyMap, elementMetadata) {
8930
- 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]) => {
8931
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 ?? []));
8932
8882
  if (!entries.length) {
8933
8883
  return null;