classnames
Advanced tools
Comparing version 2.4.0 to 2.5.0
# Changelog | ||
## v2.5.0 / 2023-12-27 | ||
- Restore ability to pass a TypeScript `interface` ([#341](https://github.com/JedWatson/classnames/pull/341)) | ||
- Add `exports` field to package ([#342](https://github.com/JedWatson/classnames/pull/342)) | ||
## v2.4.0 / 2023-12-26 | ||
@@ -4,0 +9,0 @@ |
@@ -13,3 +13,3 @@ // LICENSE is MIT | ||
type Value = string | number | boolean | undefined | null; | ||
type Mapping = Record<string, unknown>; | ||
type Mapping = Record<string, any>; | ||
interface ArgumentArray extends Array<Argument> {} | ||
@@ -16,0 +16,0 @@ interface ReadonlyArgumentArray extends ReadonlyArray<Argument> {} |
{ | ||
"name": "classnames", | ||
"version": "2.4.0", | ||
"version": "2.5.0", | ||
"description": "A simple utility for conditionally joining classNames together", | ||
"main": "index.js", | ||
"author": "Jed Watson", | ||
@@ -10,5 +9,34 @@ "license": "MIT", | ||
"type": "git", | ||
"url": "https://github.com/JedWatson/classnames.git" | ||
"url": "git+https://github.com/JedWatson/classnames.git" | ||
}, | ||
"type": "commonjs", | ||
"main": "./index.js", | ||
"types": "./index.d.ts", | ||
"exports": { | ||
"./package.json": "./package.json", | ||
".": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"./index.js": { | ||
"types": "./index.d.ts", | ||
"default": "./index.js" | ||
}, | ||
"./bind": { | ||
"types": "./bind.d.ts", | ||
"default": "./bind.js" | ||
}, | ||
"./bind.js": { | ||
"types": "./bind.d.ts", | ||
"default": "./bind.js" | ||
}, | ||
"./dedupe": { | ||
"types": "./dedupe.d.ts", | ||
"default": "./dedupe.js" | ||
}, | ||
"./dedupe.js": { | ||
"types": "./dedupe.d.ts", | ||
"default": "./dedupe.js" | ||
} | ||
}, | ||
"scripts": { | ||
@@ -38,3 +66,3 @@ "test": "node --test ./tests/*.mjs", | ||
"devDependencies": { | ||
"tsd": "^0.30.0" | ||
"tsd": "^0.30.1" | ||
}, | ||
@@ -41,0 +69,0 @@ "tsd": { |
22969