@ecency/sdk 2.2.2 → 2.2.4
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/README.md +14 -0
- package/dist/browser/hive-CwYfobOc.d.ts +963 -0
- package/dist/browser/hive.d.ts +1 -0
- package/dist/browser/hive.js +9 -0
- package/dist/browser/hive.js.map +1 -0
- package/dist/browser/index.d.ts +21 -929
- package/dist/browser/index.js +2 -2
- package/dist/browser/index.js.map +1 -1
- package/dist/node/hive.cjs +9 -0
- package/dist/node/hive.cjs.map +1 -0
- package/dist/node/hive.mjs +9 -0
- package/dist/node/hive.mjs.map +1 -0
- package/dist/node/index.cjs +2 -2
- package/dist/node/index.cjs.map +1 -1
- package/dist/node/index.mjs +2 -2
- package/dist/node/index.mjs.map +1 -1
- package/package.json +8 -1
package/README.md
CHANGED
|
@@ -210,6 +210,20 @@ function PostPage({ author, permlink }) {
|
|
|
210
210
|
|
|
211
211
|
**Zero manual cache management. Zero custom fetch logic. Production-ready data layer.**
|
|
212
212
|
|
|
213
|
+
## Server-Side / Non-React Usage
|
|
214
|
+
|
|
215
|
+
For server-side tools, CLI scripts, or any environment that doesn't use React, import from `@ecency/sdk/hive` to avoid pulling in React and React Query dependencies:
|
|
216
|
+
|
|
217
|
+
```ts
|
|
218
|
+
import { Transaction, PrivateKey, callRPC, config } from "@ecency/sdk/hive";
|
|
219
|
+
|
|
220
|
+
// Sign and broadcast a transaction without React
|
|
221
|
+
const tx = new Transaction();
|
|
222
|
+
// ... build and sign
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
The `@ecency/sdk/hive` entry point exports the built-in transaction engine (signing, serialization, RPC, crypto) with zero React dependencies. This keeps your server bundle lean.
|
|
226
|
+
|
|
213
227
|
## Installation
|
|
214
228
|
|
|
215
229
|
```sh
|