Skip to content

Commit f58141b

Browse files
committed
v0.38.1
1 parent 76e28b7 commit f58141b

File tree

5 files changed

+24
-8
lines changed

5 files changed

+24
-8
lines changed

Changes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
Revision history for Perl module YAML::PP
22

3+
v0.38.1 2025-01-25 00:30:13+01:00
4+
5+
- Add --duplicate-keys commandline flag
6+
- Forbid unknown tags by default
7+
- Add a 'Catchall' schema to allow unknen tags
8+
- Add a --catchall commandline flag
9+
310
v0.38.0 2024-01-30 00:22:42+01:00
411

512
- Add support for builtin booleans by default

Makefile.PL

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.030.
1+
# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.032.
22
use strict;
33
use warnings;
44

@@ -53,7 +53,7 @@ my %WriteMakefileArgs = (
5353
"Test::Warn" => 0,
5454
"lib" => 0
5555
},
56-
"VERSION" => "v0.38.0",
56+
"VERSION" => "v0.38.1",
5757
"test" => {
5858
"TESTS" => "t/*.t"
5959
}

dist.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ license = Perl_5
44
copyright_holder = Tina Müller
55
copyright_year = 2024
66

7-
version = v0.38.0
7+
version = v0.38.1
88

99
[@Filter]
1010
-bundle = @Basic

lib/YAML/PP.pm

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,18 +1029,26 @@ Serializing Perl objects and types
10291029
10301030
Serializing binary data
10311031
1032-
=item L<YAML::PP::Schema::Tie::IxHash>
1033-
1034-
Deprecated. See option C<preserve>
1035-
10361032
=item L<YAML::PP::Schema::Merge>
10371033
10381034
YAML 1.1 merge keys for mappings
10391035
1036+
=item L<YAML::PP::Schema::Catchall>
1037+
1038+
Adding this allows (and ignores) all unknown tags, like
1039+
1040+
key: !something value
1041+
1042+
By default they will result in an error.
1043+
10401044
=item L<YAML::PP::Schema::Include>
10411045
10421046
Include other YAML files via C<!include> tags
10431047
1048+
=item L<YAML::PP::Schema::Tie::IxHash>
1049+
1050+
Deprecated. See option C<preserve>
1051+
10441052
=back
10451053
10461054
To make the parsing process faster, you can plugin the libyaml parser

t/00.compile.t

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ use warnings;
66

77
use Test::More;
88

9-
plan tests => 33 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
9+
plan tests => 34 + ($ENV{AUTHOR_TESTING} ? 1 : 0);
1010

1111
my @module_files = (
1212
'YAML/PP.pm',
@@ -26,6 +26,7 @@ my @module_files = (
2626
'YAML/PP/Representer.pm',
2727
'YAML/PP/Schema.pm',
2828
'YAML/PP/Schema/Binary.pm',
29+
'YAML/PP/Schema/Catchall.pm',
2930
'YAML/PP/Schema/Core.pm',
3031
'YAML/PP/Schema/Failsafe.pm',
3132
'YAML/PP/Schema/Include.pm',

0 commit comments

Comments
 (0)