Skip to content

v0.10.0

Compare
Choose a tag to compare
@huacnlee huacnlee released this 19 Apr 09:42
· 1 commit to main since this release

Language

  • Added expect, unwrap, unwrap_or, or, or_else, and, and_then, is_nil, map, map_or, ok_or, inspect, flatten methods to optional value.
  • Added type alias statement to define a type alias, and type statement to define a newtype.
  • Improved do/catch to better handle error.
  • Added to support call method in union type.
  • Added support tag attribute for newtype serde.
  • Added to support overridden the default imported names in code scope. e.g.: Error, you can have your own struct Error to override the default Error.

Stdlib

  • Removed std.io.Buffer, instead with new std.io.Bytes.
  • Moved module under lang to std, and default import string, channel, Any, Decimal, removed lang module.
  • Improved to default import print and println method from std, now we can call it directly without use.
  • Added to support log format (full, json, pretty, compact).
  • Renamed URLEncodedForm to UrlEncodedForm in std.net.http.
  • Added File.seek and File.rewind method to std.fs.
  • Added to support flag and mode options for fs.open and File.open method.
  • Added fs.copy, fs.copy_dir, fs.rename, fs.hard_link, fs.symlink, fs.unlink method.
  • Improved assert_throws, the secondary argument support with a closure to write custom assert.

Pkg

  • Added csv package to support read and write CSV file.

Navi Stream

  • Add draw function.

Tools

  • doc: Added more details doc for array methods.
  • doc: Added to support navi-doc to generate method docs in lang.optional, lang.int ...
  • doc: impl Display for Enum, Struct, Interface, and Module.
  • doc: show "instance" for nvs object value types.
  • fmt: Updated to indent for switch and case with different levels.
  • lsp: Added navi_stream language match support for Zed editor.
  • lsp: Added to support goto definition for Navi to Navi Stream source.
  • lsp: Added to support show hover info for struct fields.
  • lsp: Improved find symbol of TypePathNode::Normal.
  • lsp: determine language_id by file extension.
  • lsp: find ImportedModule in current module file symbols first.
  • lsp: fix bug of there being always an error message left (nvs).
  • lsp: generate diagnostics for Navi Stream.
  • lsp: optimize inlay hint padding and improve hover info for Navi Stream.