Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

@versu/core

Latest version: v5.0.0

Overview

Last scanned
30 Nov 2026
Published
30 Nov 2026
npm package Publisher: tvcsantos
3 Stars
0 Forks
8 Versions
1.0K Downloads
TypeScript Repo language

Scan summary

@versu/core was last scanned on 30 Nov 2026 at version 5.0.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 8 versions; the latest 5 were published on 30 Nov 2026.
  • Findings: No rules fired in version 5.0.0.
  • Downloads: 1,002 downloads.

Versions

8 versions published
Versions and the rules that fired in each
VersionPublishedStatus
5.0.0 LATEST 30 Nov 2026 No rules fired
4.2.2 30 Nov 2026 No rules fired
4.2.1 30 Nov 2026 No rules fired
4.2.0 30 Nov 2026 Not shown
4.1.0 30 Nov 2026 Not shown

No rules fired in 5.0.0

Findings

Findings for v5.0.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 5.0.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

@versu/core - Core Library

The core business logic powering Versu. This package is completely framework-agnostic and can be integrated into any TypeScript/JavaScript project, CI/CD system, or custom tooling.

For comprehensive documentation, examples, and configuration options, please refer to the our website https://versuhq.github.io/.

Installation

npm install @versu/core

Quick Start

import { Versu } from "@versu/core";

const versu = new Versu({ repoRoot: "/path/to/repository" });

// Every option is optional
const result = await versu.release({ tagVersionPrefix: "v" });

console.log(`Bumped: ${result.bumped}`);
console.log(`Changed modules:`, result.changedModules);
console.log(`Created tags:`, result.createdTags);

To run your own steps between writing the versions and committing them (code generation, lockfiles, builds), split the release in two:

const prepared = await versu.prepare({ tagVersionPrefix: "v" }); // writes files, no git
await regenerateSources(prepared.changedModules);
await prepared.finalize({ pushChanges: true }); // verify, commit, push, tag

// Or finalize in another process, from the saved state file:
await (await new Versu({ repoRoot: "/path/to/repository" }).resume()).finalize();

Versu API

Method Options Returns
release(options?) ReleaseOptions = PrepareOptions (minus stateFile) + FinalizeOptions ReleaseResult
prepare(options?) PrepareOptions PreparedRelease
resume(options?) ResumeOptions PreparedRelease
PreparedRelease.finalize(options?) FinalizeOptions ReleaseResult
Options

Every option is optional. Defaults are exported as DEFAULT_PREPARE_OPTIONS and DEFAULT_FINALIZE_OPTIONS.

type PrepareOptions = {
  dryRun?: boolean; // Compute without writing anything (default: false)
  stateFile?: string; // Release state location (default: <git dir>/versu/release-state.json)
  adapter?: string; // Language adapter ID (auto-detected)
  fromRef?: string; // Git ref to use as the lower boundary for commit analysis
  provider?: string; // Version control provider name (auto-detected)
  prereleaseMode?: boolean; // Generate pre-release versions (default: false)
  prereleaseId?: string; // Pre-release identifier (default: 'alpha')
  bumpUnchanged?: boolean; // Bump modules with no changes, prerelease mode only (default: false)
  addBuildMetadata?: boolean; // Append short SHA as build metadata (default: false)
  timestampVersions?: boolean; // Use timestamp-based pre-release identifiers (default: false)
  appendSnapshot?: boolean; // Append -SNAPSHOT suffix, if supported (default: false)
  generateChangelog?: boolean; // Generate changelog files (default: true)
  changelogFilename?: string; // Changelog filename (default: 'CHANGELOG.md')
  generateReleaseNotes?: boolean; // Generate release notes files (default: true)
  releaseNotesFilename?: string; // Release notes filename (default: 'RELEASE.md')
  tagVersionPrefix?: string; // Prefix for tag versions, e.g. 'v' (default: '')
  stripModulePrefix?: boolean; // Strip module name from tags, single-module projects (default: false)
};

type ResumeOptions = {
  stateFile?: string; // Where prepare saved the state
  dryRun?: boolean; // Without saved state, warn and return an empty release (default: false)
};

type FinalizeOptions = {
  dryRun?: boolean; // Log instead of committing/tagging (default: the prepared release's)
  pushChanges?: boolean; // Commit and push the release (default: true)
  createTags?: boolean; // Create and push tags (default: true)
  sequentialTagPush?: boolean; // Push tags one by one (default: false)
  commitReleaseNotes?: boolean; // Include release notes in the commit (default: false)
};
Result
type ReleaseResult = {
  bumped: boolean; // Whether any version was updated
  discoveredModules: Array<Module>; // All modules found in the repository
  changedModules: Array<ModuleChangeResult>; // Modules whose version changed ({ id, from, to })
  createdTags: CreatedTagResult[]; // Created tags ({ moduleId, tag })
  changelogPaths: ChangesRendererResult[]; // Generated changelog files ({ moduleId, path })
  releaseNotesPaths: ChangesRendererResult[]; // Generated release notes files ({ moduleId, path })
};

Configuration

Versu core uses cosmiconfig for configuration loading and Zod for validation.

You can provide configuration in any of the supported config files (e.g., .versurc, versu.config.js, etc.) or via package.json under the versu key. For the full list please refer to cosmiconfig search places documentation.

Configuration Example
{
  "plugins": ["@versu/plugin-gradle"],
  "versioning": {
    "breakingChange": {
      "stable": "major",
      "prerelease": "premajor"
    },
    "unknownCommitType": {
      "stable": "patch",
      "prerelease": "prepatch"
    },
    "commitTypes": {
      "feat": {
        "stable": "minor",
        "prerelease": "preminor"
      },
      "fix": {
        "stable": "patch",
        "prerelease": "prepatch"
      }
    },
    "cascadeRules": {
      "stable": {
        "major": "major",
        "minor": "minor",
        "patch": "patch"
      },
      "prerelease": {
        "premajor": "premajor",
        "preminor": "preminor",
        "prepatch": "prepatch",
        "prerelease": "prerelease"
      }
    }
  },
  "changelog": {
    "root": {
      "context": {
        "prependPlaceholder": "<!-- Next Version Placeholder -->"
      }
    },
    "module": {
      "context": {
        "prependPlaceholder": "<!-- Next Version Placeholder -->"
      }
    }
  }
}

Changelog & Release Notes Configuration:

  • changelog.root - Configuration for root-level CHANGELOG.md generation
  • changelog.module - Configuration for per-module CHANGELOG.md generation
  • changelog.context.prependPlaceholder - Placeholder string in changelog files where new entries are inserted
  • changelog.context.options - Advanced changelog generation options (templates, grouping, sorting)

Release notes follows the same pattern under release key.

Versu uses conventional-changelog-writer for changelog and release notes generation. You can pass any options supported by conventional-changelog-writer through the options field. For advanced customization with functions (like transform, commitGroupsSort), use JavaScript configuration files (.versurc.js or versu.config.js).

Adapters

Versu supports multiple language ecosystems through adapters. The core package includes a plugin system for adding new adapter support. In order to support additional ecosystems, you need to implement the required interfaces and register them as plugins.

Creating Custom Adapters

To add support for new project types, create a plugin package that implements the adapter interfaces:

import {
  type AdapterIdentifier,
  type AdapterMetadata,
  type ModuleDetector,
  type ProjectInformation,
  type RawProjectInformation,
  type VersionUpdateStrategy,
  type ModuleRegistry,
  type ModuleSystemFactory,
  getProjectInformationFromRawData,
  exists,
} from "@versu/core";

// 1. Adapter identifier for auto-detection
class MyAdapterIdentifier implements AdapterIdentifier {
  readonly metadata: AdapterMetadata = {
    id: "my-adapter",
    capabilities: { supportsSnapshots: false },
  };

  async accept(projectRoot: string): Promise<boolean> {
    // Check for adapter-specific files
    return await exists(path.join(projectRoot, "my-build-file"));
  }
}

// 2. Module detector for discovering project structure
class MyModuleDetector implements ModuleDetector {
  constructor(readonly repoRoot: string) {}

  async detect(): Promise<ProjectInformation> {
    // Discover modules and dependencies, then convert the raw
    // structure with getProjectInformationFromRawData.
    // Module IDs are Gradle-style (':' for root, ':module-a', ':libs:utils');
    // exactly one module of type 'root' is required.
    const raw: RawProjectInformation = {
      ":": {
        name: "root",
        path: ".",
        type: "root",
        affectedModules: [":module-a"],
        declaredVersion: false,
      },
      ":module-a": {
        name: "module-a",
        path: "module-a",
        type: "module",
        affectedModules: [],
        version: "2.0.0",
        declaredVersion: true,
      },
    };

    return getProjectInformationFromRawData(raw);
  }
}

// 3. Version update strategy for applying changes
class MyVersionUpdateStrategy implements VersionUpdateStrategy {
  constructor(private readonly moduleRegistry: ModuleRegistry) {}

  async writeVersionUpdates(
    moduleVersions: Map<string, string>,
  ): Promise<void> {
    // Apply version changes to build files
    for (const [moduleId, newVersion] of moduleVersions) {
      // Update version in your project's format
    }
  }
}

// 4. Module system factory to tie it all together
class MyModuleSystemFactory implements ModuleSystemFactory {
  constructor(private readonly repoRoot: string) {}

  async createDetector(outputFile: string): Promise<ModuleDetector> {
    return new MyModuleDetector(this.repoRoot);
  }

  async createVersionUpdateStrategy(
    moduleRegistry: ModuleRegistry,
  ): Promise<VersionUpdateStrategy> {
    return new MyVersionUpdateStrategy(moduleRegistry);
  }
}

Then create a plugin:

import type { PluginContract } from "@versu/core";

const myPlugin: PluginContract = {
  id: "my-adapter",
  name: "My Adapter",
  description: "Support for my build system",
  version: "1.0.0",
  authors: ["Your Name"],
  adapters: [
    {
      id: "my-adapter",
      adapterIdentifierFactory: async (_configDirectory: string) => ({
        id: "my-adapter",
        create: async () => new MyAdapterIdentifier(),
      }),
      moduleSystemFactory: async (repoRoot: string, _configDirectory: string) =>
        new MyModuleSystemFactory(repoRoot),
    },
  ],
};

export default myPlugin;

Publish the package with a name matching one of the discovery patterns (versu-plugin-*, @*/versu-plugin-*, @versu/plugin-*) so Versu can auto-detect it from node_modules, or reference it explicitly in the plugins array of your configuration.

See @versu/plugin-gradle for a complete implementation example.

Development

Building
# From monorepo root
npm run build

# Or from core package
cd packages/core
npm run build
Testing
# From monorepo root
npm test

# Or from core package
cd packages/core
npm test
npm run test:coverage
Publishing
npm publish --workspace packages/core --access public

Related Packages

  • @versu/cli - Command-line interface
  • @versu/action - GitHub Actions integration
  • @versu/plugin-gradle - Gradle adapter plugin

Requirements

  • Node.js: >= 24
  • TypeScript: >= 5.0 (if using TypeScript)

License

MIT License - see LICENSE for details.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm @versu/core

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Powered by Read the latest findings

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

CVE

Java4Shell (CVE-2026-114938): Easy to Crash, Hard to Exploit — Less Than 0.12% of JVMs Estimated at Risk of RCE

Copy of Template Design OX Blog (2)
Research

NGINX2Root: Five Critical NGINX Flaws Expose Web Servers to Remote Code Execution

Ethersphere Hijacked With Crypto Stealing Malware (1)
npm

Ethersphere Hijacked With Crypto Stealing Malware Via Github & npm

Frame 2085668439 (1)
Group 1261154229