Changelog v1.0.6 (2020-09-06)
Previously, app developers needed to install @shipengine/connect-cli globally and @shipengine/connect-sdk locally as an app dependency. They then had to keep them both up-to-date and in-sync with each other, which also required them to be aware of which SDK versions were compatible with which CLI versions.
To simplify things, we've combined the CLI and SDK into a single package called @shipengine/connect. So there's only one thing to install, one version number to know, and the CLI and SDK will always be in-sync.
Action Required
Uninstall the old CLI, and install the new one instead:
npm uninstall --global @shipengine/connect-clinpm install --global @shipengine/connectAlso, in your app directory, uninstall the old SDK and install the new one instead:
npm uninstall @shipengine/connect-sdknpm install --save-dev @shipengine/connectCLI
- Several changes to the
connect initcommand:- It now scaffolds new apps with a dependency on
@shipengine/connectinstead of@shipengine/connect-sdk - The NPM scope no longer defaults to
@shipengine, which was confusing - The version number defaults to
1.0.0instead of0.0.0, just likenpm init - If TypeScript is selected, then it is also the default for app definitions
- The
package.jsonfile now includesprivate: trueto prevent accidentally publishing to NPM - The
package-lock.jsonfile is no longer included in the.gitignore, since it should be check-in to source control - The
.editorconfigorLICENSEfiles are no longer generated - Fixed an error that occurred when running
connect initin an existing app directory
- It now scaffolds new apps with a dependency on
SDK
Removed error codes that were only meant for internal use (
ERR_FILESYSTEM,ERR_SYNTAX,ERR_INVALID_INPUT,ERR_CURRENCY_MISMATCH)Removed error codes and error classes that were HTTP-specific (e.g.
BadRequestError,NotFoundError,RateLimitError) and replaced them with a singleExternalErrorclass andERR_EXTERNALcodeSee our Error Handling Guide for the latest documentation on how to use error codes and classes