v0.9.6
Language
- Improved the
navi run
andnavi test
commands for searching thenavi.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 fromnavi test
, as it is no longer necessary.
- Added support for finding
- 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 addingclone
methods. - Updated the
spawn
behavior to execute immediately. - Fixed support to assign
closure
toclosure?
. - 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 theprefix
method. - Fixed serialization to support union types.
- Updated the
to_string
methods of JSON, YAML, and TOML to supportany?
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 fornavi
and install it. - Currently, only available for Zed Preview version.
- Open your Zed and go to
-
doc: Added support to generate
enum
,interface
,type
for thenavi doc
command. -
doc: Fixed
impl
enum
navi doc
generation and included the source code signature by usingnavi-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 fromnavi test
, as it is no longer needed. - Renamed
error
interface toError
. - Removed
execute_many
from thesql
package because it was deprecated in sqlx.