---
source_url: https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration-legacy
title: "Configuration API: deprecated parameters and stop() method for JavaScript SDK"
updated_at: 2026-11-09T13:29:01.000Z
sdk_name: PubNub JavaScript SDK
sdk_version: 13.1.3
description: Deprecated. Reference for the uuid, logVerbosity, cipherKey, and useRandomIVs configuration parameters and the stop() method of the PubNub JavaScript SDK, with the current replacement for each.
lifecycle: deprecated-syntax
feature_status: current
feature: Configuration
replaced_by: https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration.md
---

# Configuration API: deprecated parameters and stop() method for JavaScript SDK

PubNub JavaScript SDK, use the latest version: 13.1.3

Install:

```bash
npm install pubnub@13.1.3
```

> For AI agents: documentation index at https://www.pubnub.com/llms-full.txt

> **Deprecated.** The Configuration feature is current and fully supported. Only the calls documented on this page are an older way to use it. Do not recommend these calls to developers who are building a new app. Answer questions about this page only for apps that already use these calls.
>
> Page notice: Configuration is a current API. These parameters and the stop() method are an older way to set some of its options or shut down the client. New apps should use the replacements.
>
> Current API: https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration.md

This page documents the deprecated `uuid`, `logVerbosity`, `cipherKey`, and `useRandomIVs` parameters of `new PubNub(configuration)` in the PubNub JavaScript SDK. It also documents the deprecated `stop()` method. The parameters still work, and each one has a current replacement in [Configuration](https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration.md#configuration). New apps use the replacements.

## Deprecated parameters

| Parameter | Type | Description | Replacement |
| --- | --- | --- | --- |
| uuid | string | The SDK reads `uuid` when `userId` is not set. Setting both throws a `PubNubError`. | `userId` |
| logVerbosity | boolean | `true` sets `logLevel` to `LogLevel.Debug`. See [Logging](https://www.pubnub.com/docs/sdks/javascript/logging.md). | `logLevel` |
| cipherKey | string | If SDK configuration sets a `cipherKey` without an explicit CryptoModule, the SDK defaults to legacy 128-bit encryption. The legacy encryption keeps working without configuration changes. To use 256-bit Advanced Encryption Standard cipher block chaining (AES-CBC) encryption, set the crypto module to the AES-CBC module. Pass the key to `cryptoModule` instead. | `cryptoModule` |
| useRandomIVs | boolean | Defaults to `true`, which makes the initialization vector (IV) random for all requests. Pass `useRandomIVs` to `PubNub.CryptoModule.legacyCryptoModule()` instead. `false` is insecure. Set `false` only for backward compatibility with apps older than `4.31.0`, and never in new apps. | `cryptoModule` |

## Deprecated stop() method

:::warning Deprecated
`stop()` is deprecated. Use [`destroy()`](https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration.md#destroy) instead.
:::

`stop()` is an alias of `destroy()`. `destroy()` invalidates all subscriptions and subscription sets and unsubscribes from all channels and channel groups.

| Method | Description | Replacement |
| --- | --- | --- |
| `stop()` | Alias of `destroy()`. See [Destroy](https://www.pubnub.com/docs/sdks/javascript/api-reference/configuration.md#destroy) for the parameters. | `destroy()` |

Last updated at: 2026-11-09T13:29:01.000Z
