minor improvements VII
masterRE does not need to be an array
masterRE.min not needed
cache props that do not need to be array and other things
master regex is more simple and fast
boil is back on the prototype, more robust and fast impelementation of masterRE, needs battle testing now with as much urls as possible
bump
a lot of improvements:
- masterRE is sorted now, performing better and giving more expected results
- regexes by depth have two propertes (def and cust) so they can be sorted
finally a boiling with some style
removed lodash.clone dep
ok, the masterRE mapping works now really good so I will have to refactor some code and make it simpler
refactor complete:
- all is a regex now, no distinction for any of the paths
- regexes have the set path attached to them so no need to go far to get it
- the hability to numb all the groups for the masterRE is the fastest thing
- input is ignored on the output object, instead keep the normalized path at o.path and o.url with the full url with no parsing applied
- boil taken out of the prototype, it differenciates between set and get using o.notFound property
cache -> store: not saving results of #get but #set so is a store
parth.store
regex reordering
some more comments, keep track of defined paths
needs a better, more stable algorithm to sort paths, redo tests now
Release 1.6.0. Several improvements:
- parth.cache -> parth.store, we are not caching here at the moment
- simplified version of path lookup, now we can infer path depth directly using the `masterRE`
- parth.set and parth.get returns a regex with useful properties
- less properties attached to the optional object given
- number parameters are parsed