Skip to content

Commit

Permalink
chore: Bumped
Browse files Browse the repository at this point in the history
  • Loading branch information
ambroisemaupate committed Feb 27, 2024
1 parent ec7312f commit f9dc1ea
Show file tree
Hide file tree
Showing 3 changed files with 147 additions and 8 deletions.
42 changes: 35 additions & 7 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
## 1.2.2 (2022-09-15)
# Changelog

All notable changes to Tree-Walker will be documented in this file.

## [1.4.0](https://github.com/rezozero/tree-walker/compare/1.3.0...1.4.0) - 2024-02-27

### CI/CD

- Added Github Actions, dropped Travis - ([ec7312f](https://github.com/rezozero/tree-walker/commit/ec7312fa0ea85bc5ef56d8b0a27d1dabc05a9576))

### Refactor

- Support Symfony 6/7 for TreeWalkerNormalizer, respect serialization groups - ([52109be](https://github.com/rezozero/tree-walker/commit/52109be5710061a4cf30cb896c3efdbb42489199))

## [1.3.0](https://github.com/rezozero/tree-walker/compare/1.2.2...1.3.0) - 2022-10-13

### Features

- Migration to PHP 8.0 with static return type and attributes - ([4ad5448](https://github.com/rezozero/tree-walker/commit/4ad54486cf284bc59be2fe09d8a79d60f3a47206))

## [1.2.2](https://github.com/rezozero/tree-walker/compare/1.2.1...1.2.2) - 2022-09-15

### Bug Fixes

* Added default ignored fields and methods when no serialization groups are defined ([21940f7](https://github.com/rezozero/tree-walker/commit/21940f76c479aef99c93c4b63a45c679d1a7818c))
- Added default ignored fields and methods when no serialization groups are defined - ([21940f7](https://github.com/rezozero/tree-walker/commit/21940f76c479aef99c93c4b63a45c679d1a7818c))

## 1.2.1 (2022-08-29)
## [1.2.1](https://github.com/rezozero/tree-walker/compare/1.2.0...1.2.1) - 2022-08-29

### Bug Fixes

* Do not set level to `\INF` because its value can be used in top-level applications ([5331036](https://github.com/rezozero/tree-walker/commit/53310366976f6e7b5a7dbe36994a918e629a865a))
- Do not set level to \INF because its value can be used in top-level applications - ([5331036](https://github.com/rezozero/tree-walker/commit/53310366976f6e7b5a7dbe36994a918e629a865a))

## 1.2.0 (2022-08-29)
## [1.2.0](https://github.com/rezozero/tree-walker/compare/1.1.0...1.2.0) - 2022-08-29

### Features

* Added `StoppableDefinition` interface to prevent walker to collect children after being invoked ([b1fd429](https://github.com/rezozero/tree-walker/commit/b1fd429336d4b10bfe71498b84c494eaf6b8eee8))
* Introduced `AbstractCycleAwareWalker` to detect cyclic children collection based on `spl_object_id` ([607520a](https://github.com/rezozero/tree-walker/commit/607520a00f8c084252d31e51f7ca9b7f9b4fe50a))
- Introduced AbstractCycleAwareWalker to detect cyclic children collection based on spl_object_id - ([607520a](https://github.com/rezozero/tree-walker/commit/607520a00f8c084252d31e51f7ca9b7f9b4fe50a))
- Added StoppableDefinition interface to prevent walker to collect children after being invoked - ([b1fd429](https://github.com/rezozero/tree-walker/commit/b1fd429336d4b10bfe71498b84c494eaf6b8eee8))

## [1.1.0](https://github.com/rezozero/tree-walker/compare/1.0.6...1.1.0) - 2022-05-24

### Bug Fixes

- ignore public getter for serialization - ([59b8325](https://github.com/rezozero/tree-walker/commit/59b8325fca4a4d6066a6b03e83d02aed0904b196))
- metadata getter should be callable without parameters - ([60bff58](https://github.com/rezozero/tree-walker/commit/60bff582a8aed41aa53b541002e8257435fa187c))

<!-- generated by git-cliff -->
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
MIT License
-----------

Copyright (c) 2022 Ambroise Maupate
Copyright (c) 2024 Rezo Zero
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
Expand Down
111 changes: 111 additions & 0 deletions cliff.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,111 @@
# git-cliff ~ default configuration file
# https://git-cliff.org/docs/configuration
#
# Lines starting with "#" are comments.
# Configuration options are organized into tables and keys.
# See documentation for more information on available options.

[changelog]
# changelog header
header = """
# Changelog\n
All notable changes to Tree-Walker will be documented in this file.\n
"""
# template for the changelog body
# https://keats.github.io/tera/docs/#introduction
body = """
{% if version %}\
{% if previous.version %}\
## [{{ version | trim_start_matches(pat="v") }}](<REPO>/compare/{{ previous.version }}...{{ version }}) - {{ timestamp | date(format="%Y-%m-%d") }}
{% else %}\
## [{{ version | trim_start_matches(pat="v") }}] - {{ timestamp | date(format="%Y-%m-%d") }}
{% endif %}\
{% else %}\
## [unreleased]
{% endif %}\
{% set_global breaking_descriptions = [] %}\
{% for commit in commits | filter(attribute="breaking", value=true) %}\
{% if commit.breaking_description %}\
{% set_global breaking_descriptions = breaking_descriptions | concat(with=commit.breaking_description) %}\
{% else %}\
{% set_global breaking_descriptions = breaking_descriptions | concat(with=commit.message) %}\
{% endif %}\
{% endfor %}\
{% if breaking_descriptions | length > 0 %}
### ⚠ Breaking changes
{% for description in breaking_descriptions %}
- {{ description | upper_first }}\
{% endfor %}
{% endif %}\
{% for group, commits in commits | group_by(attribute="group") %}
### {{ group | striptags | trim | upper_first }}
{% for commit in commits
| filter(attribute="scope")
| sort(attribute="scope") %}
- **({{commit.scope}})**{% if commit.breaking %} [**breaking**]{% endif %} \
{{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }}))
{%- endfor -%}
{% raw %}\n{% endraw %}\
{%- for commit in commits %}
{%- if commit.scope -%}
{% else -%}
- {% if commit.breaking %} [**breaking**]{% endif %}\
{{ commit.message }} - ([{{ commit.id | truncate(length=7, end="") }}](<REPO>/commit/{{ commit.id }}))
{% endif -%}
{% endfor -%}
{% endfor %}\n
"""
# remove the leading and trailing whitespace from the template
trim = true
# changelog footer
footer = """
<!-- generated by git-cliff -->
"""
# postprocessors
postprocessors = [
{ pattern = '<REPO>', replace = "https://github.com/rezozero/tree-walker" },
]
[git]
# parse the commits based on https://www.conventionalcommits.org
conventional_commits = true
# filter out the commits that are not conventional
filter_unconventional = true
# process each line of a commit as an individual commit
split_commits = false
# regex for preprocessing the commit messages
commit_preprocessors = [
{ pattern = '\((\w+\s)?#([0-9]+)\)', replace = "([#${2}](<REPO>/issues/${2}))"}, # replace issue numbers
]
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat(ure)?", group = "Features" },
{ message = "^fix(es)?", group = "Bug Fixes" },
{ message = "^docs?", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactor" },
{ message = "^style", group = "Styling" },
{ message = "^tests?", group = "Testing" },
{ message = "^chore", skip = true },
{ message = "^ci", group = "CI/CD" },
{ body = ".*security", group = "Security" },
{ message = "^revert", group = "Revert" },
]
# protect breaking changes from being skipped due to matching a skipping commit_parser
protect_breaking_commits = false
# filter out the commits that are not matched by commit parsers
filter_commits = true
# regex for matching git tags
tag_pattern = "v?[0-9].*"

# regex for skipping tags
skip_tags = "v0.1.0-beta.1"
# regex for ignoring tags
ignore_tags = ""
# sort the tags topologically
topo_order = true
# sort the commits inside sections by oldest/newest order
sort_commits = "newest"
# limit the number of commits included in the changelog.
# limit_commits = 42

0 comments on commit f9dc1ea

Please sign in to comment.