gatsby-core-theme 44.4.20 → 44.4.22

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 CHANGED
@@ -1,3 +1,18 @@
1
+ ## [44.4.22](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.21...v44.4.22) (2025-07-24)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * removed typecasting from comment id ([7e84117](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/7e84117d6425fbfd31b0c347208805b2a02312dd))
7
+
8
+ ## [44.4.21](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.20...v44.4.21) (2025-07-23)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * edited build logic for comment id ([0153f65](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/0153f659465222210e6999ca470e1c2325e5b8ee))
14
+ * tests ([6e62b0d](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/commit/6e62b0d3fcb23f9c02f6d4fb6dee9d23bbdeb298))
15
+
1
16
  ## [44.4.20](https://gitlab.com/g2m-gentoo/team-floyd/themes/gatsby-themes/compare/v44.4.19...v44.4.20) (2025-07-23)
2
17
 
3
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gatsby-core-theme",
3
- "version": "44.4.20",
3
+ "version": "44.4.22",
4
4
  "description": "Gatsby Theme NPM Package",
5
5
  "author": "",
6
6
  "license": "ISC",
@@ -27,7 +27,7 @@ const LeaveCommentForm = ({
27
27
  const data = Object.fromEntries(formData.entries());
28
28
 
29
29
  if(data?.["g-recaptcha-response"] === '' || !data?.tnc) return;
30
- if(parentCommentID) data.parent_id = parseInt(parentCommentID);
30
+ if(parentCommentID) data.parent_id = parentCommentID;
31
31
 
32
32
  data.reference_id = page?.id;
33
33
  data.site_id = parseInt(process.env.SITE_ID);
@@ -37,7 +37,7 @@ const LeaveCommentForm = ({
37
37
 
38
38
  if(data?.post_anonymously) delete data?.name;
39
39
  if(!data?.rate) delete data?.rate;
40
-
40
+
41
41
  delete data?.post_anonymously;
42
42
  delete data?.tnc;
43
43
 
@@ -10,7 +10,8 @@ export function transformComments(comments) {
10
10
  if(comment.approved){
11
11
  transformedComments[refId].push({
12
12
  replies: transformComments(comment?.replies)[refId],
13
- comment_id: refId,
13
+ ref_id: refId,
14
+ comment_id: comment?.id,
14
15
  email: comment?.email,
15
16
  name: comment?.name,
16
17
  comment: comment?.comment,
@@ -13,7 +13,8 @@ describe('transformComments', () => {
13
13
  email: null,
14
14
  name: 'Comment Test 2',
15
15
  comment: 'Lorem ipsum dolor sit amet',
16
- comment_id: 214206,
16
+ ref_id: 214206,
17
+ comment_id: '684aa52e584a3feef503fc42',
17
18
  rate: 2,
18
19
  author_id: 229,
19
20
  votes_down: 0,