Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

class-name-prop

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

class-name-prop - npm Package Versions

6.0.0

Diff

Changelog

Source

6.0.0

Major

  • Updated Node.js support to ^14.17.0 || ^16.0.0 || >= 18.0.0.
  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.
  • Removed the package main field.
  • Use the node: URL scheme for Node.js builtin module imports in tests.

Patch

  • Simplified dev dependencies and config for ESLint.
  • Updated jsconfig.json:
    • Set compilerOptions.maxNodeModuleJsDepth to 10.
    • Set compilerOptions.module to nodenext.
  • Updated GitHub Actions CI config:
    • Run tests with Node.js v14, v16, v18.
    • Updated actions/checkout to v3.
    • Updated actions/setup-node to v3.
  • Removed the now redundant not IE > 0 from the Browserslist query.
  • Revamped the readme:
    • Removed the badges.
    • Removed the detailed API docs. The JSDoc comments and TypeScript types in the exported modules are now the primary documentation.
    • Added a “Requirements” section.
    • Added information about Deno, import maps, TypeScript config and optimal JavaScript module design.
jaydenseric
published 5.0.0 •

Changelog

Source

5.0.0

Major

  • Implemented TypeScript types via JSDoc comments.

Patch

  • Updated dev dependencies.
  • Check TypeScript types via a new package types script.
  • Removed the jsdoc-md dev dependency and the related package scripts, replacing the readme “API” section with a manually written “Exports” section.
  • Updated a Bundlephobia link URL in the readme.
  • Added a license.md MIT License file.
jaydenseric
published 4.0.0 •

Changelog

Source

4.0.0

Major

  • Updated Node.js support to ^12.22.0 || ^14.17.0 || >= 16.0.0.
  • Updated browser support to > 0.5%, not OperaMini all, not IE > 0, not dead.
  • Updated dev dependencies, some of which require newer Node.js versions than previously supported.
  • Removed ./package from the package exports field; the full package.json filename must be used in a require path.
  • The API is now ESM in .mjs files instead of CJS in .js files, accessible via import but not require.
  • More modern JavaScript syntax.

Minor

  • Added ./classNameProp.mjs to the package exports field.

Patch

  • Also run GitHub Actions CI with Node.js v17.
  • Add Node.js version ranges to the package browserslist field.
  • Updated the package description field.
  • Tweaked the package main field.
  • Simplified package scripts.
  • Configured Prettier option singleQuote to the default, false.
  • Use the JSDoc type any instead of * for better TypeScript support.
  • Use a new assertBundleSize function to assert module bundle size in tests:
    • Failure message contains details about the bundle size and how much the limit was exceeded.
    • Errors when the surplus is greater than 25% of the limit, suggesting the limit should be reduced.
    • Resolves the minified bundle and its gzipped size for debugging in tests.
  • Removed npm-debug.log from the .gitignore file as npm v4.2.0+ doesn’t create it in the current working directory.
  • Documentation updates.
jaydenseric
published 3.0.0 •

Changelog

Source

3.0.0

Major

  • Updated Node.js support to ^12.20 || >= 14.13.
  • Updated dev dependencies, some of which require newer Node.js versions than were previously supported.
  • Added a package exports field.
  • Added a package sideEffects field.
  • The tests are now ESM in an .mjs file instead of CJS in a .js file.

Patch

  • Updated GitHub Actions CI config:
    • Also run on pull request.
    • Also run tests with Node.js v15, v16.
    • Updated actions/checkout to v2.
    • Updated actions/setup-node to v2.
    • Use the simpler npm install-test command.
    • Don’t specify the CI environment variable as it’s set by default.
  • Test the bundle size manually using esbuild and gzip-size, removing size-limit related dev dependencies, config, and scripts.
  • Updated the package scripts:
    • Simpler JSDoc related scripts now that jsdoc-md v10 automatically generates a Prettier formatted readme.
    • Added a test:jsdoc script that checks the readme API docs are up to date with the source JSDoc.
    • Simpler test:prettier script arguments.
  • Configured Prettier option semi to the default, true.
  • Updated the EditorConfig.
  • Updated code examples.
  • Readme tweaks.
  • Link React in docs.
jaydenseric
published 2.0.0 •

Changelog

Source

2.0.0

Major

  • Updated Node.js support from v8+ to v10+.
  • Updated dev dependencies.
  • Use coverage-node for test code coverage.

Minor

  • Setup GitHub Sponsors funding:
    • Added .github/funding.yml to display a sponsor button in GitHub.
    • Added a package.json funding field to enable npm CLI funding features.

Patch

jaydenseric
published 1.0.0 •

Changelog

Source

1.0.0

Initial release.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc