Skip to content

Releases: napi-rs/wasm-tools

v1.0.1

10 Aug 08:49
v1.0.1
ca65faa

Choose a tag to compare

What's Changed

  • chore: bump up @napi-rs/wasm-runtime version to v1 by @renovate[bot] in #80
  • chore: bump up @oxc-node/core version to ^0.0.30 by @renovate[bot] in #83
  • ci: replace unmaintained goto-bus-stop/setup-zig with mlugg/setup-zig action by @Copilot in #84
  • chore: bump up pnpm to v10.14.0 by @renovate[bot] in #85
  • chore: bump up actions/download-artifact action to v5 by @renovate[bot] in #86
  • chore: bump up @oxc-node/core version to ^0.0.32 by @renovate[bot] in #87
  • chore: update deps by @Brooooooklyn in #88

New Contributors

  • @Copilot made their first contribution in #84

Full Changelog: v1.0.0...v1.0.1

v1.0.0

23 Jul 07:55
v1.0.0
7d6ac5e

Choose a tag to compare

What's Changed

  • chore: bump up pnpm to v10.6.3 by @renovate[bot] in #59
  • chore: bump up oxlint version to ^0.16.0 by @renovate[bot] in #60
  • chore: bump up pnpm to v10.6.4 by @renovate[bot] in #61
  • chore: bump up pnpm to v10.6.5 by @renovate[bot] in #62
  • chore: bump up pnpm/action-setup action to v4 by @renovate[bot] in #63
  • chore: bump up pnpm to v10.7.0 by @renovate[bot] in #64
  • chore: bump up pnpm to v10.7.1 by @renovate[bot] in #65
  • chore: bump up pnpm to v10.8.0 by @renovate[bot] in #66
  • chore: bump up pnpm to v10.8.1 by @renovate[bot] in #67
  • chore: bump up pnpm to v10.10.0 by @renovate[bot] in #68
  • chore: bump up npm-run-all2 version to v8 by @renovate[bot] in #69
  • chore: bump up lint-staged version to v16 by @renovate[bot] in #70
  • chore: bump up pnpm to v10.11.0 by @renovate[bot] in #71
  • chore: bump up all non-major dependencies by @renovate[bot] in #72
  • chore: bump up pnpm to v10.12.1 by @renovate[bot] in #73
  • chore: bump up oxlint version to v1 by @renovate[bot] in #74
  • chore: bump up pnpm to v10.12.2 by @renovate[bot] in #75
  • chore: bump up pnpm to v10.12.3 by @renovate[bot] in #76
  • chore: bump up pnpm to v10.12.4 by @renovate[bot] in #77
  • chore: bump up @tybys/wasm-util version to ^0.10.0 by @renovate[bot] in #78
  • chore: bump up pnpm to v10.13.1 by @renovate[bot] in #79
  • feat: upgrade to NAPI-RS 3.0 stable by @Brooooooklyn in #82
  • chore: bump up cross-platform-actions/action action to v0.29.0 by @renovate[bot] in #81

Full Changelog: v0.0.3...v1.0.0

v0.0.3

13 Mar 06:44
v0.0.3
a2340a0

Choose a tag to compare

0.0.3

v0.0.2

07 May 11:02
v0.0.2
e933904

Choose a tag to compare

0.0.2

v0.0.1

15 Apr 15:16
v0.0.1
728330c

Choose a tag to compare

@napi-rs/wasm-tools

Usage:

// Generate dwarf info and emit wasm

import { join } from 'node:path'
import { readFile, writeFile } from 'node:fs/promises'
import { fileURLToPath } from 'node:url'

import { ModuleConfig } from '@napi-rs/wasm-tools'

const __dirname = join(fileURLToPath(import.meta.url), '..')

const wasm = await readFile(join(__dirname, 'panic.wasm32-wasi.wasm'))

const binary = new ModuleConfig()
  .generateDwarf(true)
  .generateNameSection(true)
  .generateProducersSection(true)
  .preserveCodeTransform(true)
  .parse(wasm)
  .emitWasm(true)

await writeFile(join(__dirname, 'panic.wasm32-wasi.wasm'), binary)