Skip to content

v0.9.6

Compare
Choose a tag to compare
@huacnlee huacnlee released this 26 Mar 05:30
· 3 commits to main since this release

Language

  • Improved the navi run and navi test commands for searching the navi.toml within a subproject.
    • Added support for finding navi.toml to locate the workspace path.
    • Added the navi new command to create a new project.
    • Removed the --all-dir option from navi test, as it is no longer necessary.
  • Improved the array type to include more methods: map, filter, filter_map, concat, sum, max, min, position_max, position_min, max_by, position_max_by, min_by, position_min_by, product, index_by, contains_by, clone.
  • Improved the map type by adding clone methods.
  • Updated the spawn behavior to execute immediately.
  • Fixed support to assign closure to closure?.
  • Fixed a bug where the interface default method's first argument must be self error on release.
  • Improved internal conversion from char to string.

Stdlib

  • Added std.log.
  • Added std.io.Write as Logger output support and added the prefix method.
  • Fixed serialization to support union types.
  • Updated the to_string methods of JSON, YAML, and TOML to support any? and added more tests.
  • Fixed serialization bugs for some complex cases.

Tools

  • We have released the Zed extension for Zed with LSP support. Now code formatting, code completion, hover, go-to-definition, find references, rename, and more features are available in Zed.

    • Open your Zed and go to Extensions to search for navi and install it.
    • Currently, only available for Zed Preview version.
  • doc: Added support to generate enum, interface, type for the navi doc command.

  • doc: Fixed impl enum navi doc generation and included the source code signature by using navi-fmt code generation.

  • lsp: Fixed LSP absolute path in Zed and other compatibility fixes for Zed.

  • lsp: Enhanced LSP to support showing hover info on expr nodes.

  • lsp: Fixed LSP inlay hints left padding.

  • fmt: Fixed to ensure that the semicolon comes before for long lines.

Breaking Changes

  • Removed the --all-dir option from navi test, as it is no longer needed.
  • Renamed error interface to Error.
  • Removed execute_many from the sql package because it was deprecated in sqlx.