New js-cookie JSDelivr dependency does not work

Created on 16 May 2025, 4 days ago

Problem/Motivation

After replacing the js-cookie dependency that was removed from Drupal Core, with the js-cookie CDN library, dismissing Notification Message no longer works.

It appears that the js-cookie library is also deprecated and does not function correctly when instantiated via the Notification Message module.

Steps to reproduce

Install, configure, and set up Notification Messages as normal, including the dismissal settings for any Notification Message created.

Proposed resolution

Re-write the `notification-message.dismiss.js` file to simply use out-of-the-box JavaScript cookie functionality, creating custom functions to parse, read, and set cookies accordingly.

API changes

Remove the dependency on js-cookie entirely.

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States philip_stier Denver, Colorado

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024