@shgysk8zer0/polyfills 0.3.1 → 0.3.3

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 CHANGED
@@ -6,12 +6,35 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [v0.3.3] - 2024-03-26
10
+
11
+ ### Changed
12
+ - Switch to using `@aegisjsproject/sanitizer` instead of own implementation
13
+ - Now requires `aegis-sanitizer#html` policy instead of `sanitizer-raw#html`
14
+
15
+ ### Removed
16
+ - Remove all scripts relating to Sanitizer API
17
+ - Completely remove ancient implementation of `Sanitizer` in `deprecated/`
18
+
19
+ ## [v0.3.2] - 2024-03-09
20
+
21
+ ### Added
22
+ - WIP implementation of the [Popover API](https://developer.mozilla.org/en-US/docs/Web/API/Popover_API)
23
+ - Add `Array.isTemplateObject()`
24
+ - Add `Iterator.prototype.chunks()`
25
+
26
+ ### Fixed
27
+ - Allow `blob:` URIs and `data-` attributes in sanitizer
28
+
9
29
  ## [v0.3.1] - 2024-01-31
10
30
 
11
31
  ### Added
12
32
  - Add `Uint8Array` base64 + hex proposed methods
13
33
  - Add `Math.sum()`
14
34
 
35
+ ### Fixed
36
+ - Allow `data-*` attributes in sanitizer config
37
+
15
38
  ## [v0.3.0] - 2024-01-06
16
39
 
17
40
  ### Added
package/Document.js CHANGED
@@ -1,6 +1,4 @@
1
- import { polyfillMethod, polyfillGetterSetter } from './utils.js';
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/README.md CHANGED
@@ -15,7 +15,7 @@ for features including `AbortSignal`, `CookieStore`, `Sanitizer`, and many more.
15
15
 
16
16
  [![npm](https://img.shields.io/npm/v/@shgysk8zer0/polyfills)](https://www.npmjs.com/package/@shgysk8zer0/polyfills)
17
17
  <!-- ![node-current](https://img.shields.io/node/v/@shgysk8zer0/polyfills) -->
18
- ![npm bundle size gzipped](https://img.shields.io/bundlephobia/minzip/@shgysk8zer0/polyfills)
18
+ ![NPM Unpacked Size](https://img.shields.io/npm/unpacked-size/%40shgysk8zer0%2Fpolyfills)
19
19
  [![npm](https://img.shields.io/npm/dw/@shgysk8zer0/polyfills?logo=npm)](https://www.npmjs.com/package/@shgysk8zer0/polyfills)
20
20
 
21
21
  [![GitHub followers](https://img.shields.io/github/followers/shgysk8zer0.svg?style=social)](https://github.com/shgysk8zer0)
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';