Skip to content

Version 1.6.0

Compare
Choose a tag to compare
@rsimon rsimon released this 19 Nov 09:37
· 48 commits to main since this release

Features/behavior

  • The tag widget now supports functions as vocabulary init option. The function will get the current value of the tag input field as an argument, and must return either, a list of vocabulary terms, e.g.:
// Return an array of strings to serve as suggestions
return ['Animal', 'Person', 'Building'];

// Or return a list of objects with label/uri fields
return [
  { label: 'Animal', uri: 'http//example.com/vocab/Animal' },
  { label: 'Person', uri: 'http//example.com/vocab/Person' },
  { label: 'Building', uri: 'http//example.com/vocab/Building' }
];

Or it must return a Promise of vocabulary items.

Bugfixes

Other

  • Removed downshift dependency in favour of a lighter (and more hackable) custom implementation