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
.github/workflows/buddy-bot.ymlmodified+2-2
Changes to .github/workflows/buddy-bot.yml
@@ -130,7 +130,7 @@ jobs:
130130
131131 - name: Setup PHP and Composer (if needed)
132132 if: ${{ hashFiles('composer.json') != '' }}
133 uses: shivammathur/setup-php@v2
133 uses: shivammathur/setup-php@2.36.0
134134 with:
135135 php-version: '8.4'
136136 tools: composer
@@ -248,7 +248,7 @@ jobs:
248248
249249 - name: Setup PHP and Composer (if needed)
250250 if: ${{ hashFiles('composer.json') != '' }}
251 uses: shivammathur/setup-php@v2
251 uses: shivammathur/setup-php@2.36.0
252252 with:
253253 php-version: '8.4'
254254 tools: composer
.github/workflows/bundle-size.ymladded+40-0
Changes to .github/workflows/bundle-size.yml
@@ -0,0 +1,40 @@
1name: Bundle Size Check
2
3on:
4 pull_request:
5 paths:
6 - 'packages/ts-tokens/src/**'
7 - 'packages/react/src/**'
8 - 'packages/vue/src/**'
9
10jobs:
11 bundle-size:
12 runs-on: ubuntu-latest
13 steps:
14 - uses: actions/checkout@v4
15 - uses: oven-sh/setup-bun@v2.1.2
16 - uses: actions/cache@v4
17 with:
18 path: node_modules
19 key: node-modules-${{ hashFiles('**/bun.lock') }}
20 - run: bun install
21 - run: bun run build
22 working-directory: packages/ts-tokens
23 - name: Check bundle size
24 run: |
25 node -e "
26 const { analyzeBundleSize, checkBundleBudget } = require('./packages/ts-tokens/dist/utils/bundle-optimizer.js');
27 analyzeBundleSize('./packages/ts-tokens/dist').then(report => {
28 console.log('Bundle Size Report:');
29 console.log('Total:', (report.totalSizeBytes / 1024).toFixed(1), 'KB');
30 console.log('Gzip:', (report.totalGzipBytes / 1024).toFixed(1), 'KB');
31 report.entries.sort((a,b) => b.sizeBytes - a.sizeBytes).slice(0,10).forEach(e => {
32 console.log(' ' + e.name + ': ' + (e.sizeBytes / 1024).toFixed(1) + ' KB');
33 });
34 const result = checkBundleBudget(report, { maxTotalBytes: 5 * 1024 * 1024 });
35 if (!result.passed) {
36 console.error('Budget violations:', result.violations);
37 process.exit(1);
38 }
39 });
40 "
.github/workflows/ci.ymlmodified+20-5
Changes to .github/workflows/ci.yml
@@ -21,7 +21,7 @@ jobs:
2121 - uses: actions/checkout@v4
2222
2323 - name: Install Bun
24 uses: oven-sh/setup-bun@v2
24 uses: oven-sh/setup-bun@v2.1.2
2525
2626 - name: Use cached node_modules
2727 uses: actions/cache@v4
@@ -44,7 +44,7 @@ jobs:
4444 - uses: actions/checkout@v4
4545
4646 - name: Install Bun
47 uses: oven-sh/setup-bun@v2
47 uses: oven-sh/setup-bun@v2.1.2
4848
4949 - name: Use cached node_modules
5050 uses: actions/cache@v4
@@ -67,7 +67,7 @@ jobs:
6767 - uses: actions/checkout@v4
6868
6969 - name: Install Bun
70 uses: oven-sh/setup-bun@v2
70 uses: oven-sh/setup-bun@v2.1.2
7171
7272 - name: Use cached node_modules
7373 uses: actions/cache@v4
@@ -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
@@ -90,7 +105,7 @@ jobs:
90105 - uses: actions/checkout@v4
91106
92107 - name: Install Bun
93 uses: oven-sh/setup-bun@v2
108 uses: oven-sh/setup-bun@v2.1.2
94109
95110 - name: Use cached node_modules
96111 uses: actions/cache@v4
.github/workflows/docs.ymladded+60-0
Changes to .github/workflows/docs.yml
@@ -0,0 +1,60 @@
1name: Deploy Docs
2
3on:
4 push:
5 branches: [main]
6 paths:
7 - 'docs/**'
8 - '.github/workflows/docs.yml'
9 workflow_dispatch:
10
11permissions:
12 contents: read
13 pages: write
14 id-token: write
15
16concurrency:
17 group: pages
18 cancel-in-progress: false
19
20jobs:
21 build:
22 runs-on: ubuntu-latest
23 steps:
24 - name: Checkout
25 uses: actions/checkout@v4
26 with:
27 fetch-depth: 0
28
29 - name: Setup Bun
30 uses: oven-sh/setup-bun@v2
31
32 - name: Use Cached node_modules
33 uses: actions/cache@v4
34 with:
35 path: node_modules
36 key: node-modules-${{ hashFiles('**/bun.lock') }}
37 restore-keys: |
38 node-modules-
39
40 - name: Install Dependencies
41 run: bun install
42
43 - name: Build Documentation
44 run: bun run build:docs
45
46 - name: Upload Pages Artifact
47 uses: actions/upload-pages-artifact@v3
48 with:
49 path: docs/.vitepress/dist
50
51 deploy:
52 environment:
53 name: github-pages
54 url: ${{ steps.deployment.outputs.page_url }}
55 needs: build
56 runs-on: ubuntu-latest
57 steps:
58 - name: Deploy to GitHub Pages
59 id: deployment
60 uses: actions/deploy-pages@v4.0.5
.github/workflows/release.ymlmodified+24-16
Changes to .github/workflows/release.yml
@@ -35,29 +35,37 @@ 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
4360 - name: Create GitHub Release
4461 id: create_release
45 uses: stacksjs/action-releaser@v1.1.0
62 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 }}
examples/candy-machine-ui/package.jsonadded+26-0
Changes to examples/candy-machine-ui/package.json
@@ -0,0 +1,26 @@
1{
2 "name": "candy-machine-ui",
3 "private": true,
4 "version": "0.0.0",
5 "type": "module",
6 "scripts": {
7 "dev": "vite",
8 "build": "tsc && vite build",
9 "preview": "vite preview"
10 },
11 "dependencies": {
12 "bun": "^1.3.9",
13 "dev": "^0.1.3",
14 "react": "^18.3.0",
15 "react-dom": "^18.3.0",
16 "ts-tokens": "workspace:*"
17 },
18 "devDependencies": {
19 "@types/react": "^18.3.0",
20 "@types/react-dom": "^18.3.0",
21 "@vitejs/plugin-react": "^4.3.0",
22 "typescript": "^5.9.3",
23 "vite": "^5.4.0",
24 "vite-plugin-node-polyfills": "^0.25.0"
25 }
26}
examples/vue-nft-gallery/package.jsonadded+22-0
Changes to examples/vue-nft-gallery/package.json
@@ -0,0 +1,22 @@
1{
2 "name": "vue-nft-gallery",
3 "private": true,
4 "version": "0.0.0",
5 "type": "module",
6 "scripts": {
7 "dev": "vite",
8 "build": "vue-tsc && vite build",
9 "preview": "vite preview"
10 },
11 "dependencies": {
12 "vue": "^3.5.28",
13 "ts-tokens": "workspace:*"
14 },
15 "devDependencies": {
16 "@vitejs/plugin-vue": "^5.1.0",
17 "typescript": "^5.9.3",
18 "vite": "^5.4.0",
19 "vite-plugin-node-polyfills": "^0.25.0",
20 "vue-tsc": "^2.0.0"
21 }
22}
packages/react/package.jsonmodified+16-7
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",
@@ -43,13 +43,16 @@
4343 "dist"
4444 ],
4545 "scripts": {
46 "build": "bun build ./src/index.ts --outdir ./dist --target browser",
46 "dev": "vite --config vite.config.ts",
47 "build": "bun build ./src/index.ts --outdir ./dist --target browser --sourcemap=external",
4748 "lint": "bunx --bun eslint .",
4849 "lint:fix": "bunx --bun eslint . --fix",
49 "release": "bun publish --access public",
50 "release": "bun publish --access public --provenance",
5051 "prepublishOnly": "bun --bun run build",
5152 "test": "bun test",
52 "typecheck": "bun --bun tsc --noEmit"
53 "typecheck": "bun --bun tsc --noEmit",
54 "storybook": "storybook dev -p 6006",
55 "build-storybook": "storybook build"
5356 },
5457 "dependencies": {
5558 "ts-tokens": "workspace:*"
@@ -57,16 +60,22 @@
5760 "peerDependencies": {
5861 "react": ">=18.0.0",
5962 "react-dom": ">=18.0.0",
60 "@solana/wallet-adapter-react": ">=0.15.0",
61 "@solana/wallet-adapter-react-ui": ">=0.9.0",
63 "@solana/wallet-adapter-react": ">=0.15.39",
64 "@solana/wallet-adapter-react-ui": ">=0.9.39",
6265 "@solana/web3.js": ">=1.87.0"
6366 },
6467 "devDependencies": {
68 "@storybook/react": "^10.2.8",
69 "@storybook/react-vite": "^10.2.8",
70 "@testing-library/jest-dom": "^6.9.1",
71 "@testing-library/react": "^16.3.2",
6572 "@types/react": "^18.2.0",
6673 "@types/react-dom": "^18.2.0",
74 "better-dx": "^0.2.5",
75 "happy-dom": "^20.6.1",
6776 "react": "^18.2.0",
6877 "react-dom": "^18.2.0",
69 "better-dx": "^0.2.5"
78 "storybook": "^10.2.8"
7079 },
7180 "lint-staged": {
7281 "*.{js,ts,tsx}": "bunx --bun eslint . --fix"
packages/ts-tokens/package.jsonmodified+113-4
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,13 +159,18 @@
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",
164 "test:binary": "bash scripts/test-binary.sh",
60165 "typecheck": "bun --bun tsc --noEmit"
61166 },
62167 "dependencies": {
63168 "@solana/web3.js": "^1.95.0",
64 "@solana/spl-token": "^0.4.0"
169 "@solana/spl-token": "^0.4.14",
170 "chalk": "^5.6.2",
171 "ora": "^8.0.0",
172 "@inquirer/prompts": "^7.0.0",
173 "ts-governance": "workspace:*"
65174 },
66175 "devDependencies": {
67176 "@types/node": "^22.0.0",
@@ -71,6 +180,6 @@
71180 "bunfig": "^0.5.0"
72181 },
73182 "lint-staged": {
74 "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config . --fix"
183 "*.{js,ts}": "bunx --bun eslint --flag unstable_ts_config --fix"
75184 }
76185}
packages/vscode-extension/package.jsonadded+110-0
Changes to packages/vscode-extension/package.json
@@ -0,0 +1,110 @@
1{
2 "name": "ts-tokens-vscode",
3 "displayName": "ts-tokens",
4 "description": "VS Code extension for ts-tokens — Solana token and NFT development",
5 "version": "0.1.0",
6 "publisher": "stacksjs",
7 "license": "MIT",
8 "engines": {
9 "vscode": "^1.85.0"
10 },
11 "categories": [
12 "Snippets",
13 "Other"
14 ],
15 "keywords": [
16 "solana",
17 "tokens",
18 "nft",
19 "typescript",
20 "web3"
21 ],
22 "repository": {
23 "type": "git",
24 "url": "https://github.com/stacksjs/ts-tokens.git",
25 "directory": "packages/vscode-extension"
26 },
27 "main": "./dist/extension.js",
28 "activationEvents": [
29 "workspaceContains:tokens.config.ts",
30 "workspaceContains:tokens.config.js"
31 ],
32 "contributes": {
33 "snippets": [
34 {
35 "language": "typescript",
36 "path": "./snippets/ts-tokens.json"
37 },
38 {
39 "language": "typescriptreact",
40 "path": "./snippets/ts-tokens.json"
41 }
42 ],
43 "problemMatchers": [
44 {
45 "name": "ts-tokens",
46 "owner": "ts-tokens",
47 "fileLocation": "absolute",
48 "pattern": [
49 {
50 "regexp": "^\\[ERROR\\]\\s+(.+)$",
51 "message": 1
52 }
53 ],
54 "background": {
55 "activeOnStart": true,
56 "beginsPattern": "^\\[ts-tokens\\]",
57 "endsPattern": "^\\[ts-tokens\\] (Done|Error)"
58 }
59 },
60 {
61 "name": "ts-tokens-transaction",
62 "owner": "ts-tokens",
63 "fileLocation": "absolute",
64 "severity": "error",
65 "pattern": [
66 {
67 "regexp": "^Transaction failed:\\s+(.+)\\s+\\(signature:\\s+(\\S+)\\)",
68 "message": 1,
69 "code": 2
70 }
71 ]
72 },
73 {
74 "name": "ts-tokens-validation",
75 "owner": "ts-tokens",
76 "fileLocation": "relative",
77 "severity": "warning",
78 "pattern": [
79 {
80 "regexp": "^Validation error in (.+):(\\d+):\\s+(.+)$",
81 "file": 1,
82 "line": 2,
83 "message": 3
84 }
85 ]
86 }
87 ],
88 "taskDefinitions": [
89 {
90 "type": "ts-tokens",
91 "required": [
92 "command"
93 ],
94 "properties": {
95 "command": {
96 "type": "string",
97 "description": "The ts-tokens CLI command to run"
98 }
99 }
100 }
101 ]
102 },
103 "scripts": {
104 "build": "bun build ./src/extension.ts --outdir ./dist --target node --format esm",
105 "typecheck": "bun --bun tsc --noEmit"
106 },
107 "devDependencies": {
108 "@types/vscode": "^1.109.0"
109 }
110}
packages/vue/package.jsonmodified+9-6
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",
@@ -44,10 +44,11 @@
4444 "dist"
4545 ],
4646 "scripts": {
47 "build": "bun build ./src/index.ts --outdir ./dist --target browser",
47 "dev": "vite --config vite.config.ts",
48 "build": "bun build ./src/index.ts --outdir ./dist --target browser --sourcemap=external",
4849 "lint": "bunx --bun eslint .",
4950 "lint:fix": "bunx --bun eslint . --fix",
50 "release": "bun publish --access public",
51 "release": "bun publish --access public --provenance",
5152 "prepublishOnly": "bun --bun run build",
5253 "test": "bun test",
5354 "typecheck": "bun --bun tsc --noEmit"
@@ -56,12 +57,14 @@
5657 "ts-tokens": "workspace:*"
5758 },
5859 "peerDependencies": {
59 "vue": ">=3.3.0",
60 "vue": "^3.5.28",
6061 "@solana/web3.js": ">=1.87.0"
6162 },
6263 "devDependencies": {
63 "vue": "^3.4.0",
64 "better-dx": "^0.2.5"
64 "@vue/test-utils": "^2.4.6",
65 "better-dx": "^0.2.5",
66 "happy-dom": "^20.6.1",
67 "vue": "^3.5.28"
6568 },
6669 "lint-staged": {
6770 "*.{js,ts,vue}": "bunx --bun eslint . --fix"