@lumis-sh/wasm-bundle-system 0.0.2

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/CHANGELOG.md ADDED
@@ -0,0 +1,17 @@
1
+ # Changelog
2
+
3
+ ## [0.0.2](https://github.com/leandrocp/lumis/compare/wasm-bundle-system@v0.0.1...wasm-bundle-system@v0.0.2) (2026-03-31)
4
+
5
+
6
+ ### Features
7
+
8
+ * add zsh and llvm languages ([#510](https://github.com/leandrocp/lumis/issues/510)) ([fe8bb2c](https://github.com/leandrocp/lumis/commit/fe8bb2ce76634b75ac5624166216112aba56915a))
9
+ * introduce lang bundles ([#484](https://github.com/leandrocp/lumis/issues/484)) ([5a30160](https://github.com/leandrocp/lumis/commit/5a30160531fb2509d705fa14af7b10a9343de2c0))
10
+ * sync vendored with nvim-treesitter ([#112](https://github.com/leandrocp/lumis/issues/112)) ([fd94ea2](https://github.com/leandrocp/lumis/commit/fd94ea2852f2ac4bf176913d054e35c3e401f71a))
11
+
12
+
13
+ ### Bug Fixes
14
+
15
+ * add jinja_inline and remove disabled wasm parsers ([#508](https://github.com/leandrocp/lumis/issues/508)) ([4cb4527](https://github.com/leandrocp/lumis/commit/4cb45279783fd0eba25016c219a3a1feb8b09ac1))
16
+
17
+ ## Changelog
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # @lumis-sh/wasm-bundle-system
2
+
3
+ Static WASM imports for the system Lumis bundle.
4
+
5
+ ## Install
6
+
7
+ ```sh
8
+ npm install @lumis-sh/lumis @lumis-sh/wasm-bundle-system
9
+ ```
10
+
11
+ ## Node.js
12
+
13
+ Install this package alongside `@lumis-sh/lumis/bundles/system` and Lumis will resolve the local parser packages automatically.
14
+
15
+ ## Browser bundlers
16
+
17
+ ```ts
18
+ import { createHighlighter, withWasmBundle } from '@lumis-sh/lumis'
19
+ import { bundledLanguages } from '@lumis-sh/lumis/bundles/system'
20
+ import { bundledWasms } from '@lumis-sh/wasm-bundle-system'
21
+
22
+ const languages = withWasmBundle(bundledLanguages, bundledWasms)
23
+ const highlighter = await createHighlighter({ languages: [languages] })
24
+ ```
package/index.d.ts ADDED
@@ -0,0 +1,4 @@
1
+ import type { RuntimeWasmBundle } from '@lumis-sh/lumis'
2
+
3
+ export declare const bundledWasms: RuntimeWasmBundle
4
+ export default bundledWasms
package/index.js ADDED
@@ -0,0 +1,40 @@
1
+ import wasmAsm from "@lumis-sh/wasm-asm"
2
+ import wasmBash from "@lumis-sh/wasm-bash"
3
+ import wasmC from "@lumis-sh/wasm-c"
4
+ import wasmCmake from "@lumis-sh/wasm-cmake"
5
+ import wasmComment from "@lumis-sh/wasm-comment"
6
+ import wasmCpp from "@lumis-sh/wasm-cpp"
7
+ import wasmDiff from "@lumis-sh/wasm-diff"
8
+ import wasmGo from "@lumis-sh/wasm-go"
9
+ import wasmJson from "@lumis-sh/wasm-json"
10
+ import wasmLlvm from "@lumis-sh/wasm-llvm"
11
+ import wasmMake from "@lumis-sh/wasm-make"
12
+ import wasmRegex from "@lumis-sh/wasm-regex"
13
+ import wasmRust from "@lumis-sh/wasm-rust"
14
+ import wasmToml from "@lumis-sh/wasm-toml"
15
+ import wasmWat from "@lumis-sh/wasm-wat"
16
+ import wasmYaml from "@lumis-sh/wasm-yaml"
17
+ import wasmZig from "@lumis-sh/wasm-zig"
18
+
19
+ export const bundledWasms = {
20
+ "asm": wasmAsm,
21
+ "bash": wasmBash,
22
+ "c": wasmC,
23
+ "cmake": wasmCmake,
24
+ "comment": wasmComment,
25
+ "cpp": wasmCpp,
26
+ "diff": wasmDiff,
27
+ "go": wasmGo,
28
+ "json": wasmJson,
29
+ "llvm": wasmLlvm,
30
+ "make": wasmMake,
31
+ "regex": wasmRegex,
32
+ "rust": wasmRust,
33
+ "toml": wasmToml,
34
+ "wat": wasmWat,
35
+ "yaml": wasmYaml,
36
+ "zig": wasmZig,
37
+ "plaintext": wasmDiff,
38
+ }
39
+
40
+ export default bundledWasms
package/package.json ADDED
@@ -0,0 +1,60 @@
1
+ {
2
+ "name": "@lumis-sh/wasm-bundle-system",
3
+ "version": "0.0.2",
4
+ "description": "Preset WASM parser bundle for the system Lumis language bundle",
5
+ "author": "Leandro Pereira",
6
+ "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/leandrocp/lumis.git",
10
+ "directory": "packages/javascript/wasm-bundle-system"
11
+ },
12
+ "bugs": "https://github.com/leandrocp/lumis/issues",
13
+ "homepage": "https://lumis.sh",
14
+ "keywords": [
15
+ "lumis-sh",
16
+ "tree-sitter",
17
+ "wasm",
18
+ "bundle"
19
+ ],
20
+ "sideEffects": false,
21
+ "type": "module",
22
+ "exports": {
23
+ ".": {
24
+ "types": "./index.d.ts",
25
+ "import": "./index.js",
26
+ "default": "./index.js"
27
+ }
28
+ },
29
+ "files": [
30
+ "index.js",
31
+ "index.d.ts",
32
+ "README.md",
33
+ "CHANGELOG.md"
34
+ ],
35
+ "publishConfig": {
36
+ "access": "public"
37
+ },
38
+ "peerDependencies": {
39
+ "@lumis-sh/lumis": "^0.0.1"
40
+ },
41
+ "dependencies": {
42
+ "@lumis-sh/wasm-asm": "^0.26.0",
43
+ "@lumis-sh/wasm-bash": "^0.26.0",
44
+ "@lumis-sh/wasm-c": "^0.26.0",
45
+ "@lumis-sh/wasm-cmake": "^0.26.0",
46
+ "@lumis-sh/wasm-comment": "^0.26.0",
47
+ "@lumis-sh/wasm-cpp": "^0.26.0",
48
+ "@lumis-sh/wasm-diff": "^0.26.0",
49
+ "@lumis-sh/wasm-go": "^0.26.0",
50
+ "@lumis-sh/wasm-json": "^0.26.0",
51
+ "@lumis-sh/wasm-llvm": "^0.26.0",
52
+ "@lumis-sh/wasm-make": "^0.26.0",
53
+ "@lumis-sh/wasm-regex": "^0.26.0",
54
+ "@lumis-sh/wasm-rust": "^0.26.0",
55
+ "@lumis-sh/wasm-toml": "^0.26.0",
56
+ "@lumis-sh/wasm-wat": "^0.26.0",
57
+ "@lumis-sh/wasm-yaml": "^0.26.0",
58
+ "@lumis-sh/wasm-zig": "^0.26.0"
59
+ }
60
+ }