Releases: software-mansion/scarb
v2.4.2
Welcome to the release notes for Scarb v2.4.2!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.2
.
What's Changed
- Bump the non-critical group with 11 updates by @dependabot in #1013
- Update Cairo revision by @maciektr in #1014
- Bump gix from 0.56.0 to 0.57.1 by @dependabot in #1017
- Bump the non-critical group with 10 updates by @dependabot in #1016
- Bump the non-critical group with 7 updates by @dependabot in #1024
- Revert "adds max steps attribute (#979)" by @tkumor3 in #1025
- Re-add @mkaput to
CODEOWNERS
by @mkaput in #1026 - Update artifacts and pages actions by @mkaput in #1027
Full Changelog: v2.4.1...v2.4.2
v2.4.1
Welcome to the release notes for Scarb v2.4.1!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.1
.
What's Changed
- Use severity aware diagnostic callback by @maciektr in #967
- Update cairo-run docs, add no-build argument by @maciektr in #987
- Fix invalid link in docs by @abulenok in #989
- Use diagnostic severity in cairo formatter by @maciektr in #986
- Bump gix from 0.55.2 to 0.56.0 by @dependabot in #992
- Update deps by @maciektr in #994
- Add dep_kind to dependency metadata by @maciektr in #988
- Update Cairo by @maciektr in #996
- Prepare scarb-metadata release
1.10.0
by @maciektr in #998 - Bump zerocopy from 0.7.25 to 0.7.31 by @dependabot in #1000
- Add metadata completeness validation by @tomek0123456789 in #985
- adds max steps attribute by @tkumor3 in #979
- Bump the non-critical group with 3 updates by @dependabot in #1002
- Add default gas limit value to cairo-run by @maciektr in #1003
- Docs: Add starknet section to guide, edition constant and asdf installation note by @maciektr in #1004
- Ignore non-cairo files in integration tests auto-detect by @maciektr in #1006
- Parse allow-warnings in snforge test collector by @maciektr in #1005
- Make error msg easier to understand by @maciektr in #1009
New Contributors
Full Changelog: v0.7.0...v2.4.1
v2.4.0
Warning
This version is not yet supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Welcome to the release notes for Scarb v2.4.0
!
This release brings new stable Cairo compiler release to Scarb.
Development dependencies
Since this release, you can specify development dependencies in your package manifest.
Development dependencies are only used when compiling tests.
These dependencies are not propagated to other packages which depend on this package.
In order to add development dependency, specify it under [dev-dependencies]
section:
[dev-dependencies]
alexandria_math = { git = "https://github.com/keep-starknet-strange/alexandria.git" }
Alternatively, you can add development dependencies with scarb add
command by passing --dev
flag:
scarb add --dev alexandria_math --git https://github.com/keep-starknet-strange/alexandria.git
Cairo Version
This version of Scarb comes with Cairo v2.4.0
.
What's Changed
- Run scheduled tests Monday - Friday only by @maciektr in #945
- Add docs for fmt emit functionality by @maciektr in #943
- Fix emit tests: replace stdout_matches with stdout_eq by @maciektr in #942
- Implement lockfiles checksums verification by @mkaput in #937
- Bump deno_task_shell from 0.14.0 to 0.14.2 by @dependabot in #949
- Bump the non-critical group with 6 updates by @dependabot in #948
- Add
dev-dependencies
by @tomek0123456789 in #920 - Parse
BlockId
on forge's side -> remove starknet dependency by @piotmag769 in #941 - Do not compile packages when publishing them in tests by @mkaput in #939
- Handle case when packaged repo does not have any commits by @szymmis in #956
- Bump openssl from 0.10.59 to 0.10.60 by @dependabot in #958
- Enable Windows CI by @mkaput in #947
- Stop requesting reviews from mkaput (for now) by @maciektr in #959
- Remove DiagnosticReporter creation duplicate by @maciektr in #952
- Add test for verified HttpRegistry publish by @szymmis in #957
- Optimize E2E tests build times by @mkaput in #953
- Use
cannonical_url
instead ofurl
for SourceId comparisons by @szymmis in #963 - Add fmt parsing error test case by @maciektr in #965
- adds snforge test collector test by @tkumor3 in #961
- Update deps by @maciektr in #980
- add
--dev
flag toadd
andrm
by @tomek0123456789 in #977 - validate git urls by @tomek0123456789 in #976
- Bump vite from 5.0.2 to 5.0.5 in /website by @dependabot in #981
New Contributors
Full Changelog: v2.4.0-rc6...v2.4.0
v2.4.0-rc6
Warning
This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Welcome to the release notes for Scarb v2.4.0-rc6
!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.0-rc6
.
What's Changed
Full Changelog: v2.4.0-rc5...v2.4.0-rc6
v2.4.0-rc5
Warning
This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Welcome to the release notes for Scarb v2.4.0-rc5
!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.0-rc5
.
What's Changed
- Document and make private
SourceKind::can_lock_source_kind
by @mkaput in #930 - Add
ChildPathEx::read_to_string
by @mkaput in #933 - Bump
itertools
to 0.12.0 by @mkaput in #936 - Fill missing docs in resolver area and remove unnecessary method by @mkaput in #938
Full Changelog: v2.4.0-rc4...v2.4.0-rc5
v2.4.0-rc4
Warning
This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Welcome to the release notes for Scarb v2.4.0-rc4!
This quick release includes following small improvements.
Formatter emit
option
Since this release, when formatting your project with scarb fmt
you can use --emit stdout
argument. With this argument, Scarb will not make any changes to the files on your disk. Instead, full new content of formatted files will be printed to stdout, prepended with their path. Files that had already been in a correct format will not be emitted.
Environmental variables in scripts
Since this release, all environmental variables inherited by Scarb will be passed to package scripts runtime. This will allow you, to read external variables inside your scripts.
Cairo Version
This version of Scarb comes with Cairo v2.4.0-rc4
.
What's Changed
- Bump the non-critical group with 3 updates by @dependabot in #917
- Add
checksum
field toPackageLock
and add Builder pattern there by @mkaput in #909 - Store package checksum in
Summary
by @mkaput in #910 - Remove obsolete TODO comment by @mkaput in #911
- Store checksums for registry deps in Scarb.lock by @mkaput in #912
- Verify that package tarball compiles by @szymmis in #908
- feat: add workflow for typo by @xiaolou86 in #923
- Add snforge test collector by @piotmag769 in #886
- Remove
update_read_async
method and useupdate_read
instead by @mkaput in #924 - Upgrade
redb
to1.4.0
by @mkaput in #927 - Pass env variables to scripts shell by @maciektr in #926
- Fix link in
Testing Scarb projects
docs section by @tomek0123456789 in #928 - feat: add emit option by @Eikix in #863
- Update Cairo by @maciektr in #929
- Pull corelib from cargo cache for path/git builds by @maciektr in #918
- Update
vitepress
tov1.0.0-rc.30
and other website dependencies by @mkaput in #931
New Contributors
- @xiaolou86 made their first contribution in #923
- @piotmag769 made their first contribution in #886
- @Eikix made their first contribution in #863
Full Changelog: v2.4.0-rc3...v2.4.0-rc4
v2.4.0-rc3
Warning
This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Welcome to the release notes for Scarb v2.4.0-rc3
!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.0-rc3
.
What's Changed
- Introduce
RegistryClientCache
stub by @mkaput in #808 - Use constant
mtime
for packaged tarballs by @mkaput in #898 - Bump the non-critical group with 3 updates by @dependabot in #899
- Implement caching of records returned from registry clients by @mkaput in #809
- Set up machinery for testing HTTP interactions of HTTP registry by @mkaput in #818
- Detect target name duplicates across workspace by @maciektr in #900
- Add PackagesFilterLong without short clap arguments by @maciektr in #902
- Prepare
scarb-ui
release0.1.2
by @maciektr in #905 - Handle readme and license files in scarb package by @szymmis in #897
- Implement records caching on HttpRegistryClient level by @mkaput in #819
- Add
AsyncFileLockGuard
by @mkaput in #844 - Impl
Clone
forFilesystem
by @mkaput in #845 - Implement caching of downloaded tarballs by @mkaput in #846
- Cache index configs by @mkaput in #892
- Fix clippy errors after update by @maciektr in #913
- Move validation before usage in build-external glob selectors by @maciektr in #914
- Fix failing tests by adjusting stderr message assertions by @szymmis in #915
- Handle checksums in registry packages by @mkaput in #906
Full Changelog: v2.4.0-rc2...v2.4.0-rc3
v2.4.0-rc2
Warning
This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Welcome to the release notes for Scarb v2.4.0-rc2
!
This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.0-rc2
.
What's Changed
Full Changelog: v2.4.0-rc1...v2.4.0-rc2
v2.4.0-rc1
Warning
This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Welcome to the release notes for Scarb v2.4.0-rc1
! This quick release is primarily a Cairo upgrade.
Cairo Version
This version of Scarb comes with Cairo v2.4.0-rc1
.
What's Changed
- Add scheduled tests job by @maciektr in #864
- Fix cfg target spec in cargo toml by @maciektr in #868
- Add silent option to full tests action by @maciektr in #867
- Fix edition test: path match on windows by @maciektr in #872
- Fix: unify path_in_vcs format accross target os by @maciektr in #873
- Fix failing packaging tests on windows by @szymmis in #876
- Add note about symlinks tests on windows by @maciektr in #874
- Update Cairo revision by @maciektr in #877
- Disable fail-fast in full tests check job by @maciektr in #879
- Write edition to manifest on scarb new by @maciektr in #878
- Document edition field in manifest by @maciektr in #881
- Fix source path display on windows by @maciektr in #885
- Throw an error in
scarb package
with non-[lib]
packages by @tomek0123456789 in #856 - Prepare
scarb-metadata
release1.9.0
by @maciektr in #890 - Use latest edition for scarb new by @maciektr in #888
- Ignore tests failing as of #883 by @maciektr in #884
- Prepare release
2.4.0-rc1
by @maciektr in #891
New Contributors
- @tomek0123456789 made their first contribution in #856
Full Changelog: v2.3.0-rc1...v2.4.0-rc1
v2.4.0-rc0
Warning
This version is not supported on Starknet! If you want to develop contracts deployable to current Starknet, please stick with Scarb v2.3.1
Editions
Since this release, Scarb supports defining Cairo compiler edition for a package. The editions allow newer Cairo compiler versions to introduce opt-in features that may break existing code.
The edition can be defined with edition
key in [package]
section in Scarb manifest.
[package]
name = "hello_world"
version = "1.0.0"
edition = "2023_10"
Setting the edition key in [package]
will affect all targets in the package, including test suites etc.
scarb update
Since the introduction of lockfiles, Scarb will not automatically update all dependencies on each run. The update of locked versions can be requested with the scarb update
command. This will perform project resolution ignoring the existing lockfile, then write out a new Scarb.lock
with the new version information. Note that the Scarb.toml
manifest file will not be changed, and all version requirements from it will be preserved.
Cairo Version
This version of Scarb comes with Cairo v2.4.0-rc0
.
What's Changed
- Use FromStr for Lockfile by @maciektr in #810
- Bump the non-critical group with 1 update by @dependabot in #812
- Use requires_gas_counter helper by @maciektr in #814
- Stop lockfile e2e tests from overwriting existing example locks by @maciektr in #813
- Fix release branch naming in maintaining docs by @maciektr in #816
- Allow ignoring example project by name in test_for_each_example macro by @maciektr in #824
- Update Cairo and Scarb version after release by @maciektr in #821
- Add scarb update command by @maciektr in #822
- Make profile args take precedence over env by @szymmis in #825
- Initial implementation of
RegistrySource
by @mkaput in #790 - Initial implementation of
scarb publish
by @mkaput in #793 - Change wording around starknet-contract casm property docs by @maciektr in #826
- Add basic tests for local registry by @mkaput in #798
- Implement simple http server for testing HTTP registries by @mkaput in #799
- Set up
reqwest
HTTP client by @mkaput in #802 - Include
get_dep_component!
andget_dep_component_mut!
macros in thestarknet
package by @mkaput in #833 - Initial implementation of HTTP registry client by @mkaput in #803
- Docs: Use kebab-case for formatting options by @maciektr in #836
- Expand registry specification to registry URL when packaging by @mkaput in #805
- Add lockfile docs by @maciektr in #829
- Add scarb update docs by @maciektr in #830
- Bump the non-critical group with 6 updates by @dependabot in #839
- Remove available_gas args in favour of default by @maciektr in #840
- Major dependencies update by @mkaput in #806
- Impl
Clone
forUi
by @mkaput in #807 - Prepare
scarb-ui
release0.1.1
by @mkaput in #848 - Use rustls-tls with native roots on unix targets by @maciektr in #851
- Bump actions/setup-node from 3 to 4 by @dependabot in #853
- chore: minor optimisation by @shramee in #841
- Extends docs about Starknet Foundry by @cptartur in #831
- Update Cairo by @maciektr in #857
- Bump the non-critical group with 3 updates by @dependabot in #859
- Fix linux cfg in Cargo manifest by @maciektr in #861
- Add dry_run arg to nightly workflow by @maciektr in #852
- Support plugin suites by @maciektr in #860
- Remove redundant
cannot_choose_both_dev_and_release
test by @szymmis in #862 - Add test targets docs by @maciektr in #855
- Add package edition field by @maciektr in #858
- Prevent packaging with uncommited Git changes by @szymmis in #827
- Prepare release 2.4.0-rc0 by @maciektr in #865
- Update Sierra to 1.4.0 by @maciektr in #866
New Contributors
Full Changelog: v2.3.1...v2.4.0-rc0