binbot-charts 0.7.1 → 0.7.3

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.
package/package.json CHANGED
@@ -1,11 +1,13 @@
1
1
  {
2
- "version": "0.7.1",
2
+ "version": "0.7.3",
3
3
  "name": "binbot-charts",
4
4
  "dependencies": {
5
- "react": "^18.3.1",
6
- "react-dom": "^18.3.1",
7
5
  "use-immer": "^0.10.0"
8
6
  },
7
+ "peerDependencies": {
8
+ "react": ">=18",
9
+ "react-dom": ">=18"
10
+ },
9
11
  "devDependencies": {
10
12
  "@babel/cli": "^7.18.10",
11
13
  "@babel/core": "^7.18.13",
@@ -22,15 +24,30 @@
22
24
  "scripts": {
23
25
  "start": "react-scripts start",
24
26
  "build": "rm -rf dist && tsup --config tsup.config.ts --env.NODE_ENV production",
25
- "release": "yarn build && yarn publish"
27
+ "release": "npm run build && npm run publish"
26
28
  },
27
29
  "description": "Binbot charts is the default candlestick bars chart used in terminal.binbot.in to render bots graphically.",
28
30
  "repository": {
29
31
  "type": "git",
30
32
  "url": "git+https://github.com/carkod/binbot-charts.git"
31
33
  },
32
- "module": "./dist/main.js",
34
+ "main": "./dist/main.js",
35
+ "module": "./dist/main.mjs",
33
36
  "types": "./dist/main.d.ts",
37
+ "exports": {
38
+ ".": {
39
+ "types": "./dist/main.d.ts",
40
+ "import": "./dist/main.mjs",
41
+ "require": "./dist/main.js",
42
+ "default": "./dist/main.mjs"
43
+ }
44
+ },
45
+ "files": [
46
+ "dist",
47
+ "public",
48
+ "README.md",
49
+ "LICENSE"
50
+ ],
34
51
  "keywords": [
35
52
  "binbot",
36
53
  "charts"
@@ -0,0 +1,4 @@
1
+ # THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
2
+ # yarn lockfile v1
3
+
4
+
package/babel.config.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "presets": [
3
- [
4
- "@babel/preset-env",
5
- {
6
- "useBuiltIns": "entry",
7
- "corejs": "3.22"
8
- }
9
- ],
10
- "@babel/preset-react"
11
- ],
12
- "ignore": ["src/lib/charting_library", "node_modules", "docs", ".github"]
13
- }
package/browserslist DELETED
@@ -1,31 +0,0 @@
1
- # This is an rcfile for Browserslist (https://www.npmjs.com/package/browserslist)
2
-
3
- # All browsers with significant market share
4
- > 1% in US
5
- > 1% in RU
6
-
7
- # Desktop
8
- last 3 Chrome versions
9
- last 3 Edge versions
10
- last 3 Firefox versions
11
- last 3 Safari versions
12
- last 3 Opera versions
13
-
14
- # Mobile
15
- last 3 iOS versions
16
- last 3 ChromeAndroid versions
17
- last 3 Android versions
18
- last 3 FirefoxAndroid versions
19
-
20
- # Restrict min supported versions
21
- not Android < 66
22
- not Chrome < 66
23
- not ChromeAndroid < 66
24
- not Safari < 13
25
- not iOS < 13
26
-
27
- # Long dead browsers
28
- not Explorer <= 11
29
- not ExplorerMobile <= 11
30
- not OperaMini all # Opera mini has very limited JS support, no canvas and no websockets
31
- not OperaMobile <= 12.1 # Opera mobile Presto