@steerprotocol/data-connector-loader 3.2.2 → 4.0.0

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/README.md +2 -0
  2. package/package.json +22 -5
package/README.md CHANGED
@@ -8,6 +8,8 @@
8
8
 
9
9
  ## Installation
10
10
 
11
+ Requires Node.js 18 or newer.
12
+
11
13
  ```bash
12
14
  npm install @steerprotocol/data-connector-loader
13
15
  # or
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@steerprotocol/data-connector-loader",
3
- "version": "3.2.2",
3
+ "version": "4.0.0",
4
4
  "description": "App Loader for Steer Protocol",
5
5
  "type": "module",
6
6
  "main": "lib/index.js",
@@ -20,11 +20,12 @@
20
20
  "build:esm": "tsc -p tsconfig.esm.json && echo '{\"type\": \"module\"}' > lib/esm/package.json",
21
21
  "format": "prettier --write \"src/**/*.(js|ts)\"",
22
22
  "lint": "eslint src --ext .js,.ts",
23
+ "lint:commit": "commitlint --from=HEAD~1 --to=HEAD",
23
24
  "lint:fix": "eslint src --fix --ext .js,.ts",
24
25
  "test": "jest --config jest.config.cjs",
25
26
  "pack:local": "npm pack",
26
27
  "publish:test": "node scripts/publish-test.cjs",
27
- "prepare": "npm run build",
28
+ "prepare": "husky && npm run build",
28
29
  "prepublishOnly": "npm test && npm run lint",
29
30
  "preversion": "npm run lint",
30
31
  "version": "npm run format && git add -A src",
@@ -43,6 +44,9 @@
43
44
  ],
44
45
  "author": "Steer Protocol <contact@steer.finance>",
45
46
  "license": "MIT",
47
+ "engines": {
48
+ "node": ">=18"
49
+ },
46
50
  "bugs": {
47
51
  "url": "https://github.com/SteerProtocol/data-connector-loader/issues"
48
52
  },
@@ -52,13 +56,25 @@
52
56
  "main"
53
57
  ],
54
58
  "plugins": [
55
- "@semantic-release/commit-analyzer",
56
- "@semantic-release/release-notes-generator",
59
+ [
60
+ "@semantic-release/commit-analyzer",
61
+ {
62
+ "preset": "conventionalcommits"
63
+ }
64
+ ],
65
+ [
66
+ "@semantic-release/release-notes-generator",
67
+ {
68
+ "preset": "conventionalcommits"
69
+ }
70
+ ],
57
71
  "@semantic-release/npm",
58
72
  "@semantic-release/github"
59
73
  ]
60
74
  },
61
75
  "devDependencies": {
76
+ "@commitlint/cli": "^20.5.0",
77
+ "@commitlint/config-conventional": "^20.5.0",
62
78
  "@semantic-release/commit-analyzer": "^13.0.1",
63
79
  "@semantic-release/github": "^10.3.5",
64
80
  "@semantic-release/npm": "^12.0.2",
@@ -72,6 +88,7 @@
72
88
  "date-fns": "^2.29.3",
73
89
  "eslint": "8.30.0",
74
90
  "eslint-plugin-jest": "27.1.7",
91
+ "husky": "^9.1.7",
75
92
  "jest": "29.3.1",
76
93
  "prettier": "2.8.1",
77
94
  "semantic-release": "^24.2.9",
@@ -83,7 +100,7 @@
83
100
  "lib/**/*"
84
101
  ],
85
102
  "dependencies": {
86
- "@steerprotocol/app-loader": "^2.1.1",
103
+ "@steerprotocol/app-loader": "^3.0.0",
87
104
  "@steerprotocol/sdk": "^2.0.0",
88
105
  "@steerprotocol/strategy-utils": "^3.1.2",
89
106
  "axios": "^1.3.4",