Skip to content

Commit 6fcd276

Browse files
committed
release: version v0.2.0
1 parent 983ea32 commit 6fcd276

File tree

5 files changed

+89
-2
lines changed

5 files changed

+89
-2
lines changed

CHANGELOG.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Changelog
2+
3+
All notable changes to this project will be documented in this file.
4+
5+
Breaking changes are annotated with the ⚠️ symbol.
6+
7+
## v0.2.0 - 2025-03-09
8+
9+
### 🚀 Features
10+
11+
- Add `matches` function
12+
13+
## v0.1.1 - 2024-11-21
14+
15+
### 🚀 Features
16+
17+
- Add `prelude` import
18+
19+
## v0.1.0 - 2024-11-08
20+
21+
<!-- generated by git-cliff -->

Cargo.lock

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "json-patch-ext"
33
authors = ["Applied Computing Research Labs"]
4-
version = "0.1.1"
4+
version = "0.2.0"
55
edition = "2021"
66
description = "Unofficial extensions and helpers for json_patch"
77
license = "MIT"

README.md

+1
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@ Unofficial extensions and helper functions for the [json-patch](https://github.c
99
* Some nice utility functions for constructing patches
1010
* Automatically create parent references in an add operation: e.g., if your path is `/foo/bar/baz`, and your JSON object
1111
looks like `{"foo": {}}`, the result of the add operation will be `{"foo": {"bar": {"baz": <value>}}}`.
12+
* `matches` function returns the matching paths and values for a query string

cliff.toml

+65
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# git-cliff ~ default configuration file
2+
# https://git-cliff.org/docs/configuration
3+
#
4+
# Lines starting with "#" are comments.
5+
# Configuration options are organized into tables and keys.
6+
# See documentation for more information on available options.
7+
8+
[changelog]
9+
# template for the changelog header
10+
header = """
11+
# Changelog\n
12+
All notable changes to this project will be documented in this file.\n
13+
Breaking changes are annotated with the ⚠️ symbol.
14+
"""
15+
# template for the changelog body
16+
# https://keats.github.io/tera/docs/#introduction
17+
body = """
18+
{% if version %}\
19+
## {{version}} - {{ timestamp | date(format="%Y-%m-%d") }}
20+
{% else %}\
21+
## [unreleased]
22+
{% endif %}\
23+
{% for group, commits in commits | group_by(attribute="group") %}
24+
### {{ group | striptags | trim | upper_first }}
25+
{% for commit in commits %}
26+
- {% if commit.scope %}*({{ commit.scope }})* {% endif %}\
27+
{% if commit.breaking %}⚠️ {% endif %}\
28+
{{ commit.message | upper_first }}\
29+
{% endfor %}
30+
{% endfor %}\n
31+
"""
32+
# template for the changelog footer
33+
footer = """
34+
<!-- generated by git-cliff -->
35+
"""
36+
# remove the leading and trailing s
37+
trim = true
38+
39+
[git]
40+
# parse the commits based on https://www.conventionalcommits.org
41+
conventional_commits = true
42+
# filter out the commits that are not conventional
43+
filter_unconventional = true
44+
# process each line of a commit as an individual commit
45+
split_commits = false
46+
# regex for preprocessing the commit messages
47+
commit_preprocessors = [
48+
# Replace issue numbers
49+
#{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"},
50+
# Check spelling of the commit with https://github.com/crate-ci/typos
51+
# If the spelling is incorrect, it will be automatically fixed.
52+
#{ pattern = '.*', replace_command = 'typos --write-changes -' },
53+
]
54+
# regex for parsing and grouping commits
55+
commit_parsers = [
56+
{ message = "^feat", group = "<!-- 0 -->🚀 Features" },
57+
{ message = "^fix", group = "<!-- 1 -->🐛 Bug Fixes" },
58+
{ message = "^k8s", group = "<!-- 4 -->☸️ Kubernetes" }
59+
]
60+
# filter out the commits that are not matched by commit parsers
61+
filter_commits = true
62+
# sort the tags topologically
63+
topo_order = false
64+
# sort the commits inside sections by oldest/newest order
65+
sort_commits = "oldest"

0 commit comments

Comments
 (0)