Skip to content
This repository was archived by the owner on Aug 9, 2025. It is now read-only.

Commit 9c050d6

Browse files
chore(release): 1.2.5 [skip ci]
## [1.2.5](v1.2.4...v1.2.5) (2020-07-17)
1 parent 4f07722 commit 9c050d6

File tree

4 files changed

+16
-12
lines changed

4 files changed

+16
-12
lines changed

docs/CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
## [1.2.5](https://github.com/JonasKruckenberg/rollup-plugin-sri/compare/v1.2.4...v1.2.5) (2020-07-17)
2+
13
## [1.2.4](https://github.com/JonasKruckenberg/rollup-plugin-sri/compare/v1.2.3...v1.2.4) (2020-07-17)
24

35
## [1.2.3](https://github.com/JonasKruckenberg/rollup-plugin-sri/compare/v1.2.2...v1.2.3) (2020-07-17)

docs/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
**generateIdentity**(`source`: Buffer, `alg`: string): *string*
2020

21-
*Defined in [index.ts:86](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/a8b2ca2/index.ts#L86)*
21+
*Defined in [index.ts:88](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/4f07722/index.ts#L88)*
2222

2323
**Parameters:**
2424

docs/interfaces/pluginoptions.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
**active**? : *undefined | false | true*
2323

24-
*Defined in [index.ts:41](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/a8b2ca2/index.ts#L41)*
24+
*Defined in [index.ts:43](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/4f07722/index.ts#L43)*
2525

2626
Can be used to disable the plugin, for example when used together with hot-module-reloading.
2727

@@ -33,11 +33,13 @@ ___
3333

3434
**algorithms**? : *string[]*
3535

36-
*Defined in [index.ts:27](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/a8b2ca2/index.ts#L27)*
36+
*Defined in [index.ts:29](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/4f07722/index.ts#L29)*
3737

3838
A list of hashing algorithms to use when computing the integrity attribute.
39-
The hashing algorithm has to be supported by the nodejs version you're running on.
40-
Standard hash functions are: `sha256`, `sha384` and `sha512`.
39+
The hashing algorithm has to be supported by the nodejs version you're running on and by the Browser you're targeting.
40+
Browsers will ignore unknown hashing functions.
41+
Standard hash functions as defined in the [subresource integrity specification](https://w3c.github.io/webappsec-subresource-integrity/#hash-functions) are: `sha256`, `sha384` and `sha512`.
42+
4143
> NOTE: While browser vendors are free to support more algorithms than those stated above,
4244
> they generally do not accept `sha1` and `md5` hashes.
4345
@@ -49,10 +51,10 @@ ___
4951

5052
**crossorigin**? : *"anonymous" | "use-credentials"*
5153

52-
*Defined in [index.ts:35](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/a8b2ca2/index.ts#L35)*
54+
*Defined in [index.ts:37](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/4f07722/index.ts#L37)*
5355

54-
You can also specify the value for the crossorigin attribute.
55-
This attribute has to be set to prevent cross-origin data leakage.
56+
Specifies the value for the crossorigin attribute.
57+
This attribute has to be set on the generated html tags to prevent cross-origin data leakage.
5658
The default value `anonymous` should be okay for normal use.
5759
see: [the W3C spec](https://www.w3.org/TR/SRI/#cross-origin-data-leakage) for details.
5860

@@ -64,10 +66,10 @@ ___
6466

6567
**selectors**? : *string[]*
6668

67-
*Defined in [index.ts:18](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/a8b2ca2/index.ts#L18)*
69+
*Defined in [index.ts:18](https://github.com/JonasKruckenberg/rollup-plugin-sri/blob/4f07722/index.ts#L18)*
6870

69-
A list of strings you can provide that the plugin will use to match.
70-
it will then try to compute an integrity attribute for the matched tag.
71+
A list of strings you can provide that the plugin will use to match html tags with.
72+
It will then try to compute an integrity attribute for the matched tag.
7173
Currently it only matches script tags and link with rel=stylesheet as per specification.
7274
see [the W3C spec](https://www.w3.org/TR/SRI/#elements) for more information.
7375
The selector syntax is the same as jQuery's.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "rollup-plugin-sri",
3-
"version": "1.2.4",
3+
"version": "1.2.5",
44
"main": "dist/index.js",
55
"module": "dist/index.es.js",
66
"types": "dist/index.d.ts",

0 commit comments

Comments
 (0)