Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: aws/aws-encryption-sdk-javascript
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: v4.0.1
Choose a base ref
...
head repository: aws/aws-encryption-sdk-javascript
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: v4.0.2
Choose a head ref
  • 6 commits
  • 15 files changed
  • 4 contributors

Commits on Aug 29, 2024

  1. chore: bump express from 4.18.1 to 4.19.2 in /stream_mem_stress_test (#…

    …1377)
    
    Bumps [express](https://github.com/expressjs/express) from 4.18.1 to 4.19.2.
    - [Release notes](https://github.com/expressjs/express/releases)
    - [Changelog](https://github.com/expressjs/express/blob/master/History.md)
    - [Commits](expressjs/express@4.18.1...4.19.2)
    
    ---
    updated-dependencies:
    - dependency-name: express
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Rishav karanjit <[email protected]>
    dependabot[bot] and rishav-karanjit authored Aug 29, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    1617a06 View commit details
  2. chore: bump fast-xml-parser and @aws-sdk/credential-provider-node (#1460

    )
    
    Bumps [fast-xml-parser](https://github.com/NaturalIntelligence/fast-xml-parser) to 4.4.1 and updates ancestor dependency [@aws-sdk/credential-provider-node](https://github.com/aws/aws-sdk-js-v3/tree/HEAD/packages/credential-provider-node). These dependencies need to be updated together.
    
    
    Updates `fast-xml-parser` from 4.2.5 to 4.4.1
    - [Release notes](https://github.com/NaturalIntelligence/fast-xml-parser/releases)
    - [Changelog](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/CHANGELOG.md)
    - [Commits](NaturalIntelligence/fast-xml-parser@v4.2.5...v4.4.1)
    
    Updates `@aws-sdk/credential-provider-node` from 3.614.0 to 3.637.0
    - [Release notes](https://github.com/aws/aws-sdk-js-v3/releases)
    - [Changelog](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/credential-provider-node/CHANGELOG.md)
    - [Commits](https://github.com/aws/aws-sdk-js-v3/commits/v3.637.0/packages/credential-provider-node)
    
    ---
    updated-dependencies:
    - dependency-name: fast-xml-parser
      dependency-type: indirect
    - dependency-name: "@aws-sdk/credential-provider-node"
      dependency-type: direct:production
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    dependabot[bot] authored Aug 29, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    fef6a6e View commit details
  3. chore: bump axios from 1.7.2 to 1.7.5 (#1459)

    Bumps [axios](https://github.com/axios/axios) from 1.7.2 to 1.7.5.
    - [Release notes](https://github.com/axios/axios/releases)
    - [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
    - [Commits](axios/axios@v1.7.2...v1.7.5)
    
    ---
    updated-dependencies:
    - dependency-name: axios
      dependency-type: indirect
    ...
    
    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Rishav karanjit <[email protected]>
    dependabot[bot] and rishav-karanjit authored Aug 29, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    3708c3e View commit details
  4. chore: upgrade packages to fix dependency vulnerabilities (#1462)

    rishav-karanjit authored Aug 29, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    e248a96 View commit details

Commits on Oct 17, 2024

  1. chore: Improve decrypt performance for large payloads (#1501)

    lucasmcdonald3 authored Oct 17, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature.
    Copy the full SHA
    b71e9d6 View commit details

Commits on Oct 21, 2024

  1. v4.0.2

    aws-crypto-tools-ci-bot committed Oct 21, 2024
    Copy the full SHA
    7e9e3dd View commit details
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.2](https://github.com/awslabs/aws-encryption-sdk-javascript/compare/v4.0.1...v4.0.2) (2024-10-21)

**Note:** Version bump only for package aws-encryption-sdk-javascript

## [4.0.1](https://github.com/awslabs/aws-encryption-sdk-javascript/compare/v4.0.0...v4.0.1) (2024-07-30)

### Bug Fixes
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"packages": ["modules/*"],
"version": "4.0.1",
"version": "4.0.2",
"command": {
"bootstrap": {
"nohoist": ["typedoc"]
4 changes: 4 additions & 0 deletions modules/client-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.2](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.1...v4.0.2) (2024-10-21)

**Note:** Version bump only for package @aws-crypto/client-node

## [4.0.1](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.0...v4.0.1) (2024-07-30)

**Note:** Version bump only for package @aws-crypto/client-node
2 changes: 1 addition & 1 deletion modules/client-node/package.json
Original file line number Diff line number Diff line change
@@ -9,7 +9,7 @@
"CSE",
"aws"
],
"version": "4.0.1",
"version": "4.0.2",
"scripts": {
"build": "tsc -b tsconfig.json",
"lint": "run-s lint-*",
4 changes: 4 additions & 0 deletions modules/decrypt-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.2](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.1...v4.0.2) (2024-10-21)

**Note:** Version bump only for package @aws-crypto/decrypt-node

## [4.0.1](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.0...v4.0.1) (2024-07-30)

**Note:** Version bump only for package @aws-crypto/decrypt-node
2 changes: 1 addition & 1 deletion modules/decrypt-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-crypto/decrypt-node",
"version": "4.0.1",
"version": "4.0.2",
"scripts": {
"prepublishOnly": "npm run build",
"build": "tsc -b tsconfig.json && tsc -b tsconfig.module.json",
21 changes: 15 additions & 6 deletions modules/decrypt-node/src/verify_stream.ts
Original file line number Diff line number Diff line change
@@ -129,7 +129,11 @@ export class VerifyStream extends PortableTransformWithType {
const { currentFrame } = state
if (!currentFrame) {
const { buffer } = state
const frameBuffer = Buffer.concat([buffer, chunk])

// Buffer.concat can be expensive. If buffer is empty, just use the chunk.
const frameBuffer =
buffer.length > 0 ? Buffer.concat([buffer, chunk]) : chunk

const frameHeader = decodeBodyHeader(frameBuffer, this._headerInfo, 0)
if (!frameHeader) {
// Need more data
@@ -192,13 +196,18 @@ export class VerifyStream extends PortableTransformWithType {
if (chunk.length && tagLengthBytes > authTagBuffer.length) {
const left = tagLengthBytes - authTagBuffer.length
if (left > chunk.length) {
state.authTagBuffer = Buffer.concat([authTagBuffer, chunk])
// Buffer.concat can be expensive. If buffer is empty, just use the chunk.
state.authTagBuffer =
authTagBuffer.length > 0
? Buffer.concat([authTagBuffer, chunk])
: chunk
return callback()
} else {
const finalAuthTagBuffer = Buffer.concat(
[authTagBuffer, chunk],
tagLengthBytes
)
// Buffer.concat can be expensive. If buffer is empty, just use the chunk.
const finalAuthTagBuffer =
authTagBuffer.length > 0
? Buffer.concat([authTagBuffer, chunk], tagLengthBytes)
: chunk.slice(0, tagLengthBytes)
if (this._verify) {
this._verify.update(finalAuthTagBuffer)
}
4 changes: 4 additions & 0 deletions modules/example-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.2](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.1...v4.0.2) (2024-10-21)

**Note:** Version bump only for package @aws-crypto/example-node

## [4.0.1](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.0...v4.0.1) (2024-07-30)

**Note:** Version bump only for package @aws-crypto/example-node
2 changes: 1 addition & 1 deletion modules/example-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-crypto/example-node",
"version": "4.0.1",
"version": "4.0.2",
"scripts": {
"prepublishOnly": "npm run build",
"build": "tsc -b tsconfig.json && tsc -b tsconfig.module.json",
4 changes: 4 additions & 0 deletions modules/integration-node/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -3,6 +3,10 @@
All notable changes to this project will be documented in this file.
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.

## [4.0.2](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.1...v4.0.2) (2024-10-21)

**Note:** Version bump only for package @aws-crypto/integration-node

## [4.0.1](https://github.com/aws/aws-encryption-sdk-javascript/compare/v4.0.0...v4.0.1) (2024-07-30)

### Bug Fixes
2 changes: 1 addition & 1 deletion modules/integration-node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@aws-crypto/integration-node",
"version": "4.0.1",
"version": "4.0.2",
"scripts": {
"build": "tsc -b tsconfig.json",
"lint": "run-s lint-*",
Loading