From ef650e0bdb89b3153940a588aa0aae699e9675d9 Mon Sep 17 00:00:00 2001 From: Pavel Murygin Date: Fri, 7 Oct 2022 01:15:12 +0400 Subject: [PATCH 1/3] Add v4 version of compiler support --- packages/fluence-js/package.json | 2 +- .../src/internal/compilerSupport/v4.ts | 41 +++++++++++++++++++ 2 files changed, 42 insertions(+), 1 deletion(-) create mode 100644 packages/fluence-js/src/internal/compilerSupport/v4.ts diff --git a/packages/fluence-js/package.json b/packages/fluence-js/package.json index d3ee143d4..cd99b554c 100644 --- a/packages/fluence-js/package.json +++ b/packages/fluence-js/package.json @@ -1,6 +1,6 @@ { "name": "@fluencelabs/fluence", - "version": "0.25.2", + "version": "0.25.3", "description": "TypeScript implementation of Fluence Peer", "main": "./dist/index.js", "typings": "./dist/index.d.ts", diff --git a/packages/fluence-js/src/internal/compilerSupport/v4.ts b/packages/fluence-js/src/internal/compilerSupport/v4.ts new file mode 100644 index 000000000..fbafa1242 --- /dev/null +++ b/packages/fluence-js/src/internal/compilerSupport/v4.ts @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Fluence Labs Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +export { FluencePeer } from '../FluencePeer'; +export { CallParams as CallParams$$ } from '../commonTypes'; +export { + ArrayType as ArrayType$$, + ArrowType as ArrowType$$, + ArrowWithCallbacks as ArrowWithCallbacks$$, + ArrowWithoutCallbacks as ArrowWithoutCallbacks$$, + BottomType as BottomType$$, + FnConfig as FnConfig$$, + FunctionCallConstants as FunctionCallConstants$$, + FunctionCallDef as FunctionCallDef$$, + LabeledProductType as LabeledProductType$$, + NilType as NilType$$, + NonArrowType as NonArrowType$$, + OptionType as OptionType$$, + ProductType as ProductType$$, + ScalarNames as ScalarNames$$, + ScalarType as ScalarType$$, + ServiceDef as ServiceDef$$, + StructType as StructType$$, + TopType as TopType$$, + UnlabeledProductType as UnlabeledProductType$$, +} from './v3impl/interface'; +export { callFunction as callFunction$$ } from './v3impl/callFunction'; +export { registerService as registerService$$ } from './v3impl/registerService'; From 6079f17af04700350fcdabbff0e656e02748e526 Mon Sep 17 00:00:00 2001 From: Pavel Murygin Date: Sat, 8 Oct 2022 18:22:42 +0400 Subject: [PATCH 2/3] odd space --- packages/fluence-js/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fluence-js/src/index.ts b/packages/fluence-js/src/index.ts index ee68fe8e4..cb192b495 100644 --- a/packages/fluence-js/src/index.ts +++ b/packages/fluence-js/src/index.ts @@ -27,8 +27,8 @@ export { loadWasmFromFileSystem, loadWasmFromNpmPackage, loadWasmFromServer } fr export const setLogLevel = (level: LogLevelDesc) => { log.setLevel(level); -}; - +}; + log.setDefaultLevel('WARN'); const defaultPeer = new FluencePeer(); From 418dae6ad0cd7f0d949ff2839d280b6813cdd1a1 Mon Sep 17 00:00:00 2001 From: Pavel Murygin Date: Sat, 8 Oct 2022 18:23:04 +0400 Subject: [PATCH 3/3] Revert "odd space" This reverts commit 6079f17af04700350fcdabbff0e656e02748e526. --- packages/fluence-js/src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/fluence-js/src/index.ts b/packages/fluence-js/src/index.ts index cb192b495..ee68fe8e4 100644 --- a/packages/fluence-js/src/index.ts +++ b/packages/fluence-js/src/index.ts @@ -27,8 +27,8 @@ export { loadWasmFromFileSystem, loadWasmFromNpmPackage, loadWasmFromServer } fr export const setLogLevel = (level: LogLevelDesc) => { log.setLevel(level); -}; - +}; + log.setDefaultLevel('WARN'); const defaultPeer = new FluencePeer();