@thalalabs/surf 1.9.4 → 1.9.6
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/.changeset/README.md +1 -1
- package/.github/workflows/publish.yml +6 -3
- package/.husky/pre-commit +1 -1
- package/CHANGELOG.md +12 -0
- package/package.json +21 -21
package/.changeset/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# How to upgrade the version
|
|
2
2
|
|
|
3
|
-
- Run `
|
|
3
|
+
- Run `pnpm run changeset` and provide a description of your change.
|
|
4
4
|
- Commit the `.md` file generated by `changeset` along with your code changes, then create the PR.
|
|
5
5
|
- After your PR merged, Github Workflow will create a PR called "Version Packages" to update the version in `package.json` and the `CHANGELOG.md`.
|
|
6
6
|
- Once the "Version Packages" PR is merged, Github Workflow will publish a new version to NPM.
|
|
@@ -19,13 +19,16 @@ jobs:
|
|
|
19
19
|
- uses: actions/setup-node@v3
|
|
20
20
|
with:
|
|
21
21
|
node-version: 20.x
|
|
22
|
-
-
|
|
23
|
-
|
|
22
|
+
- uses: pnpm/action-setup@v2
|
|
23
|
+
with:
|
|
24
|
+
version: 10
|
|
25
|
+
- run: pnpm install --frozen-lockfile
|
|
26
|
+
- run: pnpm run test
|
|
24
27
|
- name: Create Release Pull Request or Publish
|
|
25
28
|
id: changesets
|
|
26
29
|
uses: changesets/action@v1
|
|
27
30
|
with:
|
|
28
|
-
publish:
|
|
31
|
+
publish: pnpm run release
|
|
29
32
|
env:
|
|
30
33
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
31
34
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
package/.husky/pre-commit
CHANGED
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@thalalabs/surf",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.6",
|
|
4
4
|
"description": "TypeScript Interfaces & React Hooks for interacting with Aptos Smart Contracts with type safety.",
|
|
5
5
|
"main": "./build/cjs/index.js",
|
|
6
6
|
"module": "./build/esm/index.js",
|
|
@@ -43,8 +43,8 @@
|
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@aptos-labs/ts-sdk": "^
|
|
47
|
-
"@aptos-labs/wallet-adapter-react": "^
|
|
46
|
+
"@aptos-labs/ts-sdk": "^2.0.0",
|
|
47
|
+
"@aptos-labs/wallet-adapter-react": "^6.0.2",
|
|
48
48
|
"@changesets/cli": "^2.26.1",
|
|
49
49
|
"@types/jest": "~29.5",
|
|
50
50
|
"@types/node": "~18",
|
|
@@ -67,8 +67,8 @@
|
|
|
67
67
|
"typescript": "~5.1"
|
|
68
68
|
},
|
|
69
69
|
"peerDependencies": {
|
|
70
|
-
"@aptos-labs/ts-sdk": "^
|
|
71
|
-
"@aptos-labs/wallet-adapter-react": "^
|
|
70
|
+
"@aptos-labs/ts-sdk": "^2.0.0",
|
|
71
|
+
"@aptos-labs/wallet-adapter-react": "^6.0.2",
|
|
72
72
|
"react": "^18.2.0",
|
|
73
73
|
"@initia/react-wallet-widget": "^1.5.9"
|
|
74
74
|
},
|
|
@@ -83,21 +83,6 @@
|
|
|
83
83
|
"optional": true
|
|
84
84
|
}
|
|
85
85
|
},
|
|
86
|
-
"scripts": {
|
|
87
|
-
"start": "node build/src/main.js",
|
|
88
|
-
"clean": "rimraf coverage build tmp",
|
|
89
|
-
"prebuild": "yarn lint",
|
|
90
|
-
"build:watch": "tsc -w -p tsconfig.json",
|
|
91
|
-
"build": "yarn clean && yarn build:cjs && yarn build:esm && yarn build:types",
|
|
92
|
-
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./build/cjs --removeComments --verbatimModuleSyntax false && echo > ./build/cjs/package.json '{\"type\":\"commonjs\"}'",
|
|
93
|
-
"build:esm": "tsc --project tsconfig.json --module es2015 --outDir ./build/esm --removeComments && echo > ./build/esm/package.json '{\"type\":\"module\"}'",
|
|
94
|
-
"build:types": "tsc --project tsconfig.json --module esnext --declarationDir ./build/types --emitDeclarationOnly --declaration --declarationMap",
|
|
95
|
-
"lint": "eslint . --ext .ts --ext .mts",
|
|
96
|
-
"test": "jest --coverage",
|
|
97
|
-
"prettier": "prettier --config .prettierrc --write .",
|
|
98
|
-
"test:watch": "jest --watch",
|
|
99
|
-
"release": "yarn build && changeset publish"
|
|
100
|
-
},
|
|
101
86
|
"lint-staged": {
|
|
102
87
|
"*.{js,jsx,ts,tsx}": [
|
|
103
88
|
"eslint --fix",
|
|
@@ -117,5 +102,20 @@
|
|
|
117
102
|
"license": "MIT",
|
|
118
103
|
"dependencies": {
|
|
119
104
|
"@initia/initia.js": "^1.0.8"
|
|
105
|
+
},
|
|
106
|
+
"scripts": {
|
|
107
|
+
"start": "node build/src/main.js",
|
|
108
|
+
"clean": "rimraf coverage build tmp",
|
|
109
|
+
"prebuild": "pnpm run lint",
|
|
110
|
+
"build:watch": "tsc -w -p tsconfig.json",
|
|
111
|
+
"build": "pnpm run clean && pnpm run build:cjs && pnpm run build:esm && pnpm run build:types",
|
|
112
|
+
"build:cjs": "tsc --project tsconfig.json --module commonjs --outDir ./build/cjs --removeComments --verbatimModuleSyntax false && echo > ./build/cjs/package.json '{\"type\":\"commonjs\"}'",
|
|
113
|
+
"build:esm": "tsc --project tsconfig.json --module es2015 --outDir ./build/esm --removeComments && echo > ./build/esm/package.json '{\"type\":\"module\"}'",
|
|
114
|
+
"build:types": "tsc --project tsconfig.json --module esnext --declarationDir ./build/types --emitDeclarationOnly --declaration --declarationMap",
|
|
115
|
+
"lint": "eslint . --ext .ts --ext .mts",
|
|
116
|
+
"test": "jest --coverage",
|
|
117
|
+
"prettier": "prettier --config .prettierrc --write .",
|
|
118
|
+
"test:watch": "jest --watch",
|
|
119
|
+
"release": "pnpm run build && changeset publish"
|
|
120
120
|
}
|
|
121
|
-
}
|
|
121
|
+
}
|