New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

@wocker/utils

Package Overview
Dependencies
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@wocker/utils

Utils for @wocker

latest
Source
npmnpm
Version
2.0.8
Version published
Maintainers
1
Created
Source

@wocker/utils

Utils for wocker packages

npm version Publish latest License

npm total downloads bundle size Coverage

Usage

Installation

npm i @wocker/utils

Breaking Changes in Version 2.0.0

Name Changes for Prompt Functions

In version 2.0.0, we've renamed some core prompt functions to improve clarity and consistency across the API. These changes will require updates to your code if you're migrating from v1.x.

Function Renaming

Old Name (v1.x)New Name (v2.0.0)Description
promptTextpromptInputPrompts the user for text input
promptConfigRemovedFunction has been removed
promptGroupRemovedFunction has been removed

Migration Guide

If you're upgrading from version 1.x to 2.0.0, you'll need to update your imports and function calls for promptText:

// Old usage (v1.x)
import {promptText} from "@wocker/utils";

const name = await promptText({
    message: "Enter your name"
});
// New usage (v2.0.0)
import {promptInput} from "@wocker/utils";

const name = await promptInput({
    message: "Enter your name"
});

Why This Change?

We decided to rename the promptText function to promptInput to:

  • Provide a more descriptive name that better reflects its purpose
  • Create a more consistent naming convention across the API
  • Improve developer experience with more intuitive function names

The promptConfig and promptGroup functions have been removed as they are no longer supported in the new version.

Migration

If you're using a large codebase with many occurrences of the old function name, you can use the following search and replace operation:

  • Replace all occurrences of promptText with promptInput
  • Remove any usage of promptConfig and promptGroup as these functions are no longer available

Additional Information

The function signatures and return types remain the same, only the name of promptText has changed. All other functionality works exactly as before.

For any issues or questions regarding this migration, please open an issue on our GitHub repository.

Keywords

wocker

FAQs

Package last updated on 16 Feb 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts