You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: Change default of onlyWithURL, remove graceful-fs, modernise sources
* Trying to load source maps for files without `sourceMappingURL`
is not something usual and should not be the default behaviour.
* Windows support in Node.js has improved and graceful-fs should
not be needed any more.
* Use modern JavaScript language syntax. Node.js 15 is required
anyway, at least because of the need for `replaceAll`.
BREAKING CHANGE: The package `graceful-fs` is not used any more. It should not affect your project, but better to test it. Source maps are loaded only for files with `sourceMappingURL` by default. (The default value of the option `onlyWithURL` has changed to `true`.) If your JavaScript files lack `sourceMappingURL`, but include external source maps, set the options `onlyWithURL` to `false`.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,10 @@ Initial release of [this fork] of the [original project] with the following impr
19
19
20
20
* Introduce unit tests for the existing functionality
21
21
22
-
**BREAKING CHANGE**: The minimum supported version of Node.js is 15.
22
+
**BREAKING CHANGE**: Use `@prantlf/karma-sourcemap-loader` instead of `karma-sourcemap-loader` as the package name to depend on. Other changes should not affect typical projects:
23
+
* The minimum supported version of Node.js is 15. The current LTS version is already 16.
24
+
* The package `graceful-fs` is not used any more. Recent versions of Node.js should be reliable enough on Windows.
25
+
* Source maps are loaded only for files with `sourceMappingURL` by default. (The default value of the option `onlyWithURL` has changed to `true`.) If your JavaScript files lack `sourceMappingURL`, but include external source maps, set the options `onlyWithURL` to `false`.
The code below shows a sample configuration of the preprocessor with source map loading only for files with the `sourceMappingURL` set. The default behaviour is trying to load source maps for all JavaScript files, also those without the `sourceMappingURL` set.
148
+
The code below shows a sample configuration of the preprocessor with source map loading also for files without the `sourceMappingURL`. The default behaviour tries loading source maps only for JavaScript files with the `sourceMappingURL` set.
0 commit comments