- fixed; switched slug dependency to
speakingurl
for Node.js v0.10+ support
Hopefully this is the last of the rapid releases we'll have switching out the
slug package. SpeakingURL works with all Node.js versions from v0.10 to 6, and
has full feature parity with the slug
package we were previously using.
Support for limax
is still in place, if you need support for Latin, Cyrillic,
Chinese and Japanese characters simply install it in your project.
- fixed; switched slug dependency back to
slug
due to problems in Keystone proper
- fixed; switched slug dependency to
mollusc
(fork ofslug
) for Node.js v6+ support
- added;
defer
method
- added;
isDataURL
method, thanks Riyadh Al Nur
- added;
noop
method - fixed;
exports.kmBetween
was incorrectly pointing atmilesBetween
Thanks to Adnan Asani for the fixes in this release
- removed; underscore dependency (requied methods are now included in
index.js
) - changed;
options
now augments and returns the first argument
Thanks to Adnan Asani for the fixes in this release
- changed; now shipping with the
slug
package by default
limax
is now an optional package due to ongoing build issues with its dependencies on certain platforms. To use it (if you want support for Latin, Cyrillic, Chinese and Japanese characters) simply install it in your project; it will automatically be detected and used by keystone-utils.slug()
.
- updated;
randomString
has now been published as its own packagerandomkey
, still available asutils.randomString
- updated;
limax
dependency, previous version was causing some build issues
- fixed; issues with
htmlToText
anddecodeHTMLEntities
, thanks Armel Larcier - improved;
options
method rewritten for clarity, and tests added
- added; happiness linter
- fixed; all linter warnings :)
- changed; now using limax to generate slugs, which handles Latin, Cyrillic, Chinese and Japanese
Special thanks to Arthur Chan and Lovell Fuller for their help getting limax
integrated and working with our tests!
- updated; underscore to ~0.1.7
- fixed; String functions now correctly convert anything with a
toString()
method instead of returning a blank string
- fixed; Handle smart apostrophe in slug, thanks Alan Shaw
- improved; Tests converted to mocha, run with
npm test
. thanks Stefan Aebischer
- added;
calculateDistance
,kmBetween
andmilesBetween
distance calculation methods
- added; support for transliterating Russian and Ukranian words in
exports.slug
viaexports.transliterate
, thanks DrMoriarty
- added; support for converting accented characters (diacritics) to their simple equivalents in
exports.slug
viaexports.stripDiacritics
- added; escapeString method
- fixed; better protection for string conversion functions with
undefined
/ non-string arguments
- fixed;
exports.encodeHTMLEntities
was missing, incorrectly overridingexports.decodeHTMLEntities
- added; randomString method
- improved; support for extended characters in utils.pathToLabel #2, thanks itzaks
- added; including the
html-stringify
module asexports.htmlStringify()
- initial release; branched from core KeystoneJS codebase