create account

How to update your JS apps after HF25 | hive-js, hive-tx, dhive by mahdiyari

View this thread on: hive.blogpeakd.comecency.com
· @mahdiyari · (edited)
$26.04
How to update your JS apps after HF25 | hive-js, hive-tx, dhive
<center>![image.png](https://files.peakd.com/file/peakd-hive/mahdiyari/EoAUUb3Tk8egsKerJ9hPnNxAHPLjT5f1WHTsxMcGej7B6EeYYcYcVaJz2Z5HwqC1W5y.png)</center>

There were some new operations introduced with HF25. [Hive-js](https://www.npmjs.com/package/@hiveio/hive-js) and [hive-tx](https://www.npmjs.com/package/hive-tx) both are updated to support the new operations. (dhive also will be soon updated. The code change is already done by good-karma)

Edit: dhive is now also updated.

We bumped hive-js to v1.0.0 so you have to uninstall hive-js then install it again or use the following command to install the latest version:
```
npm install @hiveio/hive-js@latest --save
```

Hive-tx v3.3.1 is the latest version with the new operations.
```
npm install hive-tx --save
```
And dhive v0.14.15:
```
npm install @hiveio/dhive
```
***
The browser apps can get the latest minified js file from the following CDN links.

hive-js: https://cdn.jsdelivr.net/npm/@hiveio/hive-js/dist/hive.min.js
hive-tx: https://cdn.jsdelivr.net/npm/hive-tx/dist/hive-tx.min.js
dhive: https://unpkg.com/@hiveio/dhive@latest/dist/dhive.js
***

There shouldn't be any problem with the existing functionalities. The docs are updated for the new operations on the [hive-js docs](https://gitlab.syncad.com/hive/hive-js/-/tree/master/doc)

Feel free to ask in the comments if you have any problems with the new changes.
👍  , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , and 353 others
properties (23)
authormahdiyari
permlinkhow-to-update-your-js-apps-after-hf25-or-hive-js-hive-tx
categoryhive-139531
json_metadata{"app":"peakd/2021.06.4","format":"markdown","tags":["dev","hivedev","js","library","hive-js","hive-tx"],"users":["hiveio","latest"],"image":["https://files.peakd.com/file/peakd-hive/mahdiyari/EoAUUb3Tk8egsKerJ9hPnNxAHPLjT5f1WHTsxMcGej7B6EeYYcYcVaJz2Z5HwqC1W5y.png"]}
created2021-06-30 15:53:42
last_update2021-06-30 16:43:21
depth0
children11
last_payout2021-07-07 15:53:42
cashout_time1969-12-31 23:59:59
total_payout_value13.052 HBD
curator_payout_value12.986 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length1,386
author_reputation199,858,009,060,549
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,637,949
net_rshares52,272,524,653,848
author_curate_reward""
vote details (417)
@cool08 ·
I'm indeed so happy to have heard this. Hope all the features will be present? 
properties (22)
authorcool08
permlinkre-mahdiyari-qviwop
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.06.4"}
created2021-06-30 16:34:03
last_update2021-06-30 16:34:03
depth1
children0
last_payout2021-07-07 16:34:03
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length79
author_reputation67,486,200,868,710
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,638,508
net_rshares0
@hivebuzz ·
Congratulations @mahdiyari! You received a personal badge!

<table><tr><td>https://images.hive.blog/70x70/http://hivebuzz.me/badges/pud.png?202107011511</td><td>You powered-up at least 10 HIVE on Hive Power Up Day!<br>Wait until the end of Power Up Day to find out the size of your Power-Bee.<br>May the Hive Power be with you!
</td></tr></table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@mahdiyari) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>


**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/pud-202107"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202107">Hive Power Up Day - July 1st 2021 - Hive Power Delegation</a></td></tr></table>
properties (22)
authorhivebuzz
permlinkhivebuzz-notify-mahdiyari-20210701t152029000z
categoryhive-139531
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2021-07-01 15:20:30
last_update2021-07-01 15:20:30
depth1
children0
last_payout2021-07-08 15:20:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length822
author_reputation369,192,117,972,227
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,658,643
net_rshares0
@hivebuzz ·
Congratulations @mahdiyari! You received a personal badge!

<table><tr><td>https://images.hive.blog/70x70/http://hivebuzz.me/badges/pud.s5.png?202107020001</td><td>You powered-up at least 1000 HP on Hive Power Up Day and got the biggest Power-Bee!<br>See you at the next Power Up day to see if you will repeat this feat.<br>May the Hive Power be with you!</td></tr></table>

<sub>_You can view your badges on [your board](https://hivebuzz.me/@mahdiyari) and compare yourself to others in the [Ranking](https://hivebuzz.me/ranking)_</sub>


**Check out the last post from @hivebuzz:**
<table><tr><td><a href="/hivebuzz/@hivebuzz/pud-202107"><img src="https://images.hive.blog/64x128/https://i.imgur.com/805FIIt.jpg"></a></td><td><a href="/hivebuzz/@hivebuzz/pud-202107">Hive Power Up Day - July 1st 2021 - Hive Power Delegation</a></td></tr></table>
properties (22)
authorhivebuzz
permlinkhivebuzz-notify-mahdiyari-20210702t004906000z
categoryhive-139531
json_metadata{"image":["http://hivebuzz.me/notify.t6.png"]}
created2021-07-02 00:49:06
last_update2021-07-02 00:49:06
depth1
children0
last_payout2021-07-09 00:49:06
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length848
author_reputation369,192,117,972,227
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,667,029
net_rshares0
@mahdiyari ·
testing
properties (22)
authormahdiyari
permlinkqx26u1
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2021-07-30 13:01:33
last_update2021-07-30 13:01:33
depth1
children0
last_payout2021-08-06 13:01:33
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length7
author_reputation199,858,009,060,549
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,211,669
net_rshares0
@miriamir ·
سلام.من کنی گیج شدم.یک راهنمایی میخواستم ازتون.من پست منتشر کردم با ۳۵ بازدید کننده ک و لایک کننده و درآمد نداشته است.درآمد از این اپلیکیشن به چ صورته؟چکار باس بکنم.۷ روز هم از پست من گذشته.ممنون
properties (22)
authormiriamir
permlinkre-mahdiyari-202183t7171173z
categoryhive-139531
json_metadata{"tags":["dev","hivedev","js","library","hive-js","hive-tx"],"app":"ecency/3.0.18-vision","format":"markdown+html"}
created2021-08-03 02:47:12
last_update2021-08-03 02:47:12
depth1
children1
last_payout2021-08-10 02:47:12
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length195
author_reputation4,296,433,651
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,288,812
net_rshares0
@mahdiyari ·
Bishtar motale konid
FAQ peakd + hive.blog
properties (22)
authormahdiyari
permlinkre-miriamir-qx8zmd
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.07.5"}
created2021-08-03 05:08:42
last_update2021-08-03 05:08:42
depth2
children0
last_payout2021-08-10 05:08:42
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length42
author_reputation199,858,009,060,549
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id105,290,239
net_rshares0
@naughtylife ·
It's help to improve our blog quality 
properties (22)
authornaughtylife
permlinkre-mahdiyari-2021630t213530616z
categoryhive-139531
json_metadata{"tags":["dev","hivedev","js","library","hive-js","hive-tx"],"app":"ecency/3.0.18-vision","format":"markdown+html"}
created2021-06-30 16:03:57
last_update2021-06-30 16:03:57
depth1
children0
last_payout2021-07-07 16:03:57
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length38
author_reputation427,072,599,159
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,638,092
net_rshares0
@quinnopps ·
Great News
properties (22)
authorquinnopps
permlinkre-mahdiyari-2021630t21333171z
categoryhive-139531
json_metadata{"tags":["dev","hivedev","js","library","hive-js","hive-tx"],"app":"ecency/3.0.18-vision","format":"markdown+html"}
created2021-06-30 16:01:30
last_update2021-06-30 16:01:30
depth1
children0
last_payout2021-07-07 16:01:30
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length10
author_reputation-10,294,525,440
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,638,063
net_rshares0
@rishi556 ·
Special note: all of my scripts that don't need the new operations or don't require account history are still running with no update needed
properties (22)
authorrishi556
permlinkre-mahdiyari-qvjfi3
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.06.5"}
created2021-06-30 23:20:27
last_update2021-06-30 23:20:27
depth1
children0
last_payout2021-07-07 23:20:27
cashout_time1969-12-31 23:59:59
total_payout_value0.000 HBD
curator_payout_value0.000 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length139
author_reputation132,005,929,521,323
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,644,958
net_rshares0
@sn0n ·
$0.29
Only change is recurrent transfer for those wondering. At least from the last commit ^>^

```
hive.broadcast.recurrentTransfer(wif, from, to, amount, memo, recurrence, executions, extensions, function(err, result) {
  console.log(err, result);
});
```
👍  
properties (23)
authorsn0n
permlinkre-mahdiyari-qvj5w6
categoryhive-139531
json_metadata{"tags":["hive-139531"],"app":"peakd/2021.06.4"}
created2021-06-30 19:52:57
last_update2021-06-30 19:52:57
depth1
children1
last_payout2021-07-07 19:52:57
cashout_time1969-12-31 23:59:59
total_payout_value0.146 HBD
curator_payout_value0.146 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length252
author_reputation25,325,379,859,400
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,642,155
net_rshares588,066,087,925
author_curate_reward""
vote details (1)
@mahdiyari · (edited)
$0.08
And:
```
hive.broadcast.collateralizedConvert(wif, owner, requestid, amount, function(err, result) {
  console.log(err, result);
});
```
and + new parameter for updateProposal
👍  
properties (23)
authormahdiyari
permlinkqvj641
categoryhive-139531
json_metadata{"app":"hiveblog/0.1"}
created2021-06-30 19:57:39
last_update2021-06-30 19:59:12
depth2
children0
last_payout2021-07-07 19:57:39
cashout_time1969-12-31 23:59:59
total_payout_value0.042 HBD
curator_payout_value0.042 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length175
author_reputation199,858,009,060,549
root_title"How to update your JS apps after HF25 | hive-js, hive-tx, dhive"
beneficiaries[]
max_accepted_payout1,000,000.000 HBD
percent_hbd10,000
post_id104,642,219
net_rshares171,084,322,393
author_curate_reward""
vote details (1)