diff --git a/release_notes/4.0.0.md b/release_notes/4.0.0.md index af83329..49b9e24 100644 --- a/release_notes/4.0.0.md +++ b/release_notes/4.0.0.md @@ -26,6 +26,15 @@ as well. [API reference](https://jasmine.github.io/api/npm/4.0/Jasmine) is considered a private API. +* ES module support is enabled by default, but can still be disabled by + adding `jsLoader: "require"` to the configuration. `jsLoader: "import"` is + now a no-op. + + This change breaks loading of files with extensions that aren't supported by + dynamic `import()`, such as `.jsx`. If you have specs or source files with + such extensions, you can either rename the files to `.js` or add + `jsLoader: "require"` to your Jasmine config file. + * Config files can be ES modules. This is a breaking change because it requires `Jasmine#loadConfigFile` to be async. @@ -57,20 +66,9 @@ as well. ## New features and bugfixes -* Full support for ES modules in the default configuration: - * ES module support is enabled by default, but can still be disabled by - adding `jsLoader: "require"` to the configuration. `jsLoader: "import"` is - now a no-op. - - We think it's highly unlikely that this change will break anything. If it - does (i.e. your code works with `jsLoader: "require"` but not without it), - please [let us know](https://github.com/jasmine/jasmine-npm/issues/new). - This will help us understand whether the `jsLoader` config property is still - needed. - - * Files listed in the `requires` config property can be ES modules +* Files listed in the `requires` config property can be ES modules - * Reporters specified with `--reporter=` can be ES modules. +* Reporters specified with `--reporter=` can be ES modules. * Allow use without creating globals. * See .