Skip to content

2.0.0#203

Open
over-engineer wants to merge 21 commits into
masterfrom
next
Open

2.0.0#203
over-engineer wants to merge 21 commits into
masterfrom
next

Conversation

@over-engineer

Copy link
Copy Markdown
Member
  • Migrate the vanilla-cookieconsent library to v3
  • Expose vanilla-cookieconsent v3 configuration options in the admin UI
  • Bump pressidium/cookies block API version to 3
  • Improve database performance by adding indexes to the pressidium_cookie_consents table
  • Add rate limiting for POST /pressidium-cookie-consent/v1/consent requests by IP address
  • Add a backwards-compatible shim for window.pressidiumCookieConsent.allowedCategory()
  • Add Settings and Docs action links to the Plugins page
  • Add settings for customizing consent modal footer links
  • Add a toggle for the consent modal close icon
  • Make the settings page footer sticky
  • Fix excessive requests being sent to POST /pressidium-cookie-consent/v1/consent on every page load
  • Fix disabled Google tag gateway proxy routes falling through to the normal WordPress request lifecycle
  • Fix improper escaping of inline style output

Major version bump since this branch migrates the vanilla-cookieconsent library from version 2.9.x to 3.x, which introduces several breaking changes
Add contributing section to table of contents
Add custom plugin actions to link to the plugin's settings page and official wiki on the WordPress Plugins page (`wp-admin/plugins.php`)
Update the `Blueprint` class of our object-oriented database abstraction to support adding database indexes
Add database indexes to the custom `pressidium_cookie_consents` table
* `idx_consent_date` for the `consent_date` column
* `idx_ip_address` for the `ip_address` column
* `id_created_at` for the `created_at` column
Rename `includes/Database/index.php` to `includes/Database/Index.php` to comply with the PSR-4 autoloading standard.
Add a backwards-compatible shim for `window.pressidiumCookieConsent.allowedCategory()` to improve compatibility with third-party integrations
Max 5 requests per minute per IP address
@over-engineer over-engineer added this to the 2.0.0 milestone May 9, 2026
@over-engineer over-engineer self-assigned this May 9, 2026
@over-engineer

Copy link
Copy Markdown
Member Author

This PR migrates our integration of vanilla-cookieconsent to v3.

The new major version introduces several breaking changes and API differences compared to v2, requiring updates across initialization, configuration, and event handling.

Because this migration includes breaking changes for users of this plugin, merging this PR should be accompanied by a major version bump: 1.x2.0.0 in accordance with semantic versioning.

Changes

  • Upgrade vanilla-cookieconsent to v3
  • Refactor consent initialization to match the new API
  • Update configuration structure, color presets, and option names
  • Introduce new options that only exist in v3 (e.g. consent modal footer, close icon)
  • Migrate deprecated callbacks/events to the new events
  • Expose new client-side events
    • pressidium-cookie-consent-modal-shown
    • pressidium-cookie-consent-modal-hidden
  • Adjust consent category handling
  • Remove delay and transitions options that no longer exist in v3

Breaking Changes

  • Configuration object structure has changed
  • Most option names have been renamed
  • Event/callback hooks were migrated to new ones
  • Minor UI and layout changes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant