Skip to content

0.15.1

Choose a tag to compare

@github-actions github-actions released this 30 Jul 11:51
· 479 commits to master since this release
e0a80e3
  • motoko (moc)

    • bugfix: persistent imported actor classes incorrectly rejected as non-persistent (#5667).

    • Allow matching type fields of modules and objects in patterns (#5056)
      This allows importing a type from a module without requiring an indirection or extra binding.

      // What previously required indirection, ...
      import Result "mo:core/Result";
      type MyResult<Ok> = Result.Result<Ok, Text>;
      
      // or rebinding, ...
      import Result "mo:core/Result";
      type Result<Ok, Err> = Result.Result<Ok, Err>;
      type MyResult<Ok> = Result<Ok, Text>;
      
      // can now be written more concisely as:
      import { type Result } "mo:core/Result";
      type MyResult<Ok> = Result<Ok, Text>;