Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 2 additions & 35 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,8 @@
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"plugin:react/recommended",
"plugin:react-hooks/recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:react/jsx-runtime",
"airbnb",
"airbnb-typescript",
"airbnb/hooks",
"plugin:prettier/recommended",
"prettier"
],
Expand All @@ -37,8 +31,6 @@
},
"plugins": [
"@typescript-eslint",
"react",
"react-hooks",
"import",
"prettier"
],
Expand All @@ -47,42 +39,17 @@
"import/no-named-as-default": "off",
"no-console": [
"error",
{
"allow": ["warn", "error"]
}
{ "allow": ["warn", "error"] }
],
"quotes": ["error", "single"],
"prettier/prettier": "error",
"react/jsx-filename-extension": [
1,
{
"extensions": [".jsx", ".tsx"]
}
],
"import/prefer-default-export": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/no-unused-vars": "error",
"import/extensions": [
"error",
"ignorePackages",
{
"ts": "never",
"tsx": "never",
"jsx": "never",
"js": "never"
}
],
"react/function-component-definition": [
2,
{
"namedComponents": ["function-declaration", "arrow-function"],
"unnamedComponents": "function-expression"
}
{ "ts": "never", "tsx": "never", "jsx": "never", "js": "never" }
],
"react/require-default-props": "off",
"react/no-array-index-key": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"no-plusplus": "off"
},
"ignorePatterns": [
Expand Down
39 changes: 39 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,44 @@
# Changelog

## [2.0.0] - 2025-07-10

## Breaking Changes

### Architecture Changes

- **Removed dependencies**: `Etherspot Data Utils` and `ethers` library are no longer included
- **Removed React-specific features**: All `React` contexts and hooks have been removed
- **Framework agnostic**: Now compatible with any `JavaScript`/`TypeScript` application (not React-specific)

### Scope Reduction

Transaction Kit now focuses exclusively on transaction management:

**✅ What's included:**

- Creating transactions
- Updating transactions
- Adding/removing transaction batches
- Estimating gas for transactions and batches
- Sending transactions and batches

**❌ What's been removed:**

- Asset management (getting assets, balances, history)
- Module management
- Asset price fetching
- Token and NFT swapping functionality

### API Changes

- **New class-based API**: Replaced component-based architecture with a simplified `TransactionKit()` instance followed by method chaining
- **No UI components**: All React components have been removed
- **Simplified usage**: Just instantiate `TransactionKit()` and chain methods for all transaction operations

### Migration Impact

This is a major version change that significantly reduces the library's scope. If you were using the removed features (assets, balances, swaps, etc.), you'll need to implement these separately or use alternative libraries.

## [1.1.1] - 2025-06-04

### Added Changes
Expand Down
12 changes: 0 additions & 12 deletions __mocks__/@etherspot/eip1271-verification-util.js

This file was deleted.

Loading