Skip to content

Commit 37b619f

Browse files
authored
Update JS client dependencies (#12)
1 parent de93138 commit 37b619f

29 files changed

+5105
-3387
lines changed

.github/actions/setup/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,16 +21,16 @@ inputs:
2121
required: false
2222

2323
runs:
24-
using: 'composite'
24+
using: "composite"
2525
steps:
2626
- name: Setup pnpm
2727
uses: pnpm/action-setup@v3
2828

2929
- name: Setup Node.js
3030
uses: actions/setup-node@v4
3131
with:
32-
node-version: 18
33-
cache: 'pnpm'
32+
node-version: 24
33+
cache: "pnpm"
3434

3535
- name: Install Dependencies
3636
run: pnpm install --frozen-lockfile

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ pnpm generate
5858

5959
The following clients are available for your programs. You may use the following links to learn more about each client.
6060

61-
- [JS client](./clients/js)
62-
- [Rust client](./clients/rust)
61+
- [JS client](./clients/js)
62+
- [Rust client](./clients/rust)
6363

6464
## Starting and stopping the local validator
6565

clients/js/.eslintrc.cjs

Lines changed: 0 additions & 17 deletions
This file was deleted.

clients/js/.prettierrc.json

Lines changed: 0 additions & 9 deletions
This file was deleted.

clients/js/env-shim.ts

Lines changed: 0 additions & 3 deletions
This file was deleted.

clients/js/eslint.config.mjs

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import solanaConfig from '@solana/eslint-config-solana';
2+
import { defineConfig } from 'eslint/config';
3+
4+
export default defineConfig([
5+
{ ignores: ['**/dist/**'] },
6+
{ files: ['**/*.ts', '**/*.(c|m)?js'], extends: [solanaConfig] },
7+
{
8+
languageOptions: { parserOptions: { project: null } },
9+
rules: {
10+
'@typescript-eslint/ban-types': 'off',
11+
'@typescript-eslint/sort-type-constituents': 'off',
12+
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
13+
'@typescript-eslint/no-empty-object-type': 'off',
14+
'prefer-destructuring': 'off',
15+
'simple-import-sort/imports': 'off',
16+
'sort-keys-fix/sort-keys-fix': 'off',
17+
'typescript-sort-keys/interface': 'off',
18+
},
19+
},
20+
]);

clients/js/package.json

Lines changed: 48 additions & 62 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,52 @@
11
{
2-
"name": "@solana-program/loader-v3",
3-
"version": "0.2.0",
4-
"description": "JavaScript client for the Solana Loader V3 program",
5-
"sideEffects": false,
6-
"module": "./dist/src/index.mjs",
7-
"main": "./dist/src/index.js",
8-
"types": "./dist/types/index.d.ts",
9-
"type": "commonjs",
10-
"exports": {
11-
".": {
12-
"types": "./dist/types/index.d.ts",
13-
"import": "./dist/src/index.mjs",
14-
"require": "./dist/src/index.js"
15-
}
16-
},
17-
"files": [
18-
"./dist/src",
19-
"./dist/types"
20-
],
21-
"scripts": {
22-
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
23-
"build:docs": "typedoc",
24-
"test": "ava",
25-
"lint": "eslint --ext js,ts,tsx src",
26-
"lint:fix": "eslint --fix --ext js,ts,tsx src",
27-
"format": "prettier --check src test",
28-
"format:fix": "prettier --write src test",
29-
"prepublishOnly": "pnpm build"
30-
},
31-
"publishConfig": {
32-
"access": "public",
33-
"registry": "https://registry.npmjs.org"
34-
},
35-
"license": "MIT",
36-
"peerDependencies": {
37-
"@solana/kit": "^4.0.0"
38-
},
39-
"devDependencies": {
40-
"@ava/typescript": "^4.1.0",
41-
"@solana/eslint-config-solana": "^3.0.0",
42-
"@solana/kit": "^4.0.0",
43-
"@types/node": "^24",
44-
"@typescript-eslint/eslint-plugin": "^7.3.1",
45-
"@typescript-eslint/parser": "^7.3.1",
46-
"ava": "^6.1.2",
47-
"eslint": "^8.57.0",
48-
"prettier": "^3.6.2",
49-
"rimraf": "^5.0.5",
50-
"tsup": "^8.5.0",
51-
"typedoc": "^0.28.13",
52-
"typedoc-plugin-missing-exports": "^4.1.0",
53-
"typescript": "^5.9.3"
54-
},
55-
"ava": {
56-
"nodeArguments": [
57-
"--no-warnings"
2+
"name": "@solana-program/loader-v3",
3+
"version": "0.2.0",
4+
"description": "JavaScript client for the Solana Loader V3 program",
5+
"sideEffects": false,
6+
"module": "./dist/src/index.mjs",
7+
"main": "./dist/src/index.js",
8+
"types": "./dist/types/index.d.ts",
9+
"type": "commonjs",
10+
"exports": {
11+
".": {
12+
"types": "./dist/types/index.d.ts",
13+
"import": "./dist/src/index.mjs",
14+
"require": "./dist/src/index.js"
15+
}
16+
},
17+
"files": [
18+
"./dist/src",
19+
"./dist/types"
5820
],
59-
"typescript": {
60-
"compile": false,
61-
"rewritePaths": {
62-
"test/": "dist/test/"
63-
}
21+
"scripts": {
22+
"build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
23+
"build:docs": "typedoc",
24+
"dev": "vitest",
25+
"test": "vitest run",
26+
"lint": "eslint --ext js,ts,tsx src",
27+
"lint:fix": "eslint --fix --ext js,ts,tsx src",
28+
"format": "prettier --check src test",
29+
"format:fix": "prettier --write src test",
30+
"prepublishOnly": "pnpm build"
31+
},
32+
"publishConfig": {
33+
"access": "public",
34+
"registry": "https://registry.npmjs.org"
35+
},
36+
"license": "MIT",
37+
"peerDependencies": {
38+
"@solana/kit": "^5.0"
39+
},
40+
"devDependencies": {
41+
"@solana/eslint-config-solana": "^6.0.0",
42+
"@solana/kit": "^5.0",
43+
"@types/node": "^24",
44+
"eslint": "^9.35.0",
45+
"prettier": "^3.7.4",
46+
"rimraf": "^6.1.2",
47+
"tsup": "^8.1.2",
48+
"typedoc": "^0.28.15",
49+
"typescript": "^5.5.3",
50+
"vitest": "^4.0.15"
6451
}
65-
}
6652
}

0 commit comments

Comments
 (0)