@semaphore-protocol/group 4.13.2 → 4.14.1

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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2024 Ethereum Foundation
3
+ Copyright (c) 2025 Ethereum Foundation
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/dist/index.cjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/group
3
- * @version 4.13.2
3
+ * @version 4.14.1
4
4
  * @file A library to create and manage Semaphore groups.
5
- * @copyright Ethereum Foundation 2025
5
+ * @copyright Ethereum Foundation 2026
6
6
  * @license MIT
7
7
  * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/group}
8
8
  */
@@ -29,11 +29,6 @@ class Group {
29
29
  * @param members A list of identity commitments.
30
30
  */
31
31
  constructor(members = []) {
32
- for (const member of members) {
33
- if (member === 0n || member === "0") {
34
- throw new Error("Failed to add member: value cannot be 0");
35
- }
36
- }
37
32
  this.leanIMT = new leanImt.LeanIMT((a, b) => poseidon2.poseidon2([a, b]), members.map(BigInt));
38
33
  }
39
34
  /**
package/dist/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @module @semaphore-protocol/group
3
- * @version 4.13.2
3
+ * @version 4.14.1
4
4
  * @file A library to create and manage Semaphore groups.
5
- * @copyright Ethereum Foundation 2025
5
+ * @copyright Ethereum Foundation 2026
6
6
  * @license MIT
7
7
  * @see [Github]{@link https://github.com/semaphore-protocol/semaphore/tree/main/packages/group}
8
8
  */
@@ -27,11 +27,6 @@ class Group {
27
27
  * @param members A list of identity commitments.
28
28
  */
29
29
  constructor(members = []) {
30
- for (const member of members) {
31
- if (member === 0n || member === "0") {
32
- throw new Error("Failed to add member: value cannot be 0");
33
- }
34
- }
35
30
  this.leanIMT = new LeanIMT((a, b) => poseidon2([a, b]), members.map(BigInt));
36
31
  }
37
32
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@semaphore-protocol/group",
3
- "version": "4.13.2",
3
+ "version": "4.14.1",
4
4
  "description": "A library to create and manage Semaphore groups.",
5
5
  "type": "module",
6
6
  "license": "MIT",
package/src/index.ts CHANGED
@@ -23,12 +23,6 @@ export class Group {
23
23
  * @param members A list of identity commitments.
24
24
  */
25
25
  constructor(members: BigNumber[] = []) {
26
- for (const member of members) {
27
- if (member === 0n || member === "0") {
28
- throw new Error("Failed to add member: value cannot be 0")
29
- }
30
- }
31
-
32
26
  this.leanIMT = new LeanIMT((a, b) => poseidon2([a, b]), members.map(BigInt))
33
27
  }
34
28