@onderwijsin/nuxt-loops-renderer 0.2.9 → 0.2.11

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/README.md CHANGED
@@ -15,9 +15,12 @@ omits invalid or unsupported content.
15
15
  Install the module:
16
16
 
17
17
  ```sh
18
- pnpm add @onderwijsin/nuxt-loops-renderer @onderwijsin/loops-core
18
+ pnpm add @onderwijsin/nuxt-loops-renderer @nuxt/ui @onderwijsin/loops-core
19
19
  ```
20
20
 
21
+ The application supplies `@nuxt/ui` as a peer dependency so module runtime code shares the
22
+ application's instances. Nuxt module registration remains automatic.
23
+
21
24
  Register it in `nuxt.config.ts`:
22
25
 
23
26
  ```ts
@@ -152,7 +155,7 @@ needed by the current presentation to the client renderer.
152
155
  ## Compatibility
153
156
 
154
157
  - Nuxt 4
155
- - Node.js 22 or newer
158
+ - Node.js 24 or newer; Node.js 22 may work but is untested and unsupported
156
159
 
157
160
  Developed and tested against Node.js 24 and Nuxt 4.5.x. Versions outside the current CI matrix are
158
161
  not continuously tested. Nuxt 3 is not guaranteed.
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onderwijsin/nuxt-loops-renderer",
3
3
  "configKey": "loopsRenderer",
4
- "version": "0.2.9",
4
+ "version": "0.2.11",
5
5
  "compatibility": {
6
6
  "nuxt": "^4.0.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -1,8 +1,9 @@
1
1
  import { defineNuxtModule, useLogger, createResolver, addComponentsDir } from '@nuxt/kit';
2
+ import { defu } from 'defu';
2
3
  import { enabled, resolveModuleName, resolveLoggerScope, moduleSetup, transpileRuntime, moduleDependenciesWhenEnabled } from '@onderwijsin/nuxt-module-utils/build';
3
4
  import { z } from 'zod';
4
5
 
5
- const version = "0.2.9";
6
+ const version = "0.2.11";
6
7
 
7
8
  const EVALUATE_DEFAULTS = {
8
9
  onMissingVariable: false,
@@ -49,10 +50,13 @@ const module$1 = defineNuxtModule({
49
50
  return;
50
51
  }
51
52
  const validatedOptions = loopsRendererOptionsSchema.parse(options);
52
- nuxt.options.appConfig.loopsRenderer = {
53
- applyInlineStyles: validatedOptions.applyInlineStyles,
54
- evaluate: validatedOptions.evaluate
55
- };
53
+ nuxt.options.appConfig.loopsRenderer = defu(
54
+ {
55
+ applyInlineStyles: validatedOptions.applyInlineStyles,
56
+ evaluate: validatedOptions.evaluate
57
+ },
58
+ nuxt.options.appConfig.loopsRenderer
59
+ );
56
60
  const resolver = createResolver(import.meta.url);
57
61
  const runtimeDir = resolver.resolve("./runtime");
58
62
  transpileRuntime(nuxt, runtimeDir);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onderwijsin/nuxt-loops-renderer",
3
- "version": "0.2.9",
3
+ "version": "0.2.11",
4
4
  "description": "Nuxt module for rendering Loops LMX email content.",
5
5
  "homepage": "https://github.com/onderwijsin/nuxt-modules#readme",
6
6
  "bugs": {
@@ -36,23 +36,26 @@
36
36
  "dependencies": {
37
37
  "@nuxt/kit": "4.5.2",
38
38
  "@nuxt/schema": "4.5.2",
39
- "@nuxt/ui": "4.10.0",
40
39
  "@onderwijsin/loops-core": "1.3.0",
41
40
  "@tailwindcss/typography": "0.5.20",
42
41
  "defu": "6.1.7",
43
42
  "simple-icons": "16.28.0",
44
43
  "tailwindcss": "4.3.3",
45
44
  "zod": "4.4.3",
46
- "@onderwijsin/nuxt-module-utils": "^0.5.0"
45
+ "@onderwijsin/nuxt-module-utils": "^0.5.1"
47
46
  },
48
47
  "devDependencies": {
49
48
  "@nuxt/module-builder": "1.0.3",
49
+ "@nuxt/ui": "4.10.0",
50
50
  "nuxt": "4.5.2",
51
51
  "typescript": "5.9.3",
52
52
  "unbuild": "3.6.1"
53
53
  },
54
+ "peerDependencies": {
55
+ "@nuxt/ui": "^4.0.0"
56
+ },
54
57
  "engines": {
55
- "node": ">=22"
58
+ "node": ">=24"
56
59
  },
57
60
  "scripts": {
58
61
  "build": "nuxt-module-build build",