Skip to content

Commit

Permalink
Merge pull request #59 from estie-inc/fix/old-browser-compatibility
Browse files Browse the repository at this point in the history
feat: old browser compatibility
  • Loading branch information
rajyan authored Feb 27, 2025
2 parents 692dd84 + 700a89a commit f5d4db0
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: npm publish

on:
workflow_dispatch:

jobs:
npm-publish:
name: Publish npm package
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- run: npm ci
- run: npm run build
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,22 @@ function writeExcel(header: string[], rows: (string | number)[][]): Buffer {
}
```

## Browser Support

This library is built with Rust v1.81.0, enabling the following WebAssembly features:
* `mutable-globals`
* `sign-ext`

Additionally, `bulk-memory` is enabled via compile options in the [package.json build command](package.json).

As a result, the library should be compatible with:
* Chrome (Edge) 75+
* Firefox 79+
* Safari 15+

For more details on WebAssembly features, visit:
[WebAssembly Features Overview](https://webassembly.org/features/)

## License

MIT
5 changes: 5 additions & 0 deletions rust/rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[toolchain]
channel = "1.81.0" # see: https://github.com/estie-inc/wasm-xlsxwriter/blob/a2696f5e9e729dfe08798309e777cc0e1f3d285b/README.md#browser-support
components = ["rustc", "cargo"]
profile = "minimal"
targets = ["wasm32-unknown-unknown"]

0 comments on commit f5d4db0

Please sign in to comment.