Skip to content

Commit

Permalink
Merge pull request #50 from shgysk8zer0/release/0.3.3
Browse files Browse the repository at this point in the history
Switch to using `@aegisjsproject/sanitizer`
  • Loading branch information
shgysk8zer0 committed Mar 27, 2024
2 parents bff079a + 0bb4f66 commit 2e0b06e
Show file tree
Hide file tree
Showing 17 changed files with 383 additions and 1,452 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

## [v0.3.3] - 2024-03-26

### Changed
- Switch to using `@aegisjsproject/sanitizer` instead of own implementation
- Now requires `aegis-sanitizer#html` policy instead of `sanitizer-raw#html`

### Removed
- Remove all scripts relating to Sanitizer API
- Completely remove ancient implementation of `Sanitizer` in `deprecated/`

## [v0.3.2] - 2024-03-09

### Added
Expand Down
4 changes: 1 addition & 3 deletions Document.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import { polyfillMethod, polyfillGetterSetter } from './utils.js';
import { safeParseHTML } from './assets/sanitizerUtils.js';
import { polyfillGetterSetter } from './utils.js';
import { adoptedStyleSheets } from './assets/adoptedStylesheets.js';

polyfillMethod(Document, 'parseHTML', (...args) => safeParseHTML(...args));
polyfillGetterSetter(Document.prototype, 'adoptedStyleSheets', adoptedStyleSheets);
3 changes: 1 addition & 2 deletions all.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* @copyright 2023 Chris Zuber <admin@kernvalley.us>
* @copyright 2023-2024 Chris Zuber <admin@kernvalley.us>
*/
import './globalThis.js';
import './deprefixer.js';
Expand All @@ -24,7 +24,6 @@ import './crypto.js';
import './cookieStore.js';
import './animation.js';
import './trustedTypes.js';
import './deprecated/sanitizer.js';
import './Document.js';
import './ShadowRoot.js';
import './CSSStyleSheet.js';
Expand Down
61 changes: 0 additions & 61 deletions assets/Sanitizer.js

This file was deleted.

Loading

0 comments on commit 2e0b06e

Please sign in to comment.