Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates codebase from commonjs to es-modules syntax #33

Merged
merged 2 commits into from
May 22, 2023

Conversation

corocoto
Copy link
Contributor

@corocoto corocoto commented May 20, 2023

Description

This PR should resolve the "TypeError: BpmnModdle is not a constructor" error. And should be consistent solution as for Node.js as for browser environment.

Related PRs:

Related issues:

* Updates mocha package to the latest version (it needs to work with es modules)
@@ -32,7 +33,7 @@
"devDependencies": {
"eslint": "^6.7.2",
"eslint-plugin-bpmn-io": "^0.10.0",
"mocha": "^6.2.2",
"mocha": "^10.2.0",
Copy link
Contributor Author

@corocoto corocoto May 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updating to the latest version was neccessary to correctly work with es-modules syntax

@corocoto corocoto changed the title Updates codebase from commonjs to es modules syntax Updates codebase from commonjs to es-modules syntax May 20, 2023
@nikku nikku requested a review from marstamm May 22, 2023 06:39
@nikku
Copy link
Member

nikku commented May 22, 2023

Looks good to me. @marstamm assigning you as a reviewer as you planned to look into this anyway?

example.js Outdated Show resolved Hide resolved
Copy link
Member

@nikku nikku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great. I'll follow up with some cosmetic changes (update to README and stuff). 🎉

@fake-join fake-join bot merged commit 64c858e into bpmn-io:master May 22, 2023
@nikku
Copy link
Member

nikku commented May 22, 2023

Released v0.2.0 with you recent fixes: https://github.com/bpmn-io/bpmn-auto-layout/blob/master/CHANGELOG.md#020.

Great job! 🎉

@corocoto
Copy link
Contributor Author

@nikku, cool! Thanks for your kind words! And thanks a lot for your help 😊

@corocoto corocoto deleted the update/from-commonjs-to-es-modules branch May 26, 2023 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants