@codama/renderers-js 1.4.0 → 1.4.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codama/renderers-js",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "JavaScript renderer compatible with the Solana Kit library",
5
5
  "exports": {
6
6
  "types": "./dist/types/index.d.ts",
@@ -37,42 +37,56 @@
37
37
  "client"
38
38
  ],
39
39
  "dependencies": {
40
- "@solana/codecs-strings": "^3.0.2",
41
- "prettier": "^3.6.2",
42
- "@codama/errors": "1.3.5",
43
- "@codama/nodes": "1.3.5",
44
- "@codama/renderers-core": "1.2.0",
45
- "@codama/visitors-core": "1.3.5"
40
+ "@codama/errors": "^1.3.7",
41
+ "@codama/nodes": "^1.3.7",
42
+ "@codama/renderers-core": "^1.2.2",
43
+ "@codama/visitors-core": "^1.3.7",
44
+ "@solana/codecs-strings": "^3.0.3",
45
+ "prettier": "^3.6.2"
46
46
  },
47
47
  "devDependencies": {
48
- "@codama/nodes-from-anchor": "1.2.7"
48
+ "@codama/nodes-from-anchor": "^1.2.9",
49
+ "@changesets/changelog-github": "^0.5.1",
50
+ "@changesets/cli": "^2.29.7",
51
+ "@solana/eslint-config-solana": "^5.0.0",
52
+ "@solana/prettier-config-solana": "0.0.5",
53
+ "@types/node": "^24",
54
+ "agadoo": "^3.0.0",
55
+ "eslint": "^9.35.0",
56
+ "happy-dom": "^18.0.1",
57
+ "prettier": "^3.6.2",
58
+ "rimraf": "6.0.1",
59
+ "tsup": "^8.5.0",
60
+ "typescript": "^5.9.2",
61
+ "vitest": "^3.2.4"
49
62
  },
50
63
  "license": "MIT",
51
64
  "repository": {
52
65
  "type": "git",
53
- "url": "https://github.com/codama-idl/codama"
66
+ "url": "https://github.com/codama-idl/renderers-js"
54
67
  },
55
68
  "bugs": {
56
- "url": "http://github.com/codama-idl/codama/issues"
69
+ "url": "http://github.com/codama-idl/renderers-js/issues"
57
70
  },
58
71
  "browserslist": [
59
72
  "supports bigint and not dead",
60
73
  "maintained node versions"
61
74
  ],
75
+ "engines": {
76
+ "node": ">=20.18.0"
77
+ },
78
+ "prettier": "@solana/prettier-config-solana",
62
79
  "scripts": {
63
- "build": "rimraf dist && pnpm build:src && pnpm build:types",
64
- "build:src": "zx ../../node_modules/@codama/internals/scripts/build-src.mjs package",
65
- "build:types": "zx ../../node_modules/@codama/internals/scripts/build-types.mjs",
66
- "dev": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node --watch",
67
- "lint": "zx ../../node_modules/@codama/internals/scripts/lint.mjs",
68
- "lint:fix": "zx ../../node_modules/@codama/internals/scripts/lint.mjs --fix",
69
- "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:browser && pnpm test:node && pnpm test:react-native && pnpm test:e2e && pnpm test:exports",
70
- "test:browser": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs browser",
80
+ "build": "rimraf dist && tsup && tsc -p ./tsconfig.declarations.json",
81
+ "dev": "vitest --project node",
82
+ "lint": "eslint . && prettier --check .",
83
+ "lint:fix": "eslint --fix . && prettier --write .",
84
+ "publish-package": "pnpm build && changeset publish",
85
+ "test": "pnpm test:types && pnpm test:treeshakability && pnpm test:unit && pnpm test:e2e && pnpm test:exports",
71
86
  "test:e2e": "./test/e2e/test.sh",
72
87
  "test:exports": "node ./test/exports/module.mjs && node ./test/exports/commonjs.cjs",
73
- "test:node": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs node",
74
- "test:react-native": "zx ../../node_modules/@codama/internals/scripts/test-unit.mjs react-native",
75
- "test:treeshakability": "zx ../../node_modules/@codama/internals/scripts/test-treeshakability.mjs",
76
- "test:types": "zx ../../node_modules/@codama/internals/scripts/test-types.mjs"
88
+ "test:treeshakability": "for file in dist/index.*.mjs; do agadoo $file; done",
89
+ "test:types": "tsc --noEmit",
90
+ "test:unit": "vitest run"
77
91
  }
78
92
  }