Skip to content

Version 2.6.0

Compare
Choose a tag to compare
@rsimon rsimon released this 19 Nov 10:00
· 126 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

  • Fixes a bug that prevented language switching, from any of the supported languages back to the default en (#104)

Other

  • Removed downshift dependency in favour of a lighter (and more hackable) custom implementation, reducing bundle size by ~20kB.