2.11.2 • Published 8 months ago

@hirosystems/clarinet-sdk-wasm-browser v2.11.2

Weekly downloads
-
License
GPL-3.0
Repository
github
Last release
8 months ago

Clarity SDK WASM

This package is built with wasm-pack.
It powers @hirosystems/clarinet-sdk and @hirosystems/clarinet-sdk-browser.

Release

The package is built twice with wasm-pack as it can't target node and web at the same time. The following script will build for both target, it will also rename the package name for the browser build.

node build.mjs

Once built, the packages can be released by running the following commands. Note that by default we release with the beta tag.

Contributing

Build package

Install wasm-pack.

Build for node

wasm-pack build --release --scope hirosystems --out-dir pkg-node --target nodejs

Build for the browser

wasm-pack build --release --scope hirosystems --out-dir pkg-browser --target web

Use the local version of the package

NPM overrides

In 99% of the situations, your project don't directly depend on this package, but instead on @hirosystems/clarinet-sdk or @hirosystems/clarinet-sdk-browser. If you want to use a local or a different version of @hirosystems/clarinet-sdk-wasm or @hirosystems/clarinet-sdk-wasm-browser, you can use the overrides setting in your package.json:

  "overrides": {
    "@hirosystems/clarinet-sdk": {
      "@hirosystems/clarinet-sdk-wasm": "file:/<absolue-path-to>/clarinet/components/clarinet-sdk-wasm/pkg-node"
    }
  }

Or for the browser:

  "overrides": {
    "@hirosystems/clarinet-sdk-browser": {
      "@hirosystems/clarinet-sdk-wasm-browser": "file:/<absolue-path-to>/clarinet/components/clarinet-sdk-wasm/pkg-browser"
    }
  }

NPM link

The command npm link can be useful to run the unit tests in the clarinet-sdk. See the contribution section of @hirosystems/clarinet-sdk (`../clarinet-sdk/README.md).

2.11.0

9 months ago

2.11.1

8 months ago

2.11.2

8 months ago

2.10.0

9 months ago

2.9.0

9 months ago

2.10.0-beta-1

9 months ago

2.10.0-beta-2

9 months ago

2.10.0-beta-3

9 months ago

2.10.0-beta-4

9 months ago

2.10.0-beta-5

9 months ago

2.7.0-beta12

1 year ago

2.7.0-beta11

1 year ago

2.8.0-beta7

12 months ago

2.7.0-beta16

1 year ago

2.7.0-beta15

1 year ago

2.7.0-beta9

1 year ago

2.8.0

11 months ago

2.7.0-beta17

1 year ago

2.7.0-beta8

1 year ago

2.8.0-beta1

1 year ago

2.7.0-beta7

1 year ago

2.8.0-beta2

12 months ago

2.8.0-beta5

12 months ago

2.8.0-beta6

12 months ago

2.8.0-beta3

12 months ago

2.8.0-beta4

12 months ago

2.7.0-beta10

1 year ago

2.7.0-beta6

1 year ago

2.7.0-beta5

1 year ago

2.7.0-beta4

1 year ago

2.7.0-beta3

1 year ago

2.7.0-beta2

1 year ago

2.7.0-beta1

1 year ago