-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
To reflect the breaking change in 83b4218
- Loading branch information
1 parent
febf66c
commit efad7bc
Showing
4 changed files
with
50 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# Changelog | ||
This project follows semantic versioning (semver) 2.0. | ||
Any new features, or breaking changes, will be written in this file. | ||
Bugfixes, internal refactors, documentation improvements and style changes will | ||
not be mentioned here, because they do not impact how the package is to be used. | ||
|
||
## 0.3.0 | ||
### Breaking changes | ||
* Change the bounds checking behaviour of the find* functions to match those of | ||
`Vector`. In particular, previously, `findnext(pred, mem, -5)` would be | ||
equivalent to searching from index 1, and similarly, `findprev(pred, mem, | ||
lastindex(mem) + 10)` would be equialent to searching from `lastindex(mem)`. | ||
Now, searching from an index before the first valid index throws a `BoundsError`. | ||
Findfirst searching from `i > lastindex(mem)`, and findlast searching from | ||
`i < 1` will still simply return `nothing`, just like searching vectors. | ||
|
||
### Other changes | ||
* Add optimised versions of `findprev` and `findlast`, searching bytes | ||
* Add optimised version of `find*(iszero, bytes)` methods | ||
* Add optimised generic `find*` methods | ||
* Add functions `split_first`, `split_last`, `split_at` and `split_unaligned` | ||
* Add a more correct implementation of `Base.mightalias` for memory views and | ||
some types of arrays | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name = "MemoryViews" | ||
uuid = "a791c907-b98b-4e44-8f4d-e4c2362c6b2f" | ||
version = "0.2.2" | ||
version = "0.3.0" | ||
authors = ["Jakob Nybo Nissen <[email protected]>"] | ||
|
||
[weakdeps] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
efad7bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
efad7bc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/121321
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: