@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 +39 -48
- package/class-generation/index.ts +1 -6
- package/dist/class-generation/index.d.ts.map +1 -1
- package/dist/index.cjs +4 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +4 -54
- package/dist/index.mjs.map +1 -1
- package/dist/manifest-generator.d.ts.map +1 -1
- package/dist/transform.d.ts.map +1 -1
- package/dist/utils.d.ts +1 -12
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,70 +1,61 @@
|
|
|
1
|
-
I'll
|
|
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
|
-
|
|
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
|
|
5
|
+
Let me check the tag dates to understand the release boundaries.
|
|
8
6
|
|
|
9
|
-
|
|
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
|
-
|
|
14
|
-
|
|
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
|
-
|
|
17
|
-
the
|
|
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
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
release notes:
|
|
18
|
+
-----------------------------------------------------------------------------------------------
|
|
19
|
+
|
|
20
|
+
v1.0.89
|
|
23
21
|
|
|
24
22
|
Highlights
|
|
25
23
|
|
|
26
|
-
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
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
|
-
|
|
33
|
+
Dead-code removal
|
|
40
34
|
|
|
41
|
-
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
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
|
-
|
|
41
|
+
Tests
|
|
48
42
|
|
|
49
|
-
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
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
|
|
61
|
-
|
|
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
|
-
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
-
|
|
69
|
-
updated
|
|
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 =
|
|
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,
|
|
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,EAOvB,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,GA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AC,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 =
|
|
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()).
|
|
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;
|