https://serverless-stack.com/ logo
#guide
Title
# guide
m

Martin Pllu

05/10/2022, 6:25 PM
Hey guys 👋 I started with Docs -> Installation rather than the Guide, so I created a Typescript project with
npm init sst
. The project uses
@serverless-stack/resources 1.0.4
which appears to be incompatible with some of the other docs. For example, https://docs.serverless-stack.com/api#authentication refers to
defaultAuthorizationType
which does not exist in the API props in this version. I found some other examples of this, for example
cognito
is missing from Auth props. If however I use
npx create-serverless-stack@latest --language typescript myproject
as per the Guide, the project uses
@serverless-stack/resources 0.69.7
which appears to be aligned with the Docs as well as the Guide. Can you please advise on the recommended version and command to create a new project? Unless I've missed something obvious, it may also be worth updating the docs.
t

Tim

05/10/2022, 8:06 PM
until everything is updated in the guide, you could probably go through it while referring to the v1 migration guide for changes https://docs.serverless-stack.com/constructs/v0/migration
this section covers the
defaultAuthorizationType
change you ran into https://docs.serverless-stack.com/constructs/v0/migration#authorizers
m

Martin Pllu

05/11/2022, 7:01 AM
Thanks @Tim. I appreciate that things are changing quickly for good reason. In general, for a new project would you recommend that users go with v1 and refer to the changelogs, or stick with an older version like 0.69.7 for now?
f

Frank

05/11/2022, 7:26 PM
@Tim Thanks for clarifying!
@Martin Pllu sorry about the confusion. I’m going to take another sweep at the docs to update all the out-dated code snippets.
Definitely use v1 going forward!
m

Martin Pllu

05/12/2022, 8:20 AM
No problem @Frank- thanks both for your help.