@karrotmarket/react-theming
Advanced tools
Comparing version
# @karrotmarket/react-theming | ||
## 1.0.0 | ||
### Major Changes | ||
- b1152bd: Prepare first major release | ||
- Switch to esbuild based bundle, reduce boilerplate | ||
- Make ESM first, support CommonJS conditionally | ||
- Drop AMD, use ES Module instead | ||
- Drop legacy bundler support (Parcel 1, Webpack 4, CRA 4) | ||
- Resolver should supports Node.js conditional export resolution | ||
### Patch Changes | ||
- Updated dependencies [b1152bd] | ||
- @karrotmarket/design-token@1.0.0 | ||
## 0.2.0 | ||
### Minor Changes | ||
@@ -5,0 +23,0 @@ |
@@ -0,0 +0,0 @@ import * as React from 'react'; |
@@ -0,0 +0,0 @@ export * from './DarkModeContext'; |
import * as React from 'react'; | ||
export declare const ThemeStorageContext: React.Context<WindowLocalStorage | undefined>; |
@@ -0,0 +0,0 @@ import type { DarkMode } from 'use-dark-mode'; |
@@ -0,0 +0,0 @@ export declare type ThemeName = ('light' | 'dark'); |
{ | ||
"name": "@karrotmarket/react-theming", | ||
"amdName": "karrotReactTheming", | ||
"version": "0.2.0", | ||
"version": "1.0.0", | ||
"sideEffects": false, | ||
"main": "./src/index.ts", | ||
"repository": { | ||
@@ -14,26 +12,19 @@ "type": "git", | ||
{ | ||
"name": "Tim Kim", | ||
"name": "Hyeseong Kim", | ||
"email": "tim@daangn.com" | ||
} | ||
], | ||
"source": "./src/index.ts", | ||
"main": "./lib/index.mjs", | ||
"publishConfig": { | ||
"access": "public", | ||
"source": "./src/index.ts", | ||
"main": "./lib/index.js", | ||
"module": "./lib.module.js", | ||
"unpkg": "./lib/index.umd.js", | ||
"type": "module", | ||
"main": "./lib/index.mjs", | ||
"module": "./lib/index.mjs", | ||
"types": "./lib/index.d.ts", | ||
"exports": { | ||
".": { | ||
"require": "./lib/index.js", | ||
"import": "./lib/index.modern.js" | ||
}, | ||
"./package.json": "./package.json" | ||
"import": "./lib/index.mjs", | ||
"require": "./lib/index.cjs" | ||
} | ||
}, | ||
"scripts": { | ||
"build": "microbundle --jsx jsx --jsxImportSource react --globals react/jsx-runtime=jsx,@karrotmarket/design-token=karrotDesignToken", | ||
"dev": "microbundle dev --jsx jsx --jsxImportSource react --globals react/jsx-runtime=jsx,@karrotmarket/design-token=karrotDesignToken", | ||
"prepack": "yarn build" | ||
}, | ||
"files": [ | ||
@@ -43,2 +34,6 @@ "src", | ||
], | ||
"scripts": { | ||
"build": "tsc --emitDeclarationOnly && nanobundle build", | ||
"prepack": "yarn build" | ||
}, | ||
"peerDependencies": { | ||
@@ -48,3 +43,3 @@ "react": "^17.0.0" | ||
"dependencies": { | ||
"@karrotmarket/design-token": "workspace:^0.2.0", | ||
"@karrotmarket/design-token": "^1.0.0", | ||
"use-dark-mode": "^2.3.1" | ||
@@ -55,6 +50,11 @@ }, | ||
"@types/webpack-env": "^1.16.2", | ||
"microbundle": "^0.13.3", | ||
"nanobundle": "^0.0.18", | ||
"react": "^17.0.2", | ||
"typescript": "^4.4.2" | ||
}, | ||
"module": "./lib/index.mjs", | ||
"exports": { | ||
"import": "./lib/index.mjs", | ||
"require": "./lib/index.cjs" | ||
} | ||
} | ||
} |
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
2
-50%0
-100%16182
-42.98%16
-20%128
-10.49%+ Added