the last few git uploads, i've got coveralls working! :+1: show's my mocha tests coverage of 93%
I can add a few more tests to get 100% coverage. TO DO!
Frank
@frankc60
Closed Issue, got coverage to 100% :smile: by adding another test
Frank
@frankc60
I'm working on some improvements - with added functionality, and hope to have it up on NPM within the week
Frank
@frankc60
As mentioned, I am working on improvements (- a lot!) So will be a Major update (2.0.0), and there will be migration steps (i will document at NPM) to keep your current jStrip code working the same, it will be a minimal migration process. Plus you'll get tons of added functionality! :)
Frank
@frankc60
I have applied some updates to github, and you'll see the coverage rate drop, it is working, I just haven't created all the tests yet.. soon to be in NPM!
backwards compatible with minimum changes, I think you'll like version 2.0.0 coming soon!! :+1:
Frank
@frankc60
Version 2.0 has been released to NPM ! :sparkles:
Frank
@frankc60
After a few updates to the Mocha Chai tests, I have 100% coverage again, over 9 Tests! :smile:
released version 2.1.0 (minor), with added jStrip method - removehtml() allowing any html elements to be removed from the contents
Frank
@frankc60
I added 2 new tests, now coverage is 100% :)
Frank
@frankc60
v.2.20 released, with added features:
uppercase()
lowercase() readme updated and also tests
Frank
@frankc60
v2.3 released, with added features:
a "type" property returned with the on() method, telling the datatype: string, url or json
v.2.4 released, with added features:
timeout property, which is able to be set per instance. this is the timeout for the http requests (url data type) in .getData()
Frank
@frankc60
v.2.5 released,
automatic garbage memory collection, on the cache after it has been used
various code tidying
Frank
@frankc60
just released v.2.6, new features: jpretty() - let's you display json neatly
I use it when grabbing complex json data online, to help me identify the field/s I need to get
as it will display the data in a dot delimiter layout, eg {}.menu.data.europe.gbp.eur.rate = 1.20123
so in my on() event handler I can access the json data using this pattern
just remember you need to parse the json first, at it is stringified!
check out the readme section - jpretty() for more info or let me know :)
Frank
@frankc60
just released v2.8
new features:
sort() - sorts a string or array
reverse() - reverse orders an array or string
the coveralls has dropped a few % as I'm still adding new tests (about 8 in total!), i'm working on them, ready shortly! :+1:
Frank
@frankc60
got coverage up to 98%
I have taken out the option to sort() or reverse() strings, as this is causing too much memory usage, as I have to turn it into an array first, and if that is a large webpage, it hits performance too hard. Therefore I have removed the string option for these methods, until I can find another way round, Readme has been documented.
Frank
@frankc60
got coverage back up to 100% :+1:
added 4 new tests, to cover updates to reverse() and sort(), it now accepts string/url (again)
but the string limit is set to 100 chars, as it just kills the machine when trying to convert a string webpage, like 40,000 chars
if these methods are popular I will look at trying to optimise this more :)
Frank
@frankc60
coveralls increased by 0.005% :) at 100%
Frank
@frankc60
0.003% increase,, that's because i'm moving some of the functions in the main file to new files, so more lines
Frank
@frankc60
released version 2.9
new features:
add() - allows addition of numbers
minus() - allows subtraction of numbers
ksnyd
@ksnyd
Frank, I have a question about jstrip v2.9.1, can I email you about it?
I had a problem with the readme not displaying, and looking at issues, seems it was on npm's end with other people reporting the same issue. It is now back!
Frank
@frankc60
@ksnyd i hope you got your code working as you wanted