@configdirector/nuxt-sdk 1.13.1 → 1.13.2

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/dist/module.d.mts CHANGED
@@ -188,11 +188,12 @@ interface ConfigDirectorPublicRuntimeConfig {
188
188
  */
189
189
  clientSdkKey?: string;
190
190
  /**
191
- * Your app's name. This value can be used in ConfigDirector targeting rules.
191
+ * Your app's name. Both the browser and the server send it, so ConfigDirector targeting rules can use it.
192
192
  */
193
193
  appName?: string;
194
194
  /**
195
- * Your app's version. This value can be used in ConfigDirector targeting rules.
195
+ * Your app's version. Both the browser and the server send it, so ConfigDirector targeting rules can
196
+ * use it.
196
197
  *
197
198
  * This can be a semver value or an arbitrary string (like a commit hash).
198
199
  */
package/dist/module.json CHANGED
@@ -4,5 +4,5 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=4.0.0"
6
6
  },
7
- "version": "1.13.1"
7
+ "version": "1.13.2"
8
8
  }
@@ -8467,6 +8467,7 @@ var plugin_default = defineNitroPlugin((nitroApp) => {
8467
8467
  const runtimeConfig = useRuntimeConfig();
8468
8468
  const logger = createDefaultLogger(runtimeConfig.configdirector?.logLevel);
8469
8469
  const { serverSdkKey, baseUrl, connection } = runtimeConfig.configdirector;
8470
+ const { appName, appVersion } = runtimeConfig.public.configdirector;
8470
8471
  const connectionMode = connection?.mode || "streaming";
8471
8472
  if (connectionMode !== "offline" && !serverSdkKey) {
8472
8473
  const message = "The ConfigDirector serverSdkKey must be configured for the plugin to initialize. You can provide it in nuxt.config.ts under 'runtimeConfig.configdirector.serverSdkKey' or as a runtime environment variable named NUXT_CONFIGDIRECTOR_SERVER_SDK_KEY";
@@ -8476,9 +8477,13 @@ var plugin_default = defineNitroPlugin((nitroApp) => {
8476
8477
  logger.debug("Initializing ConfigDirector Nitro plugin");
8477
8478
  const client = new DefaultConfigDirectorClient(serverSdkKey || void 0, {
8478
8479
  sdkName: "nuxt-sdk",
8479
- sdkVersion: "1.13.1"
8480
+ sdkVersion: "1.13.2"
8480
8481
  }, {
8481
8482
  logger,
8483
+ metadata: {
8484
+ appName,
8485
+ appVersion
8486
+ },
8482
8487
  connection: {
8483
8488
  url: baseUrl || void 0,
8484
8489
  mode: connectionMode,
@@ -2386,7 +2386,7 @@ const buildClient = async (configdirector, logger) => {
2386
2386
  return {
2387
2387
  client: createBrowserClient(configdirector?.clientSdkKey || void 0, {
2388
2388
  sdkName: "nuxt-sdk",
2389
- sdkVersion: "1.13.1"
2389
+ sdkVersion: "1.13.2"
2390
2390
  }, {
2391
2391
  metadata: {
2392
2392
  appName: configdirector?.appName,
package/dist/testing.mjs CHANGED
@@ -2159,7 +2159,7 @@ const installTestClient = (testClient) => {
2159
2159
  const createTestClient = (options) => {
2160
2160
  return createTestClient$1({
2161
2161
  sdkName: "nuxt-sdk",
2162
- sdkVersion: "1.13.1"
2162
+ sdkVersion: "1.13.2"
2163
2163
  }, options);
2164
2164
  };
2165
2165
  //#endregion
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@configdirector/nuxt-sdk",
3
- "version": "1.13.1",
3
+ "version": "1.13.2",
4
4
  "description": "Nuxt SDK for ConfigDirector. ConfigDirector is a remote configuration and feature flag service.",
5
5
  "license": "MIT",
6
6
  "author": "ConfigDirector",