@steerprotocol/sdk 3.8.1 → 4.0.0-next.10

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,83 +1,110 @@
1
1
  {
2
2
  "name": "@steerprotocol/sdk",
3
- "version": "3.8.1",
3
+ "version": "4.0.0-next.10",
4
4
  "description": "Steer Protocol SDK",
5
- "main": "dist/index.cjs",
6
- "module": "dist/index.mjs",
7
- "browser": "dist/index.browser.mjs",
8
- "types": "dist/index.d.mts",
5
+ "type": "module",
6
+ "sideEffects": false,
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.mjs",
9
+ "types": "./dist/index.d.mts",
9
10
  "exports": {
10
11
  ".": {
11
- "types": "./dist/index.d.mts",
12
- "browser": "./dist/index.browser.mjs",
13
- "require": "./dist/index.cjs",
14
- "import": "./dist/index.cjs"
15
- }
12
+ "import": {
13
+ "types": "./dist/index.d.mts",
14
+ "default": "./dist/index.mjs"
15
+ },
16
+ "require": {
17
+ "types": "./dist/index.d.cts",
18
+ "default": "./dist/index.cjs"
19
+ }
20
+ },
21
+ "./package.json": "./package.json"
16
22
  },
17
23
  "files": [
18
24
  "dist"
19
25
  ],
20
26
  "scripts": {
27
+ "dev": "tsdown --watch",
21
28
  "build": "tsdown",
22
- "clean": "rimraf dist",
23
- "test": "jest",
24
- "test:ci": "jest --coverage=false",
25
- "test:fork": "tsx src/scripts/runPoolLifecycleForkTests.ts",
26
- "lint": "eslint . --ext .ts",
27
- "format": "prettier --write \"src/**/*.ts\"",
28
- "prepare": "npm run build",
29
- "docs": "typedoc --out docs --entryPoints src/index.ts src/client.ts src/base/SmartRewards.ts src/base/SubgraphClient.ts src/base/VaultClient.ts src/base/PoolClient.ts --name \"Steer Protocol SDK\" --readme README.md --excludePrivate --excludeProtected",
30
- "docs:watch": "typedoc --out docs --entryPoints src/index.ts src/base/SmartRewards.ts src/generated/sdk.ts --name \"Steer Protocol SDK\" --readme README.md --excludePrivate --excludeProtected --plugin none --watch",
31
- "docs:serve": "npx serve docs",
32
- "commit": "git-cz",
33
29
  "typecheck": "tsc --noEmit",
34
- "check-all": "yarn typecheck && yarn lint && yarn test:ci && yarn build"
30
+ "test": "vitest run",
31
+ "test:watch": "vitest",
32
+ "test:coverage": "vitest run --coverage",
33
+ "lint": "biome check . && eslint . --max-warnings=0",
34
+ "lint:fix": "eslint . --fix --max-warnings=0 && biome check --write .",
35
+ "format": "eslint . --fix --max-warnings=0 && biome format --write .",
36
+ "format:check": "biome format . && eslint . --max-warnings=0",
37
+ "check": "npm run check:reader && npm run typecheck && npm run lint && npm run test && npm run build && npm run check:bundle && npm run check:api",
38
+ "prepack": "npm run check",
39
+ "check:bundle": "node scripts/check-bundle.js",
40
+ "check:api": "node scripts/check-api.js",
41
+ "check:consumer": "node scripts/check-consumer.js",
42
+ "release": "node scripts/release.js",
43
+ "release:dry-run": "node scripts/preview-release.js",
44
+ "test:integration": "node --env-file-if-exists=.env.integration ./node_modules/vitest/vitest.mjs run --config vitest.integration.config.ts",
45
+ "build:reader": "node scripts/build-reader.js",
46
+ "check:reader": "node scripts/build-reader.js --check",
47
+ "commitlint": "commitlint --config commitlint.config.js",
48
+ "hooks:install": "node scripts/install-hooks.js",
49
+ "test:integration:blackhole": "node --env-file-if-exists=.env.integration ./node_modules/vitest/vitest.mjs run --config vitest.blackhole.config.ts",
50
+ "test:integration:vault-flows": "node --env-file-if-exists=.env.integration ./node_modules/vitest/vitest.mjs run --config vitest.vault-flows.config.ts"
51
+ },
52
+ "engines": {
53
+ "node": "^22.23.4 || ^24.22.1 || ^26.12.1"
54
+ },
55
+ "devEngines": {
56
+ "runtime": {
57
+ "name": "node",
58
+ "version": "^22.23.4 || ^24.22.1 || ^26.12.1",
59
+ "onFail": "error"
60
+ }
35
61
  },
62
+ "publishConfig": {
63
+ "access": "public",
64
+ "tag": "next",
65
+ "provenance": false
66
+ },
67
+ "repository": {
68
+ "type": "git",
69
+ "url": "git+https://github.com/SteerProtocol/sdk.git",
70
+ "directory": "next"
71
+ },
72
+ "author": "Steer Protocol",
73
+ "license": "MIT",
36
74
  "keywords": [
37
75
  "steer",
38
76
  "protocol",
39
77
  "sdk"
40
78
  ],
41
- "author": "Steer Protocol",
42
- "license": "MIT",
43
79
  "devDependencies": {
44
- "@commitlint/cli": "^18.4.3",
45
- "@commitlint/config-conventional": "^18.4.3",
46
- "@semantic-release/changelog": "^6.0.3",
47
- "@semantic-release/git": "^10.0.1",
48
- "@semantic-release/github": "^9.2.3",
49
- "@semantic-release/npm": "^13.1.5",
50
- "@steerprotocol/contracts": "^3.1.7",
51
- "@types/jest": "^29.5.11",
52
- "@types/node": "^20.10.6",
53
- "@typescript-eslint/eslint-plugin": "^6.17.0",
54
- "@typescript-eslint/parser": "^6.17.0",
55
- "commitizen": "^4.3.0",
56
- "cz-conventional-changelog": "^3.3.0",
57
- "eslint": "^8.56.0",
58
- "eslint-config-prettier": "^9.1.0",
59
- "husky": "^8.0.3",
60
- "jest": "^29.7.0",
61
- "prettier": "^3.4.2",
62
- "rimraf": "^5.0.5",
63
- "semantic-release": "^25.0.3",
64
- "ts-jest": "^29.2.5",
65
- "tsx": "^4.19.2",
66
- "tsdown": "^0.21.7",
67
- "typedoc": "^0.27.6",
68
- "typescript": "^5.3.3"
69
- },
70
- "engines": {
71
- "node": ">=18.0.0"
72
- },
73
- "publishConfig": {
74
- "access": "public"
80
+ "@biomejs/biome": "2.5.15",
81
+ "@commitlint/cli": "21.2.4",
82
+ "@commitlint/config-conventional": "21.2.4",
83
+ "@ethereumjs/evm": "10.1.3",
84
+ "@ethereumjs/util": "10.1.3",
85
+ "@semantic-release/commit-analyzer": "13.0.1",
86
+ "@semantic-release/github": "12.0.10",
87
+ "@semantic-release/npm": "13.2.0",
88
+ "@semantic-release/release-notes-generator": "14.1.1",
89
+ "@stylistic/eslint-plugin": "5.10.0",
90
+ "@types/node": "^22.20.5",
91
+ "@typescript-eslint/parser": "8.70.0",
92
+ "@vitest/coverage-v8": "5.0.5",
93
+ "consola": "^3.4.2",
94
+ "conventional-changelog-conventionalcommits": "9.3.1",
95
+ "eslint": "10.10.0",
96
+ "semantic-release": "25.0.3",
97
+ "solc": "0.8.37",
98
+ "tsdown": "^0.23.1",
99
+ "typescript": "^6.0.3",
100
+ "vitest": "5.0.5"
75
101
  },
76
102
  "dependencies": {
77
- "@steerprotocol/api-sdk": "^1.1.2",
78
- "decimal.js": "^10.5.0",
79
- "viem": "^2.22.0",
80
- "@uniswap/sdk-core": "^7.1.0",
81
- "@uniswap/v3-sdk": "3.29.1"
103
+ "viem": "^2.57.7"
104
+ },
105
+ "overrides": {
106
+ "solc": {
107
+ "tmp": "0.2.7"
108
+ }
82
109
  }
83
110
  }