Skip to content

Commit 7db74fe

Browse files
authored
1 parent 9c778fb commit 7db74fe

File tree

5 files changed

+36
-3
lines changed

5 files changed

+36
-3
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,16 @@
11
# Changelog
22

3+
## [0.4.0] - 2025-01-26
4+
5+
### Changed
6+
7+
- **Breaking:** Normalize exception types ([#428](https://github.com/athena-framework/athena/pull/428)) (George Dietrich)
8+
9+
### Added
10+
11+
- **Breaking:** Add and make `require_tld: true` the default for `AVD::Constraints::URL` ([#492](https://github.com/athena-framework/athena/pull/492)) (George Dietrich)
12+
- Add example usages to `AVD::Constraints::*` docs ([#483](https://github.com/athena-framework/athena/pull/483), [#493](https://github.com/athena-framework/athena/pull/493)) (Zohir Tamda, George Dietrich)
13+
314
## [0.3.4] - 2024-07-31
415

516
### Changed
@@ -152,6 +163,7 @@ _First release a part of the monorepo._
152163

153164
_Initial release._
154165

166+
[0.4.0]: https://github.com/athena-framework/validator/releases/tag/v0.4.0
155167
[0.3.4]: https://github.com/athena-framework/validator/releases/tag/v0.3.4
156168
[0.3.3]: https://github.com/athena-framework/validator/releases/tag/v0.3.3
157169
[0.3.2]: https://github.com/athena-framework/validator/releases/tag/v0.3.2

UPGRADING.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# Upgrading
2+
3+
Documents the changes that may be required when upgrading to a newer component version.
4+
5+
## Upgrade to 0.4.0
6+
7+
### New `AVD::Constraints::URL#require_tld` option
8+
9+
`AVD::Constraints::URL` now requires URLs have a TLD by default; `https://example.com` is valid while `https://example` is not.
10+
If your logic requires the latter to be considered valid, you will need to ensure `require_tld` is set to `false` on usages of this constraint.
11+
12+
### Normalization of Exception types
13+
14+
The namespace exception types live in has changed from `AVD::Exceptions` to `AVD::Exception`.
15+
Any usages of `validator` exception types will need to be updated.
16+
17+
Some additional types have also been removed/renamed:
18+
19+
* `AVD::Exceptions::ValidatorError` has been removed in favor of using `AVD::Exception` directly
20+
21+
If using a `rescue` statement with a parent exception type, either from the `validator` component or Crystal stdlib, double check it to ensure it'll still rescue what you are expecting it will.

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ First, install the component by adding the following to your `shard.yml`, then r
1515
dependencies:
1616
athena-validator:
1717
github: athena-framework/validator
18-
version: ~> 0.3.0
18+
version: ~> 0.4.0
1919
```
2020
2121
## Usage

shard.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: athena-validator
22

3-
version: 0.3.4
3+
version: 0.4.0
44

55
crystal: ~> 1.13
66

src/athena-validator.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ module Athena; end
3434

3535
# Provides a robust object/value validation framework.
3636
module Athena::Validator
37-
VERSION = "0.3.4"
37+
VERSION = "0.4.0"
3838

3939
# :nodoc:
4040
#

0 commit comments

Comments
 (0)