Releases: FuelLabs/sway
Releases · FuelLabs/sway
v0.14.1
What's Changed
- Storage with more than one word. by @adlerjohn in #1235
- v0.14.1 by @sezna in #1715
Full Changelog: v0.14.0...v0.14.1
v0.14.0
What's Changed
- Docker Fixes by @AlicanC in #1543
- Remove unnecessary docker cache step in CI by @Voxelot in #1675
- Fix incorrect collection of tokens from tuples in the language server by @JoshuaBatty in #1678
- Remove
forc-gm
in the docs for now by @binggh in #1680 - tiny perf gain by bailing early when finding methods for an error recovery type by @sezna in #1676
- Bump fuel-core to v0.8, and sub-deps. by @adlerjohn in #1683
- Implement left & right shift for
b256
by @nfurfaro in #1549 - Fix the
template
command for thecounter
example by @mohammadfawaz in #1690 - Fix comment location in testing with rust by @rootulp in #1695
- Move unnecessary usage of SDK for tests to e2e tests by @adlerjohn in #1687
- Remove collecting operators as tokens in language server by @JoshuaBatty in #1677
- Introduce FromTrait method name by @sezna in #1684
- Add more highlighted languages by @adlerjohn in #1699
- Remove sdk-harness script lib. by @adlerjohn in #1700
- Remove fuels-signers from SDK harness. by @adlerjohn in #1703
- Remove rand from SDK harness. by @adlerjohn in #1704
- New intrinsic for generating a unique
b256
key by @mohammadfawaz in #1688 - Bump SDK harness fuels-rs to 0.14 by @adlerjohn in #1709
- Improve installation docs. by @adlerjohn in #1711
- Bump fuels-rs init version to 0.14 by @adlerjohn in #1708
- Bump to v0.14.0. by @adlerjohn in #1714
Full Changelog: v0.13.2...v0.14.0
v0.13.2
What's Changed
- Move match expression desugaring from parsing to type checking by @emilyaherbert in #1596
- Add missing dependency in 2 test cases to supress unnecessary warnings by @emilyaherbert in #1658
- Add booleans to the keywords in the parser by @emilyaherbert in #1647
- Adding
jnzi
toparse_bytecode
and fixing some notes by @mohammadfawaz in #1654 - Adding
update_type()
to refactor some code used incopy_types()
by @mohammadfawaz in #1666 - Add
U128
type by @adlerjohn in #1600 - Updated welcome message colors by @Braqzen in #1662
- Parsing precedence fixes by @canndrew in #1660
- Fixing JSON ABI for tuples by @mohammadfawaz in #1653
- Improve grammar for type argument error by @sezna in #1670
- Small improvements to the Sway Book by @mohammadfawaz in #1672
- Expand match expressions to encompass enums by @emilyaherbert in #1642
- Bump to v0.13.2 by @mohammadfawaz in #1668
Full Changelog: v0.13.1...v0.13.2
v0.13.1
What's Changed
- Introduce the
CopyTypes
trait and theTypeMapping
type. by @emilyaherbert in #1589 - Introduce the
CreateTypeId
trait. by @emilyaherbert in #1590 - Differentiate different impl selfs in node dependencies by @sezna in #1615
- Fix issue with how scoping is handled in the IR. by @emilyaherbert in #1613
- Enable to deploy a contract to another node with --url option by @kayagokalp in #1607
- Transition to tracing in forc (and throughout sway) over println by @kayagokalp in #1575
- Fixing how the number of predecessors of an IR block is calculated by @mohammadfawaz in #1611
- Finish parsing
where
clauses by @mohammadfawaz in #1595 - Test suite does not print details with SWAY_TEST_VERBOSE=1 by @kayagokalp in #1624
- Bump SDK version to Fuels
v0.13
by @nfurfaro in #1625 - Introduce the
MonomorphizeHelper
trait. by @emilyaherbert in #1591 - standard library introduction by @SilentCicero in #1341
- Fixing how the tx receipts root is obtained by @mohammadfawaz in #1630
- Improve spans in error messages around generic types by @sezna in #1633
- document native plugins within the Sway book by @binggh in #1582
- Improvements to monomorphization + bug fixes by @emilyaherbert in #1592
- Allow the catchall pattern inside of nested patterns by @emilyaherbert in #1594
- forc template implementation by @kayagokalp in #1614
- Fixing JSON ABI and the function selector for arrays by @mohammadfawaz in #1632
- Compile predicates in IR by @sezna in #1640
- v0.13.1 by @sezna in #1651
- Adds ethAddress type by @simonr0204 in #1452
Full Changelog: v0.13.0...v0.13.1
v0.13.0
What's Changed
- Implement
Display
forTypeId
s; Add type parameters to the definition of custom types by @sezna in #1534 - Make sure global const delcarations are not misreported as unused. by @otrho in #1537
- Remove
rand
dependency from default Cargo.toml by @adlerjohn in #1539 - Do not overwrite preceeding numeric type info on cast by @sezna in #1540
- Fix asm for
get_ptr
when the offset is > 4096 by @mohammadfawaz in #1541 - Fix non-deterministic tuple names by @mohammadfawaz in #1542
- Use
__
as a prefix for compiler intrinsics by @sezna in #1536 - Fix formatting aliases by @ra0x3 in #1524
- Add more detailed Forc.toml manifest reference documentation by @kayagokalp in #1538
- Added block comment example by @Braqzen in #1547
- Adding
b256
bitwise operators (&
,|
,^
) by @nfurfaro in #1514 - Update book links to
sway-lib-core
in Section 3.2 by @binggh in #1551 - Impl Ord for b256 by @nfurfaro in #1554
- Fixed Typo in book advanced Calls. #1561 by @PrajwalBorkar in #1562
- Add build-and-publish-forc-binary CI job by @ra0x3 in #1513
- Update traits.md by @SwayStar123 in #1565
- Fixing the handling of constant strings by properly accounting for their size by @mohammadfawaz in #1566
- Remove the old
pest
parser code by @sezna in #1407 - Use forc-documenter as an mdbook preprocessor instead by @binggh in #1545
- Fix CI not installing mdbook-forc-documenter preprocessor. Fix out-of-date
Cargo.lock
file missing pest dependencies. by @binggh in #1569 - Add a Spanned trait to the parser by @canndrew in #1559
- Remove compiler warnings by @nfurfaro in #1576
- Fix bug where trait/abi method argument type mismatch went uncaught by @mitchmindtree in #1581
- Refactoring for readability and maintainability by @emilyaherbert in #1586
- Added generic sha256 by @Braqzen in #1544
- Improvements to namespace API and declaration ABI. by @emilyaherbert in #1588
- Adding an intrinsics module by @nfurfaro in #1573
- Adding a generic
log
function by @nfurfaro in #1572 - Added foundation for
sway-fmt
v2 by @eureka-cpu in #1425 - Cleanup constants.sw & add impl b256 to core/num by @nfurfaro in #1599
- Fix space formatting between parenthesis and opening quotation marks by @binggh in #1603
- Replace the
impure
keyword with#[storage(...)]
annotations. by @otrho in #1518 - Parse tuple field reassignments by @canndrew in #1558
- Disallow assigning to fields of non-mutable structs by @canndrew in #1420
- Fix Shiftable trait to shift by u64. by @adlerjohn in #1604
- Added generic keccak256 function by @Braqzen in #1606
- Deprecating old functions by @Braqzen in #1610
- Bump to v0.13.0 by @mohammadfawaz in #1587
New Contributors
- @PrajwalBorkar made their first contribution in #1562
- @SwayStar123 made their first contribution in #1565
Full Changelog: v0.12.2...v0.13.0
v0.12.2
What's Changed
- Update parse bytecode example by @binggh in #1467
- Added installation instruction by @Braqzen in #1477
- Revert 1477 braqzen #1476 and update formatting by @Braqzen in #1479
- Rust 1.60 docker update by @Voxelot in #1438
- Add --describe -d opt to forc plugins by @ra0x3 in #1453
- Add [workspace] to forc manifest by @ra0x3 in #1461
- Hide use orig asm and parser in the help text for forc build, deploy, run by @binggh in #1469
- Fixes to the Forc Project section with the recent updates to
forc init
by @mohammadfawaz in #1482 - Span/String/Ident fixups by @canndrew in #1422
- Some fixes to storage in the Sway Book by @mohammadfawaz in #1486
- Hashing and Cryptography by @SilentCicero in #1362
- match expressions take 2 by @SilentCicero in #1355
- Moved name & version keys to the top of [package] by @Braqzen in #1485
- Small fix to
hash_u64
by @mohammadfawaz in #1490 - Changed default manifest dependency ordering by @Braqzen in #1496
- Remove
sway_types::{JsonABI, Function, Property}
in favour offuels_types
by @mitchmindtree in #1337 - Fix for forc test doesn't return with error code if Cargo manifest is invalid #1464 by @kayagokalp in #1481
- Changes
panic
torevert
insway-lib-std
by @gr00vytvniks in #1494 - Remove
Cargo.lock
from top-level.gitignore
. TrackCargo.lock
for std lib test harness. by @mitchmindtree in #1497 - Remove global
Namespace
arena in favour of structural sharing. Refactor to use absolute paths. by @mitchmindtree in #1213 - Publish Diagnostics from language server even when no errors or warnings detected by @JoshuaBatty in #1503
- Add declaration attributes to the parser. by @otrho in #1488
- Update Slack webhook secret by @ellioty in #1509
- Extract forc documentation examples from constants.rs into examples.rs by @binggh in #1504
- move
forc completions
help text into the book by @binggh in #1248 - Improve forc documenter by @binggh in #1505
- Updated example to show how to call a private function by @Braqzen in #1507
- Manifest files use env variable to set author or default back to the … by @Braqzen in #1487
- Add --locked to cargo CI by @ra0x3 in #1450
- Add --locked to forc by @ra0x3 in #1442
- Format long use stmnts + tests by @ra0x3 in #1480
- Add
require
function. by @nfurfaro in #1500 - Bump stdlib test harness to SDK v0.12 by @nfurfaro in #1523
- When resolving custom types, recurse into Arrays to be sure the element type is resolved. by @otrho in #1522
- Fix bug in node dependencies related to
if let
codeblocks. by @otrho in #1519 - Bump fuels* to 0.12 by @Voxelot in #1520
- Add numeric constants. by @adlerjohn in #1515
- Bump to v0.12.2 by @mohammadfawaz in #1528
New Contributors
- @kayagokalp made their first contribution in #1481
- @gr00vytvniks made their first contribution in #1494
Full Changelog: v0.12.1...v0.12.2
v0.12.1
What's Changed
- Rename test/src/sdk-harness/test-helpers to test_helpers. by @otrho in #1466
- Remove test crate forc versioning by @binggh in #1468
- Stop publishing
forc-gm
temporarily by @mohammadfawaz in #1471 - Bump to 0.12.1 by @mohammadfawaz in #1473
Full Changelog: v0.12.0...v0.12.1
v0.11.0
What's Changed
- Docs: add example of asm tuple return by @nfurfaro in #1279
- replace content in forc/README.md with link to book instead by @binggh in #1300
- Shorthand for build and test by @amadeusluntz in #1285
- Fixed issue where sway formatter was operating on a pathless AST by @amadeusluntz in #1283
- Added option to not include std implicitly by @amadeusluntz in #1284
- Format
storage
similar tostruct
s by @amadeusluntz in #1282 - Fix typo by @rootulp in #1303
- Fix grammar by @rootulp in #1304
- Star importing the namespace where a trait is declared into the local namespace of a trait impl by @mohammadfawaz in #1243
- Sway Book counter init code by @SilentCicero in #1312
- Doc Fixes -
forc-documenter
, assembly, tuples, smart-contracts link by @ControlCplusControlV in #1278 - Handle removed dep in manifest during path reconstruction from graph by @mitchmindtree in #1314
- Update CI to install forc and build sway examples by @JoshuaBatty in #1322
- Access Control Documentation by @SilentCicero in #1310
- forc plugins by @SilentCicero in #1330
- Expand Native Asset Examples in Sway Book by @SilentCicero in #1317
- Add binary_xor function by @nfurfaro in #1276
- Migrate std-lib tests by @nfurfaro in #1328
- Make Forc docs nicer by @SilentCicero in #1338
- sway-parse initial PR by @canndrew in #1286
- Correct handling string return values by @mohammadfawaz in #1292
- Temporarily disable u64_ops test lines that fail to compile with new parser by @mitchmindtree in #1344
- Show hexdump instead of decimal arrays in parse-bytecode by @Dentosal in #1326
- Forc deploy docs update by @binggh in #1306
- Add minimal forc manifest back to stlib test suite by @nfurfaro in #1349
- Update readme for stdlib tests by @nfurfaro in #1352
- Add dependency section to the Forc chapter by @SilentCicero in #1340
- Add specification link by @SilentCicero in #1334
- Enable ^, << & >> and add new BitwiseOps traits. by @nfurfaro in #1353
- Swap core dep for implicit-std by @ra0x3 in #1359
- Fix CI - Concat
forc
's stdout and stderr output inforc-documenter
by @mitchmindtree in #1364 - Remove explicit
std
in getting started example by @adlerjohn in #1348 - Recognize builtin types when parsing method calls by @canndrew in #1366
- Remove prefix from parse/lex error messages by @canndrew in #1367
- Remove visual clutter from build script output by @nfurfaro in #1372
- update
forc plugins
to emit file names only, with option of full paths by @binggh in #1381 - Add --path to forc fmt. by @adlerjohn in #1379
- Check examples formatting in CI by @adlerjohn in #1384
- Hide Forc.lock creation warn behind verbosity by @ra0x3 in #1354
- Fix leading comma being inserted by formatter by @adlerjohn in #1390
- Replace
hello_world
example withcounter
example by @eureka-cpu in #1360 - Updated
forc-init
to acceptprogram_type
parameters by @eureka-cpu in #1351 - Add the bitcast instruction to the IR. by @otrho in #1396
- Allow type arguments in struct call paths by @sezna in #1388
- specify local dep for
asm_return_tuple_pointer
to prevent pulling in git dep by @sezna in #1403 - Use path-based deps for SDK test harness. by @sezna in #1404
- v0.11.0 by @sezna in #1402
New Contributors
- @amadeusluntz made their first contribution in #1285
- @rootulp made their first contribution in #1303
- @ra0x3 made their first contribution in #1359
Full Changelog: v0.10.3...v0.11.0
v0.10.3
What's Changed
- Don't publish
forc
documenter by @mohammadfawaz in #1293 - Bump to 0.10.3 by @mohammadfawaz in #1294
Full Changelog: v0.10.2...v0.10.3
v0.10.2
What's Changed
- Script to generate docs for forc commands + examples by @binggh in #1047
- Remove
std
from the list of dependencies in the default Forc.toml by @mohammadfawaz in #1226 - Checking E2E contract test receipts by @mohammadfawaz in #1205
- Quick warning for storage. by @SilentCicero in #1227
- Exposing methods of a trait to its subtraits and some additional things by @mohammadfawaz in #1223
- Fix forc init --template counter by @JoshuaBatty in #1245
- Updated
from_dir
to check parent directories by @eureka-cpu in #1232 - Missing span for TypeProperty by @mohammadfawaz in #1250
- Fix typo stabilized by @SilentCicero in #1247
- Added optional trailing
,
touse
statements insway-pest
by @eureka-cpu in #1253 - Properly handle TypeProperty in
dead_code_analysis
by @mohammadfawaz in #1251 - Introduce a path-aware
ManifestFile
type by @mitchmindtree in #1249 - Expanding storage documentation by @SilentCicero in #1228
- Update tx.sw to use const values by @nfurfaro in #1255
- Remove workaround for including
lib-std
from the Sway Book by @mohammadfawaz in #1264 - Added test for trailing
,
in import lists by @eureka-cpu in #1269 - add log_b256 method to std library by @SilentCicero in #1259
- Specify Rust version in install docs by @SilentCicero in #1266
- forc init welcome message by @SilentCicero in #1257
- docs: add short instruction to install forc lsp by @binggh in #1275
- Re-introduce the single arg contract call optimisation for IR. by @otrho in #1272
- Fix import of submodules within
std::context
by @mitchmindtree in #1287 - Fix bug where
forc
panics if dependency declared with bothpackage
andpath
by @mitchmindtree in #1289 - Bump to 0.10.2 by @mohammadfawaz in #1290
Full Changelog: v0.10.1...v0.10.2