vastlint 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +16 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # vastlint
2
2
 
3
- VAST XML validator for JavaScript and TypeScript. Checks ad tags against IAB Tech Lab VAST 2.0 through 4.3. Runs in the browser, Node.js, Deno, and edge workers. Powered by a Rust/WASM core.
3
+ VAST XML validator for JavaScript and TypeScript. Checks ad tags against IAB Tech Lab VAST 2.0 through 4.3. Powered by a Rust/WASM core.
4
4
 
5
5
  [![npm](https://img.shields.io/npm/v/vastlint)](https://www.npmjs.com/package/vastlint)
6
6
  [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](../vastlint/LICENSE)
@@ -13,6 +13,21 @@ VAST XML validator for JavaScript and TypeScript. Checks ad tags against IAB Tec
13
13
  npm install vastlint
14
14
  ```
15
15
 
16
+ ## Environment support
17
+
18
+ | Environment | Support | Notes |
19
+ |---|---|---|
20
+ | Node.js (ESM `import`) | ✅ | Tested |
21
+ | Node.js (CJS `require`) | ✅ | Tested |
22
+ | Vite | ✅ | Static `.wasm` import handled natively |
23
+ | Webpack 5 | ✅ | Requires `experiments: { asyncWebAssembly: true }` |
24
+ | Rollup | ✅ | Requires `@rollup/plugin-wasm` |
25
+ | Deno | ✅ | Supports static WASM imports natively |
26
+ | Cloudflare Workers | ⚠️ | WASM supported but requires Workers-specific binding syntax |
27
+ | `<script type="module">` (no bundler) | ❌ | Browsers cannot statically import `.wasm` — use a bundler |
28
+
29
+ This package uses the `wasm-pack --target bundler` output. It is designed for use inside a build pipeline (Vite, Webpack, Rollup, etc.) or in Node.js directly. For a raw browser drop-in without a bundler, a separate `web` target build is needed.
30
+
16
31
  ## Usage
17
32
 
18
33
  ```ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vastlint",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "VAST XML validator — checks ad tags against IAB VAST 2.0 through 4.3",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Alex Sekowski <alex@vastlint.org>",