Skip to content

Commit 3ddb3ea

Browse files
authored
upgrade to version v1.1.1
upgrade to version v1.1.1
2 parents 08cd332 + 2c11d08 commit 3ddb3ea

File tree

12 files changed

+2519
-2932
lines changed

12 files changed

+2519
-2932
lines changed

CHANGELOG.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,20 +5,33 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [1.1.1] - 2023-11-16
9+
10+
### Fixed
11+
12+
- Remove NodeJS 16 from supported runtimes, which was not supported
13+
14+
### Security
15+
16+
- Updated Python and Node package versions to resolve security vulnerabilities
17+
818
## [1.1.0] - 2023-11-02
919

1020
### Added
1121

12-
- Markdown rendering in Chat UI LLM responses
22+
- Markdown rendering in Chat UI LLM responses
23+
24+
### Changed
25+
26+
- Increased prompt and chat input limits to 2000 and 2500 characters respectively
1327

14-
### Updated
28+
### Security
1529

16-
- Increased prompt and chat input limits to 2000 and 2500 characters respectively
17-
- Updated package versions to resolve security vulnerabilities
30+
- Updated package versions to resolve security vulnerabilities
1831

1932
## [1.0.1] - 2023-10-26
2033

21-
### Updated
34+
### Security
2235

2336
- Updated package versions to resolve security vulnerabilities.
2437

source/infrastructure/lib/utils/lambda-aspect.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ export class LambdaAspects extends Construct implements cdk.IAspect {
207207
new TSUserAgentLayer(this.getConstructToCreateLayer(node), 'NodeUserAgentLayer', {
208208
entry: '../lambda/layers/aws-node-user-agent-config',
209209
description: 'This layer configures AWS Node SDK initialization to send user-agent information',
210-
compatibleRuntimes: [lambda.Runtime.NODEJS_16_X, lambda.Runtime.NODEJS_18_X]
210+
compatibleRuntimes: [lambda.Runtime.NODEJS_18_X]
211211
})
212212
);
213213
}
@@ -249,7 +249,7 @@ export class LambdaAspects extends Construct implements cdk.IAspect {
249249
new AwsNodeSdkLibLayer(this.getConstructToCreateLayer(node), 'AwsNodeSdkLayer', {
250250
entry: '../lambda/layers/aws-sdk-lib',
251251
description: 'AWS Javascript SDK v3 to be bundled with lambda functions as a layer',
252-
compatibleRuntimes: [lambda.Runtime.NODEJS_16_X, lambda.Runtime.NODEJS_18_X]
252+
compatibleRuntimes: [lambda.Runtime.NODEJS_18_X]
253253
})
254254
);
255255
}

source/infrastructure/test/layers/node-user-agent.test.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ describe('When node user agent config layer is injected as an aspect', () => {
3333
template.resourceCountIs('AWS::Lambda::LayerVersion', 1);
3434
template.hasResourceProperties('AWS::Lambda::LayerVersion', {
3535
Content: Match.anyValue(),
36-
CompatibleRuntimes: ['nodejs16.x', 'nodejs18.x'],
36+
CompatibleRuntimes: ['nodejs18.x'],
3737
Description: 'This layer configures AWS Node SDK initialization to send user agent information'
3838
});
3939

@@ -64,7 +64,7 @@ describe('When local build fails', () => {
6464
template.resourceCountIs('AWS::Lambda::LayerVersion', 1);
6565
template.hasResourceProperties('AWS::Lambda::LayerVersion', {
6666
Content: Match.anyValue(),
67-
CompatibleRuntimes: ['nodejs16.x', 'nodejs18.x'],
67+
CompatibleRuntimes: ['nodejs18.x'],
6868
Description: 'This layer configures AWS Node SDK initialization to send user agent information'
6969
});
7070
});
@@ -86,13 +86,13 @@ describe('When a non-supported runtime is provided', () => {
8686
new NodeUserAgentLayer(stack, 'AWSUserAgentConfigLayer', {
8787
entry: '../lambda/layers/aws-node-user-agent-config',
8888
description: 'This layer configures AWS Node SDK initialization to send user agent information',
89-
compatibleRuntimes: [lambda.Runtime.NODEJS_16_X, lambda.Runtime.NODEJS_18_X]
89+
compatibleRuntimes: [lambda.Runtime.NODEJS_18_X]
9090
})
9191
]
9292
});
9393
} catch (error) {
9494
expect((error as Error).message).toEqual(
95-
'This lambda function uses a runtime that is incompatible with this layer (python3.11 is not in [nodejs16.x, nodejs18.x])'
95+
'This lambda function uses a runtime that is incompatible with this layer (python3.11 is not in [nodejs18.x])'
9696
);
9797
}
9898
});
@@ -108,13 +108,13 @@ describe('When a non-supported runtime is provided', () => {
108108
new NodeUserAgentLayer(stack, 'AWSUserAgentConfigLayer', {
109109
entry: '../lambda/layers/aws-node-user-agent-config',
110110
description: 'This layer configures AWS Node SDK initialization to send user agent information',
111-
compatibleRuntimes: [lambda.Runtime.NODEJS_16_X, lambda.Runtime.NODEJS_18_X]
111+
compatibleRuntimes: [lambda.Runtime.NODEJS_18_X]
112112
})
113113
]
114114
});
115115
} catch (error) {
116116
expect((error as Error).message).toEqual(
117-
'This lambda function uses a runtime that is incompatible with this layer (nodejs12.x is not in [nodejs16.x, nodejs18.x])'
117+
'This lambda function uses a runtime that is incompatible with this layer (nodejs12.x is not in [nodejs18.x])'
118118
);
119119
}
120120
});
@@ -130,7 +130,7 @@ function buildStack(): cdk.Stack {
130130
new NodeUserAgentLayer(stack, 'AWSUserAgentConfigLayer', {
131131
entry: '../lambda/layers/aws-node-user-agent-config',
132132
description: 'This layer configures AWS Node SDK initialization to send user agent information',
133-
compatibleRuntimes: [lambda.Runtime.NODEJS_16_X, lambda.Runtime.NODEJS_18_X]
133+
compatibleRuntimes: [lambda.Runtime.NODEJS_18_X]
134134
})
135135
]
136136
});

source/infrastructure/test/layers/runtime-lib.test.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('When injecting Nodejs shared library and aws-sdk library layer', () =>
3131
const layerCapture = new Capture();
3232
template.resourceCountIs('AWS::Lambda::LayerVersion', 1);
3333
template.hasResourceProperties('AWS::Lambda::LayerVersion', {
34-
CompatibleRuntimes: ['nodejs16.x', 'nodejs18.x'],
34+
CompatibleRuntimes: ['nodejs18.x'],
3535
Content: Match.anyValue()
3636
});
3737

@@ -55,7 +55,7 @@ describe('When injecting Nodejs shared library and aws-sdk library layer', () =>
5555
buildStack(lambda.Runtime.PYTHON_3_8);
5656
} catch (error) {
5757
expect((error as Error).message).toEqual(
58-
`This lambda function uses a runtime that is incompatible with this layer (${lambda.Runtime.PYTHON_3_8} is not in [nodejs16.x, nodejs18.x])`
58+
`This lambda function uses a runtime that is incompatible with this layer (${lambda.Runtime.PYTHON_3_8} is not in [nodejs18.x])`
5959
);
6060
}
6161
});
@@ -101,7 +101,7 @@ function buildStack(runtime: lambda.Runtime): cdk.Stack {
101101
new AwsNodeSdkLibLayer(stack, 'AwsSharedLibLayer', {
102102
entry: '../lambda/layers/aws-sdk-lib',
103103
description: 'A layer to add aws-sdk shared layer',
104-
compatibleRuntimes: [lambda.Runtime.NODEJS_16_X, lambda.Runtime.NODEJS_18_X]
104+
compatibleRuntimes: [lambda.Runtime.NODEJS_18_X]
105105
})
106106
]
107107
});

source/infrastructure/test/layers/shared-lib.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ describe('When injecting Nodejs shared library and aws-sdk library layer', () =>
5757
buildStack(lambda.Runtime.PYTHON_3_8);
5858
} catch (error) {
5959
expect((error as Error).message).toEqual(
60-
`This lambda function uses a runtime that is incompatible with this layer (${lambda.Runtime.PYTHON_3_8} is not in [nodejs16.x, nodejs18.x])`
60+
`This lambda function uses a runtime that is incompatible with this layer (${lambda.Runtime.PYTHON_3_8} is not in [nodejs18.x])`
6161
);
6262
}
6363
});

source/infrastructure/test/utils/lambda-aspect.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ describe('When applying aspect to a Node based lambda function', () => {
5252
const layerCapture = new Capture();
5353
template.resourceCountIs('AWS::Lambda::LayerVersion', 2);
5454
template.hasResourceProperties('AWS::Lambda::LayerVersion', {
55-
CompatibleRuntimes: ['nodejs16.x', 'nodejs18.x'],
55+
CompatibleRuntimes: ['nodejs18.x'],
5656
Content: Match.anyValue(),
5757
Description: 'This layer configures AWS Node SDK initialization to send user-agent information'
5858
});

source/infrastructure/test/utils/lambda-runtimes.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ describe('When add lambda runtime command', () => {
8989
beforeAll(() => {
9090
jest.doMock('../../lib/utils/constants', () => ({
9191
COMMERCIAL_REGION_LAMBDA_NODE_RUNTIME: lambda.Runtime.NODEJS_18_X,
92-
GOV_CLOUD_REGION_LAMBDA_NODE_RUNTIME: lambda.Runtime.NODEJS_16_X
92+
GOV_CLOUD_REGION_LAMBDA_NODE_RUNTIME: lambda.Runtime.NODEJS_18_X
9393
}));
9494
const { LambdaRuntimeCommandFactory } = require('../../lib/utils/lambda-runtimes');
9595

@@ -105,7 +105,7 @@ describe('When add lambda runtime command', () => {
105105
const result = lambdaRuntimeCommandFactory
106106
.getRuntimeCommand(lambda.RuntimeFamily.NODEJS)
107107
.getLambdaRuntime();
108-
expect(result).toContain('Token');
108+
expect(result).toContain('nodejs18.x');
109109
});
110110
});
111111
});
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
langchain==0.0.325
1+
langchain==0.0.335
22
numpy==1.26.0

0 commit comments

Comments
 (0)