Skip to content

Commit

Permalink
build: move poseidon-lite to dependencies (#870)
Browse files Browse the repository at this point in the history
  • Loading branch information
cedoor authored Oct 15, 2024
1 parent 48b0694 commit 29cabb4
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 127 deletions.
8 changes: 3 additions & 5 deletions packages/group/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,14 @@
"access": "public"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"poseidon-lite": "^0.2.0",
"rimraf": "^5.0.5",
"rollup": "^4.12.0",
"rollup-plugin-cleanup": "^3.2.1"
},
"dependencies": {
"@zk-kit/lean-imt": "2.1.0",
"@zk-kit/utils": "1.0.0"
"@zk-kit/lean-imt": "2.2.1",
"@zk-kit/utils": "1.2.1",
"poseidon-lite": "0.3.0"
}
}
6 changes: 1 addition & 5 deletions packages/group/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import commonjs from "@rollup/plugin-commonjs"
import { nodeResolve } from "@rollup/plugin-node-resolve"
import typescript from "@rollup/plugin-typescript"
import * as fs from "fs"
import cleanup from "rollup-plugin-cleanup"
Expand All @@ -20,13 +18,11 @@ export default {
{ file: pkg.exports.require, format: "cjs", banner, exports: "auto" },
{ file: pkg.exports.default, format: "es", banner }
],
external: Object.keys(pkg.dependencies),
external: [...Object.keys(pkg.dependencies), "poseidon-lite/poseidon2"],
plugins: [
typescript({
tsconfig: "./build.tsconfig.json"
}),
commonjs(),
nodeResolve(),
cleanup({ comments: "jsdoc" })
]
}
10 changes: 4 additions & 6 deletions packages/identity/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,15 @@
},
"devDependencies": {
"@rollup/plugin-alias": "^5.1.0",
"@rollup/plugin-commonjs": "^25.0.7",
"@rollup/plugin-node-resolve": "^15.2.3",
"@rollup/plugin-typescript": "^11.1.6",
"rimraf": "^5.0.5",
"rollup": "^4.12.0",
"rollup-plugin-cleanup": "^3.2.1"
},
"dependencies": {
"@zk-kit/baby-jubjub": "1.0.1",
"@zk-kit/eddsa-poseidon": "1.0.2",
"@zk-kit/utils": "1.2.0",
"poseidon-lite": "0.2.0"
"@zk-kit/baby-jubjub": "1.0.3",
"@zk-kit/eddsa-poseidon": "1.0.4",
"@zk-kit/utils": "1.2.1",
"poseidon-lite": "0.3.0"
}
}
11 changes: 6 additions & 5 deletions packages/identity/rollup.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import commonjs from "@rollup/plugin-commonjs"
import { nodeResolve } from "@rollup/plugin-node-resolve"
import typescript from "@rollup/plugin-typescript"
import * as fs from "fs"
import cleanup from "rollup-plugin-cleanup"
Expand All @@ -20,13 +18,16 @@ export default {
{ file: pkg.exports.require, format: "cjs", banner, exports: "auto" },
{ file: pkg.exports.default, format: "es", banner }
],
external: Object.keys(pkg.dependencies),
external: [
...Object.keys(pkg.dependencies),
"poseidon-lite/poseidon2",
"@zk-kit/utils/type-checks",
"@zk-kit/utils/conversions"
],
plugins: [
typescript({
tsconfig: "./build.tsconfig.json"
}),
commonjs(),
nodeResolve({ preferBuiltins: false }),
cleanup({ comments: "jsdoc" })
]
}
3 changes: 1 addition & 2 deletions packages/proof/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@
"@rollup/plugin-json": "^6.1.0",
"@rollup/plugin-typescript": "^11.1.6",
"@types/snarkjs": "^0",
"poseidon-lite": "^0.2.0",
"rimraf": "^5.0.5",
"rollup": "^4.12.0",
"rollup-plugin-cleanup": "^3.2.1"
Expand All @@ -54,7 +53,7 @@
"dependencies": {
"@semaphore-protocol/utils": "4.3.0",
"@zk-kit/artifacts": "1.8.0",
"@zk-kit/utils": "1.0.0",
"@zk-kit/utils": "1.2.1",
"ethers": "6.10.0",
"snarkjs": "0.7.4"
}
Expand Down
148 changes: 44 additions & 104 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4861,7 +4861,7 @@ __metadata:
languageName: node
linkType: hard

"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14, @jridgewell/sourcemap-codec@npm:^1.4.15":
"@jridgewell/sourcemap-codec@npm:^1.4.10, @jridgewell/sourcemap-codec@npm:^1.4.14":
version: 1.4.15
resolution: "@jridgewell/sourcemap-codec@npm:1.4.15"
checksum: 10/89960ac087781b961ad918978975bcdf2051cd1741880469783c42de64239703eab9db5230d776d8e6a09d73bb5e4cb964e07d93ee6e2e7aea5a7d726e865c09
Expand Down Expand Up @@ -5948,25 +5948,6 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-commonjs@npm:^25.0.7":
version: 25.0.7
resolution: "@rollup/plugin-commonjs@npm:25.0.7"
dependencies:
"@rollup/pluginutils": "npm:^5.0.1"
commondir: "npm:^1.0.1"
estree-walker: "npm:^2.0.2"
glob: "npm:^8.0.3"
is-reference: "npm:1.2.1"
magic-string: "npm:^0.30.3"
peerDependencies:
rollup: ^2.68.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
checksum: 10/89b108e245d1af6e7878ac949bfcd44e48f7d0c1eda0cb0b7e89c231ae73de455ffe2ac65eb03a398da4e8c300ce404f997fe66f8dde3d4d4794ffd2c1241fc3
languageName: node
linkType: hard

"@rollup/plugin-json@npm:^6.1.0":
version: 6.1.0
resolution: "@rollup/plugin-json@npm:6.1.0"
Expand Down Expand Up @@ -5997,25 +5978,6 @@ __metadata:
languageName: node
linkType: hard

"@rollup/plugin-node-resolve@npm:^15.2.3":
version: 15.2.3
resolution: "@rollup/plugin-node-resolve@npm:15.2.3"
dependencies:
"@rollup/pluginutils": "npm:^5.0.1"
"@types/resolve": "npm:1.20.2"
deepmerge: "npm:^4.2.2"
is-builtin-module: "npm:^3.2.1"
is-module: "npm:^1.0.0"
resolve: "npm:^1.22.1"
peerDependencies:
rollup: ^2.78.0||^3.0.0||^4.0.0
peerDependenciesMeta:
rollup:
optional: true
checksum: 10/d36a6792fbe9d8673d3a7c7dc88920be669ac54fba02ac0093d3c00fc9463fce2e87da1906a2651016742709c3d202b367fb49a62acd0d98f18409343f27b8b4
languageName: node
linkType: hard

"@rollup/plugin-replace@npm:^2.4.1":
version: 2.4.2
resolution: "@rollup/plugin-replace@npm:2.4.2"
Expand Down Expand Up @@ -6060,7 +6022,7 @@ __metadata:
languageName: node
linkType: hard

"@rollup/pluginutils@npm:^5.0.1, @rollup/pluginutils@npm:^5.1.0":
"@rollup/pluginutils@npm:^5.1.0":
version: 5.1.0
resolution: "@rollup/pluginutils@npm:5.1.0"
dependencies:
Expand Down Expand Up @@ -6383,12 +6345,10 @@ __metadata:
version: 0.0.0-use.local
resolution: "@semaphore-protocol/group@workspace:packages/group"
dependencies:
"@rollup/plugin-commonjs": "npm:^25.0.7"
"@rollup/plugin-node-resolve": "npm:^15.2.3"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@zk-kit/lean-imt": "npm:2.1.0"
"@zk-kit/utils": "npm:1.0.0"
poseidon-lite: "npm:^0.2.0"
"@zk-kit/lean-imt": "npm:2.2.1"
"@zk-kit/utils": "npm:1.2.1"
poseidon-lite: "npm:0.3.0"
rimraf: "npm:^5.0.5"
rollup: "npm:^4.12.0"
rollup-plugin-cleanup: "npm:^3.2.1"
Expand Down Expand Up @@ -6418,13 +6378,11 @@ __metadata:
resolution: "@semaphore-protocol/identity@workspace:packages/identity"
dependencies:
"@rollup/plugin-alias": "npm:^5.1.0"
"@rollup/plugin-commonjs": "npm:^25.0.7"
"@rollup/plugin-node-resolve": "npm:^15.2.3"
"@rollup/plugin-typescript": "npm:^11.1.6"
"@zk-kit/baby-jubjub": "npm:1.0.1"
"@zk-kit/eddsa-poseidon": "npm:1.0.2"
"@zk-kit/utils": "npm:1.2.0"
poseidon-lite: "npm:0.2.0"
"@zk-kit/baby-jubjub": "npm:1.0.3"
"@zk-kit/eddsa-poseidon": "npm:1.0.4"
"@zk-kit/utils": "npm:1.2.1"
poseidon-lite: "npm:0.3.0"
rimraf: "npm:^5.0.5"
rollup: "npm:^4.12.0"
rollup-plugin-cleanup: "npm:^3.2.1"
Expand All @@ -6441,9 +6399,8 @@ __metadata:
"@semaphore-protocol/utils": "npm:4.3.0"
"@types/snarkjs": "npm:^0"
"@zk-kit/artifacts": "npm:1.8.0"
"@zk-kit/utils": "npm:1.0.0"
"@zk-kit/utils": "npm:1.2.1"
ethers: "npm:6.10.0"
poseidon-lite: "npm:^0.2.0"
rimraf: "npm:^5.0.5"
rollup: "npm:^4.12.0"
rollup-plugin-cleanup: "npm:^3.2.1"
Expand Down Expand Up @@ -7840,13 +7797,6 @@ __metadata:
languageName: node
linkType: hard

"@types/resolve@npm:1.20.2":
version: 1.20.2
resolution: "@types/resolve@npm:1.20.2"
checksum: 10/1bff0d3875e7e1557b6c030c465beca9bf3b1173ebc6937cac547654b0af3bb3ff0f16470e9c4d7c5dc308ad9ac8627c38dbff24ef698b66673ff5bd4ead7f7e
languageName: node
linkType: hard

"@types/retry@npm:0.12.0":
version: 0.12.0
resolution: "@types/retry@npm:0.12.0"
Expand Down Expand Up @@ -8515,6 +8465,15 @@ __metadata:
languageName: node
linkType: hard

"@zk-kit/baby-jubjub@npm:1.0.3":
version: 1.0.3
resolution: "@zk-kit/baby-jubjub@npm:1.0.3"
dependencies:
"@zk-kit/utils": "npm:1.2.1"
checksum: 10/ae64d27f43ed53df15eebfb3468dadc202a587201a711b8716f1b855ea3b83e01e7eb5769eaa5c030979099c353396a0b1bf12dfa9c7575adce402ca64989e12
languageName: node
linkType: hard

"@zk-kit/binary-merkle-root.circom@npm:1.0.0":
version: 1.0.0
resolution: "@zk-kit/binary-merkle-root.circom@npm:1.0.0"
Expand All @@ -8524,14 +8483,15 @@ __metadata:
languageName: node
linkType: hard

"@zk-kit/eddsa-poseidon@npm:1.0.2":
version: 1.0.2
resolution: "@zk-kit/eddsa-poseidon@npm:1.0.2"
"@zk-kit/eddsa-poseidon@npm:1.0.4":
version: 1.0.4
resolution: "@zk-kit/eddsa-poseidon@npm:1.0.4"
dependencies:
"@zk-kit/baby-jubjub": "npm:1.0.1"
"@zk-kit/utils": "npm:1.0.0"
"@zk-kit/baby-jubjub": "npm:1.0.3"
"@zk-kit/utils": "npm:1.2.1"
buffer: "npm:6.0.3"
checksum: 10/4b4e984a96c5dbc95a8cf36ceb8b3712e37291c1473d01b0e22c15a33311e9cf88c86175d878dacda1852cc905cd2074aaa76defeaed33490be3964ca7a53372
poseidon-lite: "npm:0.3.0"
checksum: 10/f8c9603b8985813ad3ad09130306c529a754fa97f952a50ccf2762227c1e256cfce1c9f2b8bf5ed570d82a443a86ced56ce3f6fc30b57501c5e2a584be8f3b03
languageName: node
linkType: hard

Expand All @@ -8544,12 +8504,12 @@ __metadata:
languageName: node
linkType: hard

"@zk-kit/lean-imt@npm:2.1.0":
version: 2.1.0
resolution: "@zk-kit/lean-imt@npm:2.1.0"
"@zk-kit/lean-imt@npm:2.2.1":
version: 2.2.1
resolution: "@zk-kit/lean-imt@npm:2.2.1"
dependencies:
"@zk-kit/utils": "npm:1.2.0"
checksum: 10/897f88204c9ee548a2a977ef1efac8e4c0d2efdf284c88f759fdefd53b2c51a36b536130eb3241e68bd14e5039bcb8d6d788e7fca46fe442cfa3eceeb9c0eddf
"@zk-kit/utils": "npm:1.2.1"
checksum: 10/f57ba0ab15ff38609c352862b21023d370bd250c37c7ef15d4ee7724c8179a7fdd6647ac8a555e6cf523032d1c769fb9eae6de5364a97574224ff7de1a34f8a8
languageName: node
linkType: hard

Expand All @@ -8562,12 +8522,12 @@ __metadata:
languageName: node
linkType: hard

"@zk-kit/utils@npm:1.2.0":
version: 1.2.0
resolution: "@zk-kit/utils@npm:1.2.0"
"@zk-kit/utils@npm:1.2.1":
version: 1.2.1
resolution: "@zk-kit/utils@npm:1.2.1"
dependencies:
buffer: "npm:^6.0.3"
checksum: 10/4c0b37d64b28a6cc33c901a0c59325b1fe9c31e6519eaefe4aa6028ae9cb85e97f047976942875face030a1835d5c955ea546d7dc4fcf9d35df79192ee2502f3
checksum: 10/05cb209adadad753ae9ca9be7a1664fb4c3259a703f64e8b0af637e5fa4b2a9099c21b80a30df62cfe826b165941e1dfe0e95decde5a4eafd53328692cb0a4b8
languageName: node
linkType: hard

Expand Down Expand Up @@ -10034,7 +9994,7 @@ __metadata:
languageName: node
linkType: hard

"builtin-modules@npm:^3.1.0, builtin-modules@npm:^3.3.0":
"builtin-modules@npm:^3.1.0":
version: 3.3.0
resolution: "builtin-modules@npm:3.3.0"
checksum: 10/62e063ab40c0c1efccbfa9ffa31873e4f9d57408cb396a2649981a0ecbce56aabc93c28feaccbc5658c95aab2703ad1d11980e62ec2e5e72637404e1eb60f39e
Expand Down Expand Up @@ -16583,15 +16543,6 @@ __metadata:
languageName: node
linkType: hard

"is-builtin-module@npm:^3.2.1":
version: 3.2.1
resolution: "is-builtin-module@npm:3.2.1"
dependencies:
builtin-modules: "npm:^3.3.0"
checksum: 10/e8f0ffc19a98240bda9c7ada84d846486365af88d14616e737d280d378695c8c448a621dcafc8332dbf0fcd0a17b0763b845400709963fa9151ddffece90ae88
languageName: node
linkType: hard

"is-callable@npm:^1.1.3, is-callable@npm:^1.1.4, is-callable@npm:^1.2.7":
version: 1.2.7
resolution: "is-callable@npm:1.2.7"
Expand Down Expand Up @@ -16947,15 +16898,6 @@ __metadata:
languageName: node
linkType: hard

"is-reference@npm:1.2.1":
version: 1.2.1
resolution: "is-reference@npm:1.2.1"
dependencies:
"@types/estree": "npm:*"
checksum: 10/e7b48149f8abda2c10849ea51965904d6a714193d68942ad74e30522231045acf06cbfae5a4be2702fede5d232e61bf50b3183acdc056e6e3afe07fcf4f4b2bc
languageName: node
linkType: hard

"is-reference@npm:^3.0.0":
version: 3.0.2
resolution: "is-reference@npm:3.0.2"
Expand Down Expand Up @@ -18723,15 +18665,6 @@ __metadata:
languageName: node
linkType: hard

"magic-string@npm:^0.30.3":
version: 0.30.10
resolution: "magic-string@npm:0.30.10"
dependencies:
"@jridgewell/sourcemap-codec": "npm:^1.4.15"
checksum: 10/9f8bf6363a14c98a9d9f32ef833b194702a5c98fb931b05ac511b76f0b06fd30ed92beda6ca3261d2d52d21e39e891ef1136fbd032023f6cbb02d0b7d5767201
languageName: node
linkType: hard

"make-dir@npm:^1.0.0":
version: 1.3.0
resolution: "make-dir@npm:1.3.0"
Expand Down Expand Up @@ -21824,7 +21757,14 @@ __metadata:
languageName: node
linkType: hard

"poseidon-lite@npm:0.2.0, poseidon-lite@npm:^0.2.0":
"poseidon-lite@npm:0.3.0":
version: 0.3.0
resolution: "poseidon-lite@npm:0.3.0"
checksum: 10/1e7294f7fed91e1cdc3aee7bd0380461bfdba74ba34d100c2fc4e3d5434d09af0644f6c889b749b9511fd3867216a1aa6d575f070b716c6756b1f56c0067b71d
languageName: node
linkType: hard

"poseidon-lite@npm:^0.2.0":
version: 0.2.0
resolution: "poseidon-lite@npm:0.2.0"
checksum: 10/63c7668b480ee3d57aaca0eda7e56d563ab2bfcc40bbce0e4bccdc9deed4c0d68255749356e328b622ce8715b1f1ba689fe1a86ca78eb1056a51a18daa252ee1
Expand Down

0 comments on commit 29cabb4

Please sign in to comment.