@immense/vue-pom-generator 1.0.80 → 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.
Files changed (2) hide show
  1. package/RELEASE_NOTES.md +23 -38
  2. package/package.json +1 -1
package/RELEASE_NOTES.md CHANGED
@@ -1,55 +1,40 @@
1
- I'll examine the actual diff for PR #42 to write accurate release notes.
1
+ I'll verify the actual diff to summarize the changes accurately before writing the release notes.
2
2
 
3
- Now I have full context. Only PR #42 is in the v1.0.79..HEAD diff (confirmed via git log). The other
4
- listed PRs were already in prior tags. Here are the release notes:
3
+ Confirmed: v1.0.80..HEAD contains only #44. Here are the release notes.
5
4
 
6
5
  Highlights
7
6
 
8
- - Singleton accessors for slot-scope callback click handlers — when a scoped slot exposes an event
9
- callback (e.g. toggle from <template #trigger="{ toggle }">), a @click="toggle" button now generates
10
- a plain singleton test id instead of a keyed accessor, since the slot renders a single control
11
- rather than one row per iteration.
12
- - Recognizes common callback wrappers — bare identifiers, withModifiers(fn, […]) /
13
- _withModifiers(…), and arrow expression bodies (() => fn) — while method calls (remove(item)) and
14
- member access (data.action()) correctly remain keyed as per-iteration row data.
15
- - Two new regression tests covering the bare-callback and withModifiers-wrapped cases.
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
16
12
 
17
13
  Changes
18
14
 
19
- Transform logic
20
-
21
- - Added isSlotScopeCallbackClickHandler check in transform.ts: when an element's @click handler is
22
- a bare identifier matching an enclosing slot-scope variable, the keyed-slot path is bypassed (return
23
- null) so a singleton accessor is emitted.
24
- - Method-call and member-access handlers are unaffected and retain their keyed selectors.
25
-
26
- Utilities (utils.ts)
27
-
28
- - unwrapToBareCallbackIdentifier — recursively unwraps a parsed click-handler AST to a plain
29
- identifier name, handling withModifiers/_withModifiers call wrappers, arrow expression bodies, and
30
- expression-statement envelopes. Returns null for method calls, member access, assignments, and
31
- conditionals.
32
- - tryGetBareCallbackClickHandlerName — extracts the bare callback name from an element's @click
33
- directive, parsing the handler source into a Babel AST.
34
- - isSlotScopeCallbackClickHandler — determines whether an element is a singleton trigger inside a
35
- scoped slot by cross-referencing the handler name against the slot's scope variables.
36
-
37
- Tests
38
-
39
- - Added test: emits a singleton (non-keyed) test id (MyComp-Toggle-button) for a bare slot-scope
40
- callback click handler.
41
- - Added test: emits a singleton test id for a callback wrapped in withModifiers.
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
42
27
 
43
28
  Breaking Changes
44
29
 
45
- None.
30
+ None. Changes are confined to CI workflows and internal release-notes scripts.
46
31
 
47
32
  Pull Requests Included
48
33
 
49
- - ]8;id=md-ew8qoo;https://github.com/immense/vue-pom-generator/pull/42#42 — feat: emit singleton accessor for slot-scope callback click handlers]8;;]8;; (@dkattan)]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;;
50
35
 
51
36
  Testing
52
37
 
53
- Two new unit tests added in tests/transform.test.ts covering bare and withModifiers-wrapped
54
- slot-scope callback handlers; both assert singleton (non-keyed) test id generation.
38
+ No tests added or modified — this release only touches CI workflows and release-notes tooling
39
+ scripts.
55
40
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immense/vue-pom-generator",
3
- "version": "1.0.80",
3
+ "version": "1.0.81",
4
4
  "description": "Injects data-testid attributes for all interactive elements and generates page object models for every page.",
5
5
  "type": "module",
6
6
  "repository": {