The SUSHI 3.16.0 release adds support for using NPM aliases when declaring dependencies. This allows authors to declare dependencies on multiple versions of the same package. The syntax for NPM aliases is alias@npm:packageId
. For example:
dependencies:
hl7.fhir.us.core: 7.0.0
v610@npm:hl7.fhir.us.core: 6.1.0
v311@npm:hl7.fhir.us.core: 3.1.1
Notes:
- The alias (prefix before
@npm:
) follows the same rules as ids, allowing forA
-Z
,a
-z
,0
-9
,-
, and.
. - These aliases can also be used in the longer-form dependency syntax (for manually specifying an
id
,uri
,reason
, etc.). - The alias cannot be referenced in FSH content; its only purpose is to allow multiple versions of the same dependency package.
- When resolving versionless references to resources that are in multiple packages, SUSHI will resolve to the latest version.
- This feature is not yet fully supported in all FHIR tools. We don't recommend using it until you see an announcement on Zulip.
What's Changed
Full Changelog: v3.15.1...v3.16.0
Install or Update
SUSHI 3.16.0 is the latest stable release of fsh-sushi. To install or update to SUSHI 3.16.0, run the following command:
$ npm install -g fsh-sushi
To revert to the previous SUSHI stable release, run the following command:
$ npm install -g fsh-sushi@3.15.1
To check or confirm what version of SUSHI you have installed, you can run the following command:
$ sushi -v