New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@karrotmarket/react-theming

Package Overview
Dependencies
Maintainers
2
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@karrotmarket/react-theming - npm Package Compare versions

Comparing version

to
1.0.0

lib/index.cjs

18

CHANGELOG.md
# @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

lib/DarkModeContext.d.ts

@@ -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');

42

package.json
{
"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"
}
}
}