MichaelKentBurns / BibleModel

Data model / database containing complete text of the Bible, Cross References, Notes and other references
3 stars 0 forks source link

Convert to newer module specifications (.mjs) #7

Open MichaelKentBurns opened 18 hours ago

MichaelKentBurns commented 18 hours ago

Just doing some reading about Node.js related I just discovered that the original Node.js modules are now referred to as .cjs (using require and module.export syntax) is OLD and with recent ECMA script versions is superseded by .mjs (using import / export syntax) are better and supported by all recent browsers and current Node.js.

So, I'm now determined to make this switchover as a major refactoring task.

My plan is to write some decent jest test cases for my current classes and get them all passing.

Then I will undertake this change.

PS. I'm also introducing the REFACTOR tag for issues. This will be one of the first.

MichaelKentBurns commented 18 hours ago

https://nodejs.org/docs/latest/api/esm.html