@immense/vue-pom-generator 1.0.79 → 1.0.81
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 +25 -21
- package/dist/index.cjs +63 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +63 -0
- package/dist/index.mjs.map +1 -1
- package/dist/transform.d.ts.map +1 -1
- package/dist/utils.d.ts +24 -0
- package/dist/utils.d.ts.map +1 -1
- package/package.json +1 -1
package/RELEASE_NOTES.md
CHANGED
|
@@ -1,36 +1,40 @@
|
|
|
1
|
+
I'll verify the actual diff to summarize the changes accurately before writing the release notes.
|
|
2
|
+
|
|
3
|
+
Confirmed: v1.0.80..HEAD contains only #44. Here are the release notes.
|
|
4
|
+
|
|
1
5
|
Highlights
|
|
2
6
|
|
|
3
|
-
-
|
|
4
|
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
|
|
8
|
-
- Deleted stale pom-element-wrapper design and implementation plan documents (#41)
|
|
7
|
+
- Copilot CLI release-notes workflows now authenticate with the workflow's built-in GITHUB_TOKEN
|
|
8
|
+
instead of a long-lived personal access token (PAT)
|
|
9
|
+
- Added copilot-requests: write permission to both release and PR-release-notes workflows
|
|
10
|
+
- Made COPILOT_GITHUB_TOKEN optional — a custom provider (COPILOT_PROVIDER_BASE_URL +
|
|
11
|
+
COPILOT_PROVIDER_API_KEY) can now satisfy Copilot auth on its own
|
|
9
12
|
|
|
10
13
|
Changes
|
|
11
14
|
|
|
12
|
-
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
-
|
|
15
|
+
- CI workflows:
|
|
16
|
+
- Replaced secrets.COPILOT_GITHUB_TOKEN with github.token in release.yml and pr-release-notes.yml
|
|
17
|
+
- Granted copilot-requests: write so the built-in token can authenticate Copilot CLI billed to the
|
|
18
|
+
org
|
|
19
|
+
- Removed the pre-flight "missing COPILOT_GITHUB_TOKEN" error guard from the release workflow (the
|
|
20
|
+
GH_TOKEN guard remains)
|
|
21
|
+
- Release-notes scripts:
|
|
22
|
+
- generate-release-notes.mjs and generate-pr-release-notes.mjs now treat COPILOT_GITHUB_TOKEN as
|
|
23
|
+
optional
|
|
24
|
+
- Added fail-fast validation that throws when neither a Copilot token nor a custom provider is
|
|
25
|
+
configured
|
|
26
|
+
- CopilotClient only passes githubToken when present, allowing provider-based session auth
|
|
17
27
|
|
|
18
28
|
Breaking Changes
|
|
19
29
|
|
|
20
|
-
|
|
21
|
-
consumers must use to wire up Playwright tests. Update any imports of the generated test to use
|
|
22
|
-
withPomFixtures instead. (#39)
|
|
30
|
+
None. Changes are confined to CI workflows and internal release-notes scripts.
|
|
23
31
|
|
|
24
32
|
Pull Requests Included
|
|
25
33
|
|
|
26
|
-
- ]8;id=md-
|
|
27
|
-
- ]8;id=md-fg7y2m;https://github.com/immense/vue-pom-generator/pull/40#40]8;;]8;; — chore: remove product-specific (Immy/Ayla) heuristics and fixtures]8;;
|
|
28
|
-
- ]8;id=md-1d0dvwm;https://github.com/immense/vue-pom-generator/pull/39#39]8;;]8;; — feat!: export withPomFixtures instead of a generated test]8;;
|
|
29
|
-
- ]8;id=md-1dadhll;https://github.com/immense/vue-pom-generator/pull/38#38]8;;]8;; — fix: drop self-referential child instance for recursively-nested components]8;;
|
|
34
|
+
- ]8;id=md-gk6cui;https://github.com/immense/vue-pom-generator/pull/44#44 — chore: drop Copilot CLI PAT in favor of built-in GITHUB_TOKEN]8;;]8;; (@dkattan)]8;;
|
|
30
35
|
|
|
31
36
|
Testing
|
|
32
37
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
withPomFixtures API and the recursive-nesting fix.
|
|
38
|
+
No tests added or modified — this release only touches CI workflows and release-notes tooling
|
|
39
|
+
scripts.
|
|
36
40
|
|
package/dist/index.cjs
CHANGED
|
@@ -1544,6 +1544,66 @@ function tryExtractSlotScopeVariableNames(expression) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
return names;
|
|
1546
1546
|
}
|
|
1547
|
+
function unwrapToBareCallbackIdentifier(node) {
|
|
1548
|
+
if (!node) {
|
|
1549
|
+
return null;
|
|
1550
|
+
}
|
|
1551
|
+
if (types.isFile(node)) {
|
|
1552
|
+
const stmt = node.program.body[0];
|
|
1553
|
+
return types.isExpressionStatement(stmt) ? unwrapToBareCallbackIdentifier(stmt.expression) : null;
|
|
1554
|
+
}
|
|
1555
|
+
if (types.isProgram(node)) {
|
|
1556
|
+
const stmt = node.body[0];
|
|
1557
|
+
return types.isExpressionStatement(stmt) ? unwrapToBareCallbackIdentifier(stmt.expression) : null;
|
|
1558
|
+
}
|
|
1559
|
+
if (types.isExpressionStatement(node)) {
|
|
1560
|
+
return unwrapToBareCallbackIdentifier(node.expression);
|
|
1561
|
+
}
|
|
1562
|
+
if (types.isIdentifier(node)) {
|
|
1563
|
+
return node.name;
|
|
1564
|
+
}
|
|
1565
|
+
if (types.isCallExpression(node) || types.isOptionalCallExpression(node)) {
|
|
1566
|
+
const callee = node.callee;
|
|
1567
|
+
if (types.isIdentifier(callee) && (callee.name === "withModifiers" || callee.name === "_withModifiers")) {
|
|
1568
|
+
return unwrapToBareCallbackIdentifier(node.arguments[0]);
|
|
1569
|
+
}
|
|
1570
|
+
return null;
|
|
1571
|
+
}
|
|
1572
|
+
if (types.isArrowFunctionExpression(node)) {
|
|
1573
|
+
return types.isBlockStatement(node.body) ? null : unwrapToBareCallbackIdentifier(node.body);
|
|
1574
|
+
}
|
|
1575
|
+
return null;
|
|
1576
|
+
}
|
|
1577
|
+
function tryGetBareCallbackClickHandlerName(node) {
|
|
1578
|
+
const click = tryGetClickDirective(node);
|
|
1579
|
+
if (!click?.exp) {
|
|
1580
|
+
return null;
|
|
1581
|
+
}
|
|
1582
|
+
const source = getVueExpressionSource(click.exp, "content", "compiled");
|
|
1583
|
+
if (!source) {
|
|
1584
|
+
return null;
|
|
1585
|
+
}
|
|
1586
|
+
const parsed = tryParseBabelAstFromHandlerSource(source);
|
|
1587
|
+
if (!parsed) {
|
|
1588
|
+
return null;
|
|
1589
|
+
}
|
|
1590
|
+
return unwrapToBareCallbackIdentifier(parsed);
|
|
1591
|
+
}
|
|
1592
|
+
function isSlotScopeCallbackClickHandler(node, hierarchyMap2) {
|
|
1593
|
+
const handlerName = tryGetBareCallbackClickHandlerName(node);
|
|
1594
|
+
if (!handlerName) {
|
|
1595
|
+
return false;
|
|
1596
|
+
}
|
|
1597
|
+
const templateNode = getContainedInSlotTemplateNode(node, hierarchyMap2);
|
|
1598
|
+
if (!templateNode) {
|
|
1599
|
+
return false;
|
|
1600
|
+
}
|
|
1601
|
+
const scopeExpression = findTemplateSlotScopeExpression(templateNode);
|
|
1602
|
+
if (!scopeExpression) {
|
|
1603
|
+
return false;
|
|
1604
|
+
}
|
|
1605
|
+
return tryExtractSlotScopeVariableNames(scopeExpression).includes(handlerName);
|
|
1606
|
+
}
|
|
1547
1607
|
function nodeHasToDirective(node) {
|
|
1548
1608
|
const toDirective = findDirectiveByName(node, "bind", "to");
|
|
1549
1609
|
if (toDirective?.exp) {
|
|
@@ -7502,6 +7562,9 @@ function createTestIdTransform(componentName, componentHierarchyMap, nativeWrapp
|
|
|
7502
7562
|
}
|
|
7503
7563
|
const slotKeyInfo = getContainedInSlotDataKeyInfo(element, hierarchyMap);
|
|
7504
7564
|
if (slotKeyInfo) {
|
|
7565
|
+
if (isSlotScopeCallbackClickHandler(element, hierarchyMap)) {
|
|
7566
|
+
return null;
|
|
7567
|
+
}
|
|
7505
7568
|
return slotKeyInfo;
|
|
7506
7569
|
}
|
|
7507
7570
|
if (crossFileKeyRegistry) {
|