We’ve encountered a breaking change in the latest release of the connect-redis
package (v8.0.0) that will affect Wappler NodeJS projects after an ncu -u
update. Specifically, the package now uses a named export instead of the default export.
Details:
- Breaking Change:
connect-redis
has moved from a default export to a named export, causing incompatibility with older versions of the package. - Affected Code in Wappler: The issue arises in the
/lib/setup/session.js
file on line 17, where theconnect-redis
package is required:
if (options.store.$type == 'redis') { // https://www.npmjs.com/package/connect-redis
const RedisStore = require('connect-redis').default;
options.store = new RedisStore(Object.assign({
client: global.redisClient
}, options.store));
}
Last stable release is on v7.1.1