Skip to content
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
38 changes: 38 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,44 @@

<!-- changelog start -->

## [0.22.0 (2025-02-19)]


### Breaking Changes & Upgrade Guide

- Removed deprecated `ellipsis` argument from the `truncate` function. Use `suffix` instead. (https://github.com/vectordotdev/vrl/pull/1188)
- Fix `slice` type_def. This is a breaking change because it might change the fallibility of the `slice` function and this VRL scripts will
need to be updated accordingly.

authors: pront (https://github.com/vectordotdev/vrl/pull/1246)

### New Features

- Added new `to_syslog_facility_code` function to convert syslog facility keyword to syslog facility code. (https://github.com/vectordotdev/vrl/pull/1221)
- Downgrade "can't abort infallible function" error to a warning. (https://github.com/vectordotdev/vrl/pull/1247)
- `ip_cidr_contains` method now also accepts an array of CIDRs.

authors: JakubOnderka (https://github.com/vectordotdev/vrl/pull/1248)
- Faster converting bytes to Unicode string by using SIMD instructions provided by simdutf8 crate.
simdutf8 is up to 23 times faster than the std library on valid non-ASCII, up to four times on pure
ASCII is the same method provided by Rust's standard library. This will speed up almost all VRL methods
like `parse_json` or `parse_regex`.

authors: JakubOnderka (https://github.com/vectordotdev/vrl/pull/1249)
- Added `shannon_entropy` function to generate [entropy](https://en.wikipedia.org/wiki/Entropy_(information_theory)) from a string.

authors: esensar (https://github.com/vectordotdev/vrl/pull/1267)

### Fixes

- Fix decimals parsing in parse_duration function

authors: sainad2222 (https://github.com/vectordotdev/vrl/pull/1223)
- Fix `parse_nginx_log` function when a format is set to error and an error message contains comma.

authors: JakubOnderka (https://github.com/vectordotdev/vrl/pull/1280)


## [0.21.0 (2025-01-13)]


Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "vrl"
version = "0.21.0"
version = "0.22.0"
authors = ["Vector Contributors <[email protected]>"]
edition = "2021"
license = "MPL-2.0"
Expand Down
1 change: 0 additions & 1 deletion changelog.d/1188.breaking.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/1221.feature.md

This file was deleted.

3 changes: 0 additions & 3 deletions changelog.d/1223.fix.md

This file was deleted.

4 changes: 0 additions & 4 deletions changelog.d/1246.breaking.md

This file was deleted.

1 change: 0 additions & 1 deletion changelog.d/1247.feature.md

This file was deleted.

3 changes: 0 additions & 3 deletions changelog.d/1248.feature.md

This file was deleted.

6 changes: 0 additions & 6 deletions changelog.d/1249.feature.md

This file was deleted.

3 changes: 0 additions & 3 deletions changelog.d/1267.feature.md

This file was deleted.

3 changes: 0 additions & 3 deletions changelog.d/1280.fix.md

This file was deleted.

11 changes: 6 additions & 5 deletions release/create_release_pull_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@

from utils.validate_version import assert_version_is_not_published

SCRIPTS_DIR = os.path.dirname(abspath(getsourcefile(lambda: 0)))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a manual fix. The rest is generated 🎉

REPO_ROOT_DIR = os.path.dirname(SCRIPTS_DIR)
RELEASE_DIR = os.path.dirname(abspath(getsourcefile(lambda: 0)))
REPO_ROOT_DIR = os.path.dirname(RELEASE_DIR)
CHANGELOG_DIR = os.path.join(REPO_ROOT_DIR, "changelog.d")

SCRIPTS_DIR = os.path.join(REPO_ROOT_DIR, "scripts")
SCRIPT_FILENAME = os.path.basename(getsourcefile(lambda: 0))

def overwrite_version(version):
toml_path = os.path.join(REPO_ROOT_DIR, "Cargo.toml")
Expand Down Expand Up @@ -72,15 +73,15 @@ def create_branch(branch_name, dry_run=False):

def create_pull_request(branch_name, new_version, dry_run=False):
title = f"chore(releasing): Prepare {new_version} release"
body = "Generated with `./scripts/create-release-pull-request.py`."
body = f"Generated with {SCRIPT_FILENAME}"
print(f"Creating pull request with title: {title}")
if dry_run:
print("Dry-run mode: Skipping PR creation.")
else:
try:
subprocess.run(
["gh", "pr", "create", "--title", title, "--body", body, "--head", branch_name,
"--base", "main"], check=True, cwd=REPO_ROOT_DIR)
"--base", "main", "--label", "no-changelog"], check=True, cwd=REPO_ROOT_DIR)
except subprocess.CalledProcessError as e:
print(f"Failed to create pull request: {e}")

Expand Down
Loading