Debian Codegraph @

Changes

raw
1 0.31 2023-01-06
2
3 - Require Class::XSAccessor 1.17+ when trying to load it. Earlier versions
4 cause test failures. Reported by David Cantrell. GH #27.
5
6
7 0.30 2018-07-31
8
9 - Tweaked the POD formatting so that the table of contents generated by
10 MetaCPAN is more useful.
11
12
13 0.29 2018-07-31
14
15 - Make Class::XSAccessor a recommended dep, not a required one.
16
17
18 0.28 2018-07-31
19
20 - Added a new option for named params, "return_object". This causes the
21 validation sub to return an object with methods for each param rather than a
22 hashref. This is a great way to avoid typos in hash keys. This idea (and
23 some of the implementation) was shamelessly stolen from Toby Inkster's
24 Type::Params module.
25
26
27 0.27 2018-02-11
28
29 - Fixed a bug with inlining Moose types. If a type's parent needed environment
30 variables those would not get closed over. Reported by Mark Fowler. GH #22.
31
32 - Added a debug option to dump the source of the subroutine before it is
33 eval'd.
34
35
36 0.26 2017-11-28
37
38 - The exceptions.t test would fail if Sub::Util was not installed. Reported by
39 Paul Howarth. GH #19.
40
41 - Fix test failures on Windows. GH #20.
42
43
44 0.25 2017-11-23
45
46 - All exceptions now include a stack trace by default when treated as a
47 string. This makes finding where validation failed a lot easier. Fixes GH
48 #18.
49
50 - The name for a subroutine is now used in some exception messages, even if
51 Sub::Util cannot be installed.
52
53
54 0.24 2017-04-08
55
56 - The source_for() exported by Params::ValidationCompiler did not work at
57 all. Reported by Diab Jerius. GH #16.
58
59
60 0.23 2017-01-23
61
62 - Trying to create a validator for positional parameters where a required
63 param came after one with a default did not throw an exception.
64
65 - A positional params validator with a slurpy type which had coercions did not
66 return the coerced values. It returned the original values instead.
67
68
69 0.22 2016-12-31
70
71 - Explicitly load the B module. Previously the code relied on this already
72 being loaded by something else. Fixed by Tomasz Konojacki. PR #11.
73
74 - Removed the alpha warning from the docs.
75
76
77 0.21 2016-12-06
78
79 - Switched to using GitHub issues.
80
81
82 0.20 2016-12-05
83
84 - The keys for parameter specifications are now validated. If an unknown key
85 is seen then an exception will be thrown. This will help you catch typos in
86 your parameter specification. Implemented by Greg Oschwald. PR #8.
87
88
89 0.19 2016-11-21
90
91 - Non-inlinable Specio types caused a syntax error when used with positional
92 params.
93
94 - Positional params with coercions and defaults did not work properly. The
95 coerced value and the default would simply not be returned in any case.
96
97
98 0.18 2016-11-13
99
100 - Using coercions with positional parameters could cause a "Modification of a
101 read-only value attempted" exception when the generated code tried to assign
102 to elements of @_. This is now fixed by making a copy if any of the types
103 have a coercion.
104
105 - Using Moose types with coercions in a positional params check would cause
106 invalid code to be generated. This could also happen with Type::Tiny if
107 either the type or a coercion could not be inlined.
108
109
110 0.17 2016-11-04
111
112 - When using positional parameters, parameters with a default are now
113 optional. For named parameters, this was already the case.
114
115
116 0.16 2016-11-03
117
118 - Moose and Specio types (and coercions) which provide variables to close over
119 when being inlined did not always compile properly. Most notable, this was
120 not being handled at all for Moose types, and not completely handled for
121 Specio coercions.
122
123
124 0.15 2016-11-03
125
126 - Previously, using a default with a positional parameter would result in an
127 error when compiling the validator subroutine. Defaults now work with
128 positional parameters. Implemented by Greg Oschwald. Based on PR #5.
129
130
131 0.14 2016-11-02
132
133 - Added a "named_to_list" option to support returning only the parameter
134 values from a named parameter validator rather than the key-value
135 pairs. Implemented by Greg Oschwald. Based on PR #4.
136
137 - Errors from calls to validation_for() now use croak so as to show up at the
138 call site, rather than in the internals
139
140
141 0.13 2016-09-16
142
143 - Small fixes to make sure that you can pass both readonly and locked hashes
144 to both validation_for and the subroutine it creates for you. Locked hashes
145 work and readonly hashes sort of work on some Perls.
146
147 - Added a new parameter, "name_is_optional". When this is true, the "name"
148 parameter is simply ignored when Sub::Util is not available, rather than
149 causing an exception.
150
151 - Removed List::SomeUtils as a prereq.
152
153
154 0.12 2016-08-16
155
156 - Require Specio for tests instead of Type::Tiny. Type::Tiny does not work
157 with blead and the maintainer has not responded to bug reports for a while.
158
159
160 0.11 2016-08-14
161
162 - Use Sub::Util instead of Sub::Name as our optional sub-naming module, since
163 Sub::Util is part of core as of 5.22.
164
165
166 0.10 2016-08-10
167
168 - The parameters you pass when creating a validator are now validated.
169
170 - The $e->message returned when a Moose type fails now includes the parameter
171 name or position. Adding these for other type systems will come in a future
172 release.
173
174
175 0.09 2016-07-04
176
177 - Really make Sub::Name optional.
178
179
180 0.08 2016-07-03
181
182 - Renamed from Params-CheckCompiler to Params-ValidationCompiler.
183
184 - Made Sub::Name optional. If you try to set the name of a generation
185 validation sub without Sub::Name installed, you will get a fatal error.
186
187
188 0.07 2016-06-18
189
190 - Make the compiled sub for checking named params die if given a single object
191 as an argument, even if the object is implemented using a hashref. However,
192 if the object overloads hash dereferencing then the overloading is
193 used. Reported by Mark Fowler. GitHub #3.
194
195 - Renamed compile() to validation_for(). The latter is not a very specific
196 name. Requested by Mark Fowler. GitHub #1.
197
198
199 0.06 2016-06-18
200
201 - Require Type::Tiny for tests. Reported by Slave Rezic. RT #115413.
202
203 - Fix tests when Moose is installed but Devel::PartialDump is not. Reported by
204 Slave Rezic. RT #115413.
205
206
207 0.05 2016-06-18
208
209 - Removed all remaining uses of Moo.
210
211
212 0.04 2016-06-17
213
214 - Removed more modules from test prereqs that are only used in optional tests.
215
216 - Replace Throwable with Exception::Class.
217
218
219 0.03 2016-06-17
220
221 - Remove Moose from test prereqs. This is only used for an optional test.
222
223 - When generating the source for named params checking, sort the parameters so
224 that the order in which keys are checked is consistent.
225
226 - You can now pass a name parameter when creating a check subroutine. This
227 will be used to name the generated subroutine using Sub::Name.
228
229
230 0.02 2016-05-28
231
232 - Add support for positional parameters.
233
234 - Add support for type checking extra parameters.
235
236 - Renamed allow_extra to slurpy.
237
238
239 0.01 2016-05-24
240
241 - First release upon an unsuspecting world.