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.
- package/README.md +16 -1
- 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.
|
|
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
|
[](https://www.npmjs.com/package/vastlint)
|
|
6
6
|
[](../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
|