Skip to content

Releases: FuelLabs/sway

v0.37.0

06 Apr 00:02
607ac50
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.36.1...v0.37.0

v0.36.1

05 Apr 14:04
92818a4
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.36.0...v0.36.1

v0.36.0

05 Apr 02:26
77f575a
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • Defining and structuring modules in Sway project has been reword. The dep keyword has been removed from the language in favour of mod: mod declarations include a single ident specifying the name of the submodule. Note that this is different from dep declarations which would supply a /-separated file system path to the submodule. Since the name of the submodule is specified in the declaration, submodules no longer need to supply their name via a library name; header at the start of the file and can instead use the plain library;. The name of a submodule is used to find the source file for that submodule. For a submodule named bar of a module foo, either the file foo/bar.sw or bar.sw must exist. These paths are relative to the file defining the foo module containing the mod bar; declaration. It is an error for both or none of these paths to exist. Module paths behave the same as they previously did except that they use...
Read more

v0.35.5

08 Mar 18:12
49eae2d
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.35.4...v0.35.5

v0.35.4

07 Mar 14:54
3770dd8
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.35.3...v0.35.4

v0.35.3

21 Feb 21:42
5d2b10b
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.35.2...v0.35.3

v0.35.2

17 Feb 23:10
f05ecaf
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.35.1...v0.35.2

v0.35.1

15 Feb 21:57
1f9debf
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.35.0...v0.35.1

v0.35.0

08 Feb 10:40
b6f19a3
Compare
Choose a tag to compare

What's Changed

Full Changelog: v0.34.0...v0.35.0

v0.34.0

01 Feb 15:59
ddb0ede
Compare
Choose a tag to compare

What's Changed

Breaking Changes

  • It is no longer allowed to instantiate enum variants of unit type using parentheses. For example, Option::None() is now a compile error and should be replaced with Option::None.
  • The function std::storage::get(key: b256) now returns an Option. If no value was previously stored at the key, Option::None is returned. Otherwise,Option::Some(value) is returned, where value is the value previously stored at key.
  • The method StorageMap::get(self, key: K) now returns an Option. If no value was previously stored at key, Option::None is returned. Otherwise, Option::Some(value) is returned, where value is the value previously stored at key.
  • The methods split and join of std::bytes::Bytes have been renamed to split_at and append.
  • The trait std::math::Exponentiate has been renamed to std::math::Power.

Full Changelog: v0.33.1...v0.34.0