ReviewOS

also looking at this

stacks/ts-tokens

chore(deps): update all non-major dependencies

#418
Closed chris wants to merge buddy-bot/update-non-major-updates-1770683029988 into main
11 files +442 -40

Review threads live on the whole diff, not on one commit, so none are shown here - a thread's line means something in the branch's final form, and painting it into an intermediate step would put it on code it is not about.

.github/workflows/ci.ymlmodified+16-1
Changes to .github/workflows/ci.yml
@@ -81,7 +81,22 @@ jobs:
8181 run: bun install
8282
8383 - name: Unit Test
84 run: bun test
84 run: bun test --coverage 2>&1 | tee coverage-output.txt
85
86 - name: Check Coverage Threshold
87 run: |
88 if grep -q "All files" coverage-output.txt; then
89 LINE_COV=$(grep "All files" coverage-output.txt | awk '{print $4}' | tr -d '%')
90 echo "Line coverage: ${LINE_COV}%"
91 THRESHOLD=50
92 if [ "$(echo "${LINE_COV} < ${THRESHOLD}" | bc -l)" -eq 1 ]; then
93 echo "::error::Line coverage ${LINE_COV}% is below threshold ${THRESHOLD}%"
94 exit 1
95 fi
96 echo "Coverage ${LINE_COV}% meets threshold ${THRESHOLD}%"
97 else
98 echo "Coverage report not found — skipping threshold check"
99 fi
85100
86101 publish-commit:
87102 runs-on: ubuntu-latest
.github/workflows/release.ymlmodified+23-15
Changes to .github/workflows/release.yml
@@ -35,8 +35,25 @@ jobs:
3535 - name: Install Dependencies
3636 run: bun install
3737
38 - name: Build All Packages
39 run: bun run build
40
41 - name: Compile CLI Binaries
42 run: cd packages/ts-tokens && bun run compile:all
43
44 - name: Zip Binaries
45 run: |
46 cd packages/ts-tokens/bin
47 for f in tokens-linux-x64 tokens-linux-arm64 tokens-darwin-x64 tokens-darwin-arm64; do
48 [ -f "$f" ] && zip "${f}.zip" "$f"
49 done
50 [ -f "tokens-windows-x64.exe" ] && zip "tokens-windows-x64.zip" "tokens-windows-x64.exe"
51
3852 - name: Publish to npm
39 run: ./scripts/publish.sh
53 run: |
54 cd packages/ts-tokens && bun publish --access public --provenance
55 cd ../react && bun publish --access public --provenance
56 cd ../vue && bun publish --access public --provenance
4057 env:
4158 BUN_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
4259
@@ -45,19 +62,10 @@ jobs:
4562 uses: stacksjs/action-releaser@v1.2.9
4663 with:
4764 files: |
48 ./packages/tlsx/bin/tlsx-linux-x64.zip
49 ./packages/tlsx/bin/tlsx-linux-arm64.zip
50 ./packages/tlsx/bin/tlsx-windows-x64.zip
51 ./packages/tlsx/bin/tlsx-darwin-x64.zip
52 ./packages/tlsx/bin/tlsx-darwin-arm64.zip
53 # --- Homebrew tap update support ---
54 # Path to your Homebrew formula template (update this path as needed)
55 # homebrewFormula: .github/homebrew-formula.rb
56 # The owner/repo of your Homebrew tap (update this value as needed)
57 # homebrewRepo: stacksjs/homebrew-tap
58 # Optionally uncomment and set these if you need custom values:
59 # homebrewBranch: main
60 # homebrewPath: Formula
61 # homebrewCommitFormat: "update: {⁠{ formula }} to {⁠{ version }}"
65 ./packages/ts-tokens/bin/tokens-linux-x64.zip
66 ./packages/ts-tokens/bin/tokens-linux-arm64.zip
67 ./packages/ts-tokens/bin/tokens-windows-x64.zip
68 ./packages/ts-tokens/bin/tokens-darwin-x64.zip
69 ./packages/ts-tokens/bin/tokens-darwin-arm64.zip
6270 env:
6371 GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
packages/react/package.jsonmodified+2-2
Changes to packages/react/package.json
@@ -1,7 +1,7 @@
11{
22 "name": "react-tokens",
33 "type": "module",
4 "version": "0.0.0",
4 "version": "0.1.0",
55 "description": "React components for Solana tokens and NFTs",
66 "author": "Chris Breuer <chris@stacksjs.org>",
77 "license": "MIT",
@@ -46,7 +46,7 @@
4646 "build": "bun build ./src/index.ts --outdir ./dist --target browser",
4747 "lint": "bunx --bun eslint .",
4848 "lint:fix": "bunx --bun eslint . --fix",
49 "release": "bun publish --access public",
49 "release": "bun publish --access public --provenance",
5050 "prepublishOnly": "bun --bun run build",
5151 "test": "bun test",
5252 "typecheck": "bun --bun tsc --noEmit"
packages/ts-tokens/package.jsonmodified+107-3
Changes to packages/ts-tokens/package.json
@@ -1,7 +1,7 @@
11{
22 "name": "ts-tokens",
33 "type": "module",
4 "version": "0.0.0",
4 "version": "0.1.0",
55 "description": "A TypeScript library for managing fungible and non-fungible tokens on Solana.",
66 "author": "Chris Breuer <chris@stacksjs.org>",
77 "license": "MIT",
@@ -30,6 +30,110 @@
3030 "types": "./dist/index.d.ts",
3131 "import": "./dist/index.js"
3232 },
33 "./token": {
34 "types": "./dist/token/index.d.ts",
35 "import": "./dist/token/index.js"
36 },
37 "./nft": {
38 "types": "./dist/nft/index.d.ts",
39 "import": "./dist/nft/index.js"
40 },
41 "./config": {
42 "types": "./dist/config/config.d.ts",
43 "import": "./dist/config/config.js"
44 },
45 "./types": {
46 "types": "./dist/types/index.d.ts",
47 "import": "./dist/types/index.js"
48 },
49 "./utils": {
50 "types": "./dist/utils/index.d.ts",
51 "import": "./dist/utils/index.js"
52 },
53 "./drivers": {
54 "types": "./dist/drivers/index.d.ts",
55 "import": "./dist/drivers/index.js"
56 },
57 "./storage": {
58 "types": "./dist/storage/index.d.ts",
59 "import": "./dist/storage/index.js"
60 },
61 "./programs": {
62 "types": "./dist/programs/index.d.ts",
63 "import": "./dist/programs/index.js"
64 },
65 "./security": {
66 "types": "./dist/security/index.d.ts",
67 "import": "./dist/security/index.js"
68 },
69 "./staking": {
70 "types": "./dist/staking/index.d.ts",
71 "import": "./dist/staking/index.js"
72 },
73 "./batch": {
74 "types": "./dist/batch/index.d.ts",
75 "import": "./dist/batch/index.js"
76 },
77 "./multisig": {
78 "types": "./dist/multisig/index.d.ts",
79 "import": "./dist/multisig/index.js"
80 },
81 "./governance": {
82 "types": "./dist/governance/index.d.ts",
83 "import": "./dist/governance/index.js"
84 },
85 "./defi": {
86 "types": "./dist/defi/index.d.ts",
87 "import": "./dist/defi/index.js"
88 },
89 "./marketplace": {
90 "types": "./dist/marketplace/index.d.ts",
91 "import": "./dist/marketplace/index.js"
92 },
93 "./indexer": {
94 "types": "./dist/indexer/index.d.ts",
95 "import": "./dist/indexer/index.js"
96 },
97 "./wallets": {
98 "types": "./dist/wallets/index.d.ts",
99 "import": "./dist/wallets/index.js"
100 },
101 "./analytics": {
102 "types": "./dist/analytics/index.d.ts",
103 "import": "./dist/analytics/index.js"
104 },
105 "./fluent": {
106 "types": "./dist/fluent/index.d.ts",
107 "import": "./dist/fluent/index.js"
108 },
109 "./simple-nft": {
110 "types": "./dist/simple-nft/index.d.ts",
111 "import": "./dist/simple-nft/index.js"
112 },
113 "./pnft": {
114 "types": "./dist/pnft/index.d.ts",
115 "import": "./dist/pnft/index.js"
116 },
117 "./events": {
118 "types": "./dist/events/index.d.ts",
119 "import": "./dist/events/index.js"
120 },
121 "./treasury": {
122 "types": "./dist/treasury/index.d.ts",
123 "import": "./dist/treasury/index.js"
124 },
125 "./voting": {
126 "types": "./dist/voting/index.d.ts",
127 "import": "./dist/voting/index.js"
128 },
129 "./i18n": {
130 "types": "./dist/i18n/index.d.ts",
131 "import": "./dist/i18n/index.js"
132 },
133 "./debug": {
134 "types": "./dist/debug/index.d.ts",
135 "import": "./dist/debug/index.js"
136 },
33137 "./*": {
34138 "import": "./dist/*"
35139 }
@@ -55,7 +159,7 @@
55159 "lint": "bunx --bun eslint --flag unstable_ts_config .",
56160 "lint:fix": "bunx --bun eslint --flag unstable_ts_config . --fix",
57161 "prepublishOnly": "bun --bun run build && bun run compile:all",
58 "release": "bun publish --access public",
162 "release": "bun publish --access public --provenance",
59163 "test": "bun test",
60164 "typecheck": "bun --bun tsc --noEmit"
61165 },
@@ -71,6 +175,6 @@
71175 "bunfig": "^0.5.0"
72176 },
73177 "lint-staged": {
74 "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config . --fix"
178 "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config --fix"
75179 }
76180}
packages/vue/package.jsonmodified+2-2
Changes to packages/vue/package.json
@@ -1,7 +1,7 @@
11{
22 "name": "vue-tokens",
33 "type": "module",
4 "version": "0.0.0",
4 "version": "0.1.0",
55 "description": "Vue 3 components for Solana tokens and NFTs",
66 "author": "Chris Breuer <chris@stacksjs.org>",
77 "license": "MIT",
@@ -47,7 +47,7 @@
4747 "build": "bun build ./src/index.ts --outdir ./dist --target browser",
4848 "lint": "bunx --bun eslint .",
4949 "lint:fix": "bunx --bun eslint . --fix",
50 "release": "bun publish --access public",
50 "release": "bun publish --access public --provenance",
5151 "prepublishOnly": "bun --bun run build",
5252 "test": "bun test",
5353 "typecheck": "bun --bun tsc --noEmit"