diff --git a/Cargo.toml b/Cargo.toml index 78aa7e6..9fecf8c 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ndarray-npy" -version = "0.9.1" +version = "0.10.0" authors = ["Jim Turner "] license = "MIT OR Apache-2.0" repository = "https://github.com/jturner314/ndarray-npy" diff --git a/LICENSE-MIT b/LICENSE-MIT index 9134227..8a2d133 100644 --- a/LICENSE-MIT +++ b/LICENSE-MIT @@ -1,4 +1,4 @@ -Copyright 2018–2024 Jim Turner and ndarray-npy developers +Copyright 2018–2025 Jim Turner and ndarray-npy developers Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in diff --git a/README.md b/README.md index d7dd9f7..5c6680a 100644 --- a/README.md +++ b/README.md @@ -3,8 +3,6 @@ [![Dependencies status](https://deps.rs/repo/github/jturner314/ndarray-npy/status.svg)](https://deps.rs/repo/github/jturner314/ndarray-npy) [![ndarray-npy at crates.io](https://img.shields.io/crates/v/ndarray-npy.svg)](https://crates.io/crates/ndarray-npy) [![Documentation](https://docs.rs/ndarray-npy/badge.svg)](https://docs.rs/ndarray-npy) -[![Matrix chat at #rust-sci:matrix.org](https://img.shields.io/badge/Matrix-%23rust--sci%3Amatrix.org-lightgrey)](https://matrix.to/#/#rust-sci:matrix.org) -[![IRC at #rust-sci on OFTC](https://img.shields.io/badge/IRC-%23rust--sci%20on%20OFTC-lightgrey)](https://webchat.oftc.net/?channels=rust-sci) This crate provides support for reading/writing [`ndarray`]'s `ArrayBase` type from/to [`.npy`] and [`.npz`] files. See the @@ -36,7 +34,7 @@ To use with the default features: ```toml [dependencies] -ndarray-npy = "0.9.1" +ndarray-npy = "0.10.0" ``` The `default` feature set includes the `compressed_npz` feature, which enables @@ -52,7 +50,7 @@ To use without the default features: ```toml [dependencies] -ndarray-npy = { version = "0.9.1", default-features = false } +ndarray-npy = { version = "0.10.0", default-features = false } ``` With `default-features = false`, `ndarray-npy` provides support only for `.npy` @@ -72,7 +70,7 @@ For example, you can use just the `npz` feature: ```toml [dependencies.ndarray-npy] -version = "0.9.1" +version = "0.10.0" default-features = false features = ["npz"] ``` @@ -85,7 +83,7 @@ Library authors should specify their dependency on `ndarray-npy` like this: ```toml [dependencies.ndarray-npy] -version = "0.9.1" +version = "0.10.0" default-features = false features = [FEATURES_LIST_HERE] ``` @@ -113,7 +111,7 @@ be especially appreciated. ## License -Copyright 2018–2024 Jim Turner and `ndarray-npy` developers +Copyright 2018–2025 Jim Turner and `ndarray-npy` developers Licensed under the [Apache License, Version 2.0](LICENSE-APACHE), or the [MIT license](LICENSE-MIT), at your option. You may not use this project except in diff --git a/RELEASES.md b/RELEASES.md index 2405f23..bb5c202 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1,3 +1,30 @@ +# 0.10.0 + +## Breaking Changes + +* Updated to `ndarray` 0.17.1. +* Updated to `zip` 6. +* Updated minimum Rust version to 1.84. +* Changed the `array` parameter of `NpzWriter::add_array` from + `&ArrayBase` to `T: WriteNpyExt + ?Sized` to support the new + `ArrayRef` type in `ndarray` 0.17.1. + +## New Features + +* Added new `create_new_npy` convenience function which uses + `File::create_new`. (In contrast, the existing `write_npy` function + uses `File::create`.) +* Added `NpzWriter::add_array_with_options`, which overrides the + options for that specific array. +* Publicly exposed the `npy` module to provide access to + header-related functionality in the `npy::header` module. In most + cases, users do not need this functionality, but some users have + requested access to it for specific use cases. +* Implemented `WriteNpyExt` for the new `ArrayRef` type in `ndarray` + 0.17.1. +* Removed the implicit `Sized` bound from `write_npy` to support the + new `ArrayRef` type in `ndarray` 0.17.1. + # 0.9.1 * Removed broken links from docs.