cardstack / cardboard

Card Board - a Cardstack application for building narrative experiences
https://staging-cardboard.stack.cards/
8 stars 4 forks source link

Update hub version #95

Open jenweber opened 5 years ago

jenweber commented 5 years ago

If you try to install the latest Cardstack plugins in this app, it causes errors. This is because v0.14 removed the branch param, which affected many APIs.

Strategy for ugprading from 0.13.x to 0.14.0 cardstack sdk:

API changes

@cardstack/hub/searchers.get() has been changed to:

@cardstack/hub/searchers.getFromControllingBranch() has been removed. You can replace this with @cardstack/hub/searchers.get() and don't forget to add the hard coded "local-hub" repository name

@cardstack/hub/searchers.search() has been updated to remove the branch parameter. There is no need to add the repository "local-hub" in these calls, as when this is supported, those repository names will just be part of the search query.

@cardstack/hub/searchers.searchFromControllingBranch() has been removed, You can replace this with @cardstack/hub/searchers.search()

For any cardstack/indexer.js file that your cards may have, the following changes have been made:

Additionally, we need to configure TS linting for cardstack applications that use v0.14.x of the hub:

jenweber commented 5 years ago