From 233e230b2f06df686dc90e815f002efaa1ab40e2 Mon Sep 17 00:00:00 2001 From: Shivansh Vij Date: Mon, 9 Oct 2023 11:54:54 +0200 Subject: [PATCH] Bumping versions, updating changelog Signed-off-by: Shivansh Vij --- CHANGELOG.md | 25 ++++++++++++++++--- Cargo.toml | 2 +- .../golang_tests/generated/generated.go | 2 +- .../golang_tests/host_signature/host.go | 2 +- .../golang_tests/host_signature/types.go | 2 +- integration/golang_tests/signature/guest.go | 2 +- integration/golang_tests/signature/types.go | 2 +- integration/rust_tests/generated/generated.rs | 2 +- integration/rust_tests/signature/guest.rs | 2 +- integration/rust_tests/signature/types.rs | 2 +- .../typescript_tests/generated/generated.d.ts | 2 +- .../typescript_tests/generated/generated.js | 2 +- .../generated/generated.js.map | 2 +- .../typescript_tests/host_signature/index.ts | 2 +- .../typescript_tests/host_signature/types.ts | 2 +- .../typescript_tests/signature/index.ts | 2 +- .../typescript_tests/signature/types.ts | 2 +- package.json | 2 +- .../converter/converter_tests/generated.go | 2 +- signature/generator/golang/generated.txt | 2 +- signature/generator/rust/generated.txt | 2 +- signature/generator/typescript/generated.txt | 2 +- version/current_version | 2 +- 23 files changed, 44 insertions(+), 25 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c06f6e5e..37a6dd68 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,7 +7,25 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] -## [v0.4.4] - 2023-08-05 +## [v0.4.5] - 2023-10-09 + +### Features + +- Environment Variables set during the scale function build command now get passed properly to the downstream commands +- The build system now allows for wasi and wasm targets depending on the user's choice + +### Fixes + +- Using init function for Rust plugins now properly builds and does not cause builds to break +- The Rust build step now properly verifies the build target with Cargo +- The storage manager now properly generates TypeScript signatures for both the guest and the host + +### Changes + +- The TypeScript manifest generator for builds and signatures now returns a pretty-printed package.json +- The signature builder now returns the tar.gz format for TypeScript signatures as well as the raw files + +## [v0.4.4] - 2023-10-05 ### Features @@ -17,7 +35,7 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Fixed a bug where the signature generation would not generate typescript signatures -## [v0.4.3] - 2023-08-04 +## [v0.4.3] - 2023-10-04 ### Changes @@ -281,7 +299,8 @@ to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - Initial release of the Scale Runtime library. -[unreleased]: https://github.com/loopholelabs/scale/compare/v0.4.4...HEAD +[unreleased]: https://github.com/loopholelabs/scale/compare/v0.4.5...HEAD +[v0.4.5]: https://github.com/loopholelabs/scale/compare/v0.4.5 [v0.4.4]: https://github.com/loopholelabs/scale/compare/v0.4.4 [v0.4.3]: https://github.com/loopholelabs/scale/compare/v0.4.3 [v0.4.2]: https://github.com/loopholelabs/scale/compare/v0.4.2 diff --git a/Cargo.toml b/Cargo.toml index ba3e9650..98379a92 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "scale_rs" -version = "0.4.4" +version = "0.4.5" edition = "2021" description = "Scale is a framework for building high-performance plugin systems into any application, all powered by WebAssembly." homepage = "https://scale.sh" diff --git a/integration/golang_tests/generated/generated.go b/integration/golang_tests/generated/generated.go index 9f4bf6b8..ea77888b 100644 --- a/integration/golang_tests/generated/generated.go +++ b/integration/golang_tests/generated/generated.go @@ -1,4 +1,4 @@ -// Code generated by scale-signature v0.4.4, DO NOT EDIT. +// Code generated by scale-signature v0.4.5, DO NOT EDIT. // output: generated package generated diff --git a/integration/golang_tests/host_signature/host.go b/integration/golang_tests/host_signature/host.go index e925c063..1e56f80d 100644 --- a/integration/golang_tests/host_signature/host.go +++ b/integration/golang_tests/host_signature/host.go @@ -1,4 +1,4 @@ -// Code generated by scale-signature v0.4.4, DO NOT EDIT. +// Code generated by scale-signature v0.4.5, DO NOT EDIT. // output: signature package signature diff --git a/integration/golang_tests/host_signature/types.go b/integration/golang_tests/host_signature/types.go index 59dc60d4..d501e529 100644 --- a/integration/golang_tests/host_signature/types.go +++ b/integration/golang_tests/host_signature/types.go @@ -1,4 +1,4 @@ -// Code generated by scale-signature v0.4.4, DO NOT EDIT. +// Code generated by scale-signature v0.4.5, DO NOT EDIT. // output: signature package signature diff --git a/integration/golang_tests/signature/guest.go b/integration/golang_tests/signature/guest.go index 469fb3f5..0f3f8524 100644 --- a/integration/golang_tests/signature/guest.go +++ b/integration/golang_tests/signature/guest.go @@ -1,4 +1,4 @@ -// Code generated by scale-signature v0.4.4, DO NOT EDIT. +// Code generated by scale-signature v0.4.5, DO NOT EDIT. // output: signature package signature diff --git a/integration/golang_tests/signature/types.go b/integration/golang_tests/signature/types.go index e4e9ba22..c8a7fefc 100644 --- a/integration/golang_tests/signature/types.go +++ b/integration/golang_tests/signature/types.go @@ -1,4 +1,4 @@ -// Code generated by scale-signature v0.4.4, DO NOT EDIT. +// Code generated by scale-signature v0.4.5, DO NOT EDIT. // output: signature package signature diff --git a/integration/rust_tests/generated/generated.rs b/integration/rust_tests/generated/generated.rs index 0dd384b0..356ac058 100644 --- a/integration/rust_tests/generated/generated.rs +++ b/integration/rust_tests/generated/generated.rs @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: generated #![allow(dead_code)] diff --git a/integration/rust_tests/signature/guest.rs b/integration/rust_tests/signature/guest.rs index 1fde0765..d8c2c841 100644 --- a/integration/rust_tests/signature/guest.rs +++ b/integration/rust_tests/signature/guest.rs @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: local_example_latest_guest pub mod types; diff --git a/integration/rust_tests/signature/types.rs b/integration/rust_tests/signature/types.rs index a60df82d..d3ddf6a3 100644 --- a/integration/rust_tests/signature/types.rs +++ b/integration/rust_tests/signature/types.rs @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: local_example_latest_guest #![allow(dead_code)] diff --git a/integration/typescript_tests/generated/generated.d.ts b/integration/typescript_tests/generated/generated.d.ts index a9ff3afc..05656d2d 100644 --- a/integration/typescript_tests/generated/generated.d.ts +++ b/integration/typescript_tests/generated/generated.d.ts @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: generated import { Encoder, Decoder, Kind } from "@loopholelabs/polyglot" diff --git a/integration/typescript_tests/generated/generated.js b/integration/typescript_tests/generated/generated.js index 2d4fcdfc..4924df5a 100644 --- a/integration/typescript_tests/generated/generated.js +++ b/integration/typescript_tests/generated/generated.js @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: generated "use strict"; diff --git a/integration/typescript_tests/generated/generated.js.map b/integration/typescript_tests/generated/generated.js.map index 74853834..bce4da50 100644 --- a/integration/typescript_tests/generated/generated.js.map +++ b/integration/typescript_tests/generated/generated.js.map @@ -2,7 +2,7 @@ "version": 3, "sources": [""], "sourceRoot": "generated.js", - "sourcesContent": ["// Code generated by scale-signature 0.4.4, DO NOT EDIT.\n// output: generated\n\nimport { Encoder, Decoder, Kind } from \"@loopholelabs/polyglot\"\n\nexport class Context {\n a: number;\n b: number;\n c: number;\n\n /**\n * @throws {Error}\n */\n constructor (decoder?: Decoder) {\n if (decoder) {\n let err: Error | undefined;\n try {\n err = decoder.error();\n } catch (_) {}\n if (typeof err !== \"undefined\") {\n throw err;\n }\n this.a = decoder.int32();\n this.b = decoder.int32();\n this.c = decoder.int32();\n } else {\n this.a = 0;\n this.b = 0;\n this.c = 0;\n }\n }\n\n /**\n * @throws {Error}\n */\n encode (encoder: Encoder) {\n encoder.int32(this.a);\n encoder.int32(this.b);\n encoder.int32(this.c);\n }\n\n /**\n * @throws {Error}\n */\n static decode (decoder: Decoder): Context | undefined {\n if (decoder.null()) {\n return undefined\n }\n return new Context(decoder);\n }\n\n /**\n * @throws {Error}\n */\n static encode_undefined (encoder: Encoder) {\n encoder.null();\n }\n}\n\n"], + "sourcesContent": ["// Code generated by scale-signature 0.4.5, DO NOT EDIT.\n// output: generated\n\nimport { Encoder, Decoder, Kind } from \"@loopholelabs/polyglot\"\n\nexport class Context {\n a: number;\n b: number;\n c: number;\n\n /**\n * @throws {Error}\n */\n constructor (decoder?: Decoder) {\n if (decoder) {\n let err: Error | undefined;\n try {\n err = decoder.error();\n } catch (_) {}\n if (typeof err !== \"undefined\") {\n throw err;\n }\n this.a = decoder.int32();\n this.b = decoder.int32();\n this.c = decoder.int32();\n } else {\n this.a = 0;\n this.b = 0;\n this.c = 0;\n }\n }\n\n /**\n * @throws {Error}\n */\n encode (encoder: Encoder) {\n encoder.int32(this.a);\n encoder.int32(this.b);\n encoder.int32(this.c);\n }\n\n /**\n * @throws {Error}\n */\n static decode (decoder: Decoder): Context | undefined {\n if (decoder.null()) {\n return undefined\n }\n return new Context(decoder);\n }\n\n /**\n * @throws {Error}\n */\n static encode_undefined (encoder: Encoder) {\n encoder.null();\n }\n}\n\n"], "mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAKO,MAAM,QAAQ;AAAA;AAAA;AAAA;AAAA,EAQnB,YAAa,SAAmB;AAC9B,QAAI,SAAS;AACX,UAAI;AACJ,UAAI;AACF,cAAM,QAAQ,MAAM;AAAA,MACtB,SAAS,GAAG;AAAA,MAAC;AACb,UAAI,OAAO,QAAQ,aAAa;AAC9B,cAAM;AAAA,MACR;AACA,WAAK,IAAI,QAAQ,MAAM;AACvB,WAAK,IAAI,QAAQ,MAAM;AACvB,WAAK,IAAI,QAAQ,MAAM;AAAA,IACzB,OAAO;AACL,WAAK,IAAI;AACT,WAAK,IAAI;AACT,WAAK,IAAI;AAAA,IACX;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAKA,OAAQ,SAAkB;AACxB,YAAQ,MAAM,KAAK,CAAC;AACpB,YAAQ,MAAM,KAAK,CAAC;AACpB,YAAQ,MAAM,KAAK,CAAC;AAAA,EACtB;AAAA;AAAA;AAAA;AAAA,EAKA,OAAO,OAAQ,SAAuC;AACpD,QAAI,QAAQ,KAAK,GAAG;AAClB,aAAO;AAAA,IACT;AACA,WAAO,IAAI,QAAQ,OAAO;AAAA,EAC5B;AAAA;AAAA;AAAA;AAAA,EAKA,OAAO,iBAAkB,SAAkB;AACzC,YAAQ,KAAK;AAAA,EACf;AACF;", "names": [] } diff --git a/integration/typescript_tests/host_signature/index.ts b/integration/typescript_tests/host_signature/index.ts index 2e9bf756..23926011 100644 --- a/integration/typescript_tests/host_signature/index.ts +++ b/integration/typescript_tests/host_signature/index.ts @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: local-example-latest-host /* eslint no-bitwise: off */ diff --git a/integration/typescript_tests/host_signature/types.ts b/integration/typescript_tests/host_signature/types.ts index dbd46d23..37c22941 100644 --- a/integration/typescript_tests/host_signature/types.ts +++ b/integration/typescript_tests/host_signature/types.ts @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: local-example-latest-host import { Encoder, Decoder, Kind } from "@loopholelabs/polyglot" diff --git a/integration/typescript_tests/signature/index.ts b/integration/typescript_tests/signature/index.ts index 61ad18b9..2d6b7bfb 100644 --- a/integration/typescript_tests/signature/index.ts +++ b/integration/typescript_tests/signature/index.ts @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: local-example-latest-guest /* eslint no-bitwise: off */ diff --git a/integration/typescript_tests/signature/types.ts b/integration/typescript_tests/signature/types.ts index e81bcd77..e7320551 100644 --- a/integration/typescript_tests/signature/types.ts +++ b/integration/typescript_tests/signature/types.ts @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: local-example-latest-guest import { Encoder, Decoder, Kind } from "@loopholelabs/polyglot" diff --git a/package.json b/package.json index 55b429df..7782b718 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@loopholelabs/scale", - "version": "0.4.4", + "version": "0.4.5", "description": "Scale is a framework for building high-performance plugin systems into any application, all powered by WebAssembly.", "source": "index.ts", "types": "types.d.ts", diff --git a/signature/converter/converter_tests/generated.go b/signature/converter/converter_tests/generated.go index beb753eb..b1ea2880 100644 --- a/signature/converter/converter_tests/generated.go +++ b/signature/converter/converter_tests/generated.go @@ -1,4 +1,4 @@ -// Code generated by scale-signature v0.4.4, DO NOT EDIT. +// Code generated by scale-signature v0.4.5, DO NOT EDIT. // output: generated package generated diff --git a/signature/generator/golang/generated.txt b/signature/generator/golang/generated.txt index 670213f6..ae072bdb 100644 --- a/signature/generator/golang/generated.txt +++ b/signature/generator/golang/generated.txt @@ -1,4 +1,4 @@ -// Code generated by scale-signature v0.4.4, DO NOT EDIT. +// Code generated by scale-signature v0.4.5, DO NOT EDIT. // output: types package types diff --git a/signature/generator/rust/generated.txt b/signature/generator/rust/generated.txt index f23b3790..69440910 100755 --- a/signature/generator/rust/generated.txt +++ b/signature/generator/rust/generated.txt @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: types #![allow(dead_code)] diff --git a/signature/generator/typescript/generated.txt b/signature/generator/typescript/generated.txt index e43dd975..ed8194fd 100755 --- a/signature/generator/typescript/generated.txt +++ b/signature/generator/typescript/generated.txt @@ -1,4 +1,4 @@ -// Code generated by scale-signature 0.4.4, DO NOT EDIT. +// Code generated by scale-signature 0.4.5, DO NOT EDIT. // output: types import { Encoder, Decoder, Kind } from "@loopholelabs/polyglot" diff --git a/version/current_version b/version/current_version index 5ab76976..04a04894 100644 --- a/version/current_version +++ b/version/current_version @@ -1 +1 @@ -v0.4.4 \ No newline at end of file +v0.4.5 \ No newline at end of file