Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update serverless version #1388

Merged
merged 33 commits into from
May 12, 2022

Conversation

AndrewCEmil
Copy link
Contributor

Description

I updated the serverless version by running npm i --save-dev serverless@latest .

Motivation and Context

Due to 2 different bugs

npm/cli#3210
serverless/serverless#10876

If you have a version of serverless installed by any package, you cannot run a different version. Since serverless-offline includes all of serverless, it will actually force users that don't have serverless installed elsewhere in their project (ie are using a global installation in their dev environment) to use the version provided by serverless-offline.

Because of all this, and because serverless-offline is a major plugin, it seems right that it should be kept up to date with the main serverless package version.

How Has This Been Tested?

I'm not sure the appropriate way to test this. I just ran the updated package locally and confirmed it worked for all my use cases. Sorry for not being more extensive - I'm happy to do more testing, but I'm not sure how.

Screenshots (if appropriate):

ALOHACREPES345 and others added 30 commits April 9, 2022 16:03
fixed hanging when python raises exception or return nothing
…uplication

Revert "Reduced duplicated code"
…-runner

Revert "fixed hanging when python raises exception or return nothing"
…5-fix-python-runner

Revert "Revert "fixed hanging when python raises exception or return nothing""
…2-revert-1365-fix-python-runner

Revert "Revert "Revert "fixed hanging when python raises exception or return nothing"""
Co-authored-by: Luciano Jesus Lima <luciano@doutoraovivo.com.br>
DocLM and others added 2 commits May 11, 2022 19:54
* Move authorizer and identity data to requestContext in order to follow lambda proxy specs

* Apply context validation for authorizer

* Better route initialization logging
@dnalborczyk
Copy link
Collaborator

dnalborczyk commented May 12, 2022

hi @AndrewCEmil thank you for the PR!

it will actually force users that don't have serverless installed elsewhere in their project (ie are using a global installation in their dev environment) to use the version provided by serverless-offline.

this should not be the case, as serverless is only a dev dependency and a peer dependency.

that said, we could still bump the serverless dev dependency to v3.

@dnalborczyk dnalborczyk merged commit e3214df into dherault:master May 12, 2022
@dnalborczyk
Copy link
Collaborator

@AndrewCEmil unfortunately some tests broke with the update. I'll look into this when I find some time. in the meanwhile I reverted back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.