Skip to content

Commit

Permalink
ONL-6119: huha ESM (#46)
Browse files Browse the repository at this point in the history
* 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.
  • Loading branch information
mcibique authored Sep 24, 2021
1 parent 49f401e commit 2fb7673
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# code owners
* @jafcalvente @mcibique @matallo
* @jafcalvente @mcibique @jmesao

<!--managed by ONL team-->
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down Expand Up @@ -51,6 +51,7 @@
"uuid": "^3.3.2"
},
"main": "dist/huha.js",
"module": "src/huha.js",
"jest": {
"verbose": true,
"testURL": "http://localhost/"
Expand Down
5 changes: 2 additions & 3 deletions src/huha.js
Original file line number Diff line number Diff line change
Expand Up @@ -492,6 +492,5 @@ class Huha {
}
}

module.exports = Huha;
module.exports.HuhaTask = HuhaTask;
module.exports.HuhaEvent = HuhaEvent;
export default Huha;
export { HuhaTask, HuhaEvent };

0 comments on commit 2fb7673

Please sign in to comment.