@immense/vue-pom-generator 1.0.111 → 1.0.112

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,37 +1,37 @@
1
+ GitHub access is unavailable, so I'm relying on the provided data: the v1.0.111..HEAD range contains
2
+ a single commit — PR #77 — so that's the only PR included in this release.
3
+
4
+ v1.0.112
5
+
1
6
  Highlights
2
7
 
3
- - Wrapper POM action names now derive from :loadAction as well as the legacy :handler binding, so
4
- load-style wrappers get semantic method names (#75)
5
- - Action-prop matching is now consumer-declared: nativeWrappers[...].actionProp replaces the
6
- built-in name set, so renaming a wrapper's prop no longer requires generator changes (#75)
7
- - Matching uses Vue's own camelize on normalized prop names, so any spelling the Vue runtime maps
8
- to the prop (:loadAction, :load-action, legacy :handler) works (#75)
8
+ - Test-suite deduplication (wave 2): extracted shared helpers for POM entry points and temporary
9
+ projects.
10
+ - Net reduction of ~341 lines across 9 test files (587 insertions, 928 deletions).
11
+ - Test-only release — no product or runtime behavior changes.
9
12
 
10
13
  Changes
11
14
 
12
- - POM naming
13
- - Declared actionProp on a native wrapper replaces the built-in action-prop names for that wrapper
14
- (#75)
15
- - Fail fast when a wrapper declaring actionProp is used without that binding or a static @click;
16
- @change/@mousedown and dynamic event/argument bindings don't count as proof (#75)
17
- - Echo the matched directive argument in the unnameable-handler error so legacy :handler consumers
18
- get valid advice (#75)
19
- - Keep the handler:expr: merge-key prefix — generated POM identity is unchanged (#75)
20
- - Dependencies
21
- - @vue/shared moves to peerDependencies (>=3.5), matching how the compiler packages are declared
22
- (#75)
23
- - Docs
24
- - README and sequence-diagram updated for the action-prop contract (#75)
15
+ Tests
16
+
17
+ - Added shared test helpers: tests/helpers/pom-entry.ts and tests/helpers/tmp-project.ts.
18
+ - Deduplicated scaffolding across the wave 2 test files: metadata-collector-ts, build-serve-parity,
19
+ class-generation-coverage, generated-tsc, options, pointer, transform, and utils-coverage tests.
20
+
21
+ Chore
22
+
23
+ - Updated .deslop.toml duplication-gate configuration for the wave 2 files.
24
+
25
+ Breaking Changes
26
+
27
+ None.
25
28
 
26
29
  Pull Requests Included
27
30
 
28
- - ]8;id=md-ce95xy;https://github.com/immense/vue-pom-generator/pull/75#75]8;;]8;; — fix(pom): derive semantic action names from :loadAction as well as :handler ]8;;
29
- (@steve-price-immybot)
31
+ - ]8;id=md-bu9yk0;https://github.com/immense/vue-pom-generator/pull/77#77]8;;]8;; — test: deduplicate wave 2 test scaffolding (@dkattan)]8;;
30
32
 
31
33
  Testing
32
34
 
33
- - Extended transform coverage for action-prop matching and naming (+208 lines in
34
- transform.test.ts), plus updates to utils-coverage, existing-id-behavior,
35
- semantic-component-instances, and vue-test-utils-pom suites; vendor-specific naming dropped from
36
- fixtures.
35
+ - Existing test suite validates the refactor; helper extraction preserves per-file coverage with no
36
+ expected behavior change.
37
37
 
@@ -0,0 +1,17 @@
1
+ import type { IDataTestId, NativeRole } from '../../utils';
2
+ import { type PomParameterSpec } from '../../pom-params';
3
+ import { type PomPatternKind } from '../../pom-patterns';
4
+ export interface MakeTestIdEntryOptions {
5
+ /** The test-id pattern text, e.g. `MyComp-Save-button` or `items-check-${key}`. */
6
+ selector: string;
7
+ patternKind?: PomPatternKind;
8
+ patternParams?: readonly string[];
9
+ methodName?: string;
10
+ nativeRole?: NativeRole;
11
+ parameters?: Array<PomParameterSpec | readonly [string, string]>;
12
+ generatedActionName?: string;
13
+ generatedPropertyName?: string;
14
+ targetPageObjectModelClass?: string;
15
+ }
16
+ export declare function makeTestIdEntry(options: MakeTestIdEntryOptions): IDataTestId;
17
+ //# sourceMappingURL=pom-entry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pom-entry.d.ts","sourceRoot":"","sources":["../../../tests/helpers/pom-entry.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAkB,MAAM,aAAa,CAAA;AAC1E,OAAO,EAAuB,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAC7E,OAAO,EAA0B,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAEhF,MAAM,WAAW,sBAAsB;IACrC,mFAAmF;IACnF,QAAQ,EAAE,MAAM,CAAA;IAChB,WAAW,CAAC,EAAE,cAAc,CAAA;IAC5B,aAAa,CAAC,EAAE,SAAS,MAAM,EAAE,CAAA;IACjC,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB,UAAU,CAAC,EAAE,KAAK,CAAC,gBAAgB,GAAG,SAAS,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IAChE,mBAAmB,CAAC,EAAE,MAAM,CAAA;IAC5B,qBAAqB,CAAC,EAAE,MAAM,CAAA;IAC9B,0BAA0B,CAAC,EAAE,MAAM,CAAA;CACpC;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,sBAAsB,GAAG,WAAW,CAqB5E"}
@@ -0,0 +1,10 @@
1
+ export declare function makeTempRoot(prefix: string): string;
2
+ /**
3
+ * Write `content` to `filePath`, normalizing `.ts`-family files through
4
+ * renderTypeScriptLines (strips the formatting variance the generator handles
5
+ * for us) and creating parent directories.
6
+ */
7
+ export declare function writeFile(filePath: string, content: string): void;
8
+ /** Extract the generated source block for one class (up to the next class or EOF). */
9
+ export declare function extractClassBlock(content: string, className: string): string;
10
+ //# sourceMappingURL=tmp-project.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"tmp-project.d.ts","sourceRoot":"","sources":["../../../tests/helpers/tmp-project.ts"],"names":[],"mappings":"AAQA,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAEnD;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAM1D;AAED,sFAAsF;AACtF,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAS5E"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@immense/vue-pom-generator",
3
- "version": "1.0.111",
3
+ "version": "1.0.112",
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": {