@onderwijsin/nuxt-turnstile 0.2.8 → 0.2.9

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
@@ -138,7 +138,7 @@ after Turnstile succeeds; the module does not replace the route's existing submi
138
138
  ## Compatibility
139
139
 
140
140
  - Nuxt 4
141
- - Node.js 22+
141
+ - Node.js 24+; Node.js 22 may work but is untested and unsupported.
142
142
  - Node and Cloudflare Workers-compatible server runtime
143
143
  - No Sentry dependency or telemetry is included
144
144
 
package/dist/module.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@onderwijsin/nuxt-turnstile",
3
3
  "configKey": "turnstile",
4
- "version": "0.2.8",
4
+ "version": "0.2.9",
5
5
  "compatibility": {
6
6
  "nuxt": "^4.0.0"
7
7
  },
package/dist/module.mjs CHANGED
@@ -3,7 +3,7 @@ import { defu } from 'defu';
3
3
  import { enabled, resolveModuleName, resolveLoggerScope, moduleSetup, validateModuleOptions, transpileRuntime, moduleDependenciesWhenEnabled } from '@onderwijsin/nuxt-module-utils/build';
4
4
  import { z } from 'zod';
5
5
 
6
- const version = "0.2.8";
6
+ const version = "0.2.9";
7
7
 
8
8
  const turnstileOptionsSchema = z.object({
9
9
  enabled,
@@ -57,9 +57,7 @@ const module$1 = defineNuxtModule({
57
57
  siteKey: options.siteKey
58
58
  }
59
59
  );
60
- if (!nuxt.options.turnstile) {
61
- nuxt.options.turnstile = {};
62
- }
60
+ nuxt.options.turnstile = defu(nuxt.options.turnstile, {});
63
61
  nuxt.options.turnstile.siteKey ??= options.siteKey;
64
62
  transpileRuntime(nuxt, runtimeDir);
65
63
  addImportsDir(resolver.resolve(runtimeDir, "app", "composables"));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onderwijsin/nuxt-turnstile",
3
- "version": "0.2.8",
3
+ "version": "0.2.9",
4
4
  "description": "Nuxt Turnstile integration with client helpers and server-side validation.",
5
5
  "homepage": "https://github.com/onderwijsin/nuxt-modules#readme",
6
6
  "bugs": {
@@ -43,7 +43,7 @@
43
43
  "defu": "6.1.7",
44
44
  "h3": "1.15.11",
45
45
  "zod": "4.4.3",
46
- "@onderwijsin/nuxt-module-utils": "^0.5.0"
46
+ "@onderwijsin/nuxt-module-utils": "^0.5.1"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@nuxt/module-builder": "1.0.3",
@@ -53,7 +53,7 @@
53
53
  "unbuild": "3.6.1"
54
54
  },
55
55
  "engines": {
56
- "node": ">=22"
56
+ "node": ">=24"
57
57
  },
58
58
  "scripts": {
59
59
  "build": "nuxt-module-build build",