Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add asmello as an author #32

Merged
merged 2 commits into from
Jun 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,31 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [Unreleased]

This is a breaking release.

### Added

- New slice type `Pointer` that enables zero-copy usage patterns
- New const constructor `const fn Pointer::from_static` for compile-time allocated `Pointer`s
- Zero-allocation `Pointer::root` singleton pointer
- [Quickcheck](https://docs.rs/quickcheck/latest/quickcheck/index.html)-based testing
- New methods: `Pointer::split_front`, `Pointer::split_back`, `Pointer::parent`, `Pointer::strip_suffix`

### Changed
- Debug implementation now preserves type information (e.g. prints `PathBuf("/foo/bar")` instead of `"/foo/bar"`) - `Display` remains the same
- Original `Pointer` type renamed to `PointerBuf`
- `Pointer::root` is now `PointerBuf::new`
- `Pointer::new` is now `PointerBuf::from_tokens`
- `Pointer::union` is now `PointerBuf::intersection`

### Fixed
- Fixes #28: `Pointer::union` is misleadingly named

### Removed
- Removes `impl Deref<Target=&str>`

## [0.4.7] 2024-03-18

- Fixes issue with `pop_front` on a token with an empty string leaving the pointer in an invalid state. #25 by [@wngr](https://github.com/wngr)
Expand Down
4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
authors = ["chance dinkins"]
authors = ["chance dinkins", "André Sá de Mello <[email protected]>"]
description = "Data structures and logic for resolving, assigning, and deleting by JSON Pointers (RFC 6901)"
documentation = "https://docs.rs/jsonptr"
edition = "2021"
Expand All @@ -22,5 +22,5 @@ default = ["std"]
std = ["serde/std", "serde_json/std", "fluent-uri?/std"]

[dev-dependencies]
quickcheck = "1.0.3"
quickcheck = "1.0.3"
quickcheck_macros = "1.0.0"
Loading