Skip to content

Commit

Permalink
Merge branch 'serverless:master' into 9740-seclude-plugin-install-com…
Browse files Browse the repository at this point in the history
…mand
  • Loading branch information
issea1015 committed Sep 21, 2021
2 parents 8179d00 + 9e308bd commit 83fc2d1
Show file tree
Hide file tree
Showing 62 changed files with 642 additions and 523 deletions.
75 changes: 75 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: 🐛 Bug report
description: Create a bug report
body:
- type: checkboxes
attributes:
label: Are you certain it's a bug?
description: If you're uncertain, please report at https://github.com/serverless/serverless/discussions instead
options:
- label: Yes, it looks like a bug
required: true
- type: checkboxes
attributes:
label: Is the issue caused by a plugin?
description: If it comes from an external plugin, please report in the plugin issue tracker
options:
- label: It is not a plugin issue
required: true
- type: checkboxes
attributes:
label: Are you using the latest version?
description: Latest version can be checked at https://github.com/serverless/serverless/releases/latest
options:
- label: Yes, I'm using the latest version
required: true
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists
options:
- label: I have searched existing issues, it hasn't been reported yet
required: true
- type: textarea
attributes:
label: Issue description
validations:
required: true
- type: textarea
attributes:
label: Service configuration (serverless.yml) content
description: |
Provide COMPLETE content of serverless.yml, ensuring that:
• It consistently reproduces described issue
• It's as minimal as possible
• Ideally with no plugins involved (plugin related issues need to be reported at plugin repositories)
• Has sensitive parts masked out
If not applicable, fill with "N/A"
render: yaml
validations:
required: true
- type: input
attributes:
label: Command name and used flags
description: |
Full command name with used flags (If not applicable, fill with "N/A")
placeholder: serverless <command name> [...flags]
validations:
required: true
- type: textarea
attributes:
label: Command output
description: |
COMPLETE command output. Ensure SLS_DEBUG=* env var for verbose debug output
If not applicable, fill with "N/A"
render: shell
validations:
required: true
- type: textarea
attributes:
label: Environment information
description: '"serverless --version" output'
render: shell
validations:
required: true
61 changes: 0 additions & 61 deletions .github/ISSUE_TEMPLATE/bug_report.md

This file was deleted.

2 changes: 1 addition & 1 deletion .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Question
url: https://forum.serverless.com/
url: https://github.com/serverless/serverless/discussions
about: Please ask and answer questions here
21 changes: 21 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: 🎉 Feature request
description: Suggest an idea
body:
- type: checkboxes
attributes:
label: Is there an existing issue for this?
description: Please search to see if an issue already exists
options:
- label: I have searched existing issues, it hasn't been reported yet
required: true
- type: textarea
attributes:
label: Use case description
description: Describe the problem (use case) that needs to be solved
validations:
required: true
- type: textarea
attributes:
label: Proposed solution (optional)
description: |
e.g. propose how the configuration of the new feature could look
30 changes: 0 additions & 30 deletions .github/ISSUE_TEMPLATE/feature_request.md

This file was deleted.

51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,57 @@

All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.

## [2.59.0](https://github.com/serverless/serverless/compare/v2.58.0...v2.59.0) (2021-09-14)

### Features

- **CLI Onboarding:** Switch to `httpApi`-based templates ([#9954](https://github.com/serverless/serverless/pull/9954)) ([12216db](https://github.com/serverless/serverless/commit/12216db579f7f2d055410f1ea9449825628631b7)) ([Piotr Grzesik](https://github.com/pgrzesik))
- **CLI:** First iteration of support for `verbose` mode in `deploy` with modern logs ([#9952](https://github.com/serverless/serverless/pull/9952)) ([fbdd124](https://github.com/serverless/serverless/commit/fbdd124029d10ef029ee5446777db44f907e026c)) ([Piotr Grzesik](https://github.com/pgrzesik))

### Bug Fixes

- **AWS API Gateway:** Ensure consistent default for `cors` conf ([#9909](https://github.com/serverless/serverless/issues/9909)) ([7cd3966](https://github.com/serverless/serverless/commit/7cd3966897fa4432caf3f2bda0037df0c76e382b)) ([Seungchan Ahn](https://github.com/issea1015))

### Maintenance Improvements

- Replace `_.pick` with native property assignment ([#9937](https://github.com/serverless/serverless/issues/9937)) ([6087fa3](https://github.com/serverless/serverless/commit/6087fa3400b508092a5113d40e4b2c4fd8ec22a7)) ([Jonas Matos](https://github.com/JonasMatos0))

## [2.58.0](https://github.com/serverless/serverless/compare/v2.57.0...v2.58.0) (2021-09-13)

### Features

- **AWS API Gateway:** Support `enabled` for `apiKeys` config ([#9918](https://github.com/serverless/serverless/pull/9918)) ([1107763](https://github.com/serverless/serverless/commit/1107763df8fb07a40ec45529f77d99e5a0f6d4d6)) ([Piotr Grzesik](https://github.com/pgrzesik))
- **AWS CloudFront:** Support `behavior.CachePolicyId` ([#9895](https://github.com/serverless/serverless/issues/9895)) ([3abc2f0](https://github.com/serverless/serverless/commit/3abc2f06428b72d964aa8683c34cdcf1d761d140)) ([Seungchan Ahn](https://github.com/issea1015))
- **AWS EventBridge:** Support `deadLetterQueue` and `retryPolicy` ([#9903](https://github.com/serverless/serverless/pull/9903)) ([130fb38](https://github.com/serverless/serverless/commit/130fb3838fd3ea382caabffad74fde8a4041d4fc)) ([Eve](https://github.com/evemontalvao) & [JP Bochi](https://github.com/jpbochi))
- **AWS ActiveMQ:** Add support for `activemq` event ([#8840](https://github.com/serverless/serverless/issues/8840)) ([cacb529](https://github.com/serverless/serverless/commit/cacb529925ed2b2c591984f48bc52cf31f88e698)) ([lewgordon](https://github.com/lewgordon) & [Piotr Grzesik](https://github.com/pgrzesik))
- **AWS Schedule:** Allow multiple `rate` expressions in single event ([#9892](https://github.com/serverless/serverless/pull/9892)) ([9f0bc68](https://github.com/serverless/serverless/commit/9f0bc689cc2ac3e53b4db665b899e1446ac37456)) ([Federico Jasson](https://github.com/federicojasson))
- **CLI:**
- Configure log writing with new (experimental) log engine ([#9923](https://github.com/serverless/serverless/pull/9923)) ([ec93174](https://github.com/serverless/serverless/commit/ec93174b8ccfe1715ce3615dcb2223b145ad0f31)) ([Mariusz Nowak](https://github.com/medikoo))
- Introduce first iteration of modern logs for `deploy` ([#9934](https://github.com/serverless/serverless/issues/9934)) ([171897d](https://github.com/serverless/serverless/commit/171897d60e5adaa590be1f08c99ab2cc76e89ee4)) ([Piotr Grzesik](https://github.com/pgrzesik))
- Do not retry AWS requests if the token has expired ([#9914](https://github.com/serverless/serverless/issues/9914)) ([b0ca237](https://github.com/serverless/serverless/commit/b0ca2376bbfb543d98db1585c3a20a391e1791c6)) ([Mars Lan](https://github.com/mars-lan))
- Support `error` hook to be triggered on command error ([#9936](https://github.com/serverless/serverless/pull/9936)) ([5c9766c](https://github.com/serverless/serverless/commit/5c9766c085531b04e169aa36a552159755029cca)) ([Mariusz Nowak](https://github.com/medikoo))

### Bug Fixes

- **AWS API Gateway:** Ensure proper `RequestValidator` name ([#9910](https://github.com/serverless/serverless/pull/9910)) ([510b1d1](https://github.com/serverless/serverless/commit/510b1d165924d000aa8e81e74e27c69ac1a2e0b6)) ([Piotr Grzesik](https://github.com/pgrzesik))
- **AWS CloudFront:** Recognize `behavior.TrustedKeyGroups` in schema ([#9884](https://github.com/serverless/serverless/pull/9884)) ([da71df6](https://github.com/serverless/serverless/commit/da71df603295397229589c88dd8366426e06e982)) ([Petr Reshetin](https://github.com/preshetin))
- **AWS Lambda:** Recognize `Fn::If` function for `environment` ([#9905](https://github.com/serverless/serverless/pull/9905)) ([63743ad](https://github.com/serverless/serverless/commit/63743ade31207049eee1811203db5622bc510f1a)) ([Piotr Grzesik](https://github.com/pgrzesik))

### Maintenance Improvements

- **CLI:**
- Ensure no monkey patching by progress override ([#9923](https://github.com/serverless/serverless/pull/9923)) ([e46ce80](https://github.com/serverless/serverless/commit/e46ce80d99414ff730355efd1636bab71bb1771c)) ([Mariusz Nowak](https://github.com/medikoo))
- Ensure to clear progress in expected time points ([#9928](https://github.com/serverless/serverless/pull/9928)) ([29aec52](https://github.com/serverless/serverless/commit/29aec529b53d7dd10f4ec61db7c0dc3859995d27)) ([Mariusz Nowak](https://github.com/medikoo))
- Replace `fse.access` with `fs.promises.access` ([#9915](https://github.com/serverless/serverless/issues/9915)) ([5155e01](https://github.com/serverless/serverless/commit/5155e0180e0cd5e3130bc74e308a97c0ea1a5c2b)) ([Sudipto Das](https://github.com/sdas13))
- Replace `fse.readFile` with `fs.promises.readFile` ([#9935](https://github.com/serverless/serverless/issues/9935)) ([f431218](https://github.com/serverless/serverless/commit/f431218790ae31efdc4e0a65a5b17a32605ede3e)) ([Sudipto Das](https://github.com/sdas13))
- Use `getCompiledTemplateS3Suffix` from `provider.naming` ([#9926](https://github.com/serverless/serverless/pull/9926)) ([95d3024](https://github.com/serverless/serverless/commit/95d3024ef55ce80edf20fe27d9c72ffd15bba2bb)) ([Andreas Kohn](https://github.com/ankon))
- Internal API to register service outputs ([#9933](https://github.com/serverless/serverless/pull/9933)) ([b425cf1](https://github.com/serverless/serverless/commit/b425cf1582623c1e796ae9f3d33dc060a9492cb5)) ([Mariusz Nowak](https://github.com/medikoo))
- Register service outputs ([#9933](https://github.com/serverless/serverless/pull/9933)) ([312266e](https://github.com/serverless/serverless/commit/312266e90819866199354183641954636bd5a076)) ([Mariusz Nowak](https://github.com/medikoo))

### Templates

- Remove unnecessary `fmt.Sprintf` in `tencent-go` ([#9847](https://github.com/serverless/serverless/pull/9847)) ([e798c26](https://github.com/serverless/serverless/commit/e798c269df6f456bccf6a1e755015ea1e7631117)) ([kou](https://github.com/kou-pg-0131))

## [2.57.0](https://github.com/serverless/serverless/compare/v2.56.0...v2.57.0) (2021-08-31)

### Features
Expand Down
1 change: 1 addition & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ module.exports = {
[
'',
'API',
'AWS ActiveMQ',
'AWS ALB',
'AWS Alexa',
'AWS API Gateway',
Expand Down
6 changes: 3 additions & 3 deletions docs/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,11 @@ choco upgrade serverless
npm update -g serverless
```

## Set up your free Pro account
## Set up your free Dashboard account

Learn more about [Serverless Framework Pro](https://serverless.com/pro/) and [sign up for free](https://app.serverless.com).
Learn more about the [Serverless Framework Dashboard](https://serverless.com/framework/) and [sign up for free](https://app.serverless.com).

Once you’ve signed up for Pro, login to your Pro dashboard from the CLI:
Once you’ve signed up, login to your dashboard from the CLI:

```bash
serverless login
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/cicd/best-practices.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ layout: Doc

# Serverless CI/CD Best Practices

Serverless Framework Pro provides a lot of capabilities out of the box to help you manage and deploy
Serverless Framework provides a lot of capabilities out of the box to help you manage and deploy
your services. As your teams grow and the number of services grow, it can be difficult to know
the best way to organize your services for scale.

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/cicd/custom-scripts.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ layout: Doc

# Custom scripts

Serverless Framework Pro runs three primary operations on your repository when you have CI/CD configured: (1) install NPM packages via `npm install`, (2) run tests, if present, with `npm test`, and (3) deploy your service using `sls deploy`. You can run custom scripts before or after each of these steps if you need to customize the pipeline further.
Serverless Framework runs three primary operations on your repository when you have CI/CD configured: (1) install NPM packages via `npm install`, (2) run tests, if present, with `npm test`, and (3) deploy your service using `sls deploy`. You can run custom scripts before or after each of these steps if you need to customize the pipeline further.

To run custom scripts before & after NPM install and running tests, use the lifecycle hooks built into `scripts` of your `package.json` file. The `preinstall`, `postinstall`, `pretest`, and `posttest`, scripts are run automatically at each of these steps.

Expand Down
4 changes: 0 additions & 4 deletions docs/guides/cicd/faq.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,6 @@ Yes! Serverless CI/CD is designed around the Serverless Framework to provide a s
Anything you can deploy with the Serverless Framework you can deploy with Serverless CI/CD. The Serverless Framework is
extensible with Plugins , so it works with a broad range of services.

## Is Serverless CI/CD also available for Serverless Framework Pro Enterprise tier?

Yes, Serverless CI/CD works with the Serverless Framework Pro Enterprise tier and it is available for self-hosting.

## Are all runtimes supported?

Only the most popular runtimes, Node and Python, are currently supported. These two runtimes account for about 90% of
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/cicd/notifications.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ layout: Doc

# Notifications

Serverless Framework Pro has integrated Slack, email, SNS and webhook notifications for CI/CD status updates.
Serverless Framework has integrated Slack, email, SNS and webhook notifications for CI/CD status updates.

Notifications for CI/CD events are not setup by default, so you will not get notified of deployments starting,
completing of failing. These notifications must be added manually.
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/cicd/preview-deployments.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Branch names may also include characters such as `/` which are invalid character

## Automatically deleting preview deployments (recommended)

The recommended method for deleting preview service instances is to select "Destroy stage and resources when branch is deleted". If the changes in the PR are accepted then they will be merged and then the branch is deleted. If the changes are rejected the branch is also deleted. Whenever the branch is deleted, Serverless Framework Pro will automatically run `sls remove` on this service instance.
The recommended method for deleting preview service instances is to select "Destroy stage and resources when branch is deleted". If the changes in the PR are accepted then they will be merged and then the branch is deleted. If the changes are rejected the branch is also deleted. Whenever the branch is deleted, Serverless Framework will automatically run `sls remove` on this service instance.

## Manually deleting preview deployments

Expand Down

0 comments on commit 83fc2d1

Please sign in to comment.