Skip to content

Commit

Permalink
Fix taco-web support for the LTS versions of NodeJs (#514)
Browse files Browse the repository at this point in the history
  • Loading branch information
piotr-roslaniec committed Jun 12, 2024
2 parents ef4c9d2 + ab45038 commit 0d25f33
Show file tree
Hide file tree
Showing 11 changed files with 12,127 additions and 9,575 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/lynx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:

- uses: pnpm/action-setup@v4
with:
version: 8.1
version: 9

- uses: actions/setup-node@v4
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ jobs:
runs-on: ${{ matrix.os }}
strategy:
matrix:
node: [ '18.x' ]
node: [ '18.x', '20.x', '22.x' ]
os: [ ubuntu-latest ]
steps:
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v4
with:
version: 8.1
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/mainnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:

- uses: pnpm/action-setup@v4
with:
version: 8.1
version: 9

- uses: actions/setup-node@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
steps:
- uses: pnpm/action-setup@v4
with:
version: 8.1
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 8.1
version: 9
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/tapir.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:

- uses: pnpm/action-setup@v4
with:
version: 8.1
version: 9

- uses: actions/setup-node@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion demos/taco-demo/src/irys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ export const getWebIrys = async (provider: providers.Provider) => {
return webIrys;
};

export const uploadData = async (webIrys: WebIrys, data: unknown): Promise<string> => {
export const uploadData = async (
webIrys: WebIrys,
data: unknown,
): Promise<string> => {
const dataToUpload = JSON.stringify(data);
const receipt = await webIrys.upload(dataToUpload);
console.log(`Data uploaded ==> https://gateway.irys.xyz/${receipt.id}`);
Expand Down
30 changes: 15 additions & 15 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,21 @@
"typescript": "^5.2.2",
"vitest": "^1.6.0"
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"typescript",
"@types/node"
]
},
"overrides": {
"@nucypher/nucypher-core": "^0.14.5",
"glob-parent@<5.1.2": ">=5.1.2",
"node-forge@<1.0.0": ">=1.0.0",
"node-forge@<1.3.0": ">=1.3.0",
"nth-check@<2.0.1": ">=2.0.1"
}
},
"bundlemon": {
"baseDir": ".",
"files": [
Expand All @@ -69,20 +84,5 @@
"path": "**/pre/build/**/*.*"
}
]
},
"pnpm": {
"peerDependencyRules": {
"ignoreMissing": [
"typescript",
"@types/node"
]
},
"overrides": {
"node-forge@<1.0.0": ">=1.0.0",
"node-forge@<1.3.0": ">=1.3.0",
"glob-parent@<5.1.2": ">=5.1.2",
"nth-check@<2.0.1": ">=2.0.1",
"@nucypher/nucypher-core": "^0.14.1"
}
}
}
2 changes: 1 addition & 1 deletion packages/shared/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nucypher/shared",
"version": "0.2.2",
"version": "0.2.3",
"keywords": [
"pre",
"taco",
Expand Down
2 changes: 1 addition & 1 deletion packages/taco/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@nucypher/taco",
"version": "0.2.6",
"version": "0.2.7",
"keywords": [
"taco",
"threshold",
Expand Down
Loading

0 comments on commit 0d25f33

Please sign in to comment.