Releases: ts4nfdi/terminology-service-suite
Releases · ts4nfdi/terminology-service-suite
v2.0.1
v2.0.0
2.0.0 (2024-05-07)
chore
- transfer project to TS4NFDI (0fcf444)
BREAKING CHANGES
- new name and repository url
- AutocompleteWidget: the parameter
selectOption
renamed topreselected
- AutocompleteWidget: the
preselected
parameter now expects an array of pre-selected options instead of a single option - AutocompleteWidget: the parameter
selectionChangedEvent
now expects a function that deals with an array of selected options instead of a single option - TitleWidget: parameter
entityType
renamedthingType
To update to version ^2.0.0 in consumer projects change following lines:
React projects:
package.json:
"@ts4nfdi/terminology-service-suite": "^2.0.0"
.npmrc file:
@ts4nfdi:registry=https://npm.pkg.github.com
Imports:
import { AutocompleteWidget } from "@ts4nfdi/terminology-service-suite";
JavaScript:
When implementing the widgets via GitHub link, just change the links:
<link rel="stylesheet" href="https://ts4nfdi.github.io/terminology-service-suite/js-modules/2.0.1/terminology-service-suite.min.js">
and
<script type="text/javascript" src="https://ts4nfdi.github.io/terminology-service-suite/js-modules/2.0.1/terminology-service-suite.min.js"></script>
Also see the demo project