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

chore(package.json): Serverless v4 support. #271

Draft
wants to merge 15 commits into
base: master
Choose a base branch
from
Draft

Conversation

neverendingqs
Copy link
Owner

@neverendingqs neverendingqs commented Dec 30, 2024

Resolves #264.

Blocked on serverless/serverless#12969.

Description

Checklist

  • CHANGELOG.md
  • README.md
  • Unit tests
  • Consider performance implications
  • Consider security implications

Exploratory Test Notes

@github-actions github-actions bot added chore Issues around the maintenance of this plugin. documentation labels Dec 30, 2024
Comment on lines +16 to +17
serverless: ['2', '3', '4']
node: [ '18', '20', '22' ]
Copy link
Owner Author

@neverendingqs neverendingqs Dec 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TODO: update CHANGELOG with changes to serverless and Node.js support.

Rationale:

  • serverless@1 doesn't seem to support package.patterns:, causing a circular reference in integration tests (see below)
  • serverless@4 requires at least Node.js v18 and it would be simplest to just support active LTS versions

Comment on lines -16 to -18
"devDependencies": {
"serverless-dotenv-plugin": "^6.0.0"
},
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pre-existing issue: uses a specific version instead of the version in the PR. This change along with the npm link ../../ addition should resolve this.

@@ -2,6 +2,10 @@

service: my-express-application

package:
patterns:
- '!node_modules/serverless-dotenv-plugin/**'
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Avoid circular references due to symlinks.

@neverendingqs neverendingqs mentioned this pull request Dec 31, 2024
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Issues around the maintenance of this plugin. documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants