binja 0.3.3 → 0.4.0
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 +70 -8
- package/dist/cli.js +417 -0
- package/dist/index.d.ts +26 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +448 -3
- package/dist/lexer/hybrid.d.ts +13 -0
- package/dist/lexer/hybrid.d.ts.map +1 -0
- package/dist/lexer/index.d.ts +4 -0
- package/dist/lexer/index.d.ts.map +1 -1
- package/dist/native/index.d.ts +72 -0
- package/dist/native/index.d.ts.map +1 -0
- package/native/darwin-arm64/libbinja.dylib +0 -0
- package/native/darwin-x64/libbinja.dylib +0 -0
- package/native/linux-arm64/libbinja.so +0 -0
- package/native/linux-x64/libbinja.so +0 -0
- package/package.json +18 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "binja",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "High-performance Jinja2/Django template engine for Bun",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -15,6 +15,12 @@
|
|
|
15
15
|
"types": "./dist/index.d.ts",
|
|
16
16
|
"bun": "./dist/index.js"
|
|
17
17
|
},
|
|
18
|
+
"./native": {
|
|
19
|
+
"import": "./dist/native/index.js",
|
|
20
|
+
"require": "./dist/native/index.js",
|
|
21
|
+
"types": "./dist/native/index.d.ts",
|
|
22
|
+
"bun": "./dist/native/index.js"
|
|
23
|
+
},
|
|
18
24
|
"./debug": {
|
|
19
25
|
"import": "./dist/debug/index.js",
|
|
20
26
|
"require": "./dist/debug/index.js",
|
|
@@ -24,22 +30,25 @@
|
|
|
24
30
|
},
|
|
25
31
|
"files": [
|
|
26
32
|
"dist",
|
|
33
|
+
"native",
|
|
27
34
|
"README.md",
|
|
28
35
|
"LICENSE"
|
|
29
36
|
],
|
|
30
37
|
"scripts": {
|
|
31
38
|
"build": "bun build ./src/index.ts --outdir ./dist --target bun && bun build ./src/cli.ts --outdir ./dist --target bun && bun run build:types",
|
|
32
39
|
"build:types": "tsc --declaration --emitDeclarationOnly --outDir ./dist",
|
|
40
|
+
"build:native": "./scripts/build-native.sh",
|
|
41
|
+
"build:all": "bun run build:native && bun run build",
|
|
33
42
|
"test": "bun test",
|
|
34
43
|
"dev": "bun --watch src/index.ts",
|
|
35
44
|
"typecheck": "tsc --noEmit",
|
|
36
|
-
"prepublishOnly": "bun run build",
|
|
45
|
+
"prepublishOnly": "bun run build:all",
|
|
37
46
|
"version:patch": "npm version patch --no-git-tag-version",
|
|
38
47
|
"version:minor": "npm version minor --no-git-tag-version",
|
|
39
48
|
"version:major": "npm version major --no-git-tag-version",
|
|
40
|
-
"release:patch": "bun run version:patch && bun run build",
|
|
41
|
-
"release:minor": "bun run version:minor && bun run build",
|
|
42
|
-
"release:major": "bun run version:major && bun run build"
|
|
49
|
+
"release:patch": "bun run version:patch && bun run build:all",
|
|
50
|
+
"release:minor": "bun run version:minor && bun run build:all",
|
|
51
|
+
"release:major": "bun run version:major && bun run build:all"
|
|
43
52
|
},
|
|
44
53
|
"repository": {
|
|
45
54
|
"type": "git",
|
|
@@ -58,7 +67,10 @@
|
|
|
58
67
|
"ssr",
|
|
59
68
|
"template-engine",
|
|
60
69
|
"django-templates",
|
|
61
|
-
"typescript"
|
|
70
|
+
"typescript",
|
|
71
|
+
"zig",
|
|
72
|
+
"native",
|
|
73
|
+
"ffi"
|
|
62
74
|
],
|
|
63
75
|
"author": "egeominotti",
|
|
64
76
|
"license": "BSD-3-Clause",
|