sanctuary-js / sanctuary

:see_no_evil: Refuge from unsafe JavaScript
https://sanctuary.js.org
MIT License
3.03k stars 94 forks source link

ECMAScript modules #726

Open davidchambers opened 6 months ago

davidchambers commented 6 months ago

The transition from ES3 (!) to ES6 has taken far longer than anticipated: I opened #687 more than three years ago. I am committed to completing that transition this month.

That will clear the way for adopting ECMAScript modules. I am committed to converting all the Sanctuary projects to ESM this month, and to releasing a new major version of each package. I am extremely grateful to @jceb for funding this work. :heart:


I have not been active here lately. I have been working full-time on a new JavaScript dialect for much of this year (if you'd like early access, let me know). This new dialect makes Sanctuary even more enjoyable to use than it is in regular JavaScript.

CrossEye commented 6 months ago

Exciting to see!

I'd love to catch up sometime, and would very much like to hear about this dialect.

davidchambers commented 6 months ago

The new year will soon begin. :fireworks:

I set myself two goals for December: I completed the ES6 transition; I did not convert all the Sanctuary projects to ESM.

I did make significant progress towards the second goal. The biggest challenge was and remains rethinking or somehow removing Sanctuary's create function. @Avaq has suggested several viable solutions. I implemented one of these; we decided to leave sanctuary-js/sanctuary-def#317 in limbo while we consider another approach that may be even better.

I will carry this momentum into January. I am committed to completing the transition to ESM in January, and to releasing a new major version of each package.