Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

astro-pages-hmr

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

astro-pages-hmr - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

3

package.json
{
"name": "astro-pages-hmr",
"version": "0.1.0",
"version": "0.1.1",
"type": "module",

@@ -22,2 +22,3 @@ "author": "Bjorn Lu",

"astro",
"astro-integration",
"hmr"

@@ -24,0 +25,0 @@ ],

@@ -40,3 +40,3 @@ # astro-pages-hmr

### How it works
## How it works

@@ -48,6 +48,6 @@ The integration uses [micromorph](https://github.com/natemoo-re/micromorph) to update the current HTML with the incoming new HTML via `fetch`. `micromorph` is bundled into a client HMR runtime that is injected into the page.

- The `<head>` tag has changed
- The `<scripts>` tags have changed
- The `<script>` tags have changed
- The attributes passed to Island components have changed
### Limitations
## Limitations

@@ -54,0 +54,0 @@ - Dynamically injected elements in the HTML may interfere with morphing as the incoming new HTML will likely not contain that element, so they will be deleted from the DOM even if needed. In which case, make sure your script is able to handle those changes and re-inject them if needed. <!-- Introduce a new event? Borrow View Transition event? -->

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc