From 2fb7673727f4597ec0d2e969f1806f0f1bd66c2e Mon Sep 17 00:00:00 2001 From: mcibique Date: Fri, 24 Sep 2021 16:28:49 +0100 Subject: [PATCH] ONL-6119: huha ESM (#46) * ONL-6119: fix: Fixed mixed exports in huha.js. * ONL-6119: feat: Add ESM entry point into package.json. * ONL-6119: chore: Updated codeowners. * ONL-6119: feat: Updated changelog. --- CHANGELOG.md | 6 ++++++ CODEOWNERS | 2 +- package.json | 3 ++- src/huha.js | 5 ++--- 4 files changed, 11 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ae1f82..26649ff 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## [3.4.0] - 2021-09-24 + +- Updating CODEOWNERS. +- Fix mixed import/exports in `huha.js`. +- Add module entry point. + ## [3.3.1] - 2020-12-23 ### Changed - Bump babel-jest from 25.0.0 to 26.6.3 diff --git a/CODEOWNERS b/CODEOWNERS index aefe8e1..3a2593a 100644 --- a/CODEOWNERS +++ b/CODEOWNERS @@ -1,4 +1,4 @@ # code owners -* @jafcalvente @mcibique @matallo +* @jafcalvente @mcibique @jmesao diff --git a/package.json b/package.json index d689f79..605be73 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@ebury/huha", "description": "huha.js (Hyperactive Users Hint Analysis) is a JavaScript framework that measures the usability and user experience in an automated way, including the limitations of the model and the best practices.", - "version": "3.3.1", + "version": "3.4.0", "repository": "github:Ebury/huha", "license": "MIT", "scripts": { @@ -51,6 +51,7 @@ "uuid": "^3.3.2" }, "main": "dist/huha.js", + "module": "src/huha.js", "jest": { "verbose": true, "testURL": "http://localhost/" diff --git a/src/huha.js b/src/huha.js index 63e1a11..04acb7f 100644 --- a/src/huha.js +++ b/src/huha.js @@ -492,6 +492,5 @@ class Huha { } } -module.exports = Huha; -module.exports.HuhaTask = HuhaTask; -module.exports.HuhaEvent = HuhaEvent; +export default Huha; +export { HuhaTask, HuhaEvent };