Releases: github/include-fragment-element
v6.3.0
v6.2.1
v6.2.0
What's Changed
- upgrade to new web component standards by @keithamus in #93
Full Changelog: v6.1.1...v6.2.0
v6.1.1
What's Changed
- add refetch API by @manuelpuyol in #92
New Contributors
- @manuelpuyol made their first contribution in #92
Full Changelog: v6.1.0...v6.1.1
v6.1.0
CSP trusted types is an API that allows a website to reduce the possibility of XSS by controlling what kind of content can be placed in a "sink" like .innerHTML
.
This release introduces a flexible callback that allows the calling code to provide its own sanitization or rejection of an server response for an <include-fragment-element>
. For example, the site may want to allow the server to send a header to assert that certain HTML is sanitized and safe to use as-is, or the site may want to run the response through a sanitizer.
What's Changed
- move AOR to primer by @keithamus in #80
- Switch Promise chaining to async-await syntax. by @lgarron in #82
- Fix the location of
try
in new async code. by @lgarron in #83 - Fix up types for cached and returned data. by @lgarron in #84
- Add a script for
npm run format
. by @lgarron in #85 - Switch to web test runner by @keithamus in #86
- Add
setCSPTrustedTypesPolicy()
for CSP trusted types. by @lgarron in #81 - throw errors rather than resolving them by @keithamus in #87
New Contributors
- @lgarron made their first contribution in #82
- @rzhade3 and @fletchto99 made their first contribution in #81
Full Changelog: v6.0.1...v6.1.0
v6.0.1
What's Changed
- Use chromium for karma tests by @theinterned in #73
- Add a .devcontainer by @koddsson in #74
- Add a release action by @koddsson in #76
- Update dependencies by @koddsson in #77
- Refactor private functions into the component by @koddsson in #78
- Check if there's a network request already in flight by @koddsson in #79
New Contributors
- @theinterned made their first contribution in #73
Full Changelog: v6.0.0...v6.0.1
v6.0.0
v5.3.2
This release fixes a bug where calling load()
on a loading=lazy
element causes the contents not to be replaced when the element becomes visible.
Thanks to @latentflip for his contributions to this release 🙌🏻
v5.3.1
This release guarantees the order of events. The order will now always be:
loadstart
include-fragment-replace
include-fragment-replaced
load
loadend
This release also guarantees that during the loadstart
dispatch, the <include-fragment>
element will still exist and be connected to the DOM.