All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
- Add
ReadableStream.from()
polyfill
- Add CJS version for node via
node.cjs
- Update package
main
andexports.require
to usenode.cjs
- Update
@aegisjsproject/sanitizer
with support for Declarative Shadow DOM
- Add
CloseWatcher
polyfill
- Enhance
setHTMLUnsafe
andgetHTML
support
- Add polyfill for
customElements.getName
- Add
Error.isError
(imperfect, but works)
- Fixed and simplicy
Array.prototype.uniqueBy
- Add a few tests via
*.test.js
andnode --test
- Add
browser.js
(replacesall.js
) - Add
RegExp.escape
- Add
exports
topackage.json
- Update to node 20.9.0
- Deprecated
all.js
/all.min.js
- Added
scheduler.yield
- Refactor
scheduler.postTask
- Add
URLPattern
viaurlpattern-polyfill
- Fix error in
Uint8Array.prototype.toHex()
- Add node version of polyfills (
node.js
andnode.min.js
) - Add some automated tests (
test/node.js
)
- Create local module from
string-dedent
instead of having as a dependency - Update
rollup.config.js
to create all needed bundles
- Fix bad decoding in
Uint8Array.fromBase64
- Fixed range error converting large
Uint8Array
s to base64
- Add
String.dedent
viastring-dedent
- Add
Promise.ownProperties
andPromise.fromEntries
- Add
Symbol.isWellKnown
andSymbol.isRegistered
- Add missing
URL.parse
- Add polyfills for
setHTMLUnsafe
&parseHTMLUnsafe
methods - Add polyfills for
bytes
method inBlob
,Request
, andResponse
- Add
Math.sumPrecise()
- Update
@aegisjsproject/sanitizer
- Deprecate old
Math.sum
method (nowMath.sumPrecise
)
- Update Sanitizer Config
- Load correct polyfill for Sanitizer API
- Version bump (missed a version bump somewhere)
- Add
Aegisjsproject/trusted-types
- Update
@aegisjsprject/sanitizer
to useaegis-sanitizer#html
inparseHTML
- Update
@aegisjsproject/sanitizer
to fix appending rather than replacing
- Switch to using
@aegisjsproject/sanitizer
instead of own implementation - Now requires
aegis-sanitizer#html
policy instead ofsanitizer-raw#html
- Remove all scripts relating to Sanitizer API
- Completely remove ancient implementation of
Sanitizer
indeprecated/
- WIP implementation of the Popover API
- Add
Array.isTemplateObject()
- Add
Iterator.prototype.chunks()
- Allow
blob:
URIs anddata-
attributes in sanitizer
- Add
Uint8Array
base64 + hex proposed methods - Add
Math.sum()
- Allow
data-*
attributes in sanitizer config
- Implement
Iterator.from
- Use iterators instead of generators iterator helper methods
- Update Set to conform to spec changes
- Fix misc issues with
Record
andTuple
- Add
Record()
andTuple()
... kinda - Add
JSON.parseImmutable()
- Add
Array.prototype.lastIndex
andArray.prototype.lastItem
cookieStore
now supportspartitioned
<iframe credentialless>
&<iframe loading="lazy">
(just the attributes / getters & setters)
- Do not set
httpOnly
incookieStore
- Change default
sameSite
to'lax'
forcookieStore
s
Map.groupBy()
Object.groupBy()
Array.group()
Array.groupToMap()
- Add polyfill for
HTMLFormElement.prototype.requestSubmit()
- Add funding
- Add
Response.json()
static method
- Fix order of loading polyfills to support
arr.groupToMap()
el.setHTML()
now replaces rather than appends
- Update to node 20
- Update GH Action for npm publish
- Update npm scripts for versioning and locks
- Fix sanitizer config in
CSSStyleSheet.replaceSync()
- Fix sanitizer config for
Document.parseHTML()
when parsing forCSSStyleSheet
s
- Add shim for
Document.parseHTML
- Add shim for constructable stylesheets (#21)
- Add
@shgysk8zer0/js-utils
el.setHTML()
now conforms to the updated draft Sanitizer API spec
- Remove
eslint
androllup
and plugins
- Sanitizer is now considered deprecated, pending changes to the spec
URL.canParse()
[#15]utils.js
module with helper functions (polyfillMethod()
, currently)
- Update GitHub Release Action with correct permissions
- Correctly check for support of
Sanitizer.prototype.sanitizeFor()
main
&module
topackage.json
- Update README (again)
- Update
rollup-plugin-terser
to@rollup/plugin-terser
- Fix order of releases in CHANGELOG
- Remove polyfill for
<dialog>
from default bundle (moved tolegacy/
)
- Update README with instructions
- Add missing
deprefixer.js
script
- Bundle
all.js
->all.min.js
on pack/pubilsh