@immense/vue-pom-generator 1.0.97 → 1.0.98

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,80 +1,41 @@
1
- I'll verify which PRs actually fall within the release window by querying their merge timestamps
2
- from GitHub.
3
-
4
- Let me use the GitHub MCP tools to find PRs merged in the time window.
5
-
6
- Now I have merge timestamps. Let me convert the window to UTC and check the git log to confirm which
7
- commits are actually in range.
8
-
9
- PR #59 was part of v1.0.96. Only PR #60 is in v1.0.97. Let me examine the actual changes to write
10
- accurate notes.
11
-
12
- I now have a complete understanding of the changes. Only PR #60 is in this release (PR #59 was part
13
- of v1.0.96, confirmed by git log). Let me generate the release notes.
14
-
15
- Release Notes — v1.0.97
1
+ v1.0.98
16
2
 
17
3
  Highlights
18
4
 
19
- - New: Vue Test Utils component object generation — emit behavior-oriented POM objects for mounted
20
- Vue unit tests alongside existing Playwright output
21
- - Generated VTU objects reuse the same semantic instance names, keyed scopes, named-slot
22
- projections, and action names as Playwright POMs
23
- - Tests own mounting and assertions; selectors stay compiler-derived via data-pom-instance scoping
24
- markers
25
- - New opt-in generation.vueTestUtils config with configurable output directory (defaults to
26
- tests/unit/__generated__)
27
- - Full test coverage added: unit tests for the runtime class, type-checking of generated files, and
28
- packed-plugin smoke checks
5
+ - Cleared all outstanding Knip findings — removed unused exports, simplified configuration, and
6
+ extracted a dedicated floating-UI runtime entry point
7
+ - Net reduction of 32 lines across 11 files; one new entry-point file added
8
+ - No behavioral changes; cleanup and tooling hygiene only
29
9
 
30
10
  Changes
31
11
 
32
- Vue Test Utils POM Generation
33
-
34
- - Added class-generation/vue-test-utils-pom.ts — VueTestUtilsPom base class exposing getByTestId,
35
- getByAnyTestId, getComponentInstance, clickByTestId, selectVSelectByTestId, and a public wrapper for
36
- consumer assertions
37
- - Added generateVueTestUtilsFiles and supporting helpers (getVueTestUtilsPrimaryMembers,
38
- getVueTestUtilsExtraMembers, getVueTestUtilsParameters) to class-generation/index.ts
39
- - Generated actions include clickSave(), typeName(text), selectByValue(value), and v-select
40
- interactions — no generated assertion DSL or raw component ancestry exposed
41
- - Refactored getUniquePrimaryPomSpecs out of generateMethodsContentForDependencies for
42
- deduplication reuse
43
-
44
- Configuration & Plugin Wiring
12
+ Knip configuration
45
13
 
46
- - Added generation.vueTestUtils option (with outDir) to VuePomGeneratorPluginOptions in
47
- plugin/types.ts
48
- - Added vueTestUtilsOutDir to ResolvedGenerationSupportOptions in
49
- plugin/resolved-generation-options.ts
50
- - Wired the option through create-vue-pom-generator-plugins.ts, build-plugin.ts, and dev-plugin.ts
51
- - Validation: fails fast if vueTestUtils.outDir is empty or matches generation.outDir
14
+ - Simplified knip.json rules (reduced from 11 lines to a leaner set)
52
15
 
53
- Dependencies
16
+ Dead-code removal
54
17
 
55
- - Added @vue/test-utils (^2.4.11), @vue/server-renderer, and vue (3.5.27) as devDependencies
18
+ - Removed unused exports from pom-discoverability.ts (4 deletions)
19
+ - Trimmed tests/broad/helpers/fake-runtime.ts (21 lines reduced)
20
+ - Trimmed scripts/bundle-floating-ui-runtime.mjs (21 lines reduced)
56
21
 
57
- Documentation
22
+ New file
58
23
 
59
- - Added full README section covering setup, usage example, and the generation.vueTestUtils.outDir
60
- reference
24
+ - Added scripts/floating-ui-runtime-entry.ts — extracted dedicated entry point for the floating-UI
25
+ runtime bundler
61
26
 
62
- Breaking Changes
27
+ Minor cleanup
63
28
 
64
- None. Vue Test Utils generation is opt-in; existing Playwright-only behavior is unchanged.
29
+ - pom-params.ts, pom-patterns.ts, router-introspection.ts, utils.ts — small adjustments to satisfy
30
+ Knip
31
+ - package.json / package-lock.json — updated entry-point wiring
65
32
 
66
33
  Pull Requests Included
67
34
 
68
- - ]8;id=md-c46er0;https://github.com/immense/vue-pom-generator/pull/60#60 — Generate Vue Test Utils component objects]8;;]8;; (@dkattan)]8;;
35
+ - #61 Clear Knip findings — by @dkattan (]8;id=md-ce60fz;https://github.com/immense/vue-pom-generator/pull/61link]8;;]8;;)]8;;
69
36
 
70
37
  Testing
71
38
 
72
- - New tests/vue-test-utils-pom.test.ts (157 lines) exercises the VueTestUtilsPom runtime against
73
- mounted components (radio groups, keyed scoped instances, v-selects, inputs, buttons)
74
- - Extended tests/semantic-component-instances.test.ts to generate Vue Test Utils files and
75
- type-check them with tsc --noEmit
76
- - Extended tests/options.test.ts to verify default acceptance and fail-fast on empty outDir
77
- - Extended tests/resolved-generation-options.test.ts for vueTestUtilsOutDir resolution
78
- - Extended scripts/packed-smoke-check.mjs to build through the packed Vite plugin, emit VTU output,
79
- and type-check generated files including the copied runtime
39
+ No new tests added; changes are code cleanup, configuration, and build-script refactoring only.
40
+ Existing test suite continues to cover the affected modules.
80
41