Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions lib/plugins/aws/invoke-local/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,7 @@ class AwsInvokeLocal {
'python3.11',
'python3.12',
'python3.13',
'python3.14',
].includes(runtime)
) {
const handlerComponents = handler.split(/\./);
Expand Down
1 change: 1 addition & 0 deletions lib/plugins/aws/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -648,6 +648,7 @@ class AwsProvider {
'python3.11',
'python3.12',
'python3.13',
'python3.14',
'ruby2.7',
'ruby3.2',
'ruby3.3',
Expand Down
11 changes: 11 additions & 0 deletions test/unit/lib/plugins/aws/invoke-local/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,6 +495,17 @@ describe('AwsInvokeLocal', () => {
).to.be.equal(true);
});

it('should call invokeLocalPython when python3.14 runtime is set', async () => {
awsInvokeLocal.options.functionObj.runtime = 'python3.14';
await awsInvokeLocal.invokeLocal();
// NOTE: this is important so that tests on Windows won't fail
const runtime = process.platform === 'win32' ? 'python.exe' : 'python3.14';
expect(invokeLocalPythonStub.calledOnce).to.be.equal(true);
expect(
invokeLocalPythonStub.calledWithExactly(runtime, 'handler', 'hello', {}, undefined)
).to.be.equal(true);
});

it('should call invokeLocalJava when java8 runtime is set', async () => {
awsInvokeLocal.options.functionObj.runtime = 'java8';
await awsInvokeLocal.invokeLocal();
Expand Down
1 change: 1 addition & 0 deletions types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ export type AwsLambdaRuntime =
| "python3.11"
| "python3.12"
| "python3.13"
| "python3.14"
| "ruby2.7"
| "ruby3.2"
| "ruby3.3"
Expand Down