simple-merge-class-names 2.0.1 → 2.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +9 -5
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -14,8 +14,10 @@ A straightforward utility for merging CSS class names in `React + Tailwind` and
14
14
  - [Breaking Changes From Version 1.X.X](#breaking-changes-from-version-1xx)
15
15
  - [Testing](#testing)
16
16
  - [Source Code](#source-code)
17
- - [Why the Mismatch Between Exported Function and Package Name?](#why-the-mismatch-between-exported-function-and-package-name)
18
- - [Where This Package Excels](#where-this-package-excels)
17
+ - [Misc.](#misc)
18
+
19
+ - [Why the Mismatch Between Exported Function and Package Name?](#why-the-mismatch-between-exported-function-and-package-name)
20
+ - [Where This Package Excels](#where-this-package-excels)
19
21
 
20
22
  - [Production Considerations](#production-considerations)
21
23
  - [License](#license)
@@ -143,19 +145,21 @@ export const mergeClassNames = (...args) => {
143
145
  };
144
146
  ```
145
147
 
146
- ## Why the Mismatch Between Exported Function and Package Name?
148
+ ## Misc.
149
+
150
+ ### Why the Mismatch Between Exported Function and Package Name?
147
151
 
148
152
  I wanted to name the package as `mergeClassNames` to reflect the single exported function, but the NPM Package Registry does not allow capital letters, only lower case and dash characters.
149
153
 
150
154
  In addition there was already a package named `merge-class-names` but it is no longer maintained (and the developer recommends `clsx` instead).
151
155
 
152
- ## Where This Package Excels
156
+ ### Where This Package Excels
153
157
 
154
158
  While similar packages exist (`clsx`) with better features and potentially improved performance, `simple-merge-class-names` focuses on being very straightforward and easy to reason about, as defined in its source code.
155
159
 
156
160
  ## Production Considerations
157
161
 
158
- If you are considering this package for production, you might also want to look into `clsx` for more advanced features: [https://www.npmjs.com/package/clsx](https://www.npmjs.com/package/clsx)
162
+ If you are considering this package for production, you might also want to look into `clsx`: [https://www.npmjs.com/package/clsx](https://www.npmjs.com/package/clsx)
159
163
 
160
164
  ## License
161
165
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simple-merge-class-names",
3
- "version": "2.0.1",
3
+ "version": "2.0.2",
4
4
  "description": "Example usage: <div className = {mergeClassNames('flex', 'flex-col')}/>",
5
5
  "main": "mergeClassNames.js",
6
6
  "exports": "./mergeClassNames.js",