Skip to content

Commit c7bc688

Browse files
committed
chore: Fork the original project
* Change the package name to `@prantlf/karma-sourcemap-loader` * Enable automatic package releases using conventional changelog * Add changelog using conventional changelog BREAKING CHANGE: Use `@prantlf/karma-sourcemap-loader` instead of `karma-sourcemap-loader` as the package name to depend on. The minimum supported version of Node.js is 15.
1 parent 57a028a commit c7bc688

6 files changed

Lines changed: 465 additions & 206 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,10 @@ jobs:
2525
run: npm test
2626
- name: Coverage
2727
uses: codecov/codecov-action@v3
28+
- name: Publish
29+
uses: cycjimmy/semantic-release-action@v3
30+
with:
31+
branches: master
32+
env:
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# 1.0.0 (2023-01-22)
2+
3+
Initial release of [this fork] of the [original project] with the following improvements:
4+
5+
## Features
6+
7+
* Allow remapping or otherwise changing source paths in source maps
8+
* Allow changing `sourceRoot` in source maps
9+
* Allow adapting the source map files alone, if served separately by the Karma web server
10+
* Add option `strict` for a strict error handling of invalid and missing source maps
11+
12+
## Fixes
13+
14+
* Fix handling of raw (URI-encoded) source maps - trim the leading `,` before parsing the content
15+
* Warn about a missing external source map, is the source mapping URL is invalid
16+
* Handle malformed source map content as a warning or failure
17+
18+
## Chores
19+
20+
* Introduce unit tests for the existing functionality
21+
22+
**BREAKING CHANGE**: The minimum supported version of Node.js is 15.
23+
24+
[this fork]: http://github.com/prantlf/karma-sourcemap-loader
25+
[original project]: https://github.com/demerzel3/karma-sourcemap-loader

LICENSE

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
The MIT License (MIT)
2-
3-
Copyright (c) 2013 Sergey Todyshev
4-
5-
Permission is hereby granted, free of charge, to any person obtaining a copy of
6-
this software and associated documentation files (the "Software"), to deal in
7-
the Software without restriction, including without limitation the rights to
8-
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9-
the Software, and to permit persons to whom the Software is furnished to do so,
10-
subject to the following conditions:
11-
12-
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.
14-
15-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17-
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18-
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19-
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20-
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2013-2020 Sergey Todyshev
4+
Copyright (c) 2023 Ferdinand Prantl
5+
6+
Permission is hereby granted, free of charge, to any person obtaining a copy of
7+
this software and associated documentation files (the "Software"), to deal in
8+
the Software without restriction, including without limitation the rights to
9+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
10+
the Software, and to permit persons to whom the Software is furnished to do so,
11+
subject to the following conditions:
12+
13+
The above copyright notice and this permission notice shall be included in all
14+
copies or substantial portions of the Software.
15+
16+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
18+
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
19+
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
20+
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21+
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

0 commit comments

Comments
 (0)