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

glaze 4.2.2 #201648

Merged
merged 2 commits into from
Dec 18, 2024
Merged

glaze 4.2.2 #201648

merged 2 commits into from
Dec 18, 2024

Conversation

BrewTestBot
Copy link
Member

Created by brew bump


Created with brew bump-formula-pr.

release notes
## Slice support for `glz::read_jmespath`
```c++
std::vector data{0,1,2,3,4,5,6,7,8,9};
std::string buffer{};
expect(not glz::write_json(data, buffer));

std::vector slice{};
expect(not glz::read_jmespath<"[0:5]">(slice, buffer));
expect(slice.size() == 5);
expect(slice[0] == 0);
expect(slice[1] == 1);
expect(slice[2] == 2);
expect(slice[3] == 3);
expect(slice[4] == 4);


## Pre-compute JMESPath run-time expressions
The run-time version of `glz::read_jmespath` also now takes in a `const jmespath_expression&`. This allows a `jmespath_expression` to be "compiled" once in the code and reused for much better runtime performance. This caches the tokenization.

```c++
Person child{};
// A runtime expression can be pre-computed and saved for more efficient lookups
glz::jmespath_expression expression{"family.children[0]"};
expect(not glz::read_jmespath(expression, child, buffer));
expect(child.first_name == "Lilly");

Note that this still works:

expect(not glz::read_jmespath("family.children[0]", child, buffer));

by @stephenberry in stephenberry/glaze#1510

Fixes

Full Changelog: stephenberry/glaze@v4.2.1...v4.2.2

@github-actions github-actions bot added the bump-formula-pr PR was created using `brew bump-formula-pr` label Dec 18, 2024
Copy link
Contributor

🤖 An automated task has requested bottles to be published to this PR.

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Dec 18, 2024
@BrewTestBot BrewTestBot added this pull request to the merge queue Dec 18, 2024
Merged via the queue into master with commit 98eb9d3 Dec 18, 2024
15 checks passed
@BrewTestBot BrewTestBot deleted the bump-glaze-4.2.2 branch December 18, 2024 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump-formula-pr PR was created using `brew bump-formula-pr` CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants