Skip to content

Cadence 0.0.34

Choose a tag to compare

@bigeasy bigeasy released this 02 Feb 05:39
· 474 commits to master since this release

Fix Gathered Loops

Create a zero arity callback on the calling frame before invoking the return of a gathered, looping sub-cadence. If the gathered, looping sub-cadence is the final callback for the caller, then the explicit return will invoke the next step with the scalar return value. The internal callback holds onto the caller's frame so that we can rewrite the callback results, then return the arrayed results to the next step.

Source Tidy

Tidy source code including structural changes to the internal callback that has a different signature than the standard error first callback. First, I renamed the internal callback to denouement. Second, instead of passing the results as flattened arguments to the internal callback, the denouement, the results are passed around as an array of results.

The rest of the source tidy is bits of dead code, naming and some indentation. Notably, I renamed invocation to frame.

Issue by Issue

  • Release version 0.0.34. #187.
  • Pass frame to createHandler. #186.
  • Gathered loops returning before updating callback results. #185.
  • Pass results as array to denouement. #184.
  • Move change log to GitHub Releases. #183.
  • Rename master to invocation. #182.
  • Tidy. #181.
  • Rename cb to callback in invoke. #179.
  • Rename invocation to frame. #178.
  • Rename async to step. #177.
  • Rename callback to denouement. #176.
  • Add repository type to package.json #175.
  • Upgrade Proof to 0.0.41. #166.