@bitzy-app/bitzy-sdk 0.0.3 → 0.0.5

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/CHANGELOG.md +96 -0
  2. package/package.json +12 -10
package/CHANGELOG.md ADDED
@@ -0,0 +1,96 @@
1
+ ## [0.0.5](https://github.com/bitzy-app/bitzy-sdk/compare/v0.0.4...v0.0.5) (2025-09-08)
2
+
3
+
4
+ ### Features
5
+
6
+ * bundle all dependencies for zero conflicts ([1d45278](https://github.com/bitzy-app/bitzy-sdk/commit/1d452785f61c071cc0779e88aa61e0e7de4d73d4))
7
+
8
+
9
+
10
+ # Changelog
11
+
12
+ All notable changes to this project will be documented in this file.
13
+
14
+ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
15
+ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
16
+
17
+ ## [Unreleased]
18
+
19
+ ## [0.0.4] - 2024-09-08
20
+
21
+ ### Added
22
+ - **Core Functions:**
23
+ - `fetchSwapRoute()` - Main route finding function with intelligent routing
24
+ - `fetchBatchSwapRoutes()` - Multiple routes fetching simultaneously
25
+ - `getSwapQuote()` - Simple price quote without full routing details
26
+ - `fetchSwapRouteSimple()` - Minimal configuration route fetching
27
+ - **React Hooks:**
28
+ - `useSwapV3Routes()` - Main React hook with hot reloading and auto-updates
29
+ - **Utility Functions:**
30
+ - `isHighValueToken()` - Check if token is high-value for optimal routing
31
+ - `getPartCountOffline()` - Offline part count calculation
32
+ - `getPartCountOnline()` - Online part count with real-time data
33
+ - `getPartCountWithFallback()` - Part count with fallback logic
34
+ - `clearMinimumAmountsCache()` - Cache management
35
+ - `APIClient.resetInstance()` - Reset singleton APIClient
36
+ - **Network Support:**
37
+ - Botanix Mainnet (Chain ID: 3637)
38
+ - Botanix Testnet (Chain ID: 3636)
39
+ - **Features:**
40
+ - Intelligent routing optimization based on token characteristics
41
+ - Automatic wrap/unwrap detection
42
+ - Multiple liquidity sources (V2 and V3)
43
+ - TypeScript support with full type definitions
44
+ - Source maps for debugging
45
+ - Comprehensive error handling
46
+
47
+ ### Fixed
48
+ - Dependency conflicts with Privy.io packages
49
+ - Peer dependency resolution issues
50
+ - Bundle all dependencies (viem, bignumber.js, lodash) for zero conflicts
51
+ - Eliminated need for `--legacy-peer-deps` or `--force` flags
52
+
53
+ ### Changed
54
+ - Moved all dependencies to devDependencies for complete isolation
55
+ - Bundle size increased to ~65KB (includes all dependencies)
56
+ - Only React remains as optional peer dependency
57
+
58
+ ## [0.0.3] - 2024-09-08
59
+
60
+ ### Fixed
61
+ - Moved viem from peerDependencies to regular dependencies
62
+ - Removed conflicting overrides
63
+ - Improved dependency resolution
64
+
65
+ ### Changed
66
+ - Bundle size increased to ~65KB (includes viem)
67
+ - More reliable installation process
68
+
69
+ ## [0.0.2] - 2024-09-08
70
+
71
+ ### Fixed
72
+ - Added overrides to resolve Privy.io dependency conflicts
73
+ - Made peer dependencies optional
74
+ - Improved compatibility with existing projects
75
+
76
+ ### Added
77
+ - `peerDependenciesMeta` configuration
78
+ - Override support for dependency conflicts
79
+
80
+ ## [0.0.1] - 2024-09-08
81
+
82
+ ### Added
83
+ - Initial package setup with proper npm configuration
84
+ - Basic build configuration with Rollup
85
+ - TypeScript support with declaration files
86
+ - MIT license
87
+ - Comprehensive README with usage examples
88
+ - `.npmignore` for proper package distribution
89
+ - Git repository initialization
90
+ - Basic project structure:
91
+ - `src/common/` - Common functions
92
+ - `src/hooks/` - React hooks
93
+ - `src/services/` - Core logic
94
+ - `src/types/` - TypeScript interfaces
95
+ - `src/utils/` - Utility functions
96
+ - `src/constants/` - Constants and ABIs
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bitzy-app/bitzy-sdk",
3
- "version": "0.0.3",
3
+ "version": "0.0.5",
4
4
  "description": "Bitzy Swap V3 Routes SDK for frontend and backend applications",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -9,7 +9,8 @@
9
9
  "files": [
10
10
  "dist",
11
11
  "README.md",
12
- "LICENSE"
12
+ "LICENSE",
13
+ "CHANGELOG.md"
13
14
  ],
14
15
  "scripts": {
15
16
  "build": "rollup -c",
@@ -18,7 +19,9 @@
18
19
  "prepublishOnly": "npm run clean && npm run build",
19
20
  "test": "jest",
20
21
  "lint": "eslint src --ext .ts,.tsx",
21
- "type-check": "tsc --noEmit"
22
+ "type-check": "tsc --noEmit",
23
+ "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s",
24
+ "version": "npm run changelog && git add CHANGELOG.md"
22
25
  },
23
26
  "keywords": [
24
27
  "bitzy",
@@ -36,28 +39,27 @@
36
39
  "type": "git",
37
40
  "url": "https://github.com/bitzy-app/bitzy-sdk"
38
41
  },
39
- "dependencies": {
40
- "bignumber.js": "^9.1.2",
41
- "lodash": "^4.17.21",
42
- "viem": "^2.0.0"
43
- },
44
42
  "devDependencies": {
45
43
  "@rollup/plugin-commonjs": "^25.0.0",
46
44
  "@rollup/plugin-node-resolve": "^15.0.0",
47
- "@rollup/plugin-typescript": "^11.0.0",
48
45
  "@rollup/plugin-terser": "^0.4.4",
46
+ "@rollup/plugin-typescript": "^11.0.0",
49
47
  "@types/jest": "^30.0.0",
50
48
  "@types/lodash": "^4.14.202",
51
49
  "@types/node": "^20.0.0",
52
50
  "@types/react": "^18.0.0",
51
+ "bignumber.js": "^9.1.2",
52
+ "conventional-changelog-cli": "^5.0.0",
53
53
  "eslint": "^8.0.0",
54
54
  "jest": "^29.7.0",
55
+ "lodash": "^4.17.21",
55
56
  "rimraf": "^6.0.1",
56
57
  "rollup": "^4.0.0",
57
58
  "rollup-plugin-dts": "^6.0.0",
58
59
  "ts-jest": "^29.4.1",
59
60
  "tslib": "^2.6.0",
60
- "typescript": "^5.0.0"
61
+ "typescript": "^5.0.0",
62
+ "viem": "^2.0.0"
61
63
  },
62
64
  "peerDependencies": {
63
65
  "react": ">=16.8.0"