Skip to content

Conversation

@ngittlen
Copy link
Contributor

Remove deprecated dependencies and replace with well-maintained one.

Copy link

@kytta kytta left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there; keep in mind that I am not the maintainer of this project, but I saw your PR and decided to add my two cents of opinion :)

cli.js Outdated
import { paramCase } from 'param-case';
import { Command } from 'commander';
import { minify } from './src/htmlminifier.js';
import * as changeCase from 'change-case';
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

suggestion: Use named exports

This way we could profit from tree-shaking and introduce less diffs to this PR.

Suggested change
import * as changeCase from 'change-case';
import { camelCase, kebabCase } from 'change-case';

Don't forget to upgrade other usages :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good call, fixed.

Copy link
Collaborator

@sibiraj-s sibiraj-s left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @ngittlen for the PR. Apologies for the delay

@sibiraj-s sibiraj-s enabled auto-merge (squash) November 24, 2025 16:29
@sibiraj-s sibiraj-s merged commit e81d38b into terser:master Nov 24, 2025
8 checks passed
@ngittlen ngittlen deleted the remove-deprecated-case-change-pkgs branch November 24, 2025 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants