happy-sql 2.0.3 → 2.0.4

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 CHANGED
@@ -1,3 +1,8 @@
1
+ 2026.08.20, v2.0.4
2
+
3
+ fix:
4
+ - 743d5c6 happy-sql: ";"
5
+
1
6
  2026.08.20, v2.0.3
2
7
 
3
8
  feature:
@@ -0,0 +1,3 @@
1
+ SELECT id
2
+ FROM Users
3
+ JOIN Orders ON Orders.user_id = Users.id
@@ -0,0 +1 @@
1
+ [select(id, from(Users, join(Orders, on(Orders.user_id === Users.id))))];
@@ -1,3 +1,3 @@
1
1
  -- @select
2
2
  SELECT *
3
- FROM users
3
+ FROM users;
@@ -1,8 +1,8 @@
1
1
  -- @fix
2
2
  UPDATE Identifier
3
3
  SET name = 'isNaN'
4
- WHERE id = :nan_id
4
+ WHERE id = :nan_id;
5
5
 
6
6
  UPDATE BinaryExpression
7
7
  SET operator = '==='
8
- WHERE id = :id
8
+ WHERE id = :id;
@@ -8,13 +8,12 @@ export const section = (path, {write, traverse}) => {
8
8
 
9
9
  for (const [i, element] of elements.entries()) {
10
10
  traverse(element);
11
-
12
- if (i < lastIndex)
13
- write('\n\n');
11
+ write(i < lastIndex ? ';\n\n' : ';');
14
12
  }
15
13
 
16
14
  return;
17
15
  }
18
16
 
19
17
  traverse(stmt);
18
+ write(';');
20
19
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "happy-sql",
3
- "version": "2.0.3",
3
+ "version": "2.0.4",
4
4
  "type": "module",
5
5
  "description": "sql to js ast parser and printer",
6
6
  "exports": {