From 1f648989139e368f68b19630efc5942aca1dcaa2 Mon Sep 17 00:00:00 2001 From: karezche <64801825+karenc-bq@users.noreply.github.com> Date: Thu, 28 May 2026 14:12:37 -0700 Subject: [PATCH 1/3] fix: add efm2 to the default plugin chain list for MySQL --- common/lib/connection_plugin_chain_builder.ts | 7 ++----- common/lib/wrapper_property.ts | 1 - 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/common/lib/connection_plugin_chain_builder.ts b/common/lib/connection_plugin_chain_builder.ts index 6aaa52cde..9cc01baa1 100644 --- a/common/lib/connection_plugin_chain_builder.ts +++ b/common/lib/connection_plugin_chain_builder.ts @@ -123,12 +123,9 @@ export class ConnectionPluginChainBuilder { } else { let pluginCodes: string = props.get(WrapperProperties.PLUGINS.name); if (pluginCodes == null) { - pluginCodes = - pluginService.getDriverDialect().getDialectName() === "MySQL2DriverDialect" - ? WrapperProperties.MYSQL2_DEFAULT_PLUGINS - : WrapperProperties.DEFAULT_PLUGINS; + pluginCodes = WrapperProperties.DEFAULT_PLUGINS; } - usingDefault = pluginCodes === WrapperProperties.DEFAULT_PLUGINS || pluginCodes === WrapperProperties.MYSQL2_DEFAULT_PLUGINS; + usingDefault = pluginCodes === WrapperProperties.DEFAULT_PLUGINS; pluginCodes = pluginCodes.trim(); if (pluginCodes !== "") { diff --git a/common/lib/wrapper_property.ts b/common/lib/wrapper_property.ts index 3364f6317..c0ee775c9 100644 --- a/common/lib/wrapper_property.ts +++ b/common/lib/wrapper_property.ts @@ -47,7 +47,6 @@ export class WrapperProperty { export class WrapperProperties { static readonly MONITORING_PROPERTY_PREFIX: string = "monitoring_"; static readonly DEFAULT_PLUGINS = "initialConnection,auroraConnectionTracker,failover2,efm2"; - static readonly MYSQL2_DEFAULT_PLUGINS = "initialConnection,auroraConnectionTracker,failover2"; static readonly DEFAULT_TOKEN_EXPIRATION_SEC = 15 * 60; static readonly PLUGINS = new WrapperProperty( From 4f7426441a005cffca708724a9d975697be74dbd Mon Sep 17 00:00:00 2001 From: karezche <64801825+karenc-bq@users.noreply.github.com> Date: Thu, 28 May 2026 14:20:00 -0700 Subject: [PATCH 2/3] chore: update changelog --- CHANGELOG.md | 1 - 1 file changed, 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e17f93a7..b94fba5d3 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,6 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ### :bug: Fixed -- Use a MySQL-specific default plugin chain when the driver dialect is MySQL2, excluding the `efm2` plugin from the defaults. - Prevent process crash during Aurora failover when using the PostgreSQL client, addresses [issue #620](https://github.com/aws/aws-advanced-nodejs-wrapper/issues/620) ([PR #621](https://github.com/aws/aws-advanced-nodejs-wrapper/pull/621)). ## [2.1.0] - 2026-01-15 From c6cd7119c4671d2f8e50e1f6fb45626819b8de2e Mon Sep 17 00:00:00 2001 From: karezche <64801825+karenc-bq@users.noreply.github.com> Date: Thu, 28 May 2026 14:23:45 -0700 Subject: [PATCH 3/3] chore: update changelog --- CHANGELOG.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b94fba5d3..bcdca208c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), ## [2.1.1] - 2026-05-28 +### :magic_wand: Added + +- Added Aurora Initial Connection Strategy Plugin as one of default plugins enabled. To learn more about the plugin, [see the documentation here.](https://github.com/aws/aws-advanced-nodejs-wrapper/blob/main/docs/using-the-nodejs-wrapper/using-plugins/UsingTheAuroraInitialConnectionStrategyPlugin.md) + ### :bug: Fixed - Prevent process crash during Aurora failover when using the PostgreSQL client, addresses [issue #620](https://github.com/aws/aws-advanced-nodejs-wrapper/issues/620) ([PR #621](https://github.com/aws/aws-advanced-nodejs-wrapper/pull/621)).