Migrate to version 5
What has changed?
Version 5 of Green Housing is focused on deliviring JavaScript bundles that weight less and are easier to work with.
Bundle formats
Previously, the primary usage of Green Housing has been as an IIFE and secondary as an EcmaScript module. This is now reversed due to Ecmascript modules (ESM) being vastly supported and that it’s very easy to work with ESM in conjunction with the now included TypeScript types. The change affect the file names and which file contains which format. First and foremost, the previous econans-green-housing.js
is now ESM instead of IIFE, which in turn is available as econans-green-housing.iife.js
.
Chose bundle for what suits your requirements. However, we highly encourage to use ESM if possible due to its seamless Typescript integration which will make the implementation and future updates easier and safer.
Bundles:
econans-green-housing.js // ESM
econans-green-housing.iife.js // IIFE
Refer to Installation and Initialization for furter information.
Removed configuration overrides
It’s no longer possible to provide languages
or leads
as configuration overrides. Those settings are now always handled by Econans instead. Please contact us for further information or if you have any questions regarding these changes.
Read more about configuration here.