github onflow/cadence v1.0.0-preview.2

latest releases: v1.2.2, v1.0.2, v1.2.1...
pre-release10 months ago

What's Changed

๐Ÿ’ฅ Language Breaking Changes

๐Ÿ’ฅ Go API Breaking Chance

  • Add support for injecting types into the environment by @turbolent in #2811
  • Allow different base activations per location in checker and interpreter by @turbolent in #2887

โญ Features

๐Ÿ›  Improvements

๐Ÿž Bug Fixes

  • Fix doc (pretty printing) for function declaration without function block by @turbolent in #2774
  • Port internal #143 by @turbolent in #2793
  • Properly check removed expression for resource loss by @dsainati1 in #2798
  • Fix Test framework's TestAccount's type name by @SupunS in #2802
  • Fix capability controller deletion by @turbolent in #2788
  • meter and deduplicate included entitlement relations by @dsainati1 in #2810
  • Use kr/pretty instead of go-test/deep to prevent empty diffs, remove gocap by @turbolent in #2819
  • properly access-check optional chaining with entitlements by @dsainati1 in #2825
  • Check before statements in view contexts by @dsainati1 in #2835
  • Skip adding malformed entitlement relations to maps by @dsainati1 in #2838
  • Require full codomain of map when assigning to mapped field by @dsainati1 in #2840
  • Port internal 141: Fix swapping in resource array by @turbolent in #2844
  • Port internal 144: Fix swap statement evaluation by @turbolent in #2845
  • Port internal fix 145: Prevent re-deploy in same transaction by @turbolent in #2846
  • Properly set base on loaded attachments during attachment iteration by @dsainati1 in #2847
  • Fix memory metering for loading stored values by @turbolent in #2509
  • [stable-cadence] Fix field assignment via references by @SupunS in #2868
  • Entitlement mapping escape fixes by @dsainati1 in #2877
  • Fix string atree value comparison: handle storage as slab by @turbolent in #2895
  • Removing an attachment is an impure operation by @dsainati1 in #2890
  • [v0.42] Prevent nested contract deployments by @SupunS in #2904
  • Prevent nested contract deployments by @SupunS in #2902
  • [v0.42] Fix nested resource moves by @SupunS in #2930
  • [v0.42] Fix AuthAccount creation by @SupunS in #2932
  • Fix nested resource moves by @SupunS in #2931
  • Fix AuthAccount creation by @SupunS in #2933
  • Fix transaction resource-typed field move by @SupunS in #2938
  • Include interface conformances when computing the supported entitlements of an interface by @dsainati1 in #2946
  • Port bug fixes from v0.42.5-patch.1 by @SupunS in #2955
  • Port bug fixes from v0.42.5-patch.1 by @SupunS in #2956
  • Fix GetNativeCompositeValueComputedFields by @turbolent in #2977
  • Statically prevent referenced-typed subexpressions in default arguments to destroy events by @dsainati1 in #2996
  • Prevent use of base variable in default destroy event arguments outside attachments by @dsainati1 in #2999
  • Prevent use of non-attachment type names in default arguments by @dsainati1 in #3000
  • prevent creation of nested storage references by @dsainati1 in #3020

๐Ÿงช Testing

๐Ÿ“– Documentation

Other Changes

  • Sync feature/range-type branch with master by @SupunS in #2747
  • Merge release/v0.41.0 to master by @github-actions in #2786
  • Merge release/v0.41.1 to master by @github-actions in #2795
  • Sync Stable Cadence by @turbolent in #2796
  • Assign issues to group by @turbolent in #2797
  • Remove unused composite type to interface type conversion function by @turbolent in #2804
  • Sync Stable Cadence by @turbolent in #2820
  • Merge release/v0.42.0 to master by @github-actions in #2852
  • Sync Stable Cadence by @turbolent in #2854
  • Add computation metering to the new stdlib functions by @SupunS in #2880
  • Use ComputationKindLoop for internal array-value iterations by @SupunS in #2891
  • Merge release/v0.42.1 to master by @github-actions in #2893
  • Add meeting notes for 2023-10-24 by @turbolent in #2897
  • Sync stable cadence branch with master by @SupunS in #2899
  • Merge release/v0.42.2 to v0.42 by @github-actions in #2905
  • [v0.42] Port adding new revertibleRandom function by @SupunS in #2910
  • Merge release/v0.42.3 to v0.42 by @github-actions in #2911
  • Update tests for Crypto contract to the latest testing framework API by @m-Peter in #2856
  • Remove StandardLibraryHandler method from TestFramework interface by @m-Peter in #2927
  • Merge release/v0.42.4 to v0.42 by @github-actions in #2934
  • Fix Semgrep by @turbolent in #2939
  • Merge v0.42 into master by @turbolent in #2940
  • Merge release/v0.42.5 to v0.42 by @github-actions in #2941
  • Sync stable-cadence branch with master by @SupunS in #2964
  • Remove unsafeRandom by @turbolent in #2966
  • Sync stable-cadence branch with master by @SupunS in #2968
  • Cleanup reference tracking by @SupunS in #2969
  • Make checkParameterizedTypeIsInstantiated recursive by @darkdrag00nv2 in #2915
  • Sync feature/range-type branch with master by @SupunS in #2995

Full Changelog: v1.0.0-preview.1...v1.0.0-preview.2

Don't miss a new cadence release

NewReleases is sending notifications on new releases.