borogove/sdk

created pr with 134.1 on 2026-08-12T17:34:27Z · by 3c31bc8c
cmds
checkout latest patchset:
ssh pr.pico.sh print 134 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 134.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 134

Patchset 134.1 on 2026-08-12T17:34:27Z · commit bde450d

Rename Import to Importer
Eric Roberts 2026-08-12T17:31:34Z
MacOS by default has a case insensitive file system and import.hx is something
special to Haxe so it causes problems. Renaming to Importer.hx fixes this.
Semantic diff summary
0 added, 1 modified, 0 signature changed, 0 removed across 1 analyzed file (5 files skipped: unsupported file type)
+1 -1 borogove/Importer.hx #
......@@ -7,7 +7,7 @@ import borogove.Chat;
77
88 @:expose
99 @:access(Xml)
10-class Import {
10+class Importer {
1111 private final p: Sax;
1212 private final targetAccount: Null<String>;
1313 private var sortA: String;
+1 -1 browserjs.hxml #
......@@ -16,7 +16,7 @@ borogove.Push
1616 borogove.Version
1717 borogove.persistence.Sqlite
1818 borogove.Html
19-borogove.Import
19+borogove.Importer
2020
2121 -D analyzer-optimize
2222 -D js-es=6
+1 -1 nodejs.hxml #
......@@ -18,7 +18,7 @@ borogove.Version
1818 borogove.persistence.Sqlite
1919 borogove.persistence.MediaStoreFS
2020 borogove.Html
21-borogove.Import
21+borogove.Importer
2222
2323 --macro borogove.Util.DummyRequireMacro.init()
2424 -D analyzer-optimize
+1 -1 npm/index.ts #
......@@ -31,7 +31,7 @@ export {
3131 borogove_Hash as Hash,
3232 borogove_Html as Html,
3333 borogove_Identicon as Identicon,
34- borogove_Import as Import,
34+ borogove_Importer as Importer,
3535 borogove_LinkMetadata as LinkMetadata,
3636 borogove_Notification as Notification,
3737 borogove_Member as Member,
+1 -1 test/TestAll.hx #
......@@ -21,7 +21,7 @@ class TestAll {
2121 new TestClient(),
2222 new TestEmojiUtil(),
2323 new TestHtml(),
24- new TestImport(),
24+ new TestImporter(),
2525 new TestJID(),
2626 new TestMember(),
2727 new TestMemberUpdate(),
+7 -7 test/TestImporter.hx #
......@@ -2,15 +2,15 @@ package test;
22
33 import utest.Assert;
44
5-import borogove.Import;
5+import borogove.Importer;
66 import borogove.Message;
77 import borogove.JID;
88
9-class TestImport extends utest.Test {
9+class TestImporter extends utest.Test {
1010 public function testOnAccount() {
1111 final accounts = [];
1212
13- final i = new Import(null);
13+ final i = new Importer(null);
1414 i.onAccount = (id) -> {
1515 accounts.push(id);
1616 };
......@@ -31,7 +31,7 @@ class TestImport extends utest.Test {
3131 public function testOnChannel() {
3232 final channels = [];
3333
34- final i = new Import(null);
34+ final i = new Importer(null);
3535 i.onChannel = (id) -> {
3636 channels.push(id);
3737 };
......@@ -51,7 +51,7 @@ class TestImport extends utest.Test {
5151 public function testOnMamItem() {
5252 final items = [];
5353
54- final i = new Import(null);
54+ final i = new Importer(null);
5555 i.onMessage = (source, msg) -> {
5656 items.push(msg);
5757 };
......@@ -91,7 +91,7 @@ class TestImport extends utest.Test {
9191 public function testTargetAccount() {
9292 final items = [];
9393
94- final i = new Import("me@example.com");
94+ final i = new Importer("me@example.com");
9595 i.onMessage = (source, msg) -> {
9696 items.push(msg);
9797 };
......@@ -127,7 +127,7 @@ class TestImport extends utest.Test {
127127 public function testTimestampFixing() {
128128 final items = [];
129129
130- final i = new Import(null);
130+ final i = new Importer(null);
131131 i.onMessage = (source, msg) -> {
132132 items.push(msg);
133133 };
Back to top