Skip to content

Commit

Permalink
fix(deps)!: Update avm to 0.62 (#438)
Browse files Browse the repository at this point in the history
* Update avm

* Update nox image

* Fix lint

* Bump marine

* fix lint

* update tag
  • Loading branch information
Akim authored Feb 23, 2024
1 parent 3b1371f commit 702ad60
Show file tree
Hide file tree
Showing 12 changed files with 48 additions and 103 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ jobs:
uses: fluencelabs/aqua/.github/workflows/tests.yml@main
with:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
nox-image: "docker.fluence.dev/nox:feat-VM-407-msgpack-particle"
nox-image: "docker.fluence.dev/nox:renovate-avm_4905_1"
flox:
needs:
- js-client

uses: fluencelabs/flox/.github/workflows/tests.yml@main
with:
js-client-snapshots: "${{ needs.js-client.outputs.js-client-snapshots }}"
nox-image: "docker.fluence.dev/nox:feat-VM-407-msgpack-particle"
nox-image: "docker.fluence.dev/nox:renovate-avm_4905_1"
2 changes: 1 addition & 1 deletion .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ jobs:
uses: ./.github/workflows/tests.yml
with:
ref: ${{ github.ref }}
nox-image: "docker.fluence.dev/nox:feat-VM-407-msgpack-particle"
nox-image: "docker.fluence.dev/nox:renovate-avm_4905_1"
2 changes: 0 additions & 2 deletions packages/core/interfaces/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@
"license": "Apache-2.0",
"dependencies": {},
"devDependencies": {
"@multiformats/multiaddr": "11.3.0",
"@fluencelabs/avm": "0.59.0",
"hotscript": "1.0.13"
}
}
5 changes: 3 additions & 2 deletions packages/core/interfaces/src/future.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
* limitations under the License.
*/

import { Call, Pipe, Objects, Tuples, Unions, Fn } from "hotscript";

import {
ArrayType,
ArrowType,
Expand All @@ -25,8 +27,7 @@ import {
StructType,
TopType,
UnlabeledProductType,
} from "@fluencelabs/interfaces";
import { Call, Pipe, Objects, Tuples, Unions, Fn } from "hotscript";
} from "./compilerSupport/aquaTypeDefinitions.js";

// Type definitions for inferring ts types from air json definition
// In the future we may remove string type declaration and move to type inference.
Expand Down
21 changes: 0 additions & 21 deletions packages/core/interfaces/src/utils.ts

This file was deleted.

4 changes: 2 additions & 2 deletions packages/core/js-client-isomorphic/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
}
},
"dependencies": {
"@fluencelabs/avm": "0.59.0",
"@fluencelabs/marine-js": "0.8.0",
"@fluencelabs/avm": "0.62.0",
"@fluencelabs/marine-js": "0.13.0",
"@fluencelabs/marine-worker": "0.5.1",
"@fluencelabs/threads": "^2.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/core/js-client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"@chainsafe/libp2p-noise": "14.0.0",
"@chainsafe/libp2p-yamux": "6.0.1",
"@fluencelabs/avm": "0.59.0",
"@fluencelabs/avm": "0.62.0",
"@fluencelabs/interfaces": "workspace:*",
"@fluencelabs/js-client-isomorphic": "workspace:*",
"@fluencelabs/marine-worker": "0.5.1",
Expand Down
9 changes: 9 additions & 0 deletions packages/core/js-client/src/jsPeer/FluencePeer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -515,6 +515,15 @@ export abstract class FluencePeer {
item.callResults,
);

const [, , , forthParam] = args;

if (
typeof forthParam === "object" &&
"hard_limit_enabled" in forthParam
) {
forthParam["hard_limit_enabled"] = false;
}

let avmCallResult: InterpreterResult | Error;

try {
Expand Down
2 changes: 1 addition & 1 deletion packages/core/js-client/src/services/securityGuard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const allowServiceFn = (
*/
export const allowExactJsonPath = (jsonPath: string): SecurityGuard => {
return allowTetraplet((t) => {
return t.json_path === jsonPath;
return t.lens === jsonPath;
});
};

Expand Down
2 changes: 1 addition & 1 deletion packages/core/js-client/src/util/testUtils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ export const makeTestTetraplet = (
peer_pk: initPeerId,
function_name: fnName,
service_id: serviceId,
json_path: "",
lens: "",
},
],
],
Expand Down
2 changes: 1 addition & 1 deletion packages/core/marine-worker/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"vitest": "0.34.6"
},
"dependencies": {
"@fluencelabs/marine-js": "0.8.0",
"@fluencelabs/marine-js": "0.13.0",
"observable-fns": "0.6.1",
"@fluencelabs/threads": "^2.0.0"
}
Expand Down
Loading

0 comments on commit 702ad60

Please sign in to comment.