Skip to content

3.0.0

Choose a tag to compare

@Nixinova Nixinova released this 26 May 07:26
· 16 commits to main since this release

Version 3.0 of LinguistJS is finally here!

Plan: #31, PR: #39

Install on npm using npm install linguist-js@3.0.0.

Overview

This release revamps the entry points for the program by splitting them by functionality (analysing raw content vs analysing a folder on disc), changes the output schema to be more sensible, and updates outdated dependencies.

✨ Keeping up with the times, this version includes a vibe–major refactor to the codebase – this doesn't affect usage of this tool at all, but does make it significantly easier to maintain.

Changelog

Full Changelog: 2.9.2...3.0.0, 3.0.0-pre...3.0.0

Breaking changes

  • Removed default-exported analyse function.
    • Replaced with separate functions analyseFolders and analyseRawContent.
  • Removed type, parent and color keys from individual language results.
  • Removed files.alternatives.
  • Removed lines.code.
  • Removed analyze CLI arg alias. British spelling only for the api now.
  • Output is now an ES 2025 module
    • Must be imported using import ... from 'linguist-js' instead of const ... = require('linguist-js')
  • Package now requires Node 26+.

New features

  • Added repositories output object, featuring all languages' metadata.
  • Added count property per language result.

Fixes

  • Fixed ReDoS vulnerabilities.
  • Fixed childLanguages parameter always being enabled.