@gjsify/oxfmt-native 0.26.1 → 0.27.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/package.json +12 -7
- package/prebuilds/darwin-arm64/GjsifyOxfmt-1.0.gir +0 -65
- package/prebuilds/darwin-arm64/GjsifyOxfmt-1.0.typelib +0 -0
- package/prebuilds/darwin-arm64/libgjsify_oxfmt.dylib +0 -0
- package/prebuilds/darwin-arm64/libgjsifyoxfmt.dylib +0 -0
- package/prebuilds/linux-arm64/GjsifyOxfmt-1.0.gir +0 -65
- package/prebuilds/linux-arm64/GjsifyOxfmt-1.0.typelib +0 -0
- package/prebuilds/linux-arm64/libgjsify_oxfmt.so +0 -0
- package/prebuilds/linux-arm64/libgjsifyoxfmt.so +0 -0
- package/prebuilds/linux-x64/GjsifyOxfmt-1.0.gir +0 -65
- package/prebuilds/linux-x64/GjsifyOxfmt-1.0.typelib +0 -0
- package/prebuilds/linux-x64/libgjsify_oxfmt.so +0 -0
- package/prebuilds/linux-x64/libgjsifyoxfmt.so +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@gjsify/oxfmt-native",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.27.0",
|
|
4
4
|
"description": "Vala/GObject + Rust cdylib bridge to oxc's formatter (oxfmt) for GJS. Formats JavaScript/TypeScript/JSX under GJS without a Node runtime — the Node-free counterpart to the npm `oxfmt` native napi binary, backing `gjsify format` under GJS. Wraps oxc_formatter (Prettier-compatible) via a single-shot FFI; the embedded CSS/HTML/Markdown ExternalFormatter (Prettier-NAPI) is out of scope.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/esm/index.js",
|
|
@@ -14,7 +14,6 @@
|
|
|
14
14
|
},
|
|
15
15
|
"files": [
|
|
16
16
|
"lib",
|
|
17
|
-
"prebuilds",
|
|
18
17
|
"meson.build",
|
|
19
18
|
"src/rust",
|
|
20
19
|
"src/vala"
|
|
@@ -23,9 +22,9 @@
|
|
|
23
22
|
"platforms": [
|
|
24
23
|
"linux-x64",
|
|
25
24
|
"linux-arm64",
|
|
26
|
-
"darwin-arm64"
|
|
25
|
+
"darwin-arm64",
|
|
26
|
+
"darwin-x64"
|
|
27
27
|
],
|
|
28
|
-
"prebuilds": "prebuilds",
|
|
29
28
|
"refsLockstep": {
|
|
30
29
|
"refs/oxc": {
|
|
31
30
|
"npm": "oxfmt",
|
|
@@ -41,7 +40,7 @@
|
|
|
41
40
|
"tier": 1
|
|
42
41
|
},
|
|
43
42
|
"scripts": {
|
|
44
|
-
"clear": "
|
|
43
|
+
"clear": "gjsify clear lib build tsconfig.tsbuildinfo tsconfig.types.tsbuildinfo",
|
|
45
44
|
"check": "gjsify tsc --noEmit",
|
|
46
45
|
"init:meson": "meson setup build .",
|
|
47
46
|
"init:meson:wipe": "gjsify run init:meson --wipe",
|
|
@@ -68,7 +67,7 @@
|
|
|
68
67
|
"@girs/gobject-2.0": "^4.1.0"
|
|
69
68
|
},
|
|
70
69
|
"devDependencies": {
|
|
71
|
-
"@gjsify/cli": "^0.
|
|
70
|
+
"@gjsify/cli": "^0.27.0",
|
|
72
71
|
"@types/node": "^25.9.2",
|
|
73
72
|
"typescript": "^6.0.3"
|
|
74
73
|
},
|
|
@@ -82,5 +81,11 @@
|
|
|
82
81
|
"bugs": {
|
|
83
82
|
"url": "https://github.com/gjsify/gjsify/issues"
|
|
84
83
|
},
|
|
85
|
-
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/infra/oxfmt-native#readme"
|
|
84
|
+
"homepage": "https://github.com/gjsify/gjsify/tree/main/packages/infra/oxfmt-native#readme",
|
|
85
|
+
"optionalDependencies": {
|
|
86
|
+
"@gjsify/oxfmt-native-darwin-arm64": "0.27.0",
|
|
87
|
+
"@gjsify/oxfmt-native-darwin-x64": "0.27.0",
|
|
88
|
+
"@gjsify/oxfmt-native-linux-arm64": "0.27.0",
|
|
89
|
+
"@gjsify/oxfmt-native-linux-x64": "0.27.0"
|
|
90
|
+
}
|
|
86
91
|
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<!-- GjsifyOxfmt-1.0.gir generated by valac 0.56.19, do not modify. -->
|
|
3
|
-
<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:doc="http://www.gtk.org/introspection/doc/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
|
|
4
|
-
<include name="GObject" version="2.0"/>
|
|
5
|
-
<include name="GLib" version="2.0"/>
|
|
6
|
-
<package name="gjsifyoxfmt"/>
|
|
7
|
-
<c:include name="gjsify-oxfmt-glue.h"/>
|
|
8
|
-
<c:include name="gjsifyoxfmt.h"/>
|
|
9
|
-
<doc:format name="unknown"/>
|
|
10
|
-
<namespace name="GjsifyOxfmt" version="1.0" shared-library="libgjsifyoxfmt.dylib" c:prefix="GjsifyOxfmt" c:identifier-prefixes="GjsifyOxfmt" c:symbol-prefixes="gjsify_oxfmt">
|
|
11
|
-
<class name="Formatter" c:type="GjsifyOxfmtFormatter" c:symbol-prefix="formatter" glib:type-name="GjsifyOxfmtFormatter" glib:get-type="gjsify_oxfmt_formatter_get_type" glib:type-struct="FormatterClass" parent="GObject.Object">
|
|
12
|
-
<field name="parent_instance" readable="0" private="1">
|
|
13
|
-
<type name="GObject.Object" c:type="GObject"/>
|
|
14
|
-
</field>
|
|
15
|
-
<field name="priv" readable="0" private="1">
|
|
16
|
-
<type name="FormatterPrivate" c:type="GjsifyOxfmtFormatterPrivate*"/>
|
|
17
|
-
</field>
|
|
18
|
-
<method name="format" c:identifier="gjsify_oxfmt_formatter_format" throws="1">
|
|
19
|
-
<return-value transfer-ownership="full">
|
|
20
|
-
<type name="GLib.Bytes" c:type="GBytes*"/>
|
|
21
|
-
</return-value>
|
|
22
|
-
<parameters>
|
|
23
|
-
<instance-parameter name="self" transfer-ownership="none">
|
|
24
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
25
|
-
</instance-parameter>
|
|
26
|
-
<parameter name="filename" transfer-ownership="none" nullable="1">
|
|
27
|
-
<type name="utf8" c:type="const gchar*"/>
|
|
28
|
-
</parameter>
|
|
29
|
-
<parameter name="code" transfer-ownership="none">
|
|
30
|
-
<type name="GLib.Bytes" c:type="GBytes*"/>
|
|
31
|
-
</parameter>
|
|
32
|
-
</parameters>
|
|
33
|
-
</method>
|
|
34
|
-
<method name="run" c:identifier="gjsify_oxfmt_formatter_run">
|
|
35
|
-
<return-value transfer-ownership="full">
|
|
36
|
-
<type name="gint" c:type="gint"/>
|
|
37
|
-
</return-value>
|
|
38
|
-
<parameters>
|
|
39
|
-
<instance-parameter name="self" transfer-ownership="none">
|
|
40
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
41
|
-
</instance-parameter>
|
|
42
|
-
<parameter name="args" transfer-ownership="none">
|
|
43
|
-
<array length="1" c:type="gchar**">
|
|
44
|
-
<type name="utf8" c:type="gchar*"/>
|
|
45
|
-
</array>
|
|
46
|
-
</parameter>
|
|
47
|
-
<parameter name="args_length1" transfer-ownership="none">
|
|
48
|
-
<type name="gint" c:type="gint"/>
|
|
49
|
-
</parameter>
|
|
50
|
-
</parameters>
|
|
51
|
-
</method>
|
|
52
|
-
<constructor name="new" c:identifier="gjsify_oxfmt_formatter_new">
|
|
53
|
-
<return-value transfer-ownership="full">
|
|
54
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
55
|
-
</return-value>
|
|
56
|
-
</constructor>
|
|
57
|
-
</class>
|
|
58
|
-
<record name="FormatterClass" c:type="GjsifyOxfmtFormatterClass" glib:is-gtype-struct-for="Formatter">
|
|
59
|
-
<field name="parent_class" readable="0" private="1">
|
|
60
|
-
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
|
61
|
-
</field>
|
|
62
|
-
</record>
|
|
63
|
-
<record name="FormatterPrivate" c:type="GjsifyOxfmtFormatterPrivate" disguised="1"/>
|
|
64
|
-
</namespace>
|
|
65
|
-
</repository>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<!-- GjsifyOxfmt-1.0.gir generated by valac 0.56.19, do not modify. -->
|
|
3
|
-
<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:doc="http://www.gtk.org/introspection/doc/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
|
|
4
|
-
<include name="GObject" version="2.0"/>
|
|
5
|
-
<include name="GLib" version="2.0"/>
|
|
6
|
-
<package name="gjsifyoxfmt"/>
|
|
7
|
-
<c:include name="gjsify-oxfmt-glue.h"/>
|
|
8
|
-
<c:include name="gjsifyoxfmt.h"/>
|
|
9
|
-
<doc:format name="unknown"/>
|
|
10
|
-
<namespace name="GjsifyOxfmt" version="1.0" shared-library="libgjsifyoxfmt.so" c:prefix="GjsifyOxfmt" c:identifier-prefixes="GjsifyOxfmt" c:symbol-prefixes="gjsify_oxfmt">
|
|
11
|
-
<class name="Formatter" c:type="GjsifyOxfmtFormatter" c:symbol-prefix="formatter" glib:type-name="GjsifyOxfmtFormatter" glib:get-type="gjsify_oxfmt_formatter_get_type" glib:type-struct="FormatterClass" parent="GObject.Object">
|
|
12
|
-
<field name="parent_instance" readable="0" private="1">
|
|
13
|
-
<type name="GObject.Object" c:type="GObject"/>
|
|
14
|
-
</field>
|
|
15
|
-
<field name="priv" readable="0" private="1">
|
|
16
|
-
<type name="FormatterPrivate" c:type="GjsifyOxfmtFormatterPrivate*"/>
|
|
17
|
-
</field>
|
|
18
|
-
<method name="format" c:identifier="gjsify_oxfmt_formatter_format" throws="1">
|
|
19
|
-
<return-value transfer-ownership="full">
|
|
20
|
-
<type name="GLib.Bytes" c:type="GBytes*"/>
|
|
21
|
-
</return-value>
|
|
22
|
-
<parameters>
|
|
23
|
-
<instance-parameter name="self" transfer-ownership="none">
|
|
24
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
25
|
-
</instance-parameter>
|
|
26
|
-
<parameter name="filename" transfer-ownership="none" nullable="1">
|
|
27
|
-
<type name="utf8" c:type="const gchar*"/>
|
|
28
|
-
</parameter>
|
|
29
|
-
<parameter name="code" transfer-ownership="none">
|
|
30
|
-
<type name="GLib.Bytes" c:type="GBytes*"/>
|
|
31
|
-
</parameter>
|
|
32
|
-
</parameters>
|
|
33
|
-
</method>
|
|
34
|
-
<method name="run" c:identifier="gjsify_oxfmt_formatter_run">
|
|
35
|
-
<return-value transfer-ownership="full">
|
|
36
|
-
<type name="gint" c:type="gint"/>
|
|
37
|
-
</return-value>
|
|
38
|
-
<parameters>
|
|
39
|
-
<instance-parameter name="self" transfer-ownership="none">
|
|
40
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
41
|
-
</instance-parameter>
|
|
42
|
-
<parameter name="args" transfer-ownership="none">
|
|
43
|
-
<array length="1" c:type="gchar**">
|
|
44
|
-
<type name="utf8" c:type="gchar*"/>
|
|
45
|
-
</array>
|
|
46
|
-
</parameter>
|
|
47
|
-
<parameter name="args_length1" transfer-ownership="none">
|
|
48
|
-
<type name="gint" c:type="gint"/>
|
|
49
|
-
</parameter>
|
|
50
|
-
</parameters>
|
|
51
|
-
</method>
|
|
52
|
-
<constructor name="new" c:identifier="gjsify_oxfmt_formatter_new">
|
|
53
|
-
<return-value transfer-ownership="full">
|
|
54
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
55
|
-
</return-value>
|
|
56
|
-
</constructor>
|
|
57
|
-
</class>
|
|
58
|
-
<record name="FormatterClass" c:type="GjsifyOxfmtFormatterClass" glib:is-gtype-struct-for="Formatter">
|
|
59
|
-
<field name="parent_class" readable="0" private="1">
|
|
60
|
-
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
|
61
|
-
</field>
|
|
62
|
-
</record>
|
|
63
|
-
<record name="FormatterPrivate" c:type="GjsifyOxfmtFormatterPrivate" disguised="1"/>
|
|
64
|
-
</namespace>
|
|
65
|
-
</repository>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0"?>
|
|
2
|
-
<!-- GjsifyOxfmt-1.0.gir generated by valac 0.56.19, do not modify. -->
|
|
3
|
-
<repository version="1.2" xmlns="http://www.gtk.org/introspection/core/1.0" xmlns:c="http://www.gtk.org/introspection/c/1.0" xmlns:doc="http://www.gtk.org/introspection/doc/1.0" xmlns:glib="http://www.gtk.org/introspection/glib/1.0">
|
|
4
|
-
<include name="GObject" version="2.0"/>
|
|
5
|
-
<include name="GLib" version="2.0"/>
|
|
6
|
-
<package name="gjsifyoxfmt"/>
|
|
7
|
-
<c:include name="gjsify-oxfmt-glue.h"/>
|
|
8
|
-
<c:include name="gjsifyoxfmt.h"/>
|
|
9
|
-
<doc:format name="unknown"/>
|
|
10
|
-
<namespace name="GjsifyOxfmt" version="1.0" shared-library="libgjsifyoxfmt.so" c:prefix="GjsifyOxfmt" c:identifier-prefixes="GjsifyOxfmt" c:symbol-prefixes="gjsify_oxfmt">
|
|
11
|
-
<class name="Formatter" c:type="GjsifyOxfmtFormatter" c:symbol-prefix="formatter" glib:type-name="GjsifyOxfmtFormatter" glib:get-type="gjsify_oxfmt_formatter_get_type" glib:type-struct="FormatterClass" parent="GObject.Object">
|
|
12
|
-
<field name="parent_instance" readable="0" private="1">
|
|
13
|
-
<type name="GObject.Object" c:type="GObject"/>
|
|
14
|
-
</field>
|
|
15
|
-
<field name="priv" readable="0" private="1">
|
|
16
|
-
<type name="FormatterPrivate" c:type="GjsifyOxfmtFormatterPrivate*"/>
|
|
17
|
-
</field>
|
|
18
|
-
<method name="format" c:identifier="gjsify_oxfmt_formatter_format" throws="1">
|
|
19
|
-
<return-value transfer-ownership="full">
|
|
20
|
-
<type name="GLib.Bytes" c:type="GBytes*"/>
|
|
21
|
-
</return-value>
|
|
22
|
-
<parameters>
|
|
23
|
-
<instance-parameter name="self" transfer-ownership="none">
|
|
24
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
25
|
-
</instance-parameter>
|
|
26
|
-
<parameter name="filename" transfer-ownership="none" nullable="1">
|
|
27
|
-
<type name="utf8" c:type="const gchar*"/>
|
|
28
|
-
</parameter>
|
|
29
|
-
<parameter name="code" transfer-ownership="none">
|
|
30
|
-
<type name="GLib.Bytes" c:type="GBytes*"/>
|
|
31
|
-
</parameter>
|
|
32
|
-
</parameters>
|
|
33
|
-
</method>
|
|
34
|
-
<method name="run" c:identifier="gjsify_oxfmt_formatter_run">
|
|
35
|
-
<return-value transfer-ownership="full">
|
|
36
|
-
<type name="gint" c:type="gint"/>
|
|
37
|
-
</return-value>
|
|
38
|
-
<parameters>
|
|
39
|
-
<instance-parameter name="self" transfer-ownership="none">
|
|
40
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
41
|
-
</instance-parameter>
|
|
42
|
-
<parameter name="args" transfer-ownership="none">
|
|
43
|
-
<array length="1" c:type="gchar**">
|
|
44
|
-
<type name="utf8" c:type="gchar*"/>
|
|
45
|
-
</array>
|
|
46
|
-
</parameter>
|
|
47
|
-
<parameter name="args_length1" transfer-ownership="none">
|
|
48
|
-
<type name="gint" c:type="gint"/>
|
|
49
|
-
</parameter>
|
|
50
|
-
</parameters>
|
|
51
|
-
</method>
|
|
52
|
-
<constructor name="new" c:identifier="gjsify_oxfmt_formatter_new">
|
|
53
|
-
<return-value transfer-ownership="full">
|
|
54
|
-
<type name="GjsifyOxfmt.Formatter" c:type="GjsifyOxfmtFormatter*"/>
|
|
55
|
-
</return-value>
|
|
56
|
-
</constructor>
|
|
57
|
-
</class>
|
|
58
|
-
<record name="FormatterClass" c:type="GjsifyOxfmtFormatterClass" glib:is-gtype-struct-for="Formatter">
|
|
59
|
-
<field name="parent_class" readable="0" private="1">
|
|
60
|
-
<type name="GObject.ObjectClass" c:type="GObjectClass"/>
|
|
61
|
-
</field>
|
|
62
|
-
</record>
|
|
63
|
-
<record name="FormatterPrivate" c:type="GjsifyOxfmtFormatterPrivate" disguised="1"/>
|
|
64
|
-
</namespace>
|
|
65
|
-
</repository>
|
|
Binary file
|
|
Binary file
|
|
Binary file
|