@shgysk8zer0/polyfills 0.3.2 → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +15 -0
- package/Document.js +1 -3
- package/all.js +1 -2
- package/all.min.js +13 -18
- package/all.min.js.map +1 -1
- package/deprecated/.gitkeep +0 -0
- package/element.js +2 -20
- package/package.json +6 -1
- package/rollup.config.js +3 -0
- package/sanitizer.js +1 -0
- package/assets/Sanitizer.js +0 -61
- package/assets/SanitizerConfig.js +0 -348
- package/assets/SanitizerConfigBase.js +0 -18
- package/assets/SanitizerConfigEdge.js +0 -335
- package/assets/SanitizerConfigW3C.js +0 -350
- package/assets/sanitizerUtils.js +0 -299
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,21 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [v0.3.4] - 2024-03-27
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
- Update `@aegisjsproject/sanitizer` to fix appending rather than replacing
|
|
13
|
+
|
|
14
|
+
## [v0.3.3] - 2024-03-26
|
|
15
|
+
|
|
16
|
+
### Changed
|
|
17
|
+
- Switch to using `@aegisjsproject/sanitizer` instead of own implementation
|
|
18
|
+
- Now requires `aegis-sanitizer#html` policy instead of `sanitizer-raw#html`
|
|
19
|
+
|
|
20
|
+
### Removed
|
|
21
|
+
- Remove all scripts relating to Sanitizer API
|
|
22
|
+
- Completely remove ancient implementation of `Sanitizer` in `deprecated/`
|
|
23
|
+
|
|
9
24
|
## [v0.3.2] - 2024-03-09
|
|
10
25
|
|
|
11
26
|
### Added
|
package/Document.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { safeParseHTML } from './assets/sanitizerUtils.js';
|
|
1
|
+
import { polyfillGetterSetter } from './utils.js';
|
|
3
2
|
import { adoptedStyleSheets } from './assets/adoptedStylesheets.js';
|
|
4
3
|
|
|
5
|
-
polyfillMethod(Document, 'parseHTML', (...args) => safeParseHTML(...args));
|
|
6
4
|
polyfillGetterSetter(Document.prototype, 'adoptedStyleSheets', adoptedStyleSheets);
|
package/all.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @copyright 2023 Chris Zuber <admin@kernvalley.us>
|
|
2
|
+
* @copyright 2023-2024 Chris Zuber <admin@kernvalley.us>
|
|
3
3
|
*/
|
|
4
4
|
import './globalThis.js';
|
|
5
5
|
import './deprefixer.js';
|
|
@@ -24,7 +24,6 @@ import './crypto.js';
|
|
|
24
24
|
import './cookieStore.js';
|
|
25
25
|
import './animation.js';
|
|
26
26
|
import './trustedTypes.js';
|
|
27
|
-
import './deprecated/sanitizer.js';
|
|
28
27
|
import './Document.js';
|
|
29
28
|
import './ShadowRoot.js';
|
|
30
29
|
import './CSSStyleSheet.js';
|