| 1 |
Revision history for Data-DPath |
| 2 |
|
| 3 |
0.60 2024-09-29 |
| 4 |
- avoid deprecated smartmatch for most tests [GH #29, Graham Knop] |
| 5 |
|
| 6 |
0.59 2023-07-24 |
| 7 |
- don't use warnings.pm inside Safe container [GH #28, Graham Knop] |
| 8 |
(needed for Perl v5.39+) |
| 9 |
|
| 10 |
0.58 2019-08-28 |
| 11 |
- fix filter expressions containing newlines [reported by David Schmidt] |
| 12 |
- fix quote escaping (please check your edge cases) [Igor Sverdlov] |
| 13 |
- replace List::MoreUtil with List::Util [Dan Book, Igor Sverdlov] |
| 14 |
- doc cleanup [Kivanc Yazan] |
| 15 |
- 'idx' attribute added in 0.56 was not added to Data::DPath::Attrs, |
| 16 |
so didn't acquire an accessor [Diab Jerius] |
| 17 |
|
| 18 |
0.57 2017-08-18 |
| 19 |
- polished Safe.pm handling to cooperate with older Perl and other modules |
| 20 |
in particular Test::Exception [Doug Bell, Jonathan William Taylor] |
| 21 |
|
| 22 |
0.56 2017-03-22 |
| 23 |
- no warnings: 'uninitialized'; Safe compartments; smartmatch operator usage [Diab Jerius] |
| 24 |
- introduce Point attribute 'idx' to be used in array filters [Diab Jerius] |
| 25 |
- Dist::Zilla distro polishing [Diab Jerius] |
| 26 |
|
| 27 |
0.55 2015-09-16 |
| 28 |
- spelling error, sync with Debian [Lucas Kanashiro] |
| 29 |
|
| 30 |
0.54 2015-09-02 |
| 31 |
- new function matchr() which returns results as arrayref |
| 32 |
instead of array (RT#106515) [requested by [email protected]] |
| 33 |
|
| 34 |
0.53 2015-06-03 |
| 35 |
- no import from POSIX (RT#104914) [reported by ether] |
| 36 |
|
| 37 |
0.52 2015-02-27 |
| 38 |
- Make sure feature.pm is only "test.recommends", as is optional prior |
| 39 |
to 5.10 (GH #4, kentnl) |
| 40 |
- skip NYTProf files in dist (GH #6) [kentnl] |
| 41 |
- doc patches (GH #3) [David Schmidt] |
| 42 |
|
| 43 |
0.51 2015-02-04 |
| 44 |
|
| 45 |
- docs: how to do XPath-like attributes access (RT#94211) [Slaven Rezić] |
| 46 |
- avoid warning with perl 5.21+ via newer "aliased" [Doug Bell] |
| 47 |
- speed optimizations (5%) [Reini Urban] |
| 48 |
|
| 49 |
0.50 2014-03-14 |
| 50 |
- micro optimization: _any() saves a dereference |
| 51 |
|
| 52 |
0.49 2012-12-05 |
| 53 |
- Bummer! Uploaded 0.48 as wrong user - too many identities... |
| 54 |
The Creature: "Who am I?" |
| 55 |
Victor Frankenstein: "You? I don't know." |
| 56 |
|
| 57 |
0.48 2012-12-05 |
| 58 |
[Maintenance] |
| 59 |
- fix POD (pdl++) |
| 60 |
- use Test::TAPv13 in xt tests |
| 61 |
|
| 62 |
[Bugfixes] |
| 63 |
- fix tests to work with Perl 5.17.6+ |
| 64 |
|
| 65 |
0.47 2012-05-23 |
| 66 |
- set dependency to Safe.pm 2.30 only in meta but do not require it |
| 67 |
at runtime. This relaxes it for older Perls where newer Safe breaks |
| 68 |
but the corresponding older Safe works good enough. |
| 69 |
|
| 70 |
0.46 2012-04-11 |
| 71 |
[micro fixes only] |
| 72 |
- fix broken links |
| 73 |
- changelog conforms to CPAN::Changes::Spec |
| 74 |
|
| 75 |
0.45 2012-04-11 |
| 76 |
[Maintenance] |
| 77 |
- use Dist::Zilla for building |
| 78 |
- xt/ benchmarks without Safe.pm |
| 79 |
- small optimizations [by Alexei Znamensky] |
| 80 |
|
| 81 |
[Bugfixes] |
| 82 |
- RT#69042: use module Sys::CPU to figure # of processors |
| 83 |
(but deactivated completely for now) |
| 84 |
- RT#72059: incorrect POD syntax : =item * <text> |
| 85 |
- RT#76016: Please depend on Safe 2.30 |
| 86 |
|
| 87 |
0.44 2011-06-22 |
| 88 |
- fix RT#68882 - the value() filter function worked odd |
| 89 |
[reported by Alexei "RUSSOZ" Znamensky] |
| 90 |
|
| 91 |
0.43 2011-04-16 |
| 92 |
[Mainly a maintenance release] |
| 93 |
|
| 94 |
[Bugfixes] |
| 95 |
- allow "too many" parent(/..) steps |
| 96 |
- Avoid clobbering $_ [contributed by FLORA] |
| 97 |
- fix bug with dpathr() |
| 98 |
- Code Æsthetics |
| 99 |
|
| 100 |
[Speed] |
| 101 |
- some speed improvement |
| 102 |
- docs: hint to more slowness with Safe.pm |
| 103 |
- run xt/ benchmarks without Safe.pm |
| 104 |
|
| 105 |
0.42 2011-01-04 |
| 106 |
- dependency to Safe.pm raised |
| 107 |
|
| 108 |
0.41 2010-10-01 |
| 109 |
[Incompatible changes:] |
| 110 |
- restrict filter expression syntax with Safe.pm |
| 111 |
- set local $Data::DPath::USE_SAFE = 0 to enable old eval again |
| 112 |
|
| 113 |
[Bugfixes:] |
| 114 |
- The optimization for '//' (ANYWHERE) had skipped ARRAYs that |
| 115 |
were blessed. It now checks them, too. |
| 116 |
- Hash entry values of 0 or undef were filtered away. Now |
| 117 |
fixed. (spotted by Dirk Melchers) |
| 118 |
|
| 119 |
[Refactoring for easier code and later hopefully easier] |
| 120 |
parallelization. Currently slightly slower. |
| 121 |
|
| 122 |
0.40 2010-07-13 |
| 123 |
[Incompatible API changes!] |
| 124 |
|
| 125 |
[Cleanup iterator style API and document it. It now consists of:] |
| 126 |
- dpathi() ... initialize iterator |
| 127 |
- isearch() ... incremental search |
| 128 |
- deref() ... get actual value |
| 129 |
- ref() ... get reference to actual value |
| 130 |
|
| 131 |
[Several methods now internal (prefixed with underscore) to make] |
| 132 |
the public API more clear. |
| 133 |
|
| 134 |
[Make accessing internal point attributes ("attrs") a public API] |
| 135 |
|
| 136 |
0.37 2010-07-10 |
| 137 |
[Introduce Iterator style context usage] |
| 138 |
- dpathi($data, $path_str) returns an iterator on which you can |
| 139 |
do incremental searches using isearch($path_str) |
| 140 |
- API still experimental |
| 141 |
|
| 142 |
0.36 2010-07-09 |
| 143 |
[New axis ::ancestor] |
| 144 |
- selects all ancestors (parent, grandparent, etc.) of the current node |
| 145 |
|
| 146 |
[New axis ::ancestor-or-self] |
| 147 |
- selects all ancestors (parent, grandparent, etc.) of the current node and the current node itself |
| 148 |
|
| 149 |
[Code refactoring] |
| 150 |
- more readable internal data structure to ease debugging |
| 151 |
- factored out subs |
| 152 |
- this might make the code a bit slower again, but I hope it helps |
| 153 |
profiling and optimizing on encapsulated small parts in the long run |
| 154 |
|
| 155 |
0.35 2010-04-07 |
| 156 |
- Bummer! Fixed stupid perl version checking in tests. |
| 157 |
|
| 158 |
0.34 2010-03-27 |
| 159 |
- solve some CPAN testing issues |
| 160 |
|
| 161 |
0.33 2010-03-24 |
| 162 |
[bugfixes] |
| 163 |
- Fix regression that sneaked in with the //KEY-look-ahead optimization |
| 164 |
|
| 165 |
[maintenance] |
| 166 |
- testsuite maintenance |
| 167 |
- documentation maintenance |
| 168 |
- comparison with Data::Path reworked |
| 169 |
- more verbose array semantics described |
| 170 |
|
| 171 |
0.32 2009-09-25 |
| 172 |
[maintenance] |
| 173 |
- I cannot believe that I forgot to define the dependency to |
| 174 |
Text::Balanced! Let's see if this fixes some FAIL reports. |
| 175 |
|
| 176 |
0.31 2009-09-22 |
| 177 |
[maintenance] |
| 178 |
- fix docs and changelog of 0.30 which appeared rather incomplete |
| 179 |
|
| 180 |
0.30 2009-09-22 |
| 181 |
[Yet more speed optimizations] |
| 182 |
- switch from Object::Tiny::RW to Class::XSAccessor::Array |
| 183 |
- try fast ref() before falling back to slower reftype() |
| 184 |
- use constants |
| 185 |
- We are now at 3.2sec runtime for my benchmark, compared to |
| 186 |
original 65sec v0.17, so we are now 20 times faster. |
| 187 |
|
| 188 |
[maintenance] |
| 189 |
- Backported code to Perl 5.8 |
| 190 |
|
| 191 |
[Enable 5.10 features by default if Perl >= 5.10 available] |
| 192 |
- in particular the overloading of the smartmatch '~~' operator |
| 193 |
- cloned and backported large parts of the test suite to only |
| 194 |
use 5.8 features and skip 5.10 specific suite on 5.8 |
| 195 |
- drop some redundant test scripts |
| 196 |
|
| 197 |
[INCOMPATIBLE CHANGE] |
| 198 |
Filter functions are now hard prototyped, no more behaviour |
| 199 |
depending on optional params. You now have to use explicit |
| 200 |
check functions for this, like this: |
| 201 |
- //ZOMTEC[ reftype eq "Foo::Bar" ] # reftype just returns value |
| 202 |
- //ZOMTEC[ is_reftype("Foo::Bar") ] # is_reftype checks against arg |
| 203 |
|
| 204 |
0.21 2009-09-17 |
| 205 |
[even more aggressive speed optimizations:] |
| 206 |
- dropped Moose and MX::Declare completely in favor of |
| 207 |
Object::Tiny::RW and classical old school subs |
| 208 |
|
| 209 |
[cleaned up dirty code by partially using] |
| 210 |
- no strict 'refs' |
| 211 |
- no warnings 'uninitialized' |
| 212 |
|
| 213 |
[benchmarks] |
| 214 |
- the overall speed improvement for my "xt/large_data.t" |
| 215 |
benchmark is an improved runtime from originally |
| 216 |
- 65s (v0.17) to |
| 217 |
- 4.2s (v0.21) |
| 218 |
on my netbook. Yes, 15 times faster. |
| 219 |
- thanks to Devel::NYTProf which helped a lot profiling this |
| 220 |
|
| 221 |
0.20 2009-09-16 |
| 222 |
[aggressive speed optimizations, needed @ work] |
| 223 |
- the ANYSTEP "//" not looks ahead to the following step and |
| 224 |
reduces the intermediate point sets if it is a hash key, like in |
| 225 |
"//AFFE" |
| 226 |
- remove Moose type constraints |
| 227 |
- more array references instead of arrays |
| 228 |
- partially this led to more dirty code, I try to fix this later |
| 229 |
|
| 230 |
0.17 2009-08-11 |
| 231 |
[filter expressions] |
| 232 |
- understand even more strange perl'oid filter expressions by |
| 233 |
using extract_codeblock instead of extract_bracketed |
| 234 |
- tests for this |
| 235 |
|
| 236 |
0.16 2009-08-11 |
| 237 |
[filter expressions] |
| 238 |
- filter expressions can now contain slashes (just as you would |
| 239 |
naturally expect) |
| 240 |
|
| 241 |
0.15 2009-08-11 |
| 242 |
[filter expressions] |
| 243 |
- fix semantics of filter function key(). It now provides the key |
| 244 |
under which the value is associated. |
| 245 |
- many more and fixed tests |
| 246 |
- doc cleanups and fixes |
| 247 |
- moved distro and development tests under xt/ |
| 248 |
|
| 249 |
0.14 2009-07-14 |
| 250 |
- The overloaded smartmatch "~~" does not work commutative anymore |
| 251 |
in bleadperl and Perl 5.10.1. |
| 252 |
- cleanup for bleadperl smartmatch warnings with undefined $_ |
| 253 |
- minor additions to the comparison section |
| 254 |
|
| 255 |
0.13 2009-07-14 |
| 256 |
- comparison matrix Data::DPath vs. Data::Path, requested in |
| 257 |
RT#47540, http://rt.cpan.org/Public/Bug/Display.html?id=47540 |
| 258 |
|
| 259 |
0.12 2009-06-26 |
| 260 |
- allow returning references into original data structure via new |
| 261 |
frontend function "dpathr" instead of "dpath" |
| 262 |
|
| 263 |
0.11 2009-05-15 |
| 264 |
- Dependencies raised to current MooseX stuff |
| 265 |
|
| 266 |
0.10 2009-04-16 |
| 267 |
- new path step: nostep "." (for filter chaining and on difficult |
| 268 |
elements, like root node) |
| 269 |
- documentation improvements |
| 270 |
|
| 271 |
0.09 2009-02-12 |
| 272 |
- Quoted special chars ("*", "//", "..") now work as keys |
| 273 |
- compatibility with newest MooseX::Method::Signatures on class |
| 274 |
methods [Florian Ragwitz] |
| 275 |
|
| 276 |
0.08 2009-02-11 |
| 277 |
- Fix missing dependency to Test::Deep. Thanks, CPAN testers. |
| 278 |
[v0.07] |
| 279 |
- use Scalar::Util::reftype instead of ref. This enables blessed |
| 280 |
data structures to work. |
| 281 |
- Provide "reftype" and "isa" as filter functions. |
| 282 |
[v0.06] |
| 283 |
- "package" statements to help the CPAN indexer. |
| 284 |
|
| 285 |
0.05 2009-02-10 |
| 286 |
- more docs |
| 287 |
- tests for negative array indexes |
| 288 |
|
| 289 |
0.04 2009-02-10 |
| 290 |
- Fix $VERSION inside MoosX::Declare'd class not recognized by |
| 291 |
CPAN indexer |
| 292 |
|
| 293 |
0.03 2009-02-09 |
| 294 |
- The first useful release, see test suite for many examples! |
| 295 |
- much improved path tokenizer |
| 296 |
- new path steps: parent "..", anywhere "//", anystep "*" |
| 297 |
- implemented filter conditions (in brackets after path step) |
| 298 |
- filter condition type "just index": *[1] |
| 299 |
- filter condition type "eval": *[idx == 3], *[ key =~ m(foo) ] |
| 300 |
- cleaner semantics for STEP[filter] vs. STEP/*[filter] |
| 301 |
- cleaner semantics for combinations of "//", "..", "*", and filters |
| 302 |
- provide filter functions: size, idx, key, value |
| 303 |
- many more tests |
| 304 |
- more clean export behaviour [rafl++] |
| 305 |
- uniq results if found via multiple ways |
| 306 |
- overloaded '~~' smartmatch |
| 307 |
- switch to Module::Install |
| 308 |
- tests do not depend on result order |
| 309 |
|
| 310 |
0.01 2008-11-26 |
| 311 |
- initial CPAN version |
| 312 |
- basic paths, parents, placeholders |