Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

JS Cookie

Security covered Maintenance fixes only 63,754 sites

This module provides the js-cookie JavaScript library for use in Drupal projects, particularly for versions where it's no longer included by default. It allows developers to easily integrate and manage cookies using JavaScript in their Drupal sites.

Provides a Drupal library definition for the JavaScript Cookie library (js-cookie) after it was deprecated in Drupal 10 and removed from Drupal 11.

Instructions

Installing this module and the library dependency

Follow the README.md instructions

Using this module as dependency for the js-cookie library (as developer)

  1. If using this in a custom module, run composer require drupal/js_cookie from your project root.
  2. If using this in a contributed module, make sure to list js_cookie:js_cookie in your module's .info.yml file dependencies. If your contributed module also has a manual composer.json file, make sure to add a require dependency on "drupal/js_cookie": "^1.0".
  3. Replace any of your .libraries.yml dependencies on core/js-cookie with js_cookie/js-cookie.

Avoid using CDN (Privacy)

To avoid using CDN see README for more information.

Drupal 11 · not 10

Ask your assistant about JS Cookie

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

19 tracked projects depend on this one

Activity

Tracked releases
7
Tracked since
Sep 2023
Latest release
10 months ago
Releases (12 mo)
4 ▲ from 0
Maintenance
Slowing

Release Timeline

Releases

Version Type Core PHP Release date
2.0.1 Stable 11 Dec 15, 2025
2.0.1-rc1 Pre-release 11 Dec 3, 2025
2.x-dev Dev 11 Dec 3, 2025
1.0.2 Stable 9–11 Nov 3, 2025
1.0.1 Stable 9–11 Sep 5, 2023
1.0.0 Stable Sep 5, 2023
1.x-dev Dev 9–11 Sep 5, 2023