๐ŸŽ Unwrapping the Fourth of Our Festive Releases: Apps SDKs are now available via NPM!

We are back again to unwrap yet another gift (or two? :eyes:) today, so letโ€™s get right into it.

Today weโ€™re announcing something that will make your lives as App developers much easier! Our GA Apps SDKs are now published to NPM :tada:

:gift: Apps SDKs on NPM:

:thinking: How to migrate:

Weโ€™ve already done the migration on the latest version of the starter kit repo, so by making sure youโ€™re up to date with the main branch, you should be good to go once you npm install!

Alternatively, the first time you migrate from local SDKs to ones from the NPM registry, youโ€™ll need to uninstall the local versions first

# using NPM
npm uninstall @canva/design @canva/error @canva/asset @canva/user @canva/platform
# using Yarn
yarn remove @canva/design @canva/error @canva/asset @canva/user @canva/platform

Then reinstall them to ensure theyโ€™re fetched from the NPM registry

# using NPM
npm install @canva/design @canva/error @canva/asset @canva/user @canva/platform
# using Yarn
yarn add @canva/design @canva/error @canva/asset @canva/user @canva/platform

From here you can go ahead and delete the source code for the SDKs you just installed from /sdk.

@canva/preview is not yet on npm, and all preview APIs will still be bundled with the starter kit in /sdk/preview

As always, stay tuned for more :gift:s

8 Likes