Skip to content

Releases: reatlat/eleventy-plugin-hubspot

v2.0.0

Choose a tag to compare

@reatlat reatlat released this 24 Dec 15:21

Breaking Changes

  • ESM as default module format (CJS still available via .eleventy.cjs)
  • @11ty/eleventy moved to peerDependencies (>=2.0.0)

Fixed

  • scriptAttributes now actually applies to HubSpot script tags
  • Enables cookie consent bypass (OneTrust, Cookiebot, etc.)

Added

  • Cookie Consent Bypass documentation section
  • Live demo link in README
  • Netlify _headers and _redirects for demo
  • Form submission prevention on demo page

Changed

  • Demo redesigned with TailwindCSS
  • Updated to Node.js 22 in CI/CD
  • Demo uses lazy loading mode

Migration Guide

From v1.x to v2.0:

If you're using Eleventy 3.x (ESM):

// Before (v1.x)
const eleventyPluginHubspot = require('eleventy-plugin-hubspot');
module.exports = function (eleventyConfig) { ... };

// After (v2.0)
import eleventyPluginHubspot from 'eleventy-plugin-hubspot';
export default function (eleventyConfig) { ... };

If you're using Eleventy 2.x (CommonJS), no changes needed - the package automatically uses the CJS version.

v1.3.5

Choose a tag to compare

@reatlat reatlat released this 13 Aug 18:42

What's Changed

  • Improve HubSpot forms creation check by @reatlat in #15

Full Changelog: v1.3.4...v1.3.5

v1.3.4

Choose a tag to compare

@reatlat reatlat released this 13 Aug 18:19

What's Changed

  • Refactor null-check for hbspt object. by @reatlat in #14

Full Changelog: v1.3.3...v1.3.4

v1.3.3

Choose a tag to compare

@reatlat reatlat released this 13 Aug 18:12

What's Changed

  • Refactor undefined check for hbspt.forms.create by @reatlat in #13

Full Changelog: v1.3.2...v1.3.3

v1.3.2

Choose a tag to compare

@reatlat reatlat released this 08 Aug 01:14
  • slightly updated default spinner
  • fixed wrong attribute passed to HS form create

Full Changelog: v1.3.1...v1.3.2

v1.3.1

Choose a tag to compare

@reatlat reatlat released this 08 Aug 01:00
  • Remove loading spinner after minification from global options
    Ensures the loading spinner HTML is not duplicated by deleting the loadingSpinner property from options after its code is minified and added to the hubspotFormCode. This change maintains cleaner data and prevents redundant content in the final output.

Full Changelog: v1.3.0...v1.3.1

v1.3.0

Choose a tag to compare

@reatlat reatlat released this 08 Aug 00:44
  • improved lazy code loading
  • Added loading spinner option and refactor script loading
    Introduce loadingSpinner attribute to show a spinner during form loading. Refactor script loading logic to use querySelector instead of getElementById and improve code readability.

close #12

Full Changelog: v1.2.2...v1.3.0

v1.2.2

Choose a tag to compare

@reatlat reatlat released this 07 Aug 20:45
  • Fix HubSpot form creation timing issues
    Added an interval check to ensure HubSpot is fully loaded before attempting to create forms. This prevents errors when the 'hbspt' object or its 'forms.create' method is not yet available.

Full Changelog: v1.2.1...v1.2.2

v1.2.1

Choose a tag to compare

@reatlat reatlat released this 15 May 14:28

What's Changed

New Contributors

Full Changelog: v1.2.0...v1.2.1

v1.2.0

Choose a tag to compare

@reatlat reatlat released this 13 May 08:31

What's Changed

  • add new interact option in addition to eager and lazy by @avree in #9

Full Changelog: v1.1.1...v1.2.0

@avree Thanks!