Skip to content

Releases: jledentu/sails-hook-slugs

4.0.0

17 Oct 10:32
dc0e7df
Compare
Choose a tag to compare

Breaking Changes

  • Now supports Sails ^1.0.0. This new version won't work any more on older versions of Sails.
  • Removes support of Node.js < 8

2.1.0

29 Mar 07:06
Compare
Choose a tag to compare

Features

Add property blacklist in sails.config.slugs and model attributes to exclude names from slugs.

Changes

  • Replace node-uuid by uuid
  • Remove require-all and Lodash dependencies
  • Replace JSCS + JSHint linters by ESLint

2.0.0

28 Mar 14:59
Compare
Choose a tag to compare

When a slug already exists, a dash is added between the slug and the UUID (thanks @thibaultboursier).

1.0.0

06 Dec 22:05
Compare
Choose a tag to compare

Slugs are lowercased and not capitalized anymore by default.
Add configuration in sails.config.slugs:

  • lowercase (boolean) to lowercase slugs (defaults to true)

Fix some bugs

05 Dec 09:07
Compare
Choose a tag to compare

In the last patch versions, I fixed some bugs I discovered as I was integrating this hook in my own real Sails.js app:

  • Ignored dist directory -> added a .npmignore
  • Missing dependencies -> fixed
  • An issue with attribute property 'from' -> fixed

0.1.0 version

30 Nov 21:56
Compare
Choose a tag to compare
Add lodash dep