diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e17f93a..bcdca208 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,9 +6,12 @@ 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 -- 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 diff --git a/common/lib/connection_plugin_chain_builder.ts b/common/lib/connection_plugin_chain_builder.ts index 6aaa52cd..9cc01baa 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 3364f631..c0ee775c 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(