Releases: reatlat/eleventy-plugin-hubspot
Releases · reatlat/eleventy-plugin-hubspot
Release list
v2.0.0
Breaking Changes
- ESM as default module format (CJS still available via
.eleventy.cjs) @11ty/eleventymoved to peerDependencies (>=2.0.0)
Fixed
scriptAttributesnow 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
_headersand_redirectsfor 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
v1.3.4
v1.3.3
v1.3.2
- slightly updated default spinner
- fixed wrong attribute passed to HS form create
Full Changelog: v1.3.1...v1.3.2
v1.3.1
- Remove loading spinner after minification from global options
Ensures the loading spinner HTML is not duplicated by deleting theloadingSpinnerproperty fromoptionsafter its code is minified and added to thehubspotFormCode. This change maintains cleaner data and prevents redundant content in the final output.
Full Changelog: v1.3.0...v1.3.1
v1.3.0
- improved lazy code loading
- Added loading spinner option and refactor script loading
IntroduceloadingSpinnerattribute to show a spinner during form loading. Refactor script loading logic to usequerySelectorinstead ofgetElementByIdand improve code readability.
close #12
Full Changelog: v1.2.2...v1.3.0
v1.2.2
- 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
What's Changed
- Fix #10 Crypt is not defined in older versions of node by @zapalblizh in #11
New Contributors
- @zapalblizh made their first contribution in #11
Full Changelog: v1.2.0...v1.2.1