@immense/vue-pom-generator 1.0.102 → 1.0.103

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,47 +1,25 @@
1
+ v1.0.103
2
+
1
3
  Highlights
2
4
 
3
- - The annotator overlay can now be mounted in configured builds (vite build), not just vite serve
4
- (#65).
5
- - Browser-only safety: the annotator client is explicitly excluded from SSR builds, and SSR
6
- transforms are skipped.
7
- - New packed smoke checks verify the overlay ships in browser bundles, that no Node-only generator
8
- code leaks into them, and that SSR builds stay clean.
5
+ - Fixed bundling of the annotator HTML import so the annotator client works correctly from
6
+ packed/published builds (#66)
7
+ - Extended the packed-build smoke check to guard the fix
9
8
 
10
9
  Changes
11
10
 
12
- Runtime annotator
13
-
14
- - Changed the annotator UI plugin's apply logic so it runs during vite serve or any non-SSR vite
15
- build, instead of the previous serve-only restriction (#65).
16
- - Skipped the annotator transform for SSR requests (transformOptions?.ssr) so the browser-only
17
- client never reaches server bundles (#65).
18
- - Updated option documentation: runtime.annotator and runtime.annotator.ui are no longer described
19
- as dev-only; both vite serve and vite build inject the same browser-side overlay when enabled (#65).
20
-
21
- Documentation
22
-
23
- - Added an "Annotator overlay" section to the README showing how to enable metadata + UI together
24
- in the Vite config, and how to keep it out of production via conditional config (#65).
25
-
26
- Tooling / CI
27
-
28
- - Extended the packed smoke check to enable runtime.annotator and assert on built output: the
29
- vpg-annotator-toolbar client must be present in browser assets, Node-only code (createRequire) must
30
- be absent, and an SSR build (vite build --ssr) must neither include the client nor fail to evaluate
31
- its emitted entry (#65).
32
-
33
- Breaking Changes
11
+ Fixes
34
12
 
35
- None.
13
+ - Bundled the annotator HTML import in the plugin runtime instead of relying on an unpackaged file
14
+ reference (plugin/runtime/annotator/plugin.ts) ([be0dcd4])
15
+ - Updated scripts/packed-smoke-check.mjs to cover the packaged output alongside the fix
36
16
 
37
17
  Pull Requests Included
38
18
 
39
- - #65 fix: mount annotator in configured builds —
40
- ]8;id=md-ba7lo3;https://github.com/immense/vue-pom-generator/pull/65https://github.com/immense/vue-pom-generator/pull/65]8;;
19
+ - ]8;id=md-bk77d2;https://github.com/immense/vue-pom-generator/pull/66#66]8;;]8;; — fix: bundle annotator HTML import (@dkattan)]8;;
41
20
 
42
21
  Testing
43
22
 
44
- - Packed smoke check extended with new assertions: annotator client present in the browser build,
45
- no Node-only generator code in the client, and the SSR build excludes the annotator and evaluates
46
- cleanly.
23
+ - No test runs were performed while preparing these notes; scripts/packed-smoke-check.mjs was
24
+ updated to validate the packed bundle as part of the change.
47
25
 
package/dist/index.cjs CHANGED
@@ -11032,17 +11032,20 @@ ${code}`,
11032
11032
  map: null
11033
11033
  };
11034
11034
  },
11035
- transformIndexHtml() {
11036
- if (!options.enabled) {
11037
- return void 0;
11035
+ transformIndexHtml: {
11036
+ order: "pre",
11037
+ handler() {
11038
+ if (!options.enabled) {
11039
+ return void 0;
11040
+ }
11041
+ const tag = {
11042
+ tag: "script",
11043
+ attrs: { type: "module" },
11044
+ children: `import ${JSON.stringify(ANNOTATOR_CLIENT_VIRTUAL_ID)};`,
11045
+ injectTo: "body"
11046
+ };
11047
+ return [tag];
11038
11048
  }
11039
- const tag = {
11040
- tag: "script",
11041
- attrs: { type: "module" },
11042
- children: `import ${JSON.stringify(ANNOTATOR_CLIENT_VIRTUAL_ID)};`,
11043
- injectTo: "body"
11044
- };
11045
- return [tag];
11046
11049
  }
11047
11050
  };
11048
11051
  }