@phala/fn 0.2.3 release: Introducing standalone mode
2023-11-14
The @phala/fn
0.2.3 has been released. The major changes in the latest version include:
- Update to latest beta version of @phala/sdk 0.5.5-nightly-20231111
- Added a new command line argument,
--pruntimeURL
, which allows you to select the PRuntime endpoint to connect to.
- Added standalone mode, which means you can use it with
npx
orbunx
to build your JavaScript/TypeScript.
Introducing to standalone mode
This improvement allows you to create a JavaScript/TypeScript file and easily generate the final artifact in the dist
folder. Simply run npx @phala/fn@latest build my_phat_contract.ts
, and the artifact will be generated in the same location as your my_phat_contract.ts
. It reduce the steps you give a try for Phat Contract.
If you have already installed Bun, you can also give bunx
a try: bunx @phala/fn build my_phat_contract.ts
. It works!