@immense/vue-pom-generator 1.0.73 → 1.0.75
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 +59 -103
- package/class-generation/index.ts +2 -2
- package/dist/index.cjs +29 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +29 -5
- package/dist/index.mjs.map +1 -1
- package/dist/transform.d.ts.map +1 -1
- package/dist/utils.d.ts.map +1 -1
- package/package.json +2 -2
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,104 +1,60 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
- #30 fix: relax Playwright peer pinning (https://github.com/immense/vue-pom-generator/pull/30)
|
|
61
|
-
- #29 fix: normalize file scope path checks
|
|
62
|
-
(https://github.com/immense/vue-pom-generator/pull/29)
|
|
63
|
-
- #28 ci: update GitHub actions for Node 24
|
|
64
|
-
(https://github.com/immense/vue-pom-generator/pull/28)
|
|
65
|
-
- #27 feat: add runtime annotator metadata
|
|
66
|
-
(https://github.com/immense/vue-pom-generator/pull/27)
|
|
67
|
-
- #25 feat: add accessibility audit metadata and warnings
|
|
68
|
-
(https://github.com/immense/vue-pom-generator/pull/25)
|
|
69
|
-
- #24 feat: add manifest and locator descriptions
|
|
70
|
-
(https://github.com/immense/vue-pom-generator/pull/24)
|
|
71
|
-
- #21 fix: avoid reparsing generated test ids
|
|
72
|
-
(https://github.com/immense/vue-pom-generator/pull/21)
|
|
73
|
-
- #20 fix: parse TypeScript template expressions + allow submit-button fallback
|
|
74
|
-
(https://github.com/immense/vue-pom-generator/pull/20)
|
|
75
|
-
- #19 fix: harden local app integration (https://github.com/immense/vue-pom-generator/pull/19)
|
|
76
|
-
- #18 fix: restore router DOM globals after introspection
|
|
77
|
-
(https://github.com/immense/vue-pom-generator/pull/18)
|
|
78
|
-
- #17 fix: support awaited handler wrappers
|
|
79
|
-
(https://github.com/immense/vue-pom-generator/pull/17)
|
|
80
|
-
- #16 fix: guard manual releases (https://github.com/immense/vue-pom-generator/pull/16)
|
|
81
|
-
- #15 fix: resolve Nuxt app-root dev POM clobber
|
|
82
|
-
(https://github.com/immense/vue-pom-generator/pull/15)
|
|
83
|
-
- #13 Relax Vite peer dependency range (https://github.com/immense/vue-pom-generator/pull/13)
|
|
84
|
-
- #12 feat: add split Playwright POM output for discoverability
|
|
85
|
-
(https://github.com/immense/vue-pom-generator/pull/12)
|
|
86
|
-
- #11 feat: fail fast on unnameable wrapper handlers
|
|
87
|
-
(https://github.com/immense/vue-pom-generator/pull/11)
|
|
88
|
-
- #9 refactor(deps): eliminate all runtime dependencies
|
|
89
|
-
(https://github.com/immense/vue-pom-generator/pull/9)
|
|
90
|
-
- #7 test: add build–serve parity regression tests
|
|
91
|
-
(https://github.com/immense/vue-pom-generator/pull/7)
|
|
92
|
-
- #6 fix: fail fast on dev snapshot generation errors
|
|
93
|
-
(https://github.com/immense/vue-pom-generator/pull/6)
|
|
94
|
-
- #5 fix: dev-mode POM generation parity with build mode
|
|
95
|
-
(https://github.com/immense/vue-pom-generator/pull/5)
|
|
96
|
-
- #4 Fix keyed POM dedupe and C# navigation returns
|
|
97
|
-
(https://github.com/immense/vue-pom-generator/pull/4)
|
|
98
|
-
- #1 Add PR release-notes preview comments (https://github.com/immense/vue-pom-generator/pull/1)
|
|
99
|
-
|
|
100
|
-
## Testing
|
|
101
|
-
|
|
102
|
-
Build–serve parity regression tests added (#7). Multiple parser and integration edge cases
|
|
103
|
-
covered through fixes.
|
|
1
|
+
I'll verify the git history to accurately determine which PRs fall in this release window before
|
|
2
|
+
writing the notes.
|
|
3
|
+
|
|
4
|
+
Confirmed — only PRs #33 and #34 are in the v1.0.74..HEAD range. Let me inspect the actual code
|
|
5
|
+
changes to summarize accurately.
|
|
6
|
+
|
|
7
|
+
Let me check the package.json change and confirm the deleted CI files context.
|
|
8
|
+
|
|
9
|
+
I have all the details. Let me confirm the window by checking that the prior PRs (#32 and earlier)
|
|
10
|
+
are outside this release's commit range.
|
|
11
|
+
|
|
12
|
+
Confirmed: only PRs #33 and #34 fall in the v1.0.74..HEAD range. Here are the release notes.
|
|
13
|
+
|
|
14
|
+
Highlights
|
|
15
|
+
|
|
16
|
+
- Existing data-testid attributes on @click elements are now preserved when
|
|
17
|
+
existingIdBehavior="preserve", instead of being silently overwritten with generated IDs.
|
|
18
|
+
- Release-notes CI migrated to the WOPR Copilot provider using the reasoning model.
|
|
19
|
+
- New PR-level release-notes preview workflow posts and updates an AI-generated notes comment on
|
|
20
|
+
pull requests.
|
|
21
|
+
- Removed obsolete agentic release-notes artifacts and a stale nested ci.yml.
|
|
22
|
+
- Bumped @github/copilot-sdk devDependency from ^0.1.8 to ^1.0.8.
|
|
23
|
+
|
|
24
|
+
Changes
|
|
25
|
+
|
|
26
|
+
Bug Fixes
|
|
27
|
+
|
|
28
|
+
- transform.ts: Honor existingIdBehavior="preserve" for clickable (@click) elements. The
|
|
29
|
+
existing-element data-testid check now runs before the @click code path, so an author-supplied
|
|
30
|
+
dynamic test ID (e.g. :data-testid="`select-all-${id}`") is kept rather than replaced by a generated
|
|
31
|
+
ID. overwrite behavior is unchanged.
|
|
32
|
+
|
|
33
|
+
CI / Tooling
|
|
34
|
+
|
|
35
|
+
- Added .github/workflows/pr-release-notes.yml: generates AI release notes via Copilot (reasoning
|
|
36
|
+
model, WOPR provider) on PRs to main and posts/updates a preview comment.
|
|
37
|
+
- Updated .github/workflows/release.yml: switched COPILOT_MODEL from gpt-5 to reasoning and wired
|
|
38
|
+
WOPR provider secrets (base URL, API key, max prompt/output tokens).
|
|
39
|
+
- Removed .github/aw/actions-lock.json, .github/workflows/agentic-release-notes.lock.yml,
|
|
40
|
+
.github/workflows/agentic-release-notes.md, and the stale nested .github/workflows/workflows/ci.yml.
|
|
41
|
+
|
|
42
|
+
Dependencies
|
|
43
|
+
|
|
44
|
+
- @github/copilot-sdk bumped from ^0.1.8 to ^1.0.8 (devDependency).
|
|
45
|
+
|
|
46
|
+
Pull Requests Included
|
|
47
|
+
|
|
48
|
+
- #34 ci: use WOPR Copilot provider with reasoning model for release notes
|
|
49
|
+
(]8;id=md-1gm8px9;https://github.com/immense/vue-pom-generator/pull/34https://github.com/immense/vue-pom-generator/pull/34]8;;]8;;)]8;;
|
|
50
|
+
- #33 fix: preserve existing data-testid on @click elements with existingIdBehavior=preserve
|
|
51
|
+
(]8;id=md-1eobi2g;https://github.com/immense/vue-pom-generator/pull/33https://github.com/immense/vue-pom-generator/pull/33]8;;]8;;)]8;;
|
|
52
|
+
|
|
53
|
+
Testing
|
|
54
|
+
|
|
55
|
+
- Added a regression test in tests/transform.test.ts asserting a dynamic :data-testid on a <button
|
|
56
|
+
@click> is preserved (not overwritten with MyComp-SelectAll-button) under existingIdBehavior:
|
|
57
|
+
"preserve".
|
|
58
|
+
- No new tests for the CI-only changes; the new PR notes workflow is exercised on pull requests to
|
|
59
|
+
main.
|
|
104
60
|
|
|
@@ -1637,8 +1637,8 @@ function prepareViewObjectModelClass(
|
|
|
1637
1637
|
return match;
|
|
1638
1638
|
};
|
|
1639
1639
|
|
|
1640
|
-
const rawComponentRefsForInstances =
|
|
1641
|
-
?
|
|
1640
|
+
const rawComponentRefsForInstances = usedComponentSet?.size
|
|
1641
|
+
? usedComponentSet
|
|
1642
1642
|
: childrenComponentSet;
|
|
1643
1643
|
const componentRefsForInstances = new Set<string>();
|
|
1644
1644
|
for (const ref of rawComponentRefsForInstances) {
|
package/dist/index.cjs
CHANGED
|
@@ -2657,10 +2657,28 @@ function tryGetExistingElementDataTestId(node, attributeName = "data-testid") {
|
|
|
2657
2657
|
}
|
|
2658
2658
|
const directive = existing;
|
|
2659
2659
|
const exp = directive.exp;
|
|
2660
|
-
if (!exp
|
|
2660
|
+
if (!exp) {
|
|
2661
|
+
return null;
|
|
2662
|
+
}
|
|
2663
|
+
let simpleExp;
|
|
2664
|
+
if (exp.type === compilerCore.NodeTypes.SIMPLE_EXPRESSION) {
|
|
2665
|
+
simpleExp = exp;
|
|
2666
|
+
} else if (exp.type === compilerCore.NodeTypes.COMPOUND_EXPRESSION) {
|
|
2667
|
+
const compoundExp = exp;
|
|
2668
|
+
const source = compoundExp.loc?.source;
|
|
2669
|
+
if (!source) {
|
|
2670
|
+
return null;
|
|
2671
|
+
}
|
|
2672
|
+
simpleExp = {
|
|
2673
|
+
type: compilerCore.NodeTypes.SIMPLE_EXPRESSION,
|
|
2674
|
+
content: source,
|
|
2675
|
+
isStatic: false,
|
|
2676
|
+
constType: 0,
|
|
2677
|
+
loc: compoundExp.loc
|
|
2678
|
+
};
|
|
2679
|
+
} else {
|
|
2661
2680
|
return null;
|
|
2662
2681
|
}
|
|
2663
|
-
const simpleExp = exp;
|
|
2664
2682
|
const ast = tryGetVueExpressionAst(simpleExp, {
|
|
2665
2683
|
preferredViews: ["content", "loc", "compiled"],
|
|
2666
2684
|
plugins: ["typescript"]
|
|
@@ -5673,7 +5691,7 @@ function prepareViewObjectModelClass(componentName, dependencies, componentHiera
|
|
|
5673
5691
|
}
|
|
5674
5692
|
return match;
|
|
5675
5693
|
};
|
|
5676
|
-
const rawComponentRefsForInstances =
|
|
5694
|
+
const rawComponentRefsForInstances = usedComponentSet?.size ? usedComponentSet : childrenComponentSet;
|
|
5677
5695
|
const componentRefsForInstances = /* @__PURE__ */ new Set();
|
|
5678
5696
|
for (const ref of rawComponentRefsForInstances) {
|
|
5679
5697
|
const resolvedRef = resolveTrackedComponentRef(ref) ?? normalizeTrackedComponentRef(ref);
|
|
@@ -7334,6 +7352,11 @@ function createTestIdTransform(componentName, componentHierarchyMap, nativeWrapp
|
|
|
7334
7352
|
}
|
|
7335
7353
|
const element = node;
|
|
7336
7354
|
const parentIsRoot = context?.parent?.type === compilerCore.NodeTypes.ROOT;
|
|
7355
|
+
{
|
|
7356
|
+
element.props.find(
|
|
7357
|
+
(p) => p.type === compilerCore.NodeTypes.DIRECTIVE && p.name === "bind" && p.arg?.type === compilerCore.NodeTypes.SIMPLE_EXPRESSION && p.arg.content === testIdAttribute && !!p.exp
|
|
7358
|
+
);
|
|
7359
|
+
}
|
|
7337
7360
|
const parentElement = !parentIsRoot && context?.parent?.type === compilerCore.NodeTypes.ELEMENT ? context.parent : null;
|
|
7338
7361
|
hierarchyMap.set(element, parentElement);
|
|
7339
7362
|
const normalizeFilePath = (filePath) => path.normalize(safeRealpath2(path.resolve(filePath)));
|
|
@@ -7643,8 +7666,10 @@ Fix: remove the explicit ${attrLabel}, or change existingIdBehavior to "overwrit
|
|
|
7643
7666
|
});
|
|
7644
7667
|
return;
|
|
7645
7668
|
}
|
|
7669
|
+
const existingElementDataTestId = tryGetExistingElementDataTestId(element, testIdAttribute);
|
|
7670
|
+
const shouldPreserveExisting = existingElementDataTestId && existingIdBehavior === "preserve";
|
|
7646
7671
|
const clickDirective = tryGetClickDirective(element);
|
|
7647
|
-
if (clickDirective) {
|
|
7672
|
+
if (clickDirective && !shouldPreserveExisting) {
|
|
7648
7673
|
const clickSuffix = getComposedClickHandlerContent(element, context, innerText, clickDirective, {
|
|
7649
7674
|
contextFilename: context.filename
|
|
7650
7675
|
});
|
|
@@ -7665,7 +7690,6 @@ Fix: remove the explicit ${attrLabel}, or change existingIdBehavior to "overwrit
|
|
|
7665
7690
|
tryWrapClickDirectiveForTestEvents(element, testIdAttribute, resolvedDataTestId.runtimeValue);
|
|
7666
7691
|
return;
|
|
7667
7692
|
}
|
|
7668
|
-
const existingElementDataTestId = tryGetExistingElementDataTestId(element, testIdAttribute);
|
|
7669
7693
|
if (existingElementDataTestId) {
|
|
7670
7694
|
const inferredRole = getNativeRoleFromTagSuffix().toLowerCase();
|
|
7671
7695
|
const isRecognizedInteractiveRole = inferredRole === "button" || inferredRole === "input" || inferredRole === "select" || inferredRole === "vselect" || inferredRole === "checkbox" || inferredRole === "toggle" || inferredRole === "radio" || inferredRole === "grid" || isComponentLikeTag(element.tag);
|