Przeglądaj źródła

Bump Kinobi to 0.21.0 and web3.js to tp4 (#59)

Loris Leiva 1 rok temu
rodzic
commit
c8f8831820

+ 5 - 0
.changeset/friendly-poets-push.md

@@ -0,0 +1,5 @@
+---
+"create-solana-program": minor
+---
+
+Bump Kinobi to 0.21.0 and web3.js to tp4

Plik diff jest za duży
+ 1 - 2
template/base/README.md.njk


+ 1 - 1
template/base/package.json

@@ -11,7 +11,7 @@
   "devDependencies": {
   "devDependencies": {
     "@iarna/toml": "^2.2.5",
     "@iarna/toml": "^2.2.5",
     "@metaplex-foundation/shank-js": "^0.1.7",
     "@metaplex-foundation/shank-js": "^0.1.7",
-    "typescript": "^5.4.2",
+    "typescript": "^5.5.2",
     "zx": "^7.2.3"
     "zx": "^7.2.3"
   },
   },
   "packageManager": "pnpm@9.1.0"
   "packageManager": "pnpm@9.1.0"

+ 2 - 2
template/clients/base/package.json

@@ -7,7 +7,7 @@
     "validator:stop": "zx ./scripts/stop-validator.mjs"
     "validator:stop": "zx ./scripts/stop-validator.mjs"
   },
   },
   "devDependencies": {
   "devDependencies": {
-    "kinobi": "^0.20.1",
-    "@kinobi-so/nodes-from-anchor": "^0.20.1"
+    "kinobi": "^0.21.0",
+    "@kinobi-so/nodes-from-anchor": "^0.20.9"
   }
   }
 }
 }

+ 0 - 3
template/clients/js/clients/js/env-shim.ts

@@ -1,3 +0,0 @@
-// Clever obfuscation to prevent the build system from inlining the value of `NODE_ENV`
-export const __DEV__ = /* @__PURE__ */ (() =>
-  (process as any)['en' + 'v'].NODE_ENV === 'development')();

+ 12 - 10
template/clients/js/clients/js/package.json.njk

@@ -34,23 +34,25 @@
   },
   },
   "license": "MIT",
   "license": "MIT",
   "peerDependencies": {
   "peerDependencies": {
-    "@solana/web3.js": "2.0.0-preview.3"
+    "@solana/web3.js": "2.0.0-preview.4"
   },
   },
   "devDependencies": {
   "devDependencies": {
     "@ava/typescript": "^4.1.0",
     "@ava/typescript": "^4.1.0",
-    "@solana/eslint-config-solana": "^3.0.0",
-    "@solana/web3.js": "2.0.0-preview.3",
-    "@solana/webcrypto-ed25519-polyfill": "2.0.0-preview.3",
-    "@typescript-eslint/eslint-plugin": "^7.3.1",
-    "@typescript-eslint/parser": "^7.3.1",
-    "ava": "^6.1.2",
+    "@solana/eslint-config-solana": "^3.0.3",
+    "@solana/web3.js": "2.0.0-preview.4",
+    "@solana/webcrypto-ed25519-polyfill": "2.0.0-preview.4",
+    "@types/node": "^20",
+    "@typescript-eslint/eslint-plugin": "^7.16.1",
+    "@typescript-eslint/parser": "^7.16.1",
+    "ava": "^6.1.3",
     "eslint": "^8.57.0",
     "eslint": "^8.57.0",
-    "prettier": "^3.2.5",
+    "prettier": "^3.3.3",
     "rimraf": "^5.0.5",
     "rimraf": "^5.0.5",
-    "tsup": "^8.0.2",
+    "tsup": "8.1.0",
+    "tsup": ">=8.0.0 <8.1.1",
     "typedoc": "^0.25.12",
     "typedoc": "^0.25.12",
     "typedoc-plugin-missing-exports": "^2.2.0",
     "typedoc-plugin-missing-exports": "^2.2.0",
-    "typescript": "^5.4.2"
+    "typescript": "^5.5.3"
   },
   },
   "ava": {
   "ava": {
     "nodeArguments": ["--no-warnings"],
     "nodeArguments": ["--no-warnings"],

+ 0 - 2
template/clients/js/clients/js/tsup.config.ts

@@ -1,11 +1,9 @@
 import { env } from 'node:process';
 import { env } from 'node:process';
-import path from 'path';
 import { defineConfig, Options } from 'tsup';
 import { defineConfig, Options } from 'tsup';
 
 
 const SHARED_OPTIONS: Options = {
 const SHARED_OPTIONS: Options = {
   define: { __VERSION__: `"${env.npm_package_version}"` },
   define: { __VERSION__: `"${env.npm_package_version}"` },
   entry: ['./src/index.ts'],
   entry: ['./src/index.ts'],
-  inject: [path.resolve(__dirname, 'env-shim.ts')],
   outDir: './dist/src',
   outDir: './dist/src',
   outExtension: ({ format }) => ({ js: format === 'cjs' ? '.js' : '.mjs' }),
   outExtension: ({ format }) => ({ js: format === 'cjs' ? '.js' : '.mjs' }),
   sourcemap: true,
   sourcemap: true,

+ 1 - 1
template/clients/js/package.json

@@ -4,6 +4,6 @@
     "clients:js:test": "zx ./scripts/client/test-js.mjs"
     "clients:js:test": "zx ./scripts/client/test-js.mjs"
   },
   },
   "devDependencies": {
   "devDependencies": {
-    "@kinobi-so/renderers-js": "^0.20.2"
+    "@kinobi-so/renderers-js": "^0.21.0"
   }
   }
 }
 }

+ 1 - 1
template/clients/rust/package.json

@@ -4,6 +4,6 @@
     "clients:rust:test": "zx ./scripts/client/test-rust.mjs"
     "clients:rust:test": "zx ./scripts/client/test-rust.mjs"
   },
   },
   "devDependencies": {
   "devDependencies": {
-    "@kinobi-so/renderers-rust": "^0.20.3"
+    "@kinobi-so/renderers-rust": "^0.21.0"
   }
   }
 }
 }

Niektóre pliki nie zostały wyświetlone z powodu dużej ilości zmienionych plików